576e80eb2e483c7518c19d1ae8afd0415f343a73
[gnulib.git] / ChangeLog
1 2013-03-06  Bruno Haible  <bruno@clisp.org>
2
3         execute: Revert last change, but use a different condition.
4         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
5         on Windows.
6
7 2013-03-05  Eric Blake  <eblake@redhat.com>
8
9         execute: drop dead code
10         * lib/execute.c (nonintr_close, nonintr_open): Delete.
11
12 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
13
14         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
15         * m4/non-recursive-gnulib-prefix-hack.m4
16         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
17         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
18         <http://bugs.gnu.org/10305#237>.
19
20 2013-03-04  Eric Blake  <eblake@redhat.com>
21
22         test-getsockopt: avoid compiler warning
23         * tests/test-getsockopt.c (includes): Ensure close is declared.
24
25 2013-03-02  Bruno Haible  <bruno@clisp.org>
26
27         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
28         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
29
30 2013-03-02  Bruno Haible  <bruno@clisp.org>
31
32         gettext: Update to version 0.18.2.
33         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
36
37 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38
39         regex: merge patches from libc
40
41         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42         * lib/regex_internal.h (__attribute__): Rename from __attribute.
43         All uses changed.
44         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
45         (re_string_wchar_at, re_string_elem_size_at):
46         Mark function as possibly unused.
47
48         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
49         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
50         elements compare against the byte sequence of it, not its name.
51
52 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53
54         putenv: port better to native Windows
55         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
56         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
57         (_unsetenv): Use _putenv if available.
58         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
59         a bit less likely to cause damage.
60         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
61         Fix the wrong value with SetEnvironmentVariable.
62         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
63         code better.
64
65 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66
67         regex: ignore old-style-definition warnings
68         * lib/regex.c: Add pragma to ignore these warnings.
69         Problem reported for GNU tar by Pavel Raiskup.
70
71 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
72
73         getcwd: support coreutils better
74         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
75         but this might not be correct in coreutils, which disables
76         the raw decl checks.  Problem reported by Nagendra in
77         <http://bugs.gnu.org/10305#192>.
78         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
79         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80         Test the getcwd function, not any macro, since getcwd.c wants the
81         function.
82         * m4/getcwd.m4 (gl_FUNC_GETCWD):
83         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
84         compile, as might happen if there's a macro but no function.
85
86         strtod: support coreutils better
87         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
88         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
89         disables the raw decl checks.  This assumes there is an underlying
90         strtod, but that's a safe assumption these days.
91         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
92
93         mountlist: port to HP NonStop
94         Reported by Joachim Schmitz in
95         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
96         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
97         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
98
99 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
100
101         extern-inline: avoid compilation error with HP-UX cc
102         Reported by Richard Lloyd in
103         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
104         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
105         Suppress extern inline with HP-UX cc.  This should be safe,
106         though it may hurt performance.  Perhaps someone with some HP-UX
107         experience can come up with a higher-performance fix.
108
109 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
110
111         putenv: fix heap corruption with mixed putenv/_putenv
112         Problem reported by Michael Goffioul in
113         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
114         * lib/putenv.c (putenv) [HAVE__PUTENV]:
115         Rely on _putenv to allocate the new environment.
116         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
117         * modules/putenv (configure.ac): Use it.
118
119 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
120
121         unsetenv etc.: port to Solaris 11 + GNU Emacs
122         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
123         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
124         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
125         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
126         idea but is too painful to fix right now), and without this gnulib
127         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
128         compiling unsetenv.c on Solaris 11.  Fix the problem for
129         unsetenv.c, and fix other similar occurrences.
130
131 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
132
133         secure_getenv: fix C++ declaration typo
134         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
135         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
136         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
137
138 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
139
140         careadlinkat: stop exporting careadlinkatcwd
141         Only Emacs used it directly, and Emacs no longer needs it.
142         * NEWS: Document this simplification.
143         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
144         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
145         for readlink.
146         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
147         Don't include stdlib.h; no longer needed.
148         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
149         * lib/relocwrapper.c: Adjust comment to match new dependencies.
150         * modules/areadlink (Depends-on): Add readlink.
151         (Maintainer): Add self.
152         * modules/careadlinkat (Depends-on): Remove readlink.
153
154         extensions: port better to HP-UX
155         This is merged from git Autoconf.
156         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
157         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
158         so that it's compatible with the value used when compiling.
159
160         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
161         Problem reported by Mats Erik Andersson in
162         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
163         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
164         openpty function exists, not merely when we intend to replace it.
165         This corrects the 2013-01-31 patch, which mistakenly defined
166         HAVE_OPENPTY even on hosts that lacked it.
167
168 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
169
170         secure_getenv: fix include typo
171         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
172
173         secure_getenv: port better to FreeBSD and Solaris
174         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
175         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
176         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
177         This works better on BSDish platforms.
178         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
179         Test for issetugid if __secure_getenv is missing.
180
181 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
182
183         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
184         Some of these changes are merged in from git Autoconf.
185         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
186         When deciding whether to define _XOPEN_SOURCE, inspect the
187         preprocessor macro __hpux instead of the more-heavyweight
188         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
189         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
190         as the key for __EXTENSIONS__.
191
192         unistd: avoid namespace pollution on non-glibc systems
193         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
194         This avoids namespace pollution on non-glibc systems, by causing
195         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
196         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
197         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
198
199 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
200
201         tmpdir: use secure_getenv
202         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
203         Define to secure_getenv, not getenv.
204         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
205         as that's now secure_getenv's job.
206         * modules/tmpdir (Depends-on): Add secure_getenv.
207
208         tempname: use secure_getenv
209         * lib/tempname.c (__secure_getenv) [!_LIBC]:
210         Define to secure_getenv, not getenv.
211         * modules/tempname (Depends-on):
212         Add secure_getenv.
213
214         secure_getenv: new module
215         * MODULES.html.sh (Extra functions based on ANSI C 89):
216         Add secure_getenv.
217         * doc/glibc-functions/secure_getenv.texi: New file.
218         * doc/gnulib.texi: Include it.
219         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
220         New files.
221         * lib/stdlib.in.h (secure_getenv): New decl.
222         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
223         * modules/stdlib (stdlib.h):
224         Add secure_getenv checks.
225
226 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
227
228         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
229         Reported for OS X 10.8.2 by Assaf Gordon in
230         <http://bugs.gnu.org/13516>.
231         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
232         !HAVE_OPENAT && !HAVE_FDOPENDIR.
233         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
234         so that they can be kept in sync more easily.  Avoid PATH_MAX
235         test on the Hurd.  Sync from test-getcwd.c for errno tests after
236         mkdir or chdir failure.
237         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
238         lib/getcwd.c.
239         (test_abort_bug): Do not test for the deep directory bug unless we
240         have openat support.  Avoid PATH_MAX test on the Hurd.
241
242         regex-tests, regex: fix bug: memset undeclared
243         * tests/test-regex.c: Don't include regex.h twice.  Include
244         string.h, to declare memset.  Christensen's report also mentioned
245         this issue.
246         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
247         test-regex.c, to avoid future problems like this.  Remove
248         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
249         twice.
250
251         regex-tests: fix link errors on older Solaris
252         These need to link with @LIBINTL@ to get libintl_gettext.
253         Problem reported by Tom G. Christensen in
254         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
255         * modules/regex-tests (test_regex_LDADD): New macro.
256
257 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
258
259         regex-tests: new module
260         * modules/regex-tests, tests/test-regex.c: New files.
261
262         regex: fix off-by-one error in configure test
263         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
264
265 2013-01-31  Eric Blake  <eblake@redhat.com>
266
267         regex: avoid infinite configure test
268         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
269
270 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
271
272         openpty: fix bug where HAVE_OPENPTY wasn't defined
273         See the thread starting at:
274         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
275         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
276         openpty function exists, not merely when we intend to replace it.
277
278 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
279
280         sys_time: port to Solaris 2.6
281         There is a circularity problem on Solaris 2.6, where <time.h> includes
282         <sys/time.h> for struct timespec.  The include nesting is gnulib
283         <time.h>, system <time.h>, gnulib <sys/time.h>, system
284         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
285         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
286         <sys/siginfo.h>; the last, innermost file needs struct
287         timestruc_t, which is defined in <sys/time.h>, which has not been
288         fully parsed.  Problem reported by Tom G. Christensen in
289         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
290         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
291         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
292         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
293         uses split double-inclusion guards.
294
295 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
296
297         regex: test for buffer overrun
298         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
299         for the just-fixed regex bug.
300
301 2013-01-29  Andreas Schwab  <schwab@suse.de>
302
303         regex: fix buffer overrun in regexp matcher [BZ #15078]
304         * lib/regexec.c (extend_buffers): Add parameter min_len.
305         (check_matching): Pass minimum needed length.
306         (clean_state_log_if_needed): Likewise.
307         (get_subexp): Likewise.
308
309 2013-01-28  Pádraig Brady  <P@draigBrady.com>
310
311         mountlist: don't consider "devtmpfs" as dummy
312         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
313         as there is storage associcated with it.
314
315 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
316
317         futimens-tests, utimens-tests: Depend on gettext.
318         This works around a problem introduced in my 2013-01-12 patch,
319         which added @LIBINTL@ to these modules.
320         * modules/futimens-tests (Depends-on):
321         * modules/utimens-tests (Depends-on): Add gettext.
322
323 2013-01-26  Eric Blake  <eblake@redhat.com>
324
325         test-getpeername: fix typo
326         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
327
328 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
329
330         bootstrap: remove the need for a sorted .gitignore file
331         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
332         rename to insert_if_absent(), so that we don't need or generate
333         a sorted .gitignore file.  We do require a .gitignore with no
334         existing duplicate entries and enforce that.
335         (sort_patterns): Remove this function as we now use the simpler
336         technigue of inserting blacklist entries at the top of the file,
337         assuming gnulib won't be inserting !whitelist entries.
338
339 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
340
341         readlinkat: don't depend on gl_FUNC_OPENAT
342         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
343         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
344         renameat.m4, symlinkat.m4; but one thing at a time.
345
346         statat: new module, split out from fstatat
347         GNU Emacs needs the POSIX-specified fstatat, but not the
348         gnulib-specified statat and lstat.  Split the latter two into a
349         new module 'statat'.
350         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
351         * lib/openat.h, lib/statat.c (STATAT_INLINE):
352         Rename from FSTATAT_INLINE. All uses changed.
353         * modules/fstatat (Files): Remove lib/statat.c.
354         (gl_MODULE_INDICATOR([fstatat])): Remove.
355         (lib_SOURCES): Remove.
356         (Maintainer): Add self.
357         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
358         * tests/test-fstatat.c (BASE): Don't define if already defined.
359         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
360
361 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
362
363         tests: don't assume fd 99 is closed
364         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
365         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
366         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
367         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
368         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
369         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
370         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
371         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
372         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
373         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
374         * tests/test-fwrite.c, tests/test-getpeername.c:
375         * tests/test-getsockname.c, tests/test-getsockopt.c:
376         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
377         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
378         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
379         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
380         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
381         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
382         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
383         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
384         * tests/test-unlinkat.c, tests/test-unlockpt.c:
385         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
386         Close file descriptor 99, instead of assuming it's already closed.
387
388 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
389
390         stpncpy: port to OS X 10.8
391         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
392         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
393
394 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
395
396         unistd: port to recent mingw
397         * lib/unistd.in.h: Remove special invocation convention for mingw,
398         which breaks for the latest mingw version.  See John W. Eaton in
399         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
400
401         largefile: port better to Mac OS X 10.5
402         This patch is backported from Autoconf git.
403         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
404         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
405         with ino_t size being different for configuration time versus
406         build/run time.  Problem reported by PHO in
407         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
408
409 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
410
411         doc: clarify -Werror
412         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
413         clarify that it's intended for developers, not for ordinary builds,
414         and mention --enable-gcc-warnings as one possible use.
415
416 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
417
418         stdint: fix build with Android's Bionic fox x86
419         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
420         was already included as _SSIZE_T_DEFINED_ might also be defined
421         in include/machine/_types.h, which is included by stdio.h
422
423 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
424
425         net_if-tests: port to Solaris 7 + GCC 3.4.6
426         Problem reported by Tom G. Christensen in
427         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
428         * tests/test-net_if.c (ni): Move to next the code that uses it,
429         so that it's declared only if needed.
430
431 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
432
433         net_if-tests: port to older Solaris
434         Problem reported by Tom G. Christensen in
435         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
436         * modules/net_if-tests (NET_IF_LIB): New substitution.
437         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
438         (HAVE_IF_NAMEINDEX): New C macro.
439         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
440
441         system-quote-tests: port to older Solaris
442         Problem reported by Tom G. Christensen in
443         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
444         * tests/test-system-quote-child.c (fopen, fread): Undef.
445
446         c-xvasprintf etc.: fix link errors on older Solaris
447         These need to link with @LIBINTL@ to get libintl_gettext.
448         Problem reported by Tom G. Christensen in
449         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
450         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
451         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
452         * modules/futimens-tests (test_futimens_LDADD):
453         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
454
455 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
456
457         locale: port to Solaris 2.6 and 7 + GNU gettext
458         * lib/locale.in.h: Just include_next <locale.h> when
459         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
460         when combining the localename module with GNU gettext 0.18.2.
461         Problem reported by Tom G. Christensen in
462         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
463
464 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
465
466         stdlib: port to Solaris 2.6
467         Also, the code worked on Solaris 7 through 9 only by accident.
468         Problem reported by Tom G. Christensen in
469         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
470         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
471         simply include the system stdlib.h.
472         * lib/getopt.in.h (__need_system_stdlib_h):
473         * lib/pthread.in.h (__need_system_stdlib_h):
474         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
475         Define when including <stdlib.h>, to avoid problems at least for
476         the pthread case on Solaris 2.6 and 7.  These .h files can get by
477         with the system stdlib.h.
478
479 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
480
481         doc: update main copyright year
482         * doc/gnulib.texi: Update copyright date.
483
484         doc: improve ISO 8601 discussion
485         * doc/parse-datetime.texi (Combined date and time of day items):
486         Specify more carefully what formats are supported and what is
487         done with excess precision.
488
489 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
490
491         doc: avoid small caps
492         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
493         they're more trouble than they're worth.  Suggested by Karl Berry
494         in <http://bugs.gnu.org/13360>.
495
496         regex: conform to strict C
497         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
498         From Aharon Robbins.
499
500         gnulib-tool: fix incompatibility with autopoint 0.18.2
501         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
502         Problem reported by Tom G. Christensen in
503         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
504
505 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
506
507         fprintftime: bring back and reword fwrite comment
508         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
509
510         stdio: remove now-unnecessary stdio.c
511         Since stdio.in.h no longer uses inline functions, we no longer
512         need to compile the extern versions.
513         * lib/stdio.c: Remove.
514         * modules/stdio (Files): Remove lib/stdio.c.
515         (lib_SOURCES): Remove.
516
517         unicodeio: depend on stdio, not ignore-value
518         * lib/unicodeio.c: Do not include ignore-value.h.
519         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
520         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
521
522         fprintftime: depend on stdio, not ignore-value
523         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
524         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
525         since the stdio module arranges to silence that warning now.
526         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
527
528 2012-10-04  Simon Josefsson  <simon@josefsson.org>
529
530         stdint-tests: Fix expanded-before-required-warning.
531         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
532
533 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
534
535         fwrite: silence __wur only for older glibc versions
536         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
537         This will help us remove this workaround some time in the far future.
538
539 2013-01-03  Eric Blake  <eblake@redhat.com>
540
541         fwrite: silence __wur without using inline
542         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
543         just gcc, and in a way that avoids inline issues.
544         * modules/stdio (Depends-on): Drop extern-inline.
545
546 2013-01-03  Jim Meyering  <jim@meyering.net>
547
548         update-copyright: avoid copyright notice date corruption
549         Given a sequence of copyright year numbers in which the final
550         one was a two-digit number that happened to be a substring of
551         a preceding four-digit year number, we would mistakenly update
552         the substring (from two- to four-digit) rather than the two-digit
553         number at the end, which, combined with the addition of the current
554         4-digit year number would yield two 5-digit year numbers, e.g.,
555         here, it would convert the first "99" to "1999, 2013" rather than
556         the final one:
557           1991, 99
558           11999, 20131, 1999
559         * build-aux/update-copyright: Tighten a regexp.
560         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
561         Reported by Joseph Myers in
562         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
563
564 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
565
566         regex: omit needless signed-pointer casts
567         * lib/regcomp.c (build_charclass, build_charclass_op):
568         Use char *, not unsigned char *, for class name and extra.
569         The char values are always nonnegative so there's no need to
570         insist on unsigned char * here, and using char * removes the need
571         for casts.  Reported by Aharon Robbins in
572         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
573
574         regex: support Gawk, which never uses alloca
575         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
576         Do not include in this case.  Gawk doesn't supply a substitute
577         alloca.h and doesn't need one.
578
579         regex: port __libc_lock_define usage to C89
580         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
581         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
582         does not conform to C89, as it has an empty macro argument.
583         Reported by Aharon Robbins in
584         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
585
586 2013-01-01  Eric Blake  <eblake@redhat.com>
587
588         maint: update all copyright year number ranges
589         Run "make update-copyright".
590
591         version-etc: bump copyright year reported in --version
592         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
593
594 2012-12-31  Eric Blake  <eblake@redhat.com>
595
596         sigprocmask-tests: skip test if pid is unexpectedly large
597         * tests/test-sigprocmask.c (main): Add range check.
598
599         git-version-gen: avoid test -z portability glitch
600         * build-aux/git-version-gen: Prefer portable test spelling, since
601         git-version-gen is run on more than just developer machines.
602
603 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
604
605         git-version-gen: add --fallback option to use if git is not present
606         * build-aux/git-version-gen: Add support for the new option --fallback,
607         which comes into play when there is no $tarball_version_file and
608         git is not working.
609         (scriptversion): Update.
610
611         maint.mk: handle missing git with more grace
612         * top/maint.mk (no-submodule-changes, public-submodule-commit):
613         Quietly proceed if git is not present.
614
615 2012-12-31  Eric Blake  <eblake@redhat.com>
616
617         dup2: work around cygwin bug
618         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
619         * lib/dup2.c (rpl_dup2): Work around it.
620         * doc/posix-functions/dup2.texi (dup2): Document it.
621
622 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
623
624         regex: remove unnecessary dependency on localcharset.h
625         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
626         hasn't been needed for years.
627         * modules/regex (Depends-on): Remove localcharset.
628
629         regex: revert single-byte change
630         * lib/regexec.c (check_node_accept_bytes): Revert previous change
631         to this function.  This was alredy fixed in a different way, at
632         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
633         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
634         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
635
636         regex: simplify based on Gawk version
637         * lib/regex_internal.c (re_dfa_add_node): Simplify.
638         Reported by Aharon Robbins in
639         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
640
641 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
642
643         regex: check that pattern char is single-byte
644         Reported by Aharon Robbins in
645         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
646         * lib/regexec.c (check_node_accept_bytes):
647         Return 0 if the pattern string has a multibyte character here.
648
649         regex: implement rational ranges
650         Reported by Aharon Robbins in
651         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
652         * lib/regcomp.c (build_range_exp) [!_LIBC]:
653         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
654         Implement rational ranges.
655
656         regex: avoid redefining __wctype
657         Reported by Aharon Robbins in
658         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
659         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
660         #undef before defining.
661
662         regex: port to hosts where malloc (0) == NULL
663         Reported by Aharon Robbins in
664         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
665         * lib/regex_internal.c (re_node_set_alloc):
666         Don't assume that malloc (0) yields nonnull.
667         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
668         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
669         * modules/regex (Files): Add m4/eealloc.m4.
670
671         regex: port to C89
672         Reported by Aharon Robbins in
673         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
674         * lib/regcomp.c (init_word_char): Declaration before statement.
675
676         regex: merge glibc changes
677         Also, copy the license wording from glibc.  This simplifies
678         merging changes.  gnulib-tool will change the wording to GPL as
679         appropriate, when importing it to other packages.  The only
680         glibc change made since the last merge, which needs merging, is:
681         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
682         * lib/regex_internal.h (gettext): Remove use of INTUSE.
683
684         * users.txt: Add Emacs.
685
686         doc: omit mention of version when not needed
687         * doc/gnulib-intro.texi (Portability and Application Code):
688         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
689         Don't mention particular dates or versions when not necessary, so
690         that the documentation won't go out of date so quickly.
691
692         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
693
694 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
695
696         bootstrap: pass --force to autoreconf.
697         * build-aux/bootstrap (AUTORECONFFLAGS): New.
698         Add "--force" so that Automake's ylwrap and other such tools
699         be updated at each bootstrap invocation.
700         Use it.
701
702 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
703
704         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
705         The earlier patch forgot to update one of the #if conditions, causing
706         a problem on Debian testing i386 reported by Mats Erik Andersson
707         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
708         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
709         (__argp_fmtstream_puts, argp_fmtstream_puts)
710         (__argp_fmtstream_write, argp_fmtstream_write)
711         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
712
713         * doc/gnulib-readme.texi: Minor fixups.
714         (Portability guidelines): Modernize URLs.  Remove some repetition.
715         (Indent with spaces not TABs): Reword to avoid too-long lines.
716         Remove some '@ifset standalone' stuff that isn't used.
717
718         * doc/gnulib-readme.texi (Portability guidelines):
719         ctype.h, not ctime.h.
720
721         Correct name of POSIX.1-2001.
722         * doc/posix-functions/fgetc.texi (fgetc):
723         * doc/posix-functions/fgets.texi (fgets):
724         * doc/posix-functions/fread.texi (fread):
725         * doc/posix-functions/fscanf.texi (fscanf):
726         * doc/posix-functions/getc.texi (getc):
727         * doc/posix-functions/getchar.texi (getchar):
728         * doc/posix-functions/scanf.texi (scanf):
729         POSIX.1-2001, not POSIX-2001.
730
731         doc: move README into manual
732         * README: Move contents to new file doc/gnulib-readme.texi.
733         Replace with a one-line summary.
734         * doc/gnulib.texi (Brief Overview): New section,
735         with old intro preface.  Include gnulib-readme.texi for contents.
736         (Philosophy): Rename from "Introduction", since this
737         section no longer introduces the rest.  Write a new preface.
738         * doc/gnulib-readme.texi: New file, with the old contents of
739         README texinfo-ized.  This way, the README info appears
740         in the online and printed manual.
741
742 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
743
744         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
745         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
746         c_vasprintf() prototype.
747
748 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
749
750         c-vasprintf: Fix "empty declaration" warning reported by GCC.
751         * lib/c-vasprintf.h: Remove stray semicolon.
752
753 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
754
755         gettext: avoid obsolete macro AM_PROG_MKDIR_P
756         It is obsolete and is planned to be removed from Automake 1.14; see
757         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
758         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
759         (installdirs-data, installdirs-data-yes):
760         Use $(MKDIR_P), not $(mkdir_p).
761         * m4/intl.m4 (AM_INTL_SUBDIR):
762         * m4/po.m4 (AM_PO_SUBDIRS):
763         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
764
765 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
766
767         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
768         On this platform, we are not optimizing but we are using
769         the substitute for extern inlines, so compile as if
770         C99-style extern inline, or a substitute, is available.
771         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
772         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
773         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
774         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
775         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
776         Declare as ARGP_FS_EI, not as extern.
777         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
778         (__option_is_short, _option_is_end, __option_is_end)
779         [!_LIBC && __USE_EXTERN_INLINES]:
780         Declare as ARGP_EI, not as extern.
781
782 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
783
784         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
785         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
786         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
787         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
788         ...), as the latter is fatal with older Autoconfs.
789         Problem reported and fix suggested by Eric Blake in thread starting at
790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
791
792 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
793
794         AC_PROG_MKDIR_P: don't workaround if not buggy
795         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
796         Define only for Autoconf versions before 2.62.
797         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
798         undocumented m4_PACKAGE_VERSION, for consistency with the
799         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
800         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
801         was introduced in 2.62.
802
803 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
804
805         New 'c-*printf' modules for formatted output in C locale.
806
807         New module 'c-vasnprintf'.
808         * modules/c-vasnprintf: New file.
809         * lib/c-vasnprintf.c: New file.
810         * lib/c-vasnprintf.h: New file.
811
812         New module 'c-snprintf'.
813         * modules/c-snprintf: New file.
814         * modules/c-snprintf-tests: New file.
815         * lib/c-snprintf.c: New file.
816         * lib/c-snprintf.h: New file.
817         * tests/test-c-snprintf.c: New file.
818         * tests/test-c-snprintf.sh: New file.
819
820         New module 'c-vsnprintf'.
821         * modules/c-vsnprintf: New file.
822         * modules/c-vsnprintf-tests: New file.
823         * lib/c-vsnprintf.c: New file.
824         * lib/c-vsnprintf.h: New file.
825         * tests/test-c-vsnprintf.c: New file.
826         * tests/test-c-vsnprintf.sh: New file.
827
828         New module 'c-vasprintf'.
829         * modules/c-vasprintf: New file.
830         * modules/c-vasprintf-tests: New file.
831         * lib/c-asprintf.c: New file.
832         * lib/c-vasprintf.c: New file.
833         * lib/c-vasprintf.h: New file.
834         * tests/test-c-vasprintf.c  +: New file.
835         * tests/test-c-vasprintf.sh: New file.
836
837         New module 'c-xvasprintf'.
838         * modules/c-xvasprintf: New file.
839         * modules/c-xvasprintf-tests: New file.
840         * lib/c-xasprintf.c: New file.
841         * lib/c-xvasprintf.c: New file.
842         * lib/c-xvasprintf.h: New file.
843         * tests/test-c-xvasprintf.c: New file.
844         * tests/test-c-xvasprintf.sh: New file.
845
846 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
847
848         argp: better 'inline'
849         Use extern-inline module to declare extern inline functions.
850         This avoids some bogus warning diagnostics.  Problem discovered
851         when modifying GNU tar to use the manywarnings module.
852         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
853         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
854         Define based on extern-inline.
855         * modules/argp (Depends-on): Add extern-inline.
856
857 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
858
859         filemode, sys_stat: Handle MPX files a la AIX.
860         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
861         * lib/sys_stat.in.h (S_ISMPX): New macro.
862         * tests/test-sys_stat.c: Add tests for MPX files.
863
864 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
865
866         x-to-1: honor $PERL
867         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
868         a chance to use his preferred version of Perl.  This is typically
869         required by Darwin users whose default /usr/bin/perl does not have all
870         the libraries required by help2man, and who need to use their MacPorts
871         installation of Perl instead.
872
873 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
874
875         gnu-web-doc-update: add all the new files, even in new directories
876         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
877         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
878         Use it.
879         (main): Don't use cvsutils to get the list of unknown files,
880         just add all the existing files and directories.
881
882 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
883
884         gnu-web-doc-update: improve --help
885         * build-aux/gnu-web-doc-update: Move comments into --help.
886
887 2012-12-07  Eric Wong  <normalperson@yhbt.net>
888
889         mountlist: recognize more "dummy" file systems
890         * lib/mountlist.c (ME_DUMMY_0):
891         Add these dummy FS names to the list:
892         - "debugfs" virtual filesystem for kernel debugging
893         - "devpts" PTY slave filesystem
894         - "devtmpfs" device filesystem on top of tmpfs/ramfs
895         - "fusectl" control filesystem for FUSE
896         - "mqueue" enumerates POSIX message queues
897         - "rpc_pipefs" kernel <-> userspace bridge for NFS
898         - "sysfs" is for exporting kernel objects
899         - "devfs" device filesystem for Linux 2.4 and FreeBSD
900
901 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
902
903         extern-inline: avoid incompatibility with Darwin Libc
904         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
905         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
906         Problem reported by Akim Demaille in
907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
908
909 2012-12-11  Simon Josefsson  <simon@josefsson.org>
910
911         gnupload: Work with GnuPG using gpg-agent (for smartcards).
912         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
913         let it handle password prompting.
914
915 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
916
917         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
918         * lib/canonicalize.c (canonicalize_filename_mode):
919         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
920         fetching the current directory.  Don't overrun the beginning of
921         rpath if there's no slashes after the MS-Windows drive letter.
922
923 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
924
925         maint.mk: avoid extra forks
926         * top/maint.mk (_cfg_mk): The GNU make manual documents that
927         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
928         So use that instead of "$(shell test -f FILE && echo FILE)".
929
930 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
931
932         vasnprintf: fix ASCII_ONLY typo
933         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
934         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
935         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
936         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
938
939 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
940
941         list, oset, xlist, xoset: fix extern inline issue with C99
942         This was introduced by my recent changes for 'inline'.
943         Problem reported for gettext by Daiki Ueno in
944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
945         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
946         (gl_list_nx_create, gl_list_size, gl_list_node_value)
947         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
948         (gl_list_previous_node, gl_list_get_at)
949         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
950         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
951         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
952         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
953         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
954         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
955         (gl_list_iterator_free, gl_sortedlist_search)
956         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
957         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
958         (gl_sortedlist_remove):
959         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
960         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
961         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
962         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
963         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
964         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
965         (gl_list_add_at, gl_sortedlist_add):
966         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
967         Wrap these extern decls inside "#if 0", because they are implemented
968         as inline functions, and extern inline is not what's wanted here.
969         It would simplify these .h files to remove the extern decls entirely,
970         although a downside would be less-clear separation between
971         specification and implementation.
972
973 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
974
975         sys_stat: no 'static inline'
976         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
978
979         extern-inline: no 'static inline'
980         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
981         Do not require AC_C_INLINE.
982         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
983         'static inline', for older compilers.
984
985         snippet/warn-on-use: no 'static inline'
986         * build-aux/snippet/warn-on-use.h:
987         Remove unnecessary 'inline' in comment.
988
989         rbtree-list, rbtreehash-list: no 'static inline'
990         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
991         * lib/gl_anytree_list2.h (node_at):
992         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
993         (gl_oset_first, add_nodes_to_buckets):
994         Now static, not static inline.
995
996         regex: no 'static inline'
997         * lib/regex_internal.c (calc_state_hash):
998         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
999         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1000         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1001         Now static, not static inline.
1002         (inline) [__GNUC__ < 3 && _LIBC]:
1003         Remove macro; no longer needed.
1004
1005         xvasprintf: no 'static inline'
1006         * lib/xvasprintf.c (xstrcat):
1007         Now static, not static inline.
1008         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1009         Do not require AC_C_INLINE.
1010
1011         parse-datetime, parse-duration: no 'static inline'
1012         * lib/parse-datetime.y (to_uchar):
1013         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1014         (scale_n_add):
1015         Now static, not static inline.
1016         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1017         * modules/parse-duration (configure.ac):
1018         Do not require AC_C_INLINE.
1019
1020         getaddrinfo: no 'static inline'
1021         * lib/getaddrinfo.c (validate_family):
1022         Now static, not static inline.
1023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1024         Do not require AC_C_INLINE.
1025
1026         ftruncate, fts, lstat, openat, raise: no 'static inline'
1027         * lib/ftruncate.c (chsize_nothrow):
1028         * lib/fts.c (opendirat, diropen):
1029         * lib/lstat.c (orig_lstat):
1030         * lib/openat.c (orig_openat):
1031         * lib/raise.c (raise_nothrow):
1032         Now static, not static inline.
1033         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1034         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1035         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1036         * m4/openat.m4 (gl_PREREQ_OPENAT):
1037         * m4/raise.m4 (gl_PREREQ_RAISE):
1038         Do not require AC_C_INLINE.
1039
1040         fflush, stat: no 'static inline'
1041         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1042         (clear_ungetc_buffer, disable_seek_optimization)
1043         (restore_seek_optimization, update_fpos_cache):
1044         * lib/stat.c (orig_stat):
1045         Now static, not static inline.
1046         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1047         (update_fpos_cache):
1048         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1049         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1050         * m4/stat.m4 (gl_PREREQ_STAT):
1051         Do not require AC_C_INLINE.
1052
1053         error, filevercmp: no 'static inline'
1054         * lib/error.c (is_open, flush_stdout):
1055         * lib/filevercmp.c (order):
1056         Now static, not static inline.
1057         * m4/error.m4 (gl_PREREQ_ERROR):
1058         * modules/filevercmp (configure.ac):
1059         Do not require AC_C_INLINE.
1060
1061         dup, execute, fatal-signal, etc.: no 'static inline'
1062         * lib/dup.c (dup_nothrow):
1063         * lib/execute.c (nonintr_close, nonintr_open):
1064         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1065         * lib/fopen.c (orig_fopen):
1066         * lib/freadseek.c (freadptrinc):
1067         * lib/freopen.c (orig_freopen):
1068         * lib/fstat.c (orig_fstat, fstat_nothrow):
1069         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1070         (get_rusage_as_via_iterator):
1071         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1072         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1073         * lib/isatty.c (_isatty_nothrow):
1074         * lib/open.c (orig_open):
1075         * lib/read.c (read_nothrow):
1076         * lib/sigprocmask.c (signal_nothrow):
1077         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1078         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1079         * lib/wait-process.c (unregister_slave_subprocess):
1080         * lib/write.c (write_nothrow):
1081         Now static, not static inline.
1082         * lib/spawn-pipe.c (nonintr_open): Define only if
1083         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1084         * m4/dup.m4 (gl_PREREQ_DUP):
1085         * m4/execute.m4 (gl_EXECUTE):
1086         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1087         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1088         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1089         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1090         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1091         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1092         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1093         * m4/open.m4 (gl_PREREQ_OPEN):
1094         * m4/read.m4 (gl_PREREQ_READ):
1095         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1096         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1098         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1099         * m4/write.m4 (gl_PREREQ_WRITE):
1100         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1101         Do not require AC_C_INLINE.
1102
1103         c-strtod, memcoll, readutmp: no 'static inline'
1104         * lib/c-strtod.c (c_locale):
1105         * lib/memcoll.c (strcoll_loop):
1106         * lib/readutmp.c (desirable_utmp_entry):
1107         Now static, not static inline.
1108         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1109         * m4/memcoll.m4 (gl_MEMCOLL):
1110         * m4/readutmp.m4 (gl_READUTMP):
1111         Do not require AC_C_INLINE.
1112
1113         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1114         * lib/arctwo.c (to_uchar):
1115         * lib/md4.c (set_uint32):
1116         * lib/md5.c (set_uint32):
1117         * lib/sha1.c (set_uint32):
1118         * lib/sha256.c (set_uint32):
1119         * lib/sha512.c (set_uint64):
1120         Now static, not static inline.  This is a bit simpler, and doesn't
1121         affect performance with GCC and default optimization.
1122         * m4/arctwo.m4 (gl_ARCTWO):
1123         * m4/md4.m4 (gl_MD4):
1124         * m4/md5.m4 (gl_MD5):
1125         * m4/sha1.m4 (gl_SHA1):
1126         * m4/sha256.m4 (gl_SHA256):
1127         * m4/sha512.m4 (gl_SHA512):
1128         Do not require AC_C_INLINE.
1129
1130         cond, lock, thread: better 'inline'
1131         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1132         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1133         New macros.  Use them instead of static inline, for header functions.
1134         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1135         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1136         * lib/glthread/lock.c (gl_waitqueue_init)
1137         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1138         * lib/glthread/thread.c (get_current_thread_handle):
1139         Change 'static inline' to 'inline'.
1140         * lib/glthread/cond.h, lib/glthread/thread.h:
1141         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1142         * m4/cond.m4 (gl_COND):
1143         * m4/lock.m4 (gl_PREREQ_LOCK):
1144         * m4/thread.m4 (gl_THREAD):
1145         Do not require AC_C_INLINE.
1146         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1147
1148         chdir-long, cycle-check, savewd: better 'inline'
1149         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1150         (find_non_slash):
1151         * lib/cycle-check.c (is_zero_or_power_of_two):
1152         * lib/savewd.c (savewd_delegating):
1153         Change 'static inline' to 'inline'.
1154         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1155         Replace all remaining uses of 'static inline' with it.
1156         * lib/savewd.h:
1157         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1159         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1160         * m4/savewd.m4 (gl_SAVEWD):
1161         Do not require AC_C_INLINE.
1162         * modules/savewd (Depends-on): Add extern-inline.
1163
1164         base32, base64: no need for 'inline'
1165         * lib/base32.c (to_uchar, get_8, decode_8):
1166         * lib/base64.c (to_uchar, get_4, decode_4):
1167         Change 'static inline' to 'inline'.
1168         * m4/base32.m4 (gl_PREREQ_BASE32):
1169         * m4/base64.m4 (gl_PREREQ_BASE64):
1170         Do not require AC_C_INLINE.
1171
1172         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1173         * lib/gl_array_oset.c (gl_array_nx_add_at):
1174         (gl_array_remove_at):
1175         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1176         (add_to_bucket, remove_from_bucket):
1177         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1178         Change 'static inline' to 'static', as it's simpler to omit
1179         'inline' unless there's a significant performance advantage.
1180
1181         list, oset, xlist, xoset, xsublist: simplify via extern inline
1182         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1183         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1184         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1185         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1186         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1187         New macro.  Replace all uses of 'static inline' with it.
1188         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1189         instead of as macros FOO that are defined to static inline
1190         functions FOO_inline.
1191         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1192         * lib/gl_xsublist.c:
1193         Reimplement from scratch, by defining the corresponding *_INLINE
1194         macro and including the corresponding .h file.  This is simpler.
1195         * modules/list, modules/oset, modules/xlist, modules/xoset:
1196         (Files): Remove m4/gl_list.m4.
1197         (configure.ac): Remove gl_LIST.
1198         * m4/gl_list.m4: Remove.
1199         * modules/list, modules/oset, modules/xlist, modules/xoset:
1200         * modules/xsublist:
1201         (Depends-on): Depend on extern-inline, not inline.
1202
1203         xalloc: better 'inline'
1204         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1205         New macro.  Replace all uses of 'static inline' with it.
1206         (static_inline): Remove.
1207         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1208         Let 'extern inline' do the work automatically, instead of doing
1209         it by hand.
1210         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1211         Remove.  All uses removed.
1212         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1213
1214         gethrxtime: better 'inline'
1215         * lib/xtime.c: New file.
1216         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1217         * lib/xtime.h (XTIME_INCLUDE):
1218         New macros.  Replace all uses of 'static inline' with them.
1219         * lib/gethrxtime.c (gethrxtime): Define only if
1220         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1221         this source file is now always compiled, because of the extern inline.
1222         * lib/gethrxtime.h, lib/xtime.h:
1223         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1224         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1225         if gethrtime works, as they're not needed in that case.
1226         (gl_XTIME): Do not require AC_C_INLINE.
1227         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1228         compiled now.  Move the check into gl_GETHRXTIME.
1229         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1230         (Depends-on): Add extern-inline.
1231         (configure.ac): gethrxtime is always compiled now.
1232         (lib_SOURCES): Add gethrxtime.c.
1233
1234         wctype-h: better 'inline'
1235         * lib/wctype-h.c: New file.
1236         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1237         New macro.  Replace all uses of 'static inline' with it.
1238         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1239         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1240         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1241         (Depends-on): Add extern-inline.
1242
1243         unistd: better 'inline'
1244         * lib/unistd.c: New file.
1245         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1246         New macro.  Replace all uses of 'static inline' with it.
1247         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1248         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1249         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1250         (Depends-on): Add extern-inline.
1251
1252         sys_socket: better 'inline'
1253         * lib/sys_socket.c: New file.
1254         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1255         New macro.  Replace all uses of 'static inline' with it.
1256         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1258         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1259         (Depends-on): Add extern-inline.
1260
1261         stdio: better 'inline'
1262         * lib/stdio.c: New file.
1263         * lib/stdio.in.h (_GL_STDIO_INLINE):
1264         New macro.  Replace all uses of 'static inline' with it.
1265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1266         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1267         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1268         (Depends-on): Add extern-inline.
1269
1270         sigaction: better 'inline'
1271         * lib/sig-handler.c: New file.
1272         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1273         New macro.  Replace all uses of 'static inline' with it.
1274         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1275         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1276         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1277         (Depends-on): Add extern-inline.
1278
1279         selinux-h: better 'inline'
1280         * lib/se-context.c, lib/se-selinux.c: New files.
1281         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1282         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1283         New macro.  Replace all uses of 'static inline' with it.
1284         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1285         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1286         New macro.  Replace all uses of 'static inline' with it.
1287         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1288         * modules/selinux-h (Files, lib_SOURCES):
1289         Add lib/se-context.c, lib/se-selinux.c.
1290         (Depends-on): Add extern-inline.
1291         (configure.ac): Do not require AC_C_INLINE.
1292
1293         pthread: better 'inline'
1294         * lib/pthread.c: New file.
1295         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1296         New macro.  Replace all uses of 'static inline' with it.
1297         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1298         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1299         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1300         * modules/pthread (Files): Add lib/pthread.c.
1301         (Depends-on): Add extern-inline.
1302
1303         math: better 'inline'
1304         * lib/math.c: New file.
1305         * lib/math.in.h (_GL_MATH_INLINE):
1306         New macro.  Replace all uses of 'static inline' with it.
1307         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1308         * m4/math_h.m4 (gl_MATH_H):
1309         Do not require AC_C_INLINE.
1310         * modules/math (Files, lib_SOURCES):
1311         Add lib/math.c.
1312         (Depends-on): Add extern-inline.
1313
1314         count-one-bits: better 'inline'
1315         * lib/count-one-bits.c: New file.
1316         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1317         New macro.  Replace all uses of 'static inline' with it.
1318         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1319         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1320         Do not require AC_C_INLINE.
1321         * modules/count-one-bits (Files, lib_SOURCES):
1322         Add lib/count-one-bits.c.
1323         (Depends-on): Add extern-inline.
1324
1325         count-leading-zeros: better 'inline'
1326         * lib/count-leading-zeros.c: New file.
1327         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1328         New macro.  Replace all uses of 'static inline' with it.
1329         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1330         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1331         Do not require AC_C_INLINE.
1332         * modules/count-leading-zeros (Files, lib_SOURCES):
1333         Add lib/count-leading-zeros.c.
1334         (Depends-on): Add extern-inline.
1335
1336         bitrotate: better 'inline'
1337         * lib/bitrotate.c: New file.
1338         * lib/bitrotate.h (BITROTATE_INLINE):
1339         New macros.
1340         Replace all uses of 'static inline' with them.
1341         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1342         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1343         (Depends-on): Add extern-inline.
1344         (configure.ac): Do not require AC_C_INLINE.
1345
1346 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1347
1348         maint.mk: avoid gratuitous failure
1349         Reported by Stefano Lattarini in
1350         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1351         * top/maint.mk (public-submodule-commit): Quote more safely.
1352
1353 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1354
1355         canonicalize, canonicalize-lgpl: support MS-Windows file names
1356         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1357         for test cases, which it'd be nice to add at some point.
1358         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1359         * lib/canonicalize.c (canonicalize_filename_mode):
1360         * lib/canonicalize-lgpl.c (__realpath):
1361         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1362         slash is at the beginning of the file name.  Use ISSLASH, instead
1363         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1364         the first character with '/'.  Test for
1365         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1366         with a drive letter.
1367         * lib/canonicalize.c (SLASHES): New macro.
1368         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1369
1370 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1371
1372         fts: introduce FTS_VERBATIM
1373         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1374         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1375         * lib/fts.c (fts_open): Honor it.
1376
1377 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1378
1379         getlogin-tests: allow errno == ENXIO
1380         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1381         with errno == ENXIO (No controlling tty).
1382         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1383         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1384         with errno == ENOENT.  This was reported to happen in various
1385         situations on GNU/Linux.
1386
1387 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         getlogin-tests: allow errno == ENOENT
1390         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1391         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1392         when running a test in an Emacs shell buffer.
1393
1394 2012-11-08  Jim Meyering  <jim@meyering.net>
1395
1396         tests/nap.h: avoid warning about unused variable
1397         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1398
1399         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1400         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1401         white space before each of the special-cased file names, to avoid
1402         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1403         in http://bugs.gnu.org/12830.
1404
1405 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1406
1407         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1408         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1409         fails with errno == EBADF when fd is opened with O_PATH.
1410         Reported by Jim Meyering in
1411         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1412         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1413         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1414
1415 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1416
1417         test-utimens: speed up by taking shorter naps
1418         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1419         New functions.
1420         (nap): Use them, to do a better job of guessing the delay.
1421         On Fedora 17 with ext4 atop md atop hard disks, this made
1422         test-utimens run 10x faster, because the test napped for
1423         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1424         <http://bugs.gnu.org/12820#11>.
1425
1426 2012-11-07  Jim Meyering  <jim@meyering.net>
1427
1428         mountlist.c: fix a compilation failure
1429         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1430         I introduced while transforming commit v0.0-7683-g613bcb6
1431
1432 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1433
1434         errno: port to LynxOS 178 2.2.2
1435         Problem reported by Joel Brobecker in
1436         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1437         * doc/posix-headers/errno.texi (errno.h): Document this.
1438         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1439         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1440         Supply a string for EILSEQ.
1441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1442
1443 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1444
1445         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1446         Linux kernel 2.6.39 introduced O_PATH (see
1447         <http://lwn.net/Articles/433854/>) and this is a better fallback
1448         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1449         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1450         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1451         * lib/fcntl.in.h (O_ACCMODE):
1452         * tests/test-fcntl-h.c (main):
1453         Do not reject O_ACCMODE merely because it has more than the
1454         minimal number of bits, as POSIX allows extensions here.
1455
1456 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1457
1458         mountlist: do not classify a bind-mounted dir entry as "dummy"
1459         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1460         the "none"-testing clause.
1461         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1462         exception for bind-mounted directories.
1463
1464 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1465
1466         quote: provide a means to escape strings with nul characters
1467         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1468         (quote, quote_n): Rename formal arguments for consistency with
1469         quotearg.
1470
1471 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         test-raise: don't assume 199 is an invalid signal
1474         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1475
1476         sh-quote-tests: port to Solaris 9
1477         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1478         Problem reported by Dagobert Michelsen in
1479         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1480
1481 2012-10-28  Jim Meyering  <jim@meyering.net>
1482
1483         maint.mk: rename a new configurable variable
1484         * top/maint.mk (_gl_translatable_string_re): Rename from
1485         translation-markers: _gl_ prefix to insulate from user Makefile code,
1486         and the _re suffix to inform that it's a regular expression.
1487
1488 2012-10-26  Eric Blake  <eblake@redhat.com>
1489
1490         maint.mk: let packages tweak sc_po_check pattern
1491         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1492         finding files with other translation markers.
1493
1494 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1495
1496         euidaccess: speed up 'configure' on GNU hosts
1497         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1498         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1499         it's needed only in this case.  Use AC_CHECK_DECLS, not
1500         AC_CHECK_DECLS_ONCE.
1501         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1502         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1503
1504         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1505
1506 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1507
1508         fchmodat, fchownat, fstatat: port to non-inlining compilers
1509         Problem reported for FreeBSD 9 by Jim Meyering in
1510         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1511         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1512         New files, which define FCHMODAT_INLINE etc.
1513         * lib/fchmodat.c (FCHMODAT_INLINE):
1514         * lib/fchownat.c (FCHOWNAT_INLINE):
1515         * lib/fstatat.c (FSTATAT_INLINE):
1516         Remove, as chmodat.c etc. now do this.
1517         * modules/fchmodat (Files): Add lib/chmodat.c.
1518         * modules/fchownat (Files): Add lib/chownat.c.
1519         * modules/fstatat (Files): Add lib/statat.c.
1520
1521 2012-10-15  Jim Meyering  <jim@meyering.net>
1522
1523         fchmodat.c, fchownat.c: compile-impeding typos
1524         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1525         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1526         Introduced in commit v0.0-7636-gd202279.
1527
1528 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         fcntl-h: support GNU flags like O_IGNORE_CTTY
1531         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1532         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1533         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1534         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1535         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1536         Define to 0 if not already defined.
1537         * tests/test-fcntl-h.c: Test these new flags.
1538
1539 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1540
1541         faccessat, etc.: support AT_FDCWD-only use
1542         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1543         this function only if its first argument is AT_FDCWD.
1544         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1545         values other than AT_FDCWD, so it doesn't want all the openat
1546         machinery with fchdir etc.
1547         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1548         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1549         * modules/unlinkat (Files):
1550         Remove lib/openat-priv.h, as at-internal supplies this file.
1551         Removing this file here allows us to support programs like Emacs
1552         that avoid at-internal.
1553
1554         faccessat: speed up 'configure' on mainstream hosts
1555         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1556         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1557         since it's only on unusual platforms that we need to check for
1558         'access', and it's better not to slow 'configure' down on all
1559         platforms.
1560
1561         faccessat: port to Solaris 10
1562         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1563         Needed on Solaris 10, which doesn't have AT_EACCESS,
1564         so we need the Gnulib fcntl.h, which defines it.
1565
1566 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1567         canonicalize: fix C89 compilation
1568         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1569         declarations so C89 is supported.  Also remove the comment
1570         referencing memorty allocation as the suggested feature could
1571         not be implemented as suggested.
1572         Reported by Michael Goffioul.
1573
1574 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         group-member: omit unnecessary dependencies
1577         This is for Emacs, which has its own allocator and where we
1578         don't want to use xalloc.
1579         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1580         since we no longer use xmalloc.  Do not include stdbool.h, since
1581         the changes below happen to remove the only use of bool.
1582         (GROUPBUF_SIZE): New constant.
1583         (struct group_info): Remove n_groups member.  Add groupbuf member.
1584         This lets us get the groups without using malloc, usually.
1585         (free_group_info, get_group_info): Adjust to this.
1586         (get_group_info): Return the number of groups found, or -1 on error.
1587         Use plain malloc not xmalloc, and treat its failure as if there
1588         are no groups, as the user already loses in case of error.
1589         (group_member): Simplify, based on changes to get_group_info.
1590         * modules/group-member (Depends-on): Remove dependencies on
1591         xalloc and stdbool.  Add dependency on xalloc-oversized.
1592
1593 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1594
1595         gethrxtime: port to C++
1596         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1597
1598 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1599
1600         ptsname: fix macro-name typo
1601         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1602
1603 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1604
1605         inttostr: Relax license.
1606         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1607
1608 2012-10-03  Eric Blake  <eblake@redhat.com>
1609
1610         ptsname_r: support ptys returned by FreeBSD posix_openpt
1611         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1612         lives in /dev/pts/.
1613
1614 2012-10-02  Eric Blake  <eblake@redhat.com>
1615
1616         pselect: reject invalid file descriptors
1617         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1618         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1619         * modules/pselect (Depends-on): Add dup2.
1620         * doc/posix-functions/pselect.texi (pselect): Document this.
1621
1622         select: reject invalid file descriptors
1623         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1624         * lib/select.c (rpl_select) [!win32]: Work around it.
1625         * modules/select (Depends-on): Add dup2.
1626         * doc/posix-functions/select.texi (select): Document this.
1627
1628         select: enhance test
1629         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1630         New functions.
1631         (test_function): Enhance test.
1632         (do_select_bad_fd): Avoid any stale errno values.
1633
1634         ptsname: reject invalid file descriptors
1635         http://www.austingroupbugs.net/view.php?id=503
1636         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1638         * modules/stdlib (Makefile.am): Replace witness.
1639         * lib/stdlib.in.h (ptsname): Allow for replacement.
1640         * modules/ptsname (configure.ac): Trigger replacement.
1641         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1642
1643 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1644
1645         hash-pjw-bare: new module
1646         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1647         * lib/hash-pjw-bare.h: Likewise.
1648         * modules/hash-pjw-bare: New file.
1649         * MODULES.html.sh (Misc): Add it.
1650
1651 2012-10-02  Eric Blake  <eblake@redhat.com>
1652
1653         manywarnings: cater to more gcc infelicities
1654         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1655         -Wuninitialized without -O.
1656
1657 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1658
1659         select, poll tests: Make setsockopt invocation effective.
1660         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1661         the bind() call.
1662         * tests/test-select.h (open_server_socket): Likewise.
1663
1664 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         sockets, sys_stat: restore AC_C_INLINE
1667         This undoes the 2012-09-22 patch.
1668         * m4/sockets.m4 (gl_SOCKETS):
1669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1670         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1671         and does not support plain 'inline'.  Reported by Bruno Haible in
1672         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1673
1674 2012-09-30  Bruno Haible  <bruno@clisp.org>
1675
1676         localeconv tests: Avoid test failure on OpenIndiana.
1677         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1678         skip the 'grouping' and 'mon_grouping' tests.
1679         Reported by Jim Meyering.
1680
1681 2012-09-30  Bruno Haible  <bruno@clisp.org>
1682
1683         havelib: Follow libtool developments.
1684         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1685         Suggested by Simon Josefsson.
1686
1687 2012-09-29  Jim Meyering  <meyering@redhat.com>
1688
1689         fstatat.c: fix a compile-impeding typo
1690         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1691         Introduced in commit v0.0-7636-gd202279.
1692         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1693
1694 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1695
1696         extern-inline: provide a -Wundef safe config.h
1697         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1698         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1699         to produce a -Wundef warning free config.h.
1700
1701 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1702
1703         hash-pjw: relax license to LGPLv2+
1704         * modules/hash-pjw (License): Relax, with consent of author.
1705
1706 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1707
1708         maint.mk: fix strict vs. lazy variable issues with RELEASE
1709         * top/maint.mk (_equal): New function.
1710         (member_check): Strip the result to avoid spurious spaces.
1711         (url_dir_list): Do not use ifeq, which is strict, as it will
1712         require RELEASE_TYPE to be defined.
1713         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1714         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1715         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1716         (announcement_Cc_beta,announcement_mail_headers_beta)
1717         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1718         (release): Do not depend on $(release-type), as it forces its
1719         evaluation.  Bounce to it.
1720
1721 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1722
1723         maint.mk: formatting changes
1724         * top/maint.mk: Indent bodies of if's.
1725
1726 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1727
1728         maint.mk: factor the validation of RELEASE_TYPE
1729         With help from Jim Meyering.
1730         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1731         * top/maint.mk (_empty, _sp): Move their definition earlier.
1732         (member-check, release-type): New.
1733         Use the latter instead of $(RELEASE_TYPE).
1734         Remove now useless local checks.
1735
1736 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1737
1738         maint.mk: provide "make upload" to ease uploading
1739         See
1740         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1741         Do not depend simply on the current $(VERSION), as there may have been
1742         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1743         as "make release-commit" already does.
1744
1745         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1746         "make TYPE".
1747
1748         * top/maint.mk (upload_command, upload, release): New.
1749         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1750         (VERSION): first word of $(RELEASE) is always right.
1751         (emit_upload_commands): Adjust.
1752         * top/README-release: Update.
1753
1754 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1755
1756         maint.mk: silent rules
1757         With help from Stefano Lattarini.
1758         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1759         (announcement): Use $(AM_V_at).
1760
1761 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1762
1763         localename: port gl_locale_name_thread_unsafe to FreeBSD
1764         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1765         and use the simpler FreeBSD implementation on Mac OS X as well.
1766         Original idea suggested by Ed Maste in
1767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1768
1769 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1770
1771         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1772         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1773         * lib/mbuiter.c, lib/xsize.c: New files.
1774         * lib/binary-io.h (BINARY_IO_INLINE):
1775         * lib/eealloc.h (EEALLOC_INLINE):
1776         * lib/mbfile.h (MBFILE_INLINE):
1777         * lib/mbiter.h (MBITER_INLINE):
1778         * lib/mbuiter.h (MBUITER_INLINE):
1779         * lib/xsize.h (XSIZE_INLINE):
1780         New macros.
1781         Replace all uses of 'static inline' with them.
1782         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1783         * m4/eealloc.m4 (gl_EEALLOC):
1784         * m4/mbfile.m4 (gl_MBFILE):
1785         * m4/mbiter.m4 (gl_MBITER):
1786         * m4/xsize.m4 (gl_XSIZE):
1787         Do not require AC_C_INLINE.
1788         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1789         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1790         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1791         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1792         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1793         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1794         * modules/binary-io, modules/eealloc, modules/mbfile:
1795         * modules/mbiter, modules/mbuiter:
1796         (Depends-on): Add extern-inline.
1797
1798         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1799         * lib/pipe-filter-aux.c: New file.
1800         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1801         Replace all uses of 'static inline' with it.
1802         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1803         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1804         (filter_retcode): No real need for inline here.
1805         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1806         (Files): Add lib/pipe-filter-aux.c.
1807         (Depends-on): Add extern-inline.
1808         (configure.ac): Do not require AC_C_INLINE.
1809         (lib_SOURCES): Add pipe-filter-aux.c.
1810
1811         fdutimensat: omit unnecessary AC_C_INLINE
1812         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1813
1814         fchmodat, fchownat, fstatat: use extern-inline
1815         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1816         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1817         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1818         New macros.
1819         * lib/openat.h:
1820         Replace all uses of 'static inline' with them.
1821         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1822         * modules/fchmodat, modules/fchownat, modules/fstatat:
1823         * modules/openat-h:
1824         (Depends-on):
1825         Add extern-inline.
1826         (configure.ac): Remove AC_C_INLINE.
1827
1828         acl, mbchar, priv-set: use extern-inline
1829         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1830         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1831         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1832         New macros.
1833         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1834         Replace all uses of 'static inline' with it.
1835         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1836         * m4/acl.m4 (gl_FUNC_ACL):
1837         * m4/mbchar.m4 (gl_MBCHAR):
1838         * m4/priv-set.m4 (gl_PRIV_SET):
1839         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1840         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1841         Add extern-inline.
1842
1843         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1844         * m4/sockets.m4 (gl_SOCKETS):
1845         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1846         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1847         environments where it's already guaranteed to work, so we needn't
1848         check for it at 'configure'-time.
1849
1850         tls-tests: omit unnecessary 'inline'
1851         * tests/test-tls.c (perhaps_yield): No longer inline.
1852         Simplicity and portability trump efficiency in test cases.
1853
1854         utimens-tests: avoid unnecessary 'inline'
1855         * modules/fdutimensat-tests (configure.ac):
1856         * modules/futimens-tests (configure.ac):
1857         * modules/utimens-tests (configure.ac):
1858         * modules/utimensat-tests (configure.ac):
1859         Remove AC_C_INLINE.
1860         * tests/test-utimens-common.h (ctime_compare):
1861         No longer inline.  Simplicity and portability trump efficiency here.
1862
1863         misc: don't limit commentary to inline functions
1864         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1865         * lib/xalloc-oversized.h, lib/xsize.h:
1866         Contrast macros to functions in general, not just to inline functions,
1867         when the commentary does not apply only to inline functions.
1868
1869 2012-09-20  Jim Meyering  <meyering@redhat.com>
1870
1871         non-recursive-gnulib-prefix-hack: new module
1872         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1873         the file that originated in Bison.
1874         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1875         largely copied from a snippet that resided in bison's configure.ac.
1876         * modules/non-recursive-gnulib-prefix-hack: New file.
1877         * MODULES.html.sh (Support for maintaining and releasing projects):
1878         Add it.
1879
1880 2012-09-18  Jim Meyering  <meyering@redhat.com>
1881
1882         maint.mk: generalize _gl_tight_scope for non-recursive make
1883         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1884         that *.h would describe additional .h files in the directory
1885         specified by $(_gl_TS_dir).  I.e., add this...
1886         (_gl_TS_other_headers): New variable.
1887
1888         maint.mk: exempt trailing blanks found in "binary" files
1889         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1890         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1891         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1892
1893 2012-09-17  Jim Meyering  <meyering@redhat.com>
1894
1895         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1896         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1897         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1898         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1899
1900 2012-09-17  Jim Meyering  <meyering@redhat.com>
1901
1902         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1903         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1904         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1905         It is not in the same category as "exit (0)" or "exit (1)", and
1906         besides, I know of no symbolic name for that 77.  Reported by
1907         Richard W.M. Jones in
1908         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1909
1910 2012-09-17  Jim Meyering  <meyering@redhat.com>
1911
1912         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1913         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1914         all uses of #define, not just those that start in column 1.
1915         Richard W.M. Jones reported a false positive in
1916         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1917
1918 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1919
1920         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1921         * lib/localcharset.c (locale_charset) [DARWIN7]:
1922         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1923         as these two values are incompatible.  Problem reported by Max Horn.
1924         For more discussion, please see
1925         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1926
1927         doc: document sticky-EOF issue
1928         * doc/posix-functions/fgetc.texi (fgetc):
1929         * doc/posix-functions/fgets.texi (fgets):
1930         * doc/posix-functions/fread.texi (fread):
1931         * doc/posix-functions/fscanf.texi (fscanf):
1932         * doc/posix-functions/getc.texi (getc):
1933         * doc/posix-functions/getchar.texi (getchar):
1934         * doc/posix-functions/scanf.texi (scanf):
1935         Mention that glibc and default Solaris do not conform to
1936         C99 and POSIX-2001 or later, with respect to how getchar
1937         etc. behave when feof reports nonzero.
1938
1939 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1940
1941         poll: fix poll(0, NULL, msec)
1942         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1943         but nfd is 0.  In that case poll should behave like select.
1944
1945 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1946             Paolo Bonzini <bonzini@gnu.org>
1947
1948         poll: fix for systems that can't recv() on a non-socket
1949         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1950         is readable.  In this case POLLHUP will not be supported.
1951         * doc/posix-functions/poll.texi: Document this.
1952
1953 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1954
1955         poll/select: document portability problems not fixed by Gnulib.
1956         * doc/posix-functions/poll.texi: poll does not work well on
1957         pipes under Windows.  It has the same limitations as select on
1958         BeOS.
1959         * doc/posix-functions/select.texi: select does not work well
1960         on pipes under Windows.
1961
1962 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1963
1964         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1965         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1966         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1967         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1968
1969 2012-09-06  Eric Blake  <eblake@redhat.com>
1970
1971         net_if: give more details about the bug being fixed
1972         * doc/posix-headers/net_if.texi: Add clarification.
1973
1974 2012-09-05  Eric Blake  <eblake@redhat.com>
1975
1976         net_if: new module
1977         * modules/net_if: New module, borrowing ideas from netinet_in.
1978         * m4/net_if_h.m4: New file.
1979         * lib/net_if.in.h: Likewise.
1980         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1981         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1982         * tests/test-net_if.c: Make function checks conditional.
1983         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1984
1985 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1986
1987         readutmp: fix non-portable UT_PID use
1988         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1989         Use `UT_PID (u) > 0' as absolute condition.
1990
1991 2012-09-04  Jim Meyering  <meyering@redhat.com>
1992
1993         fts: reduce two or more trailing spaces to just one, usually
1994         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1995         or more slashes, trim all but the final one.  But if a name consists
1996         solely of two slashes, don't modify it.  If it consists solely of
1997         three or more slashes, strip all but one.
1998
1999         This is part of the solution to a minor problem with rm:
2000         it would print a bogus ELOOP diagnostic when failing to remove
2001         the slash-decorated name of a symlink-to-directory:
2002
2003             $ mkdir d && ln -s d s && env rm -r s/
2004             rm: cannot remove 's': Too many levels of symbolic links
2005
2006         With the change below and a trivial don't-trim-trailing-slashes
2007         adjustment to remove.c, it does this:
2008
2009             $ env rm -r s/
2010             rm: cannot remove 's/': Not a directory
2011
2012         Improved by: Eric Blake
2013
2014         fts: when there is no risk of overlap, use memcpy, not memmove
2015         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2016
2017 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2018
2019         stdbool: be more compatible with mixed C/C++ compiles
2020         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2021         Define to bool, true, false, respectively, as GCC's builtin
2022         stdbool.h does.  Problem reported by Michael Goffioul in
2023         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2024
2025 2012-08-28  Jim Meyering  <meyering@redhat.com>
2026
2027         revert last change: it was not needed
2028         * tests/test-vc-list-files-git.sh: There's already a test for
2029         a working git, just below.
2030
2031 2012-08-28  Jim Meyering  <meyering@redhat.com>
2032
2033         tests: test-vc-list-files-git.sh: skip if git is not available
2034         * tests/test-vc-list-files-git.sh: Skip this test when git is
2035         not available.
2036
2037 2012-08-26  Bruno Haible  <bruno@clisp.org>
2038
2039         gnulib-tool: Remove no-op option --no-changelog.
2040         * gnulib-tool (func_usage): Don't mention --no-changelog.
2041         (do_changelog): Remove variable.
2042         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2043
2044 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2045
2046         doc: remove fdl-1.2.texi
2047         It is no longer used or maintained, and its use of @acronym
2048         is problematic.  See the thread containing
2049         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2050         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2051         * doc/old-licenses/fdl-1.2.texi: Remove.
2052
2053         execinfo: port to FreeBSD
2054         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2055         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2056         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2057         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2058
2059 2012-08-23  Jim Meyering  <meyering@redhat.com>
2060
2061         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2062         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2063         to placate gcc's -Wold-style-declaration.
2064
2065 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         doc: do not use @acronym
2068         * doc/inet_ntoa.texi (inet_ntoa):
2069         * doc/parse-datetime.texi (Seconds since the Epoch)
2070         (Specifying time zone rules):
2071         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2072         Don't use @acronym.  Problem reported by John Darlington in
2073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2074
2075 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         stdnoreturn: port to newer GCCs
2078         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2079         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2080         Problem reported by Jim Meyering in
2081         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2082         Also, rename the 'test' function to a void a clash with the
2083         already-supplied 'main' function; this fixes a bug that incorrectly
2084         rejected GCC 4.7.1's <stdnoreturn.h>.
2085         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2086         Document GCC problem.
2087
2088 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2089
2090         pipe-filter: fix comment typo
2091         * lib/pipe-filter.h: Mention correct function.
2092
2093 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2094
2095         execinfo: new module
2096         This is for Emacs.  Currently, it provides a no-effect stub
2097         on all platforms where it does not already work.
2098         It already works on glibc-based systems, and on Solaris 11.
2099         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2100         New files.
2101         * doc/glibc-headers/execinfo.texi (execinfo.h):
2102         * MODULES.html.sh (Misc): Document it.
2103
2104 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         extern-inline: support old GCC 'inline'
2107         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2108         if available.  This applies to GCC versions 2.7 through 4.2, or
2109         when newer GCC is using -fgnu89-inline.  The goal is to address
2110         some of the performance issues mentioned by Bruno Haible in
2111         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2112
2113 2012-08-20  Eric Blake  <eblake@redhat.com>
2114
2115         maint.mk: avoid redundant file name in message
2116         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2117         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2118         (sc_makefile_path_separator_check): Remove bogus $(ME).
2119
2120 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2121
2122         timer-time: fix link order when static linking on glibc
2123         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2124         _after_ -lrt so that it's significant.
2125
2126 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2127
2128         timespec: omit unnecessary AC_C_INLINE
2129         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2130
2131         stat-time: omit unnecessary AC_C_INLINE
2132         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2133         Do not require AC_C_INLINE.
2134
2135         ignore-value: omit unnecessary AC_C_INLINE
2136         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2137
2138         sys_select: avoid 'static inline'
2139         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2140
2141         mktime: avoid 'static inline'
2142         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2143         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2144
2145 2012-08-19  Bruno Haible  <bruno@clisp.org>
2146
2147         gnulib-tool: Improve coding style.
2148         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2149         func_emit_lib_Makefile_am.
2150         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2151
2152 2012-08-19  Bruno Haible  <bruno@clisp.org>
2153
2154         gnulib-tool: Fix indentation.
2155         * gnulib-tool (func_import): Fix indentation.
2156
2157 2012-08-19  Bruno Haible  <bruno@clisp.org>
2158
2159         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2160         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2161         on the list of removed files.
2162
2163 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         test-parse-datetime: avoid glibc leap-second glitch
2166         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2167         with the 2012 rules.  Problem reported by Bruce Dubbs in
2168         <http://bugs.gnu.org/12206>.
2169
2170 2012-08-14  Bruno Haible  <bruno@clisp.org>
2171
2172         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2173         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2174         from argument.
2175         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2176
2177 2012-08-14  Eric Blake  <eblake@redhat.com>
2178
2179         ldexp: relax license
2180         * modules/ldexp (License): Trivial relax, since the module only
2181         provides a permissively licensed m4 file.
2182
2183 2012-08-13  Bruno Haible  <bruno@clisp.org>
2184
2185         gnulib-tool: Fix persistence of --witness-c-macro option.
2186         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2187         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2188
2189 2012-08-11  Eric Blake  <eblake@redhat.com>
2190
2191         count-leading-zeros: use a lookup table on non-gcc compilers
2192         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2193         alternate implementation, suggested by Jim Meyering.
2194
2195 2012-08-10  Eric Blake  <eblake@redhat.com>
2196
2197         count-leading-zeros: new module
2198         * modules/count-leading-zeros: New module.
2199         * m4/count-leading-zeros.m4: New file.
2200         * lib/count-leading-zeros.h: Likewise.
2201         * modules/count-leading-zeros-tests: New test.
2202         * tests/test-count-leading-zeros.c: New file.
2203         * MODULES.html.sh (Integer arithmetic functions): Document it.
2204
2205 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2206             Jim Meyering  <meyering@redhat.com>
2207
2208         maintainer-makefile: Fix syntax error with dash.
2209         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2210         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2211
2212 2012-08-05  Jim Meyering  <meyering@redhat.com>
2213
2214         extern-inline: also ignore -Wmissing-declarations
2215         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2216         required with gcc-4.8.0-to-be.
2217
2218         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2219         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2220         for /error ?([^,]*)/.  This avoids false-positives for strings like
2221         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2222
2223 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2224
2225         gnumakefile: better interaction with Automake-NG
2226         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2227         Automake-NG always contain a definition of VPATH, even in non-VPATH
2228         builds (its value being simply '.' in that case).  So, in the
2229         'clean-GNUmakefile' rule, to determine whether running under a
2230         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2231         '$(VPATH)' expands to the empty string.
2232
2233 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2234
2235         base64: Use extern C scope in header file, for C++.
2236         * lib/base64.h: Add C++ namespace protection.
2237
2238 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2239
2240         stat-time, timespec, u64: support naive out-of-dir builds
2241         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2242         Use '#include "foo.h"', not '#include <foo.h>', when including
2243         one's own interface.  This works better when configuring with
2244         out-of-directory builds, since packages need not add an
2245         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2246
2247 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         utimens: use extern-inline
2250         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2251         * lib/utimens.h: Add copyright notice, since this is now large enough
2252         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2253         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2254         * modules/utimens (Depends-on): Add extern-inline.
2255
2256         u64: use extern-inline
2257         * lib/u64.c: New file.
2258         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2259         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2260         * modules/u64 (Files): Add lib/u64.c.
2261         (Depends-on): Add extern-inline.
2262         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2263         does that now.
2264         (lib_SOURCES): Add u64.c.
2265
2266         timespec: use extern-inline
2267         * lib/timespec.c: New file.
2268         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2269         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2270         * modules/timespec (Files): Add lib/timespec.c.
2271         (Depends-on): Add extern-inline.
2272         (lib_SOURCES): Add timespec.c.
2273
2274         stat-time: use extern-inline
2275         * lib/stat-time.c: New file.
2276         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2277         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2278         * modules/stat-time (Files): Add lib/stat-time.c.
2279         (Depends-on): Add extern-inline.
2280         (lib_SOURCES): Add stat-time.c.
2281
2282         extern-inline: new module
2283         * modules/extern-inline, m4/extern-inline.m4: New files.
2284         This is for better support of 'extern inline' a la ISO C99,
2285         with a portable alternative on compilers that do not support
2286         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2287         of the Emacs executable, when compiled with debugging disabled,
2288         which is a typical way that Emacs is built while developing.
2289
2290 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2291
2292         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2293         * build-aux/do-release-commit-and-tag: Move variable definitions
2294         together.
2295         ($branch): Instead of defaulting to "master", default to the current
2296         branch (as gnu-web-doc-update does).
2297         (help): Display the current values of the option arguments.
2298         * top/maint.mk (release-commit): New.
2299         * top/README-release: Simplify the corresponding step.
2300
2301 2012-07-30  Eric Blake  <eblake@redhat.com>
2302
2303         passfd: fix comment on recvfd
2304         * lib/passfd.c (recvfd): Fix comment.
2305         Reported by Jann Horn <jannhorn@googlemail.com>.
2306
2307 2012-07-30  Jim Meyering  <meyering@redhat.com>
2308
2309         maint.mk: avoid a sub-shell
2310         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2311
2312 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2313
2314         maint.mk: use silent-rules support from Automake
2315         * top/maint.mk (news-check, vc-diff-check, announcement)
2316         (no-submodule-changes, alpha beta stable, release-prep)
2317         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2318
2319 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2320
2321         maint.mk: provide a web-manual-update target
2322         * top/maint.mk: here.
2323         * top/README-release: Use it to simplify the web manual update step.
2324
2325 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2326
2327         README-release: shorten the circuit to post a news
2328         * top/README-release: Point directly to the news submission form.
2329
2330 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2331
2332         gnu-web-doc-update: fix --help
2333         * build-aux/gnu-web-doc-update: The information "top level" was written
2334         twice.
2335
2336 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2337
2338         maint.mk: absolute VPATH issue
2339         * top/maint.mk (release-prep): Help Git find .git/.
2340         From Jim Meyering.
2341
2342 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2343
2344         gitlog-to-changelog: fix previous change
2345         * build-aux/gitlog-to-changelog: Fix condition.
2346         Add missing ";".
2347
2348 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2349
2350         gitlog-to-changelog: don't expect .git to be in $srcdir
2351         Reported by Bruno Haible.
2352         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2353         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2354         Use it.
2355
2356 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2357
2358         maint.mk: absolute VPATH build fix
2359         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2360         $(srcdir) is not a parent of $(builddir).
2361
2362 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2363
2364         clean-temp: Fix memory leak.
2365         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2366         'files' members of tmpdir.
2367
2368 2012-07-27  Jim Meyering  <meyering@redhat.com>
2369
2370         maint.mk: new rule: refresh-gnulib-patches
2371         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2372         Use this rule to refresh them.
2373         * top/maint.mk (refresh-gnulib-patches): New rule.
2374
2375 2012-07-24  Bruno Haible  <bruno@clisp.org>
2376
2377         gnulib-tool: Fix handling of inctests variable.
2378         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2379         Reported by Nick Bowler <nbowler@elliptictech.com>.
2380
2381 2012-07-22  Bruno Haible  <bruno@clisp.org>
2382
2383         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2384         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2385         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2386         Remove exemption for getpass.h.
2387         Suggested by Eric Blake.
2388
2389 2012-07-20  Eric Blake  <eblake@redhat.com>
2390
2391         verify: document conflict with -Wnested-externs
2392         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2393
2394         maint.mk: forbid exit(-1)
2395         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2396
2397 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2398
2399         fsusage: port back to Solaris
2400         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2401         error (fsd not declared) on Solaris 10.  Reported privately by
2402         Andrew Borodin.
2403
2404 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2405
2406         gnu-web-doc-update: fix error messages
2407         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2408
2409         gnu-web-doc-update: check the requirements.
2410         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2411         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2412         * build-aux/bootstrap (find_tool): Comment change.
2413
2414 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2415
2416         maint.mk: minor simplication.
2417         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2418         for default values.
2419
2420 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2421
2422         gitlog-to-changelog: VPATH build issues
2423         If builddir is not a subdirectory of srcdir, running git from it will
2424         fail.
2425         * build-aux/gitlog-to-changelog (--srcdir): New option.
2426
2427 2012-07-15  Bruno Haible  <bruno@clisp.org>
2428
2429         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2430         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2431         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2432         Remove exemption for fpending.h.
2433         Suggested by Eric Blake.
2434
2435 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2436
2437         pthread_sigmask: fix bug on FreeBSD 9
2438         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2439         Include string.h.
2440         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2441         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2442         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2443         but pthread_sigmask (1729, NULL, NULL) returns zero.
2444         See <http://bugs.gnu.org/11884>.
2445         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2446         by inspecting whether the main call changed the old mask.
2447
2448 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2449
2450         README-release: make it more legible
2451         * top/README-release: Improve typography slightly.
2452
2453 2012-07-15  Jim Meyering  <meyering@redhat.com>
2454
2455         maint: require that each sc_... command start with "@"
2456         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2457         "make sc_maint" helps us avoid this nit.
2458
2459 2012-07-15  Jim Meyering  <meyering@redhat.com>
2460
2461         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2462         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2463
2464 2012-07-13  Eric Blake  <eblake@redhat.com>
2465
2466         maint.mk: new syntax check for HAVE_DECL checks
2467         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2468         * cfg.mk
2469         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2470         Exempt some false positives.
2471         Based on a report by Karel Zak.
2472
2473         argp: make HAVE_DECL usage consistent
2474         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2475         macros, not whether they are defined.
2476         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2477         convention with other declaration checks.
2478         Reported by Karel Zak, with suggestions from Paul Eggert.
2479
2480         stat-time: relax license to LGPLv2+
2481         * modules/stat-time (License): Relax, with consent of all authors.
2482
2483         strndup: fix m4 usage error
2484         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2485         defined, to either 0 or 1.
2486         Reported by Karel Zak.
2487
2488 2012-07-11  Jim Meyering  <meyering@redhat.com>
2489
2490         maint: enable the sc_avoid_if_before_free syntax-check rule
2491         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2492         (if_before_free_offenders_): Define.
2493         (if_before_free_basename_re_): Define.
2494         Exempt current files with useless if-before-free.
2495
2496 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         gettext: do not assume '#define ... defined ...' behavior
2499         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2500         Do not use '#define FOO ... defined BAR ...', as the C standard says
2501         it's not portable to expect that this works after macro expansion.
2502         Problem reported for gzip by Steven M. Schweda in
2503         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2504
2505 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2506
2507         getloadavg: clean out old Emacs and Autoconf cruft
2508         See Glenn Morris in <http://bugs.gnu.org/11905>.
2509         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2510         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2511         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2512         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2513
2514 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2515
2516         bootstrap: let warn be like tests/init.sh's warn_
2517         Reported by Jim Meyering.
2518         * build-aux/bootstrap (warn): Remove, replaced by...
2519         (warnf_, warn_): these.
2520         Adjust callers.
2521         Shorten messages that no longer fit in 80 columns.
2522
2523 2012-07-09  Bruno Haible  <bruno@clisp.org>
2524
2525         getopt: Simplify after Emacs changed.
2526         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2527         (gl_GETOPT_IFELSE): Remove macro.
2528
2529 2012-07-09  Jim Meyering  <meyering@redhat.com>
2530
2531         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2532         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2533
2534         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2535         Bugs in both of those conspired to make the
2536         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2537         _sc_search_regexp's handling of non-empty $in_files would filter
2538         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2539         choice of in_files value meant there would be no match in most
2540         projects, due to the presence of two or more Makefile.in files.
2541         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2542         Fix a bug in how a non-empty $$in_files was processed:
2543         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2544         in spite of the name, it's a regexp, not a list of file names.
2545
2546 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2547
2548         getloadavg, getopt: fix commentary re configure.in
2549         Autoconf is deprecating the name 'configure.in', so change it to
2550         to the new name 'configure.ac' in a couple of places.
2551         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2552         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2553         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2554         Emacs has renamed it to configure.ac, and it no longer refers
2555         to these macros anyway.
2556
2557         timespec: mark functions with const attributes
2558         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2559         Mark with _GL_ATTRIBUTE_CONST.
2560
2561 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2562
2563         canonicalize[-lgpl]: handle "guessing" values when cross-building
2564         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2565         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2566         matches "*yes" instead of just "yes".  Regression introduced in commit
2567         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2568
2569 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2570             Bruno Haible  <bruno@clisp.org>
2571
2572         canonicalize: make the right guess when cross-compiling to GNU
2573         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2574         determine whether cross-compiling to glibc systems, so as to
2575         include GNU/Hurd.
2576
2577 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2578
2579         timespec-sub: avoid duplicate include
2580         * lib/timespec-sub.c: Do not include <config.h> twice.
2581         Reported by Juanma Barranquero.
2582
2583 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2584
2585         bootstrap: use a more consistent error reporting scheme
2586         * build-aux/bootstrap (warn, die): New.
2587         Use them.
2588
2589 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2590
2591         sys_time: allow too-wide tv_sec
2592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2593         timeval even if tv_sec is wider than time_t.  This allows
2594         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2595         as without this patch gnulib replaces struct timeval
2596         and OpenBSD futimes therefore has a type mismatch.
2597         * doc/posix-headers/sys_time.texi: Mention this.
2598
2599         pthread: check for both pthread_create and pthread_join
2600         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2601         alter the check so that it tests for both pthread_create and
2602         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2603         Suggested by Bruno Haible and Richard Yao in
2604         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2605
2606         parse-datetime: doc tuneup
2607         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2608         spacing issues.
2609
2610 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2611
2612         do-release-commit-and-tag: fix the previous commit
2613         * build-aux/do-release-commit-and-tag: Actually the test was right,
2614         but the comment and the error message were misleading.
2615         Fix comment, and improve error message.
2616         Perform check first, so that NEWS is not modified uselessly.
2617
2618         do-release-commit-and-tag: fix typo
2619         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2620         _not_ start with a stub.
2621
2622 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2623
2624         pthread: check for pthread_create, not pthread_join
2625         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2626         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2627         pthread_join in libc.  I hope this removes the need for all the
2628         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2629         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2630
2631 2012-07-04  Jim Meyering  <meyering@redhat.com>
2632
2633         parse-datetime: fix failure to diagnose invalid input
2634         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2635         rather than diagnosing the invalid input.  Now it reports this:
2636         date: invalid date '\260'
2637         * lib/parse-datetime.y (to_uchar): Define.
2638         (yylex): Don't sign-extend "other" bytes.
2639         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2640         Thanks to Bruno Haible for the patch to this file.
2641         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2642         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2643
2644 2012-07-03  Jim Meyering  <meyering@redhat.com>
2645
2646         bootstrap: do not require now-removed build-aux/missing
2647         Now that build-aux/missing is, er, missing, bootstrap would
2648         silently fail.
2649         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2650         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2651         no longer part of gnulib.
2652         Diagnose the failure.
2653
2654 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2655
2656         alloca: add support for HP NonStop TNS/E native
2657         * lib/alloca.in.h (alloca): Support the new host.
2658         From a suggestion by Joachim Schmitz in
2659         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2660
2661 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2662
2663         fsusage: remove code not needed on non GNU/Linux systems.
2664
2665         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2666         Don't include headers no longer needed in this case.
2667         * lib/fsusage.c [STAT_STATVFS &&
2668         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2669         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2670
2671 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2672
2673         fsusage: include files needed for glibc 2.6 fallback
2674         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2675         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2676         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2677         Problem reported by Ludovic Courtès in
2678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2679
2680         fsusage: avoid needless check on GNU/Linux
2681         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2682         on GNU/Linux systems, since it can't possibly work.
2683
2684 2012-07-01  Bruno Haible  <bruno@clisp.org>
2685
2686         log: Fix an autoconf >= 2.64 warning.
2687         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2688         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2689
2690 2012-06-28  Bruno Haible  <bruno@clisp.org>
2691
2692         log10f: Fix possible configuration problem.
2693         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2694         $LOGF_LIBM.
2695         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2696
2697 2012-06-28  Bruno Haible  <bruno@clisp.org>
2698
2699         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2700         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2701         not gl_cv_func_unlink_works.
2702         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2703
2704 2012-06-27  Eric Blake  <eblake@redhat.com>
2705
2706         config: drop scripts that automake says are not independent
2707         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2708         * build-aux/elisp-comp: Delete.
2709         * build-aux/missing: Likewise.
2710         * build-aux/ylwrap: Likewise.
2711         * modules/elisp-comp: Likewise.
2712         * MODULES.html.sh: Drop mention of elisp-comp.
2713         * NEWS: Mention this.
2714
2715 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2716
2717         root-uid: new module
2718         This is for portability to Tandem's NonStop Kernel.
2719         * lib/root-uid.h, modules/root-uid: New files.
2720         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2721         * lib/write-any-file.c, tests/test-sethostname2.c:
2722         Include "root-uid.h".
2723         * lib/euidaccess.c (euidaccess):
2724         * lib/pt_chown.c (main):
2725         * lib/unlinkdir.c (cannot_unlink_dir):
2726         * lib/write-any-file.c (can_write_any_file):
2727         * m4/mknod.m4 (gl_FUNC_MKNOD):
2728         * tests/test-sethostname2.c (geteuid, main):
2729         Don't assume ROOT_UID == 0.
2730         * modules/euidaccess (Depends-on):
2731         * modules/pt_chown (Depends-on):
2732         * modules/sethostname-tests (Depends-on):
2733         * modules/unlinkdir (Depends-on):
2734         * modules/write-any-file (Depends-on):
2735         Add root-uid.
2736
2737         regex: use locale-independent comparison for codeset name
2738         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2739         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2740         for codeset name.
2741         * lib/regex_internal.h: Do not include <strings.h>, since we
2742         no longer use strcasecmp.
2743         * modules/regex (Depends-on): Remove strcase.
2744
2745 2012-06-23  Bruno Haible  <bruno@clisp.org>
2746
2747         getopt-posix: No longer guarantee that option processing is resettable.
2748         * doc/posix-functions/getopt.texi: Drop description of problem with
2749         internal state. Fix info about mingw and msvc9.
2750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2751         option processing by getopt(). Run three test programs instead of one.
2752         Simplify cross-compilation guess.
2753         * NEWS: Mention the change.
2754         Reported by Rich Felker <dalias@aerifal.cx>.
2755
2756 2012-06-26  Bruno Haible  <bruno@clisp.org>
2757
2758         argp, regex: Ensure strcasecmp gets declared.
2759         * lib/argp-help.c: Include <strings.h>.
2760         * lib/regex_internal.h: Likewise.
2761         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2762
2763 2012-06-24  Bruno Haible  <bruno@clisp.org>
2764
2765         ptsname_r: Make it consistent with ptsname on AIX.
2766         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2767         implementation as for OSF/1.
2768         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2769         a pty master.
2770
2771         ptsname_r: Make it consistent with ptsname on OSF/1.
2772         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2773         OSF/1.
2774
2775 2012-06-24  Bruno Haible  <bruno@clisp.org>
2776
2777         ttyname_r: Fix result on OSF/1, Solaris.
2778         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2779
2780 2012-06-24  Bruno Haible  <bruno@clisp.org>
2781
2782         ptsname_r: Add support for Solaris.
2783         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2784         Solaris.
2785
2786         ptsname_r: Fix test failure on native Windows.
2787         * modules/ptsname_r (Depends-on): Add isatty.
2788
2789         ptsname_r: Fix test failures on IRIX, Solaris.
2790         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2791         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2792         accordingly.
2793         * lib/ptsname_r.c: Include <fcntl.h>.
2794         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2795         set errno if fd is invalid.
2796         * tests/test-isatty.c (main): Update comments.
2797
2798 2012-06-24  Bruno Haible  <bruno@clisp.org>
2799
2800         ptsname test: Extend test.
2801         * tests/test-ptsname.c: Include <errno.h>.
2802         (main): Test behaviour with invalid file descriptor.
2803
2804 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2805
2806         time: fix obsolete comment
2807         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2808         reference to HAVE_STRUCT_TIMESPEC in comment.
2809
2810 2012-06-23  Bruno Haible  <bruno@clisp.org>
2811
2812         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2814         does not handle abbreviated long options with equivalent
2815         disambiguations, set gl_replace_getopt to yes.
2816         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2817
2818 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         time_r: fix typo that always overrode localtime_r decl
2821         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2822         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2823         not in a standard include.
2824
2825 2012-06-22  Bruno Haible  <bruno@clisp.org>
2826
2827         Write "Mac OS X" instead of "MacOS X".
2828         * README: Write "Mac OS X" instead of "MacOS X".
2829         * build-aux/bootstrap: Likewise.
2830         * build-aux/install-reloc: Likewise.
2831         * lib/acl-internal.h: Likewise.
2832         * lib/acl_entries.c: Likewise.
2833         * lib/argp-ba.c: Likewise.
2834         * lib/argp-pv.c: Likewise.
2835         * lib/config.charset: Likewise.
2836         * lib/copy-acl.c: Likewise.
2837         * lib/csharpexec.c: Likewise.
2838         * lib/euidaccess.c: Likewise.
2839         * lib/fbufmode.c: Likewise.
2840         * lib/fflush.c: Likewise.
2841         * lib/file-has-acl.c: Likewise.
2842         * lib/filemode.h: Likewise.
2843         * lib/fpurge.c: Likewise.
2844         * lib/freadable.c: Likewise.
2845         * lib/freadahead.c: Likewise.
2846         * lib/freading.c: Likewise.
2847         * lib/freadptr.c: Likewise.
2848         * lib/freadseek.c: Likewise.
2849         * lib/fseeko.c: Likewise.
2850         * lib/fseterr.c: Likewise.
2851         * lib/fsusage.c: Likewise.
2852         * lib/fwritable.c: Likewise.
2853         * lib/fwriting.c: Likewise.
2854         * lib/get-rusage-as.c: Likewise.
2855         * lib/get-rusage-data.c: Likewise.
2856         * lib/getdomainname.c: Likewise.
2857         * lib/idpriv-drop.c: Likewise.
2858         * lib/idpriv-droptemp.c: Likewise.
2859         * lib/localcharset.c: Likewise.
2860         * lib/locale.in.h: Likewise.
2861         * lib/localename.c: Likewise.
2862         * lib/mbsrtowcs-state.c: Likewise.
2863         * lib/nproc.c: Likewise.
2864         * lib/passfd.c: Likewise.
2865         * lib/posix_openpt.c: Likewise.
2866         * lib/printf-parse.c: Likewise.
2867         * lib/progreloc.c: Likewise.
2868         * lib/safe-read.h: Likewise.
2869         * lib/safe-write.h: Likewise.
2870         * lib/sched.in.h: Likewise.
2871         * lib/set-mode-acl.c: Likewise.
2872         * lib/signal.in.h: Likewise.
2873         * lib/stdint.in.h: Likewise.
2874         * lib/stdio-impl.h: Likewise.
2875         * lib/stdlib.in.h: Likewise.
2876         * lib/strtod.c: Likewise.
2877         * lib/sys_select.in.h: Likewise.
2878         * lib/tcgetsid.c: Likewise.
2879         * lib/unistd.in.h: Likewise.
2880         * lib/unlockpt.c: Likewise.
2881         * lib/vasnprintf.c: Likewise.
2882         * lib/vma-iter.c: Likewise.
2883         * lib/wcsrtombs-state.c: Likewise.
2884         * m4/acl.m4: Likewise.
2885         * m4/acosl.m4: Likewise.
2886         * m4/asinl.m4: Likewise.
2887         * m4/atanl.m4: Likewise.
2888         * m4/c-stack.m4: Likewise.
2889         * m4/cosl.m4: Likewise.
2890         * m4/expl.m4: Likewise.
2891         * m4/extensions.m4: Likewise.
2892         * m4/fdatasync.m4: Likewise.
2893         * m4/fmal.m4: Likewise.
2894         * m4/frexp.m4: Likewise.
2895         * m4/frexpf.m4: Likewise.
2896         * m4/frexpl.m4: Likewise.
2897         * m4/fsusage.m4: Likewise.
2898         * m4/getdomainname.m4: Likewise.
2899         * m4/getloadavg.m4: Likewise.
2900         * m4/getopt.m4: Likewise.
2901         * m4/gettext.m4: Likewise.
2902         * m4/gnulib-common.m4: Likewise.
2903         * m4/intdiv0.m4: Likewise.
2904         * m4/intlmacosx.m4: Likewise.
2905         * m4/largefile.m4: Likewise.
2906         * m4/ldexpl.m4: Likewise.
2907         * m4/link-follow.m4: Likewise.
2908         * m4/locale-ar.m4: Likewise.
2909         * m4/locale-fr.m4: Likewise.
2910         * m4/locale-ja.m4: Likewise.
2911         * m4/locale-tr.m4: Likewise.
2912         * m4/locale-zh.m4: Likewise.
2913         * m4/locale_h.m4: Likewise.
2914         * m4/lock.m4: Likewise.
2915         * m4/logl.m4: Likewise.
2916         * m4/mathfunc.m4: Likewise.
2917         * m4/minus-zero.m4: Likewise.
2918         * m4/mktime.m4: Likewise.
2919         * m4/mmap-anon.m4: Likewise.
2920         * m4/multiarch.m4: Likewise.
2921         * m4/nanosleep.m4: Likewise.
2922         * m4/nocrash.m4: Likewise.
2923         * m4/poll.m4: Likewise.
2924         * m4/printf-frexpl.m4: Likewise.
2925         * m4/printf.m4: Likewise.
2926         * m4/signbit.m4: Likewise.
2927         * m4/sinl.m4: Likewise.
2928         * m4/sqrtl.m4: Likewise.
2929         * m4/strerror_r.m4: Likewise.
2930         * m4/tanl.m4: Likewise.
2931         * m4/threadlib.m4: Likewise.
2932         * m4/ttyname_r.m4: Likewise.
2933         * m4/unlink.m4: Likewise.
2934         * m4/visibility.m4: Likewise.
2935         * m4/wcwidth.m4: Likewise.
2936         * tests/minus-zero.h: Likewise.
2937         * tests/test-alloca-opt.c: Likewise.
2938         * tests/test-copy-acl.sh: Likewise.
2939         * tests/test-copy-file.sh: Likewise.
2940         * tests/test-fdatasync.c: Likewise.
2941         * tests/test-file-has-acl.sh: Likewise.
2942         * tests/test-flock.c: Likewise.
2943         * tests/test-fsync.c: Likewise.
2944         * tests/test-localename.c: Likewise.
2945         * tests/test-malloca.c: Likewise.
2946         * tests/test-nonblocking-pipe.h: Likewise.
2947         * tests/test-nonblocking-socket.h: Likewise.
2948         * tests/test-openpty.c: Likewise.
2949         * tests/test-posix_openpt.c: Likewise.
2950         * tests/test-ptsname.c: Likewise.
2951         * tests/test-ptsname_r.c: Likewise.
2952         * tests/test-sameacls.c: Likewise.
2953         * tests/test-select.h: Likewise.
2954         * tests/test-set-mode-acl.sh: Likewise.
2955         * tests/test-snprintf-posix.h: Likewise.
2956         * tests/test-sprintf-posix.h: Likewise.
2957         * tests/test-strtod.c: Likewise.
2958         * tests/test-time.c: Likewise.
2959         * tests/test-vasnprintf-posix.c: Likewise.
2960         * tests/test-vasprintf-posix.c: Likewise.
2961         * doc/acl-resources.txt: Likewise.
2962         * doc/**/*.texi: Likewise.
2963         Reported by Max Horn <max@quendi.de>.
2964
2965 2012-06-22  Bruno Haible  <bruno@clisp.org>
2966
2967         grantpt: Relax requirement regarding invalid file descriptors.
2968         * lib/grantpt.c: Don't include <fcntl.h>.
2969         (grantpt): Don't verify the validity of the file descriptor.
2970         * modules/grantpt (Depends-on): Remove fcntl-h.
2971         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2972         file descriptors.
2973         * doc/posix-functions/grantpt.texi: Document more platforms on which
2974         grantpt succeeds for invalid file descriptors.
2975         Reported by Rich Felker <dalias@aerifal.cx>.
2976
2977 2012-06-22  Bruno Haible  <bruno@clisp.org>
2978
2979         fbufmode test: Don't test unportable behaviour.
2980         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2981         (main): Invoke it three times.
2982         Reported by Szabolcs Nagy <nsz@port70.net>
2983         and Rich Felker <dalias@aerifal.cx>.
2984
2985 2012-06-21  Bruno Haible  <bruno@clisp.org>
2986
2987         gnulib-tool: Refactor inctests variable.
2988         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2989         (func_modules_transitive_closure,
2990         func_modules_transitive_closure_separately,
2991         func_import, func_create_testdir): Update.
2992
2993         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2994         * gnulib-tool: Accept option --without-tests.
2995         (func_usage): Document --without-tests option. Rearrange.
2996         (inctests): Normalize according to the mode.
2997         * NEWS: Mention the change.
2998         Suggested by Simon Josefsson.
2999
3000 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3001
3002         parse-duration test: Avoid spurious output.
3003         * tests/test-parse-duration.sh: Reindent with leading tabs.
3004
3005 2012-06-21  Jim Meyering  <meyering@redhat.com>
3006
3007         maint: disable the strncpy prohibition
3008         * cfg.mk: Do not prohibit strncpy here.
3009
3010 2012-06-21  Bruno Haible  <bruno@clisp.org>
3011
3012         nonblocking: Avoid compilation error on mingw64.
3013         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3014         fscanf.
3015         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3016         * modules/vfscanf (configure.ac): Likewise.
3017         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3018         definition only if stdio.h has prepared it.
3019         Reported by Daniel P. Berrange <berrange@redhat.com>.
3020
3021 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3022
3023         gnulib-tool: Use readlink if it is available.
3024         * gnulib-tool (func_readlink): Choose function more appropriately.
3025
3026 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3027
3028         posixtm-tests: port to buggy compiler
3029         Problem reported by Simon Josefsson in
3030         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3031         * modules/posixtm-tests (Depends-on): Add stdint.
3032         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3033         Now of type int_least64_t, not int64_t, both because that's
3034         what INT64_C returns and because int_least64_t works even
3035         on 72-bit hosts.
3036         (T): Use INT64_C on constants outside the traditional int range,
3037         to work around compiler bug noted by Simon.
3038
3039         mktime: fix integer overflow in 'configure'-time test
3040         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3041         after integer overflow.  Problem reported by Rich Felker in
3042         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3043         Also, don't look for further instances of a bug if we've already
3044         found one instance; this helps 'configure' run faster.
3045
3046 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3047
3048         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3049         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3050         GetVersionEx correctly.
3051         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3052
3053 2012-06-20  Bruno Haible  <bruno@clisp.org>
3054
3055         fdopen: Allow implementations that don't reject invalid fd arguments.
3056         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3057         succeeds.
3058         Reported by Rich Felker <dalias@aerifal.cx>.
3059
3060 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3061
3062         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3063         bring in LIBINTL.
3064
3065 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3066
3067         init.sh: do not rely on autoupated PWD
3068         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3069         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3070         Although Nelson's bug was not necessarily fixed by this patch,
3071         it seems wise to make the change for safety.
3072         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3073         automagically after 'cd'; this is not reliable on older shells.
3074         (setup_): Fail if we cannot cd to temporary directory.
3075
3076 2012-06-19  Bruno Haible  <bruno@clisp.org>
3077
3078         stat, fstat: Avoid warnings on mingw64.
3079         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3080         redefining.
3081         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3082         Reported by Daniel P. Berrange <berrange@redhat.com>.
3083
3084 2012-06-19  Bruno Haible  <bruno@clisp.org>
3085
3086         stdioext: Add support for musl libc.
3087
3088         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3089         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3090
3091         * m4/fseterr.m4: New file.
3092         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3093         function exists.
3094         * modules/fseterr (Files): Add m4/fseterr.m4.
3095         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3096         __fseterr does not exist.
3097         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3098
3099         * lib/freadable.h: Update comment.
3100
3101         * lib/fwritable.h: Update comment.
3102
3103         * lib/freading.h: Update comment.
3104
3105         * lib/fwriting.h: Update comment.
3106
3107         * m4/freadahead.m4: New file.
3108         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3109         that function exists.
3110         * modules/freadahead (Files): Add m4/freadahead.m4.
3111         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3112         __freadahead does not exist.
3113         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3114
3115         * m4/freadptr.m4: New file.
3116         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3117         function exists.
3118         * modules/freadptr (Files): Add m4/freadptr.m4.
3119         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3120         __freadptr does not exist.
3121         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3122
3123         * m4/freadseek.m4: New file.
3124         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3125         exists.
3126         * modules/freadseek (Files): Add m4/freadseek.m4.
3127         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3128
3129         * lib/fpurge.c (fpurge): Update comment.
3130
3131         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3132
3133 2012-06-19  Bruno Haible  <bruno@clisp.org>
3134
3135         *printf-posix: Put more info into config.log.
3136         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3137         exit code into config.log.
3138
3139 2012-06-19  Bruno Haible  <bruno@clisp.org>
3140
3141         getopt-gnu: Fix exit code overflow in autoconf test.
3142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3143         to keep them below < 128.
3144
3145 2012-06-17  Jim Meyering  <meyering@redhat.com>
3146
3147         maint.mk: fix typo in code to derive GPG key at release time
3148         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3149
3150 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3151
3152         regex: avoid warning when pointers are not long
3153         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3154         and uintptr_t, not long, for portability to hosts where pointers and
3155         long have different sizes.  Issue noted by Daniel P. Berrange in
3156         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3157         and fix suggested by Bruno Haible in
3158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3159
3160 2012-06-17  Bruno Haible  <bruno@clisp.org>
3161
3162         dummy: Relicense into the public domain.
3163         * modules/dummy (License): Set to "public domain".
3164         Suggested by Reuben Thomas.
3165
3166 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3167
3168         announce-gen: VPATH issues
3169         * build-aux/announce-gen (--srcdir): New option, used to trim the
3170         $srcdir part of the path from $builddir to NEWS.
3171         * top/maint.mk (announcement): Adjust.
3172
3173 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3174
3175         gnu-web-doc-update: VPATH builds
3176         * build-aux/gnu-web-doc-update (--builddir): New option.
3177         Revamp the handling of options.
3178         Prefer $(...) to `...`.
3179         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3180         the template, and it is GNU mktemp specific.
3181         Prefer set -e to long series of &&.
3182         Restore the initial git branch, not "master".
3183         Properly initialize submodules (don't rely only on bootstrap).
3184         Do not reconfigure blindly, use config.status.
3185         * top/README-release: Update instructions for gnu-web-doc-update.
3186
3187 2012-06-11  Jim Meyering  <meyering@redhat.com>
3188
3189         maint.mk: revert most of the previous change re "all these"
3190         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3191         For rationale, see the discussion at
3192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3193
3194 2012-06-10  Karl Berry  <karl@gnu.org>
3195
3196         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3197
3198         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3199
3200 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3201
3202         parse-duration: Relicense under LGPLv2+.
3203         * modules/parse-duration (License): Change to LGPLv2+.
3204
3205 2012-06-10  Jim Meyering  <meyering@redhat.com>
3206
3207         maint.mk: prohibit common grammar error: "all these"
3208         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3209         the list of prohibited word sequences.  It should be "all of these".
3210         * lib/tempname.c (__gen_tempname): Fix one of them.
3211
3212 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3213
3214         do-release-commit-and-tag: support VPATH builds
3215         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3216         (noteworthy): Defined earlier to factor its value.
3217         (noteworthy_stub): New.
3218         Use it to factor.
3219         (help_version): Split into...
3220         (help, version): these.
3221         Adjust the option processing part.
3222         Support "--option=value" in addition to "--option value".
3223         (builddir): New.
3224         (--builddir): New option.
3225         * top/README-release: Document this.
3226         Reword slightly so that the reader cannot understand that he
3227         has to do these steps before calling do-release-commit-and-tag.
3228
3229 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3230
3231         readme-release: also require announce-gen and maintainer-makefile
3232         * modules/readme-release (Depends-on): here.
3233         * modules/announce-gen, modules/do-release-commit-and-tag,
3234         modules/gnu-web-doc-update, modules/maintainer-makefile
3235         (Description): Point to readme-release.
3236
3237 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3238
3239         maint.mk: fix VPATH issues.
3240         * top/maint.mk (news-check): GNU Make understand $< very well.
3241         (release-prep): NEWS is in $(srcdir).
3242
3243 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3244
3245         readme-release: require the promoted modules.
3246         * modules/readme-release (Depends-on): Add
3247         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3248         in this text.
3249
3250 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3251             Bruno Haible  <bruno@clisp.org>
3252
3253         error, strerror-override: Support mingw64 from Fedora 17.
3254         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3255         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3256         EINPROGRESS.
3257         * lib/strerror-override.h (strerror_override): Test it.
3258         * lib/strerror-override.c (strerror_override): Likewise.
3259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3260
3261 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3262             Bruno Haible  <bruno@clisp.org>
3263
3264         error, strerror-override: Support mingw64 from Fedora 17.
3265         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3266         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3267         * lib/strerror-override.h (strerror_override): Test it.
3268         * lib/strerror-override.c (strerror_override): Likewise.
3269
3270 2012-06-03  Bruno Haible  <bruno@clisp.org>
3271
3272         error, strerror-override: Support new errno values from POSIX:2008.
3273         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3274         ENOTRECOVERABLE.
3275         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3276         platforms.
3277         * lib/strerror-override.c (strerror_override): Conditionalize the
3278         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3279         * lib/strerror-override.h (strerror_override): Declare also if
3280         GNULIB_defined_EOWNERDEAD is defined.
3281         * tests/test-errno.c (e130, e131): New variables.
3282         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3283         ENOTRECOVERABLE.
3284         Reported by Paolo Bonzini.
3285
3286 2012-05-31  Jim Meyering  <meyering@redhat.com>
3287
3288         savewd: add missing dependency on sys_wait module
3289         * modules/savewd (Depends-on): Add sys_wait, needed at least
3290         for MSVC.  Report and suggested change by Michael Goffioul.
3291
3292 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3293
3294         system-quote-tests: port to CentOS 5
3295         Problem reported by Tom G. Christensen in
3296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3297         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3298
3299 2012-05-29  Jim Meyering  <meyering@redhat.com>
3300
3301         maint: fix typos in comments and ChangeLog
3302         Culprits identified and fixed mostly automatically using these commands:
3303         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3304         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3305         using http://github.com/lyda/misspell-check
3306         * ChangeLog: Fix typos.
3307         * doc/solaris-versions: Likewise.
3308         * lib/regexec.c (re_search_stub): Likewise.
3309         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3310
3311 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3312
3313         manywarnings: remove duplicate -Wmultichar entry
3314         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3315         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3316         so keep the entry marked as documented.
3317
3318 2012-05-27  Karl Berry  <karl@gnu.org>
3319
3320         * config/srclist.txt (mktime.c): remove last libc sync,
3321         perhaps just temporarily.
3322
3323 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3324
3325         regex: don't assume uint64_t or uint32_t
3326         * lib/regcomp.c (init_word_char): Don't assume that the types
3327         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3328         them, and on some 32-bit compilers there is no uint64_t.
3329         Problem reported by Gianluigi Tiesi in
3330         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3331
3332 2012-05-25  Jim Meyering  <meyering@redhat.com>
3333
3334         maint.mk: add strncpy-prohibiting syntax-check rule
3335         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3336
3337 2012-05-24  Jim Meyering  <meyering@redhat.com>
3338
3339         maint.mk: compute $(gpg_key_ID) more portably
3340         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3341         That use of sed is not portable to some fringe systems.
3342         Reported by Paul Eggert in
3343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3344
3345 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3346
3347         mktime: sync from glibc
3348         * config/srclist.txt: Uncomment mktime.c.
3349         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3350         First, indent with tabs, since glibc uses tabs and doesn't want to
3351         change and we'd rather be identical to glibc.  Also, two small
3352         coding changes:
3353         (isdst_differ): Use &&, not &, as && is the usual style.
3354         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3355         for clarity.
3356
3357 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3358
3359         announce-gen: du -h is more portable than du --human
3360         * build-aux/announce-gen (sizes): Invoke du with -h instead
3361         of --human.  Accept leading white space in its output.
3362
3363 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3364
3365         announce-gen: Improve diagnostics.
3366         * build-aux/announce-gen: When parsing command line options,
3367         prefer "announce-gen: option --release-type requires an argument"
3368         to "Option release-type requires an argument".
3369
3370 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3371
3372         maint.mk: gpg_key_ID: use sed more portably
3373         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3374         the closing brace.
3375         (refresh-po): Fuse two sed invocations into one.
3376
3377 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3378
3379         gitlog-to-changelog: support the log message format used in Bison.
3380         * build-aux/gitlog-to-changelog: Support --strip-tab and
3381         --strip-cherry-picked.
3382
3383 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3384
3385         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3386         the rest of the current time slice to another thread in the current
3387         process. So if the thread that feeds the file decscriptor we're
3388         polling is not in the current process, we get busy-waiting.
3389         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3390         Patch from Theodore Leblond.
3391         * lib/select.c: Split polling out of the loop that sets the output
3392         fd_sets.  Check for zero result and loop if the wait timeout is
3393         infinite.
3394
3395 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3396
3397         select: Fix build error on IRIX 6.5.
3398         * lib/select.c: Include stddef.h for NULL.
3399
3400 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3401
3402         gc: fix libgcrypt detection on older machines.
3403         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3404         copyright years because the file has been distributed every year
3405         since it was created.
3406
3407 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         crypto: fix bug in large buffer handling
3410         Problem reported by Serge Belyshev for glibc in
3411         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3412         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3413         * lib/md4.c (md4_process_block):
3414         * lib/md5.c (md5_process_block):
3415         * lib/sha1.c (sha1_process_block):
3416         * lib/sha256.c (sha256_process_block):
3417         Don't assume the buffer length is less than 2**32.
3418         * lib/sha512.c (sha512_process_block): Likewise.
3419         Here, the bug is present only in the rare case where the host does
3420         not support uint64_t or where size_t is wider than 64 bits.
3421         Use u64size to work around the problems.
3422         * lib/u64.h (u64size): New macro.
3423
3424 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3425
3426         fsusage: fix block size returned on older Linux 2.6
3427
3428         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3429         which is available since Linux 2.6.
3430         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3431         when the member is available so it can be used as a fallback.
3432         * doc/posix-functions/statvfs.texi: Mention the hang issue
3433         on Linux < 2.6.36.
3434
3435 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3436
3437         bootstrap: suppress stderr chatter
3438         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3439         Omit unnecessary chatter to stderr.  The main program chatter
3440         was there only inadvertantly.
3441
3442         bootstrap: .gitignore files created by autopoint, libtool
3443         I ran into this problem when bootstrapping the latest diffutils.
3444         After './bootstrap', 'git status' reported lots of untracked files
3445         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3446         autopoint and do not need to be version-controlled.
3447         * build-aux/bootstrap: Put into .gitignore the files that
3448         autopoint and libtool create, by keeping track of files that exist
3449         after but not before these programs are run.
3450         (version_controlled_file): Move up.  2nd arg is now full file
3451         name, not base name; this is more convenient.  Put CVS at the end,
3452         as it's now somewhat deprecated.
3453
3454 2012-05-14  Jim Meyering  <meyering@redhat.com>
3455
3456         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3457         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3458         definition.  Reported by Bruno Haible.
3459
3460 2012-05-13  Bruno Haible  <bruno@clisp.org>
3461             Paul Eggert  <eggert@cs.ucla.edu>
3462
3463         binary-io: Define set_binary_mode function.
3464         * lib/binary-io.h (set_binary_mode): New function.
3465         (SET_BINARY): Define in terms of set_binary_mode.
3466         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3467         * tests/test-binary-io.c (main): Accept an argument, and test either
3468         set_binary_mode or SET_BINARY depending on the argument.
3469         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3470         argument. Clean up also t-bin-out0.tmp.
3471
3472 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3473
3474         bootstrap: take advantage of POSIX shell features
3475
3476         The 'bootstrap' script offered by Gnulib script already uses POSIX
3477         shell features (like $((...)) arithmetic expansions) that are not
3478         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3479         means that bootstrap must already be run using a proper POSIX shell,
3480         which will thus provide more features, like ${var#pattern} parameter
3481         expansion or inversion of a command exit status with '!'.  We can
3482         thus use these features to improve the clarity and the performances
3483         of the bootstrap script.
3484
3485         Suggested by Eric Blake.
3486
3487         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3488         of sed/expr plus command substitutions, to save some forks.  While
3489         we are at it, prefer the POSIX $(...) form of command substitution,
3490         rather than the legacy form `...` (since the former is visually
3491         clearer and interacts better with quoting), and prefer the idiom:
3492           "if ! CMD; then ACTION ..."
3493         over the idiom:
3494           "if CMD; then :; else ACTION ..."
3495         which was required by legacy Bourne shells not supporting '!'.
3496
3497 2012-05-12  Bruno Haible  <bruno@clisp.org>
3498
3499         system-quote: Add more comments.
3500         * lib/system-quote.h: Add more comments about wilcards and limitations.
3501         Suggested by Eli Zaretskii <eliz@gnu.org>.
3502
3503         sh-quote, system-quote: Add comments about wildcards.
3504         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3505         * lib/system-quote.h: Likewise.
3506         Reported by Eli Zaretskii <eliz@gnu.org>.
3507
3508 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3509
3510         fsusage: check for GNU/Linux statvfs problem dynamically
3511         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3512         Define STAT_STATFS2_BSIZE too, since in this case the code now
3513         checks dynamically whether statvfs is reliable, falling back on
3514         Linux-style statfs otherwise.
3515         (statvfs_works): New function, for dynamically testing statvfs.
3516         (get_fs_usage) [STAT_STATVFS]: Use it.
3517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3518         statvfs on GNU/Linux hosts, since it's now done dynamically.
3519
3520 2012-05-10  Bruno Haible  <bruno@clisp.org>
3521
3522         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3523         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3524         '?' character.
3525         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3526         * tests/test-system-quote-main.c (check_all): Check also strings like
3527         "??????????".
3528         Reported by Eli Zaretskii <eliz@gnu.org>.
3529
3530 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3531
3532         _Noreturn: port config.h to gcc -Wundef
3533         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3534         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3535         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3536
3537 2012-05-10  Bruno Haible  <bruno@clisp.org>
3538
3539         system-quote: Refactor.
3540         * lib/system-quote.h (system_quote_copy): Fix comment.
3541         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3542         New functions, extracted from system_quote_copy.
3543         (system_quote_length, system_quote_copy): Use these functions.
3544         Reported by Paul Eggert.
3545
3546 2012-05-08  Bruno Haible  <bruno@clisp.org>
3547
3548         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3549         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3550
3551 2012-05-08  Bruno Haible  <bruno@clisp.org>
3552
3553         Tests for module 'system-quote'.
3554         * modules/system-quote-tests: New file.
3555         * tests/test-system-quote.sh: New file.
3556         * tests/test-system-quote-main.c: New file.
3557         * tests/test-system-quote-child.c: New file.
3558
3559         New module 'system-quote'.
3560         * lib/system-quote.h: New file.
3561         * lib/system-quote.c: New file.
3562         * modules/system-quote: New file.
3563
3564 2012-05-08  Bruno Haible  <bruno@clisp.org>
3565
3566         sh-quote: Make C++ safe and allow multiple inclusion.
3567         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3568         declarations in extern "C".
3569
3570 2012-05-08  Bruno Haible  <bruno@clisp.org>
3571
3572         sh-quote tests: Make tests stricter.
3573         * tests/test-sh-quote.c (check_one): Check the return value of
3574         shell_quote_copy.
3575         (main): Check a string with a CR character. Check a string that
3576         contains UCHAR_MAX.
3577
3578 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3579
3580         warnings.m4: provide a means to specify the program to compile.
3581         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3582         (gl_WARN_ADD): here.
3583         Use gl_AS_VAR_APPEND.
3584         Support an argument to specify the program to compile.
3585         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3586         AC_SUBST the WARN_CFLAGS when they are used.
3587         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3588         leave this to gl_WARN_ADD.
3589
3590 2012-05-08  Eric Blake  <eblake@redhat.com>
3591
3592         doc: recommendations on gettext version
3593         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3594         choice between versions.
3595         * DEPENDENCIES (gettext): Cover both approaches.
3596
3597 2012-05-08  Jim Meyering  <meyering@redhat.com>
3598
3599         init.sh: explain why EXEEXT support uses aliases rather than functions
3600         * tests/init.sh: Add a comment.
3601
3602         init.sh: don't let bash aliases interfere with tests
3603         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3604         is bash.  This avoids problems for those who alias standard commands to
3605         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3606         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3607
3608 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3609
3610         stdint: be more consistent with glibc, SunOS libc
3611         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3612         (gl_int_fast16_t, gl_uint_fast16_t)
3613         (gl_int_fast32_t, gl_uint_fast32_t)
3614         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3615         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3616         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3617         Be consistent with glibc by default, and with SunOS 5.10 and later
3618         if __sun is defined.  This lessens the likelihood of clashes if
3619         code compiled for older hosts is combined with code compiled for
3620         newer ones.  Problem reported by Niels Möller in
3621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3622
3623 2012-05-07  Eric Blake  <eblake@redhat.com>
3624
3625         isatty: relax license to LGPLv2+
3626         * modules/isatty (License): Relax license.
3627
3628 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3629
3630         stat-size: comment fix
3631         * lib/stat-size.h: Remove obsolete comment about indenting.
3632
3633 2012-05-06  Bruno Haible  <bruno@clisp.org>
3634
3635         Tests for module 'sh-quote'.
3636         * modules/sh-quote-tests: New file.
3637         * tests/test-sh-quote.c: New file.
3638
3639 2012-05-06  Bruno Haible  <bruno@clisp.org>
3640
3641         sh-quote: Improve shell_quote_argv's signature.
3642         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3643         * lib/sh-quote.c (shell_quote_argv): Likewise.
3644
3645 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         stdint: document issues with int_fast8_t etc.
3648         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3649         stdint.h substitutes may define these types differently.  See
3650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3651
3652 2012-05-05  Bruno Haible  <bruno@clisp.org>
3653
3654         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3656         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3657         or 'guessing no (mishandles large arguments)'.
3658
3659 2012-05-05  Bruno Haible  <bruno@clisp.org>
3660
3661         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3662         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3663         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3664         set gl_cv_func_link_follows_symlink to "guessing no".
3665
3666 2012-05-05  Bruno Haible  <bruno@clisp.org>
3667
3668         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3669         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3670         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3671         "guessing no".
3672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3673
3674 2012-05-05  Bruno Haible  <bruno@clisp.org>
3675
3676         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3677         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3678         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3679         set gl_cv_struct_dirent_d_ino to "guessing yes".
3680
3681 2012-05-05  Bruno Haible  <bruno@clisp.org>
3682
3683         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3684         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3685         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3686         "guessing yes".
3687
3688 2012-05-05  Bruno Haible  <bruno@clisp.org>
3689
3690         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3691         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3692         compiling to a glibc system, set gl_cv_func_signbit and
3693         gl_cv_func_signbit_gcc to "guessing yes".
3694
3695 2012-05-05  Bruno Haible  <bruno@clisp.org>
3696
3697         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3698         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3699         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3700         to "guessing yes".
3701         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3702         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3703
3704 2012-05-05  Bruno Haible  <bruno@clisp.org>
3705
3706         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3707         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3708         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3709         gl_cv_func_realpath_works to "guessing yes".
3710
3711 2012-05-05  Bruno Haible  <bruno@clisp.org>
3712
3713         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3714         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3715         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3716
3717 2012-05-04  Bruno Haible  <bruno@clisp.org>
3718
3719         Tweak last commit.
3720         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3721         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3722
3723 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3724
3725         unistd_h: make it easier to avoid sys_types_h
3726         This is useful for Emacs, which has its own method of porting to
3727         Windows, and which therefore does not need the sys_types_h module.
3728         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3729         code moved here from gl_SYS_TYPES_H.
3730         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3731         using the code directly.
3732         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3733         gl_SYS_TYPES_H.
3734         * modules/sys_types (Files):
3735         * modules/unistd (Files): Add m4/off_t.m4.
3736
3737 2012-05-03  Bruno Haible  <bruno@clisp.org>
3738
3739         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3740         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3741         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3742         "guessing yes" or "guessing no".
3743         (gl_FUNC_LSTAT): Update.
3744         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3745         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3746         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3747
3748 2012-05-03  Bruno Haible  <bruno@clisp.org>
3749
3750         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3751         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3752         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3753         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3754         cross-compiling, choose the first alternative on glibc systems.
3755         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3756
3757 2012-05-03  Bruno Haible  <bruno@clisp.org>
3758
3759         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3760         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3761         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3762
3763 2012-05-03  Bruno Haible  <bruno@clisp.org>
3764
3765         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3766         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3767
3768 2012-05-03  Bruno Haible  <bruno@clisp.org>
3769
3770         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3771         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3772         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3773         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3774         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3775         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3776         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3777         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3778         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3779         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3780         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3781         gl_cv_func_chown_ctime_works to "guessing yes".
3782         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3783         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3784         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3785         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3786         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3788         compiling to glibc systems, set gl_cv_func_open_directory_works to
3789         "guessing yes".
3790         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3791         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3792         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3793         "guessing yes".
3794         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3795         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3796         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3797         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3798         "guessing yes".
3799         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3800         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3801         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3802         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3803         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3804         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3805         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3806         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3807         "guessing yes".
3808         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3809         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3810         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3811         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3812         "guessing yes".
3813         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3814         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3815         "guessing yes".
3816         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3817         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3818         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3819         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3820         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3821         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3822         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3823         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3824         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3825         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3826         "guessing yes".
3827         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3828         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3829         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3830         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3831         "guessing yes".
3832         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3833         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3834         "guessing yes".
3835         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3836         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3837         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3838         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3839         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3840         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3841         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3842         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3843         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3844         "guessing yes".
3845         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3846         compiling to glibc systems, set gl_cv_func_mknod_works to
3847         "guessing yes".
3848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3849         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3850         "guessing yes".
3851         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3852         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3853         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3854         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3855         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3856         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3857         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3858         compiling to glibc systems, set gl_cv_func_svid_putenv to
3859         "guessing yes".
3860         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3861         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3862         "guessing yes".
3863         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3864         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3865         "guessing yes".
3866         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3867         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3868         to "guessing yes".
3869         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3870         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3871         to "guessing yes".
3872         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3873         compiling to glibc systems, set gl_cv_func_rmdir_works to
3874         "guessing yes".
3875         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3876         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3877         gl_cv_func_unlink_parent_fails to "guessing yes".
3878         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3879         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3880         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3881         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3882         gl_cv_func_rename_dest_works to "guessing yes".
3883         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3884         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3885         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3886         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3887         "guessing yes".
3888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3889         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3890         "guessing yes".
3891         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3892         compiling to glibc systems, set gl_cv_func_setenv_works to
3893         "guessing yes".
3894         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3895         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3896         "guessing yes".
3897         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3898         compiling to glibc systems, set gl_cv_func_sleep_works to
3899         "guessing yes".
3900         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3901         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3902         "guessing yes".
3903         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3904         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3905         "guessing yes".
3906         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3907         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3908         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3909         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3910         "guessing yes".
3911         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3912         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3913         "guessing yes".
3914         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3915         compiling to glibc systems, set gl_cv_func_usleep_works to
3916         "guessing yes".
3917         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3918         compiling to glibc systems, set gl_cv_func_futimesat_works to
3919         "guessing yes".
3920
3921 2012-05-03  Bruno Haible  <bruno@clisp.org>
3922
3923         Say "guessing yes" or "guessing no" when cross-compiling.
3924         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3925         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3927         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3928         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3929         am_cv_func_working_getline to "guessing yes" or "guessing no".
3930         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3931         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3932         (gl_FUNC_MEMMEM): When cross-compiling, set
3933         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3935         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3937         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3938         "guessing no".
3939         (gl_FUNC_STRCASESTR): When cross-compiling, set
3940         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3941         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3942         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3943         (gl_FUNC_STRSTR): When cross-compiling, set
3944         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3945         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3946         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3947         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3948         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3949
3950 2012-05-01  Bruno Haible  <bruno@clisp.org>
3951
3952         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3954         * build-aux/reloc-ldflags: Likewise.
3955         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3956
3957 2012-05-01  Bruno Haible  <bruno@clisp.org>
3958
3959         gnulib-tool: Remove transitional code.
3960         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3961         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3962
3963 2012-05-01  Bruno Haible  <bruno@clisp.org>
3964
3965         getcwd: Fix misindentation.
3966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3967
3968 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3969
3970         exclude: process exclude and include directives in order
3971         This restores the pre-2009 behavior, and is part of a fix of a
3972         grep bug reported by Quentin Arce in
3973         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3974         * lib/exclude.c (struct exclude): Remove 'tail' member.
3975         (new_exclude_segment): Prepend the new segment instead of appending.
3976         Return void, since that's now more convenient.
3977         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3978         (file_name_matches): Renamed from excluded_file_name_p.
3979         (file_pattern_matches, file_name_matches):
3980         Return true if the pattern matches, not if it excludes.
3981         All callers changed.
3982         (excluded_file_name): Process the list in reverse order;
3983         since the list is now reversed this restores the pre-2009 behavior.
3984         (add_exclude): Adjust to new reversed-order list.  Use local var
3985         rather than macro, for clarity.
3986         * tests/test-exclude7.sh: Adjust to corrected behavior.
3987
3988         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3989         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3990         it's not possible here.  Handle the case of \ at end of pattern
3991         without dumping core.
3992         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3993
3994         _Noreturn: future-proof non-GNU and non-MSVC compilers
3995         * build-aux/snippet/_Noreturn.h (_Noreturn):
3996         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3997         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3998         C11 or later.  This is more likely to work with random future C
3999         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4000         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4001
4002         exclude: handle wildcards with FNM_EXTMATCH
4003         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4004         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4005         comment that "has wildcards" really means "has or may have
4006         wildcards".  Simplify by avoiding the need to call strcspn.
4007
4008 2012-04-29  Bruno Haible  <bruno@clisp.org>
4009
4010         gnulib-tool: Fix list of authors.
4011         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4012
4013 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4014
4015         bootstrap: support Automake-NG in $buildreq
4016         * bootstrap (check_versions): Handle automake and aclocal from
4017         Automake-NG specially.  They can be specified as respectively
4018         the "automake-ng" and "aclocal-ng" requirements.
4019
4020 2012-04-25  Eric Blake  <eblake@redhat.com>
4021
4022         bootstrap: only force latest Makefile.in.in for gettext module
4023         * build-aux/bootstrap (with_gettext): Only install latest
4024         Makefile.in.in for projects requesting bleeding edge gettext.
4025
4026 2012-04-22  Bruno Haible  <bruno@clisp.org>
4027
4028         doc: Mention reason for replacement on glibc/Linux systems.
4029         * doc/posix-functions/dprintf.texi: Mention the problem with special
4030         'long double' values.
4031         * doc/posix-functions/fprintf.texi: Likewise.
4032         * doc/posix-functions/printf.texi: Likewise.
4033         * doc/posix-functions/snprintf.texi: Likewise.
4034         * doc/posix-functions/sprintf.texi: Likewise.
4035         * doc/posix-functions/vdprintf.texi: Likewise.
4036         * doc/posix-functions/vfprintf.texi: Likewise.
4037         * doc/posix-functions/vprintf.texi: Likewise.
4038         * doc/posix-functions/vsnprintf.texi: Likewise.
4039         * doc/posix-functions/vsprintf.texi: Likewise.
4040         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4041         platforms with F_DUPFD_CLOEXEC problems.
4042         * doc/posix-functions/glob.texi: Mention which platforms are affected
4043         by the problem with symbolic links.
4044         * doc/posix-functions/linkat.texi: Mention the problem with
4045         AT_SYMLINK_FOLLOW on Linux.
4046
4047 2012-04-22  Bruno Haible  <bruno@clisp.org>
4048
4049         pwrite: Don't replace on all platforms.
4050         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4051
4052 2012-04-22  Bruno Haible  <bruno@clisp.org>
4053
4054         rint* tests: Avoid gcc warnings.
4055         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4056         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4057         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4058
4059 2012-04-21  Bruno Haible  <bruno@clisp.org>
4060
4061         users.txt: Update.
4062         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4063         switched from CVS to git, bzr, or svn.
4064
4065 2012-04-21  Bruno Haible  <bruno@clisp.org>
4066
4067         Large File Support for native Windows platforms.
4068
4069         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4070         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4071
4072         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4073         type.
4074         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4075         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4076         * doc/posix-headers/sys_types.texi: Mention the effect of the
4077         'largefile' module.
4078
4079         * lib/fcntl.in.h: Add comments about off_t.
4080         * modules/fcntl-h (Depends-on): Add sys_types.
4081
4082         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4083         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4084         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4085         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4086         * modules/unistd (Depends-on): Add sys_types.
4087         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4088
4089         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4090         instead of lseek.
4091         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4092         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4093         * modules/lseek (Depends-on): Add sys_types.
4094
4095         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4096         msvc-nothrow.h.
4097         (SetFileSize): New function.
4098         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4100         if Large File Support is requested.
4101         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4102         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4103
4104         * lib/stdio.in.h: Add comments about off_t.
4105         * modules/stdio (Depends-on): Add sys_types.
4106
4107         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4108         instead of ftello.
4109         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4110         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4111         (gl_PREREQ_FTELLO): New macro.
4112         * modules/ftello (Depends-on): Add sys_types.
4113         (configure.ac): Incoke gl_PREREQ_FTELLO.
4114
4115         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4116         instead of fseeko.
4117         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4118         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4119         (gl_PREREQ_FSEEKO): New macro.
4120         * modules/fseeko (Depends-on): Add sys_types.
4121         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4122
4123         * lib/sys_stat.in.h: Add comments about off_t.
4124         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4125         64-bit integer for st_size in 'struct stat'.
4126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4127         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4128         * modules/sys_stat (Depends-on): Add sys_types.
4129         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4130
4131         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4132         instead of stat or _stat.
4133
4134         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4135         'struct _stati64' instead of fstat and 'struct stat'.
4136         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4137         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4138
4139         Reported by Ray Satiro <raysatiro@yahoo.com>.
4140
4141 2012-04-19  Eric Blake  <eblake@redhat.com>
4142
4143         bootstrap: accommodate older libtool
4144         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4145         Reported by Daniel P. Berrange.
4146
4147 2012-04-19  Jim Meyering  <meyering@redhat.com>
4148
4149         announce-gen: avoid failure due to lack of Digest::SHA1
4150         Even with the preferred Digest::SHA available, this script
4151         would fail when the backup module, Digest::SHA1, was not installed.
4152         * build-aux/announce-gen: Quote the conditional use of "use".
4153         Reported by Reuben Thomas in:
4154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4155
4156         bootstrap: don't let a user's CDPATH setting affect this script
4157         When CDPATH is set, cd will sometimes generate output.
4158         When "cd" is run in a subshell whose output matters, that
4159         surprising-to-some output can cause malfunction.
4160         Unsetting CDPATH turns off this shell "feature."
4161         * build-aux/bootstrap (CDPATH): Unset.
4162         Reported by Reuben Thomas in:
4163         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4164         and inspired by his patch here:
4165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4166
4167 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4168         and Jim Meyering  <meyering@redhat.com>
4169
4170         maint.mk: catch "see @xref{}" and similar
4171         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4172         prohibit "See also @xref{", "Also see @pxref{", and similar.
4173
4174 2012-04-16  Jim Meyering  <meyering@redhat.com>
4175
4176         bootstrap: really use gnulib's po/Makefile.in.in
4177         * build-aux/bootstrap: Correct the source file name in previous change.
4178         Reported by Akim Demaille.
4179
4180         configmake: correct minor inconsistency in Makefile rule
4181         * modules/configmake (Makefile.am): All other rules like this one
4182         run the final "mv -f ..." in the same backslash-continued command
4183         as the one that does everything else.  This one put the mv -f ...
4184         command on a separate, non-backslash-continued line.
4185         Make it like the others.
4186
4187         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4188         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4189         the one from gettext.  Reported by Akim Demaille.
4190
4191 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4192
4193         Fix recursion of install-* into po directories.
4194         Bison's install-pdf bug reported by Hans Aberg at
4195         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4196         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4197         (install-info, install-pdf, install-ps): New targets.
4198
4199 2012-04-16  Jim Meyering  <meyering@redhat.com>
4200
4201         maint: avoid spurious "make sc_maint" failure
4202         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4203         exempt all *.class file names, for lib/javaversion.class.
4204
4205 2012-04-15  Bruno Haible  <bruno@clisp.org>
4206
4207         lseek: Make configure test independent of environment.
4208         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4209         Windows, we know that lseek() on pipes is broken; skip the runtime
4210         test.
4211
4212 2012-04-14  Bruno Haible  <bruno@clisp.org>
4213
4214         stat: Bypass buggy override in mingw64.
4215         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4216         * lib/stat.c (stat) [mingw64]: Define to _stat.
4217         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4218
4219 2012-04-14  Bruno Haible  <bruno@clisp.org>
4220
4221         pathmax: Fix compilation error on MSVC 9.
4222         * modules/pathmax (Depends-on): Add unistd.
4223
4224 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         README: document pointer comparison assumption
4227         * README (Portability guidelines): Document assumption about
4228         pointer comparisons, in response to a recent bug-gnulib comment by
4229         Jeffrey Kegler.
4230
4231 2012-04-12  Bruno Haible  <bruno@clisp.org>
4232
4233         Tests for module 'getrusage'.
4234         * modules/getrusage-tests: New file.
4235         * tests/test-getrusage.c: New file.
4236
4237         New module 'getrusage'.
4238         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4239         warn-on-use.h.
4240         (getrusage): New declaration.
4241         * lib/getrusage.c: New file.
4242         * m4/getrusage.m4: New file.
4243         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4244         is declared.
4245         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4246         HAVE_GETRUSAGE.
4247         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4248         snippet/c++defs, snippet/warn-on-use.
4249         (Makefile.am): Update generation of sys/resource.h. Substitute
4250         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4251         * modules/getrusage: New file.
4252         * doc/posix-functions/getrusage.texi: Mention the new module.
4253
4254 2012-04-12  Bruno Haible  <bruno@clisp.org>
4255
4256         Tests for module 'sys_resource'.
4257         * modules/sys_resource-tests: New file.
4258         * tests/test-sys_resource.c: New file.
4259
4260         New module 'sys_resource'.
4261         * lib/sys_resource.in.h: New file.
4262         * m4/sys_resource_h.m4: New file.
4263         * modules/sys_resource: New file.
4264         * doc/posix-headers/sys_resource.texi: Mention the new module.
4265
4266 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4267
4268         ioctl: Fix compilation error on mingw.
4269         * lib/ioctl.c: Include <windows.h>.
4270         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4271
4272 2012-04-04  Jim Meyering  <meyering@redhat.com>
4273
4274         regex: correct #pragma guard expression
4275         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4276         not 4.3.  Correct its cpp guard expression.
4277
4278 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         regex: remove unnecessary type punning
4281         Problem reported by Vladimir Serbinenko in
4282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4283         * lib/regex.h (struct re_pattern_buffer): Change the type of
4284         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4285         Fix comment to match code.
4286         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4287         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4288         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4289         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4290         (set_regs):
4291         Omit no-longer-necessary casts.
4292
4293 2012-04-03  Bruno Haible  <bruno@clisp.org>
4294
4295         Tests for module 'ilogbl'.
4296         * modules/ilogbl-tests: New file.
4297         * tests/test-ilogbl.c: New file.
4298
4299         New module 'ilogbl'.
4300         * lib/math.in.h (ilogbl): New declaration.
4301         * lib/ilogbl.c: New file.
4302         * m4/ilogbl.m4: New file.
4303         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4305         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4306         Split sed invocation, to avoid the limit of 100 substitutions of
4307         HP-UX 'sed'.
4308         * modules/ilogbl: New file.
4309         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4310         * doc/posix-functions/ilogbl.texi: Mention the new module.
4311
4312 2012-04-03  Bruno Haible  <bruno@clisp.org>
4313
4314         Tests for module 'ilogbf'.
4315         * modules/ilogbf-tests: New file.
4316         * tests/test-ilogbf.c: New file.
4317
4318         New module 'ilogbf'.
4319         * lib/math.in.h (ilogbf): New declaration.
4320         * lib/ilogbf.c: New file.
4321         * m4/ilogbf.m4: New file.
4322         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4324         REPLACE_ILOGBF.
4325         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4326         REPLACE_ILOGBF.
4327         * modules/ilogbf: New file.
4328         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4329         * doc/posix-functions/ilogbf.texi: Mention the new module.
4330
4331 2012-04-03  Bruno Haible  <bruno@clisp.org>
4332
4333         Tests for module 'ilogb'.
4334         * modules/ilogb-tests: New file.
4335         * tests/test-ilogb.c: New file.
4336         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4337         tests/test-logb-ieee.h.
4338
4339         New module 'ilogb'.
4340         * lib/math.in.h (ilogb): New declaration.
4341         * lib/ilogb.c: New file.
4342         * m4/ilogb.m4: New file.
4343         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4345         REPLACE_ILOGB.
4346         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4347         REPLACE_ILOGB.
4348         * modules/ilogb: New file.
4349         * tests/test-math-c++.cc: Check the declaration of ilogb.
4350         * doc/posix-functions/ilogb.texi: Mention the new module.
4351
4352 2012-04-03  Bruno Haible  <bruno@clisp.org>
4353
4354         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4355         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4356         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4357         (main): Check their values.
4358         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4359         problem.
4360
4361 2012-04-03  Bruno Haible  <bruno@clisp.org>
4362
4363         Tests for module 'logbl-ieee'.
4364         * modules/logbl-ieee-tests: New file.
4365         * tests/test-logbl-ieee.c: New file.
4366
4367         New module 'logbl-ieee'.
4368         * modules/logbl-ieee: New file.
4369
4370         Tests for module 'logb-ieee'.
4371         * modules/logb-ieee-tests: New file.
4372         * tests/test-logb-ieee.c: New file.
4373
4374         New module 'logb-ieee'.
4375         * modules/logb-ieee: New file.
4376
4377         Tests for module 'logbf-ieee'.
4378         * modules/logbf-ieee-tests: New file.
4379         * tests/test-logbf-ieee.c: New file.
4380         * tests/test-logb-ieee.h: New file.
4381
4382         New module 'logbf-ieee'.
4383         * modules/logbf-ieee: New file.
4384
4385 2012-04-03  Bruno Haible  <bruno@clisp.org>
4386
4387         Tests for module 'logbl'.
4388         * modules/logbl-tests: New file.
4389         * tests/test-logbl.c: New file.
4390
4391         New module 'logbl'.
4392         * lib/math.in.h (logbl): New declaration.
4393         * lib/logbl.c: New file.
4394         * m4/logbl.m4: New file.
4395         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4397         REPLACE_LOGBL.
4398         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4399         REPLACE_LOGBL.
4400         * modules/logbl: New file.
4401         * tests/test-math-c++.cc: Check the declaration of logbl.
4402         * doc/posix-functions/logbl.texi: Mention the new module.
4403
4404 2012-04-02  Bruno Haible  <bruno@clisp.org>
4405
4406         Tests for module 'logbf'.
4407         * modules/logbf-tests: New file.
4408         * tests/test-logbf.c: New file.
4409
4410         New module 'logbf'.
4411         * lib/math.in.h (logbf): New declaration.
4412         * lib/logbf.c: New file.
4413         * m4/logbf.m4: New file.
4414         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4416         REPLACE_LOGBF.
4417         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4418         REPLACE_LOGBF.
4419         * modules/logbf: New file.
4420         * tests/test-math-c++.cc: Check the declaration of logbf.
4421         * doc/posix-functions/logbf.texi: Mention the new module.
4422
4423 2012-04-02  Bruno Haible  <bruno@clisp.org>
4424
4425         logb tests: More tests.
4426         * tests/test-logb.h: New file, based on tests/test-logb.c and
4427         tests/test-frexp.h.
4428         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4429         (main): Just invoke test_function.
4430         * modules/logb-tests (Files): Add tests/test-logb.h,
4431         tests/minus-zero.h, tests/randomd.c.
4432         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4433
4434         logb: Provide replacement and workarounds.
4435         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4436         is 1.
4437         * lib/logb.c: New file.
4438         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4439         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4441         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4442         * modules/logb (Files): Add lib/logb.c.
4443         (Depends-on): Add isfinite, frexp, isnand.
4444         (configure.ac): Compile the replacement code logb.c if needed.
4445         * tests/test-math-c++.cc: Check the declaration of logb.
4446         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4447         with subnormal numbers.
4448
4449 2012-04-02  Bruno Haible  <bruno@clisp.org>
4450
4451         log10* tests: Speed up.
4452         * tests/test-log10.h (test_function): Reduce amount of random numbers
4453         to test.
4454
4455 2012-04-01  Bruno Haible  <bruno@clisp.org>
4456
4457         logf-ieee: Fix test whether logf works.
4458         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4459
4460 2012-04-01  Bruno Haible  <bruno@clisp.org>
4461
4462         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4463         * lib/log10l.c: Include <float.h>
4464         (log10l): On IRIX, normalize the +Infinity value.
4465         * modules/log10l (Depends-on): Add 'float'.
4466         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4467         +Infinity.
4468
4469         log10f-ieee: Work around test failure on NetBSD 5.1.
4470         * m4/log10f-ieee.m4: New file.
4471         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4472         test whether log10f works with a negative argument. Replace it if not.
4473         * lib/log10f.c (log10f): For negative arguments, return NaN.
4474         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4475         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4476         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4477
4478         log10f-ieee: Work around test failure on Solaris 9.
4479         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4480         (configure.ac): Require gl_FUNC_LOG10F.
4481
4482         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4483         * m4/log10-ieee.m4: New file.
4484         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4485         whether log10 works with a negative argument. Replace it if not.
4486         * lib/log10.c (log10): For negative arguments, return NaN.
4487         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4488         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4489         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4490
4491         Tests for module 'log10l-ieee'.
4492         * modules/log10l-ieee-tests: New file.
4493         * tests/test-log10l-ieee.c: New file.
4494
4495         New module 'log10l-ieee'.
4496         * modules/log10l-ieee: New file.
4497
4498         Tests for module 'log10-ieee'.
4499         * modules/log10-ieee-tests: New file.
4500         * tests/test-log10-ieee.c: New file.
4501
4502         New module 'log10-ieee'.
4503         * modules/log10-ieee: New file.
4504
4505         Tests for module 'log10f-ieee'.
4506         * modules/log10f-ieee-tests: New file.
4507         * tests/test-log10f-ieee.c: New file.
4508         * tests/test-log10-ieee.h: New file.
4509
4510         New module 'log10f-ieee'.
4511         * modules/log10f-ieee: New file.
4512
4513 2012-04-01  Bruno Haible  <bruno@clisp.org>
4514
4515         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4516         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4517         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4518         workaround.
4519         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4520         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4522         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4523         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4524         (Depends-on): Update conditions.
4525         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4526         IRIX 6.5, OSF/1 5.1 problems.
4527
4528 2012-04-01  Bruno Haible  <bruno@clisp.org>
4529
4530         log10f: Work around OSF/1 5.1 bug.
4531         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4532         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4533         workaround.
4534         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4535         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4537         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4538         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4539         (Depends-on): Update conditions.
4540         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4541
4542 2012-04-01  Bruno Haible  <bruno@clisp.org>
4543
4544         log10: Work around OSF/1 5.1 bug.
4545         * lib/math.in.h (log10): New declaration.
4546         * lib/log10.c: New file.
4547         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4548         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4549         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4551         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4552         * modules/log10 (Files): Add lib/log10.c.
4553         (Depends-on): Add math.
4554         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4555         * tests/test-math-c++.cc: Check the declaration of log10.
4556         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4557
4558 2012-03-31  Bruno Haible  <bruno@clisp.org>
4559
4560         log10l tests: More tests.
4561         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4562         tests/minus-zero.h, tests/randoml.c.
4563         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4564         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4565         (main): Invoke test_function.
4566
4567         log10f tests: More tests.
4568         * modules/log10f-tests (Files): Add tests/test-log10.h,
4569         tests/minus-zero.h, tests/randomf.c.
4570         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4571         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4572         (main): Invoke test_function.
4573
4574         log10 tests: More tests.
4575         * tests/test-log10.h: New file.
4576         * modules/log10-tests (Files): Add tests/test-log10.h,
4577         tests/minus-zero.h, tests/randomd.c.
4578         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4579         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4580         (main): Invoke test_function.
4581
4582 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4583
4584         fflush: Fix syntax error.
4585         * lib/fflush.c: Include unused-parameter.h, needed for
4586         _GL_UNUSED_PARAMETER.
4587         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4588
4589 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4590
4591         regex: pacify GCC when compiling GRUB
4592         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4593         a diagnostic.  Reported by Vladimir Serbinenko in
4594         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4595
4596 2012-03-29  Eric Blake  <eblake@redhat.com>
4597
4598         stdio: don't assume gets any more
4599         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4600         support.
4601         * modules/stdio (Makefile.am): Likewise.
4602         * lib/stdio-read.c (gets): Likewise.
4603         * tests/test-stdio-c++.cc: Likewise.
4604         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4605         * lib/stdio.in.h (gets): Make warning occur in more places.
4606         * doc/posix-functions/gets.texi (gets): Update documentation.
4607         Reported by Christer Solskogen.
4608
4609         maint.mk: fix syntax checks without exclusions
4610         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4611         Reported by Daniel P. Berrange.
4612
4613         strerror_r: avoid compiler warning
4614         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4615         level.
4616
4617         fflush: avoid compiler warning
4618         * lib/fflush.c (update_fpos_cache): Mark variables that are
4619         potentially unused.
4620
4621 2012-03-25  Bruno Haible  <bruno@clisp.org>
4622
4623         Tests for module 'localeconv'.
4624         * modules/localeconv-tests: New file.
4625         * tests/test-localeconv.c: New file.
4626
4627         New module 'localeconv'.
4628         * lib/locale.in.h (localeconv): New declaration.
4629         * lib/localeconv.c: New file.
4630         * m4/localeconv.m4: New file.
4631         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4632         REPLACE_LOCALECONV.
4633         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4634         REPLACE_LOCALECONV.
4635         * modules/localeconv: New file.
4636         * modules/nl_langinfo (Depends-on): Add localeconv.
4637         * modules/human (Depends-on): Likewise.
4638         * doc/posix-functions/localeconv.texi: Mention the new module.
4639
4640 2012-03-25  Bruno Haible  <bruno@clisp.org>
4641
4642         locale: Provide a complete 'struct lconv'.
4643         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4644         'struct lconv' does not contain int_p_cs_precedes.
4645         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4646         * doc/posix-headers/locale.texi: Update.
4647
4648         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4649         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4650         * doc/posix-headers/locale.texi: Update.
4651
4652         locale: Provide a working 'struct lconv'.
4653         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4654         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4655         'struct lconv' does not even contain decimal_point.
4656         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4657         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4658         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4659         * doc/posix-headers/locale.texi: Mention the problems with
4660         'struct lconv'.
4661         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4662
4663 2012-03-24  Bruno Haible  <bruno@clisp.org>
4664
4665         Enable common subexpression optimization in GCC.
4666         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4667         macros.
4668         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4669         GCC attribute 'const'.
4670         (uc_locale_language): Declare with GCC attribute 'pure'.
4671         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4672         with GCC attribute 'const'.
4673         * lib/unictype.in.h (uc_is_general_category_withtable,
4674         uc_combining_class, uc_combining_class_name,
4675         uc_combining_class_long_name, uc_bidi_class_name,
4676         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4677         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4678         uc_decimal_value, uc_digit_value, uc_numeric_value,
4679         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4680         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4681         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4682         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4683         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4684         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4685         Declare with GCC attribute 'const'.
4686         (uc_general_category_name, uc_general_category_long_name,
4687         uc_general_category_byname, uc_general_category,
4688         uc_is_general_category, uc_combining_class_byname,
4689         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4690         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4691         Declare with GCC attribute 'pure'.
4692         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4693         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4694         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4695         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4696         with GCC attribute 'pure'.
4697         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4698         'const'.
4699         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4700         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4701         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4702         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4703         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4704         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4705         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4706         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4707         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4708         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4709         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4710         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4711         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4712         GCC attribute 'pure'.
4713         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4714         'const'.
4715         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4716         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4717         u32_strwidth): Declare with GCC attribute 'pure'.
4718
4719         Enable common subexpression optimization in GCC.
4720         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4721         (alphasort): Declare with GCC attribute 'pure'.
4722         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4723         (atoll): Declare with GCC attribute 'pure'.
4724         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4725         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4726         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4727         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4728         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4729         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4730         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4731
4732 2012-03-24  Bruno Haible  <bruno@clisp.org>
4733
4734         gnulib-tool: Avoid unintended error output from 'cmp'.
4735         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4736         "cmp -s", not "cmp > /dev/null".
4737
4738 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4739
4740         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4741
4742         It's not just Automake versions < 1.9b that creates an empty
4743         pkgdatadir at installation time if pkgdata_DATA is specified
4744         to empty; modern automake versions do this as well, at least
4745         until automake 1.11.4 (not yet released at the moment of writing,
4746         but soon to appear).  That behaviour was generally considered a
4747         feature rather than a bug, at least until this discussion:
4748         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4749
4750         See also automake bugs #10997 and #11030.
4751
4752         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4753         reference to relevant automake bug numbers.
4754         (func_emit_tests_Makefile_am): Likewise.
4755
4756 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4757
4758         announce-gen: use Digest::SHA when possible
4759         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4760         back to Digest::SHA1 if necessary.
4761
4762 2012-03-20  Jim Meyering  <meyering@redhat.com>
4763
4764         tests: avoid gcc warnings about argv vs. const initializers
4765         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4766         warnings about discarding 'const' qualifier from pointer target type.
4767         * tests/test-posix_spawn2.c (main): Likewise.
4768
4769 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4770
4771         README-release: simplify slightly
4772         * top/README-release: Run "git checkout master" only once.
4773
4774 2012-03-15  Mark Wielaard  <mark@klomp.org>
4775
4776         git-merge-changelog: add specific example on how to use with hg.
4777         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4778
4779 2012-03-18  Mark Wielaard  <mark@klomp.org>
4780
4781         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4782
4783 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4784
4785         git-version-gen: don't let "prefix" envvar cause trouble
4786         * build-aux/git-version-gen (prefix): Initialize properly,
4787         so as not to use a value specified via the environment.
4788         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4789
4790 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4791
4792         regex: diagnose too-large repeat counts in EREs
4793         Previously, the code did not diagnose the too-large repeat count
4794         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4795         as if it were 'b\{1000000000}', which is unexpected.
4796         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4797         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4798         is a reasonable one for this problem.  Another option would be to
4799         create a new REG_OVERFLOW error for repeat counts that are too large.
4800         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4801         count is too large, so that the caller can distinguish the two cases.
4802         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4803         "Too large" return code, and that repeat counts are one example of this.
4804
4805 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4806
4807         doc: some glibc x32 integer width issues
4808         * doc/posix-headers/sys_types.texi (sys/types.h):
4809         * doc/posix-headers/time.texi (time.h):
4810         Mention that glibc x32 does not conform to POSIX in a couple of
4811         areas related to integer widths.
4812
4813 2012-03-15  Bruno Haible  <bruno@clisp.org>
4814
4815         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4816         * lib/fma.c (VOLATILE): New macro.
4817         (FUNC): Use it to work around a GCC compiler bug.
4818
4819 2012-03-13  Bruno Haible  <bruno@clisp.org>
4820
4821         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4822         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4823         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4824         REPLACE_HYPOTL to 1.
4825         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4826
4827 2012-03-13  Bruno Haible  <bruno@clisp.org>
4828
4829         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4830         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4831         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4832         REPLACE_REMAINDERL to 1.
4833         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4834         bug.
4835
4836 2012-03-13  Bruno Haible  <bruno@clisp.org>
4837
4838         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4839         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4840         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4841         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4842         too big rounding errors.
4843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4844         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4845         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4846         (Depends-on): Update conditions.
4847         * tests/test-sqrtl.c (my_ldexpl): New function.
4848         (main): Add test of a particular value.
4849         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4850
4851 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4852
4853         doc: Update timer_* platform portability notes.
4854         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4855         that always return ENOSYS.
4856         * doc/posix-functions/timer_delete.texi: Likewise.
4857         * doc/posix-functions/timer_gettime.texi: Likewise.
4858         * doc/posix-functions/timer_settime.texi: Likewise.
4859
4860 2012-03-13  Bruno Haible  <bruno@clisp.org>
4861
4862         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4863         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4864         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4865         REPLACE_CBRTL to 1.
4866         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4867
4868 2012-03-13  Bruno Haible  <bruno@clisp.org>
4869
4870         remainderl: Avoid compilation error on AIX >= 5.2.
4871         * lib/math.in.h (remainderl): Undefine macro from the system header.
4872
4873 2012-03-13  Bruno Haible  <bruno@clisp.org>
4874
4875         Avoid compilation errors with MSVC option -fp:strict.
4876         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4877         * lib/cbrtf.c: Likewise.
4878         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4879
4880 2012-03-12  Bruno Haible  <bruno@clisp.org>
4881
4882         uninorm: Don't crash in out-of-memory conditions.
4883         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4884         gracefully.
4885         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4886         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4887
4888 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4889
4890         quote: fix syntax-check
4891         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4892         also exports quote_quoting_options.
4893
4894 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4895
4896         Collapse list of copyright years to ranges.  See
4897         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4898         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4899         build-aux/csharpexec.sh.in, build-aux/gnupload,
4900         build-aux/install-reloc, build-aux/javacomp.sh.in,
4901         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4902         build-aux/move-if-change, build-aux/reloc-ldflags,
4903         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4904
4905 2012-03-11  Bruno Haible  <bruno@clisp.org>
4906
4907         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4908         * m4/log2f-ieee.m4: New file.
4909         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4910         whether log2f works with a minus zero argument. Replace it if not.
4911         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4912         (Depends-on): Add log2-ieee.
4913         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4914         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4915
4916         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4917         * m4/log2-ieee.m4: New file.
4918         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4919         whether log2 works with a minus zero argument. Replace it if not.
4920         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4921         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4922         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4923
4924         Tests for module 'log2l-ieee'.
4925         * modules/log2l-ieee-tests: New file.
4926         * tests/test-log2l-ieee.c: New file.
4927
4928         New module 'log2l-ieee'.
4929         * modules/log2l-ieee: New file.
4930
4931         Tests for module 'log2-ieee'.
4932         * modules/log2-ieee-tests: New file.
4933         * tests/test-log2-ieee.c: New file.
4934
4935         New module 'log2-ieee'.
4936         * modules/log2-ieee: New file.
4937
4938         Tests for module 'log2f-ieee'.
4939         * modules/log2f-ieee-tests: New file.
4940         * tests/test-log2f-ieee.c: New file.
4941         * tests/test-log2-ieee.h: New file.
4942
4943         New module 'log2f-ieee'.
4944         * modules/log2f-ieee: New file.
4945
4946 2012-03-11  Bruno Haible  <bruno@clisp.org>
4947
4948         Tests for module 'log2l'.
4949         * modules/log2l-tests: New file.
4950         * tests/test-log2l.c: New file.
4951
4952         New module 'log2l'.
4953         * lib/math.in.h (log2l): New declaration.
4954         * lib/log2l.c: New file.
4955         * m4/log2l.m4: New file.
4956         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4958         REPLACE_LOG2L.
4959         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4960         REPLACE_LOG2L.
4961         * modules/log2l: New file.
4962         * tests/test-math-c++.cc: Check the declaration of log2l.
4963         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4964         and OSF/1 problems.
4965
4966 2012-03-11  Bruno Haible  <bruno@clisp.org>
4967
4968         Tests for module 'log2f'.
4969         * modules/log2f-tests: New file.
4970         * tests/test-log2f.c: New file.
4971
4972         New module 'log2f'.
4973         * lib/math.in.h (log2f): New declaration.
4974         * lib/log2f.c: New file.
4975         * m4/log2f.m4: New file.
4976         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4978         REPLACE_LOG2F.
4979         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4980         REPLACE_LOG2F.
4981         * modules/log2f: New file.
4982         * tests/test-math-c++.cc: Check the declaration of log2f.
4983         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4984         and OSF/1 and Cygwin problems.
4985
4986 2012-03-11  Bruno Haible  <bruno@clisp.org>
4987
4988         Tests for module 'log2'.
4989         * modules/log2-tests: New file.
4990         * tests/test-log2.c: New file.
4991         * tests/test-log2.h: New file.
4992
4993         New module 'log2'.
4994         * lib/math.in.h (log2): New declaration.
4995         * lib/log2.c: New file.
4996         * m4/log2.m4: New file.
4997         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4999         REPLACE_LOG2.
5000         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5001         REPLACE_LOG2.
5002         * modules/log2: New file.
5003         * tests/test-math-c++.cc: Check the declaration of log2.
5004         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5005         and OSF/1 and Cygwin problems.
5006
5007 2012-03-11  Bruno Haible  <bruno@clisp.org>
5008
5009         exp2* tests: More tests.
5010         * tests/test-exp2.h (test_function): Test all integral arguments that
5011         don't need to overflow or denormalized numbers.
5012         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5013         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5014         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5015
5016 2012-03-10  Bruno Haible  <bruno@clisp.org>
5017
5018         log1pl-ieee: Work around test failure on AIX 7.1.
5019         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5020
5021         log1pl-ieee: Work around test failure on IRIX 6.5.
5022         * m4/log1pl-ieee.m4: New file.
5023         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5024         test whether log1pl works with a minus zero argument. Replace it if
5025         not.
5026         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5028         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5029         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5030         (Depends-on): Update conditions.
5031         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5032         m4/signbit.m4.
5033         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5034         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5035
5036         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5037         * m4/log1pf-ieee.m4: New file.
5038         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5039         test whether log1pf works with a minus zero argument. Replace it if
5040         not.
5041         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5042         m4/signbit.m4.
5043         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5044         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5045
5046         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5047         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5048         (configure.ac): Require gl_FUNC_LOG1PF.
5049
5050         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5051         * m4/log1p-ieee.m4: New file.
5052         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5053         whether log1p works with a minus zero argument. Replace it if not.
5054         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5056         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5057         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5058         (Depends-on): Update conditions.
5059         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5060         m4/signbit.m4.
5061         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5062         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5063
5064         Tests for module 'log1pl-ieee'.
5065         * modules/log1pl-ieee-tests: New file.
5066         * tests/test-log1pl-ieee.c: New file.
5067
5068         New module 'log1pl-ieee'.
5069         * modules/log1pl-ieee: New file.
5070
5071         Tests for module 'log1p-ieee'.
5072         * modules/log1p-ieee-tests: New file.
5073         * tests/test-log1p-ieee.c: New file.
5074
5075         New module 'log1p-ieee'.
5076         * modules/log1p-ieee: New file.
5077
5078         Tests for module 'log1pf-ieee'.
5079         * modules/log1pf-ieee-tests: New file.
5080         * tests/test-log1pf-ieee.c: New file.
5081         * tests/test-log1p-ieee.h: New file.
5082
5083         New module 'log1pf-ieee'.
5084         * modules/log1pf-ieee: New file.
5085
5086 2012-03-10  Bruno Haible  <bruno@clisp.org>
5087
5088         Tests for module 'log1pl'.
5089         * modules/log1pl-tests: New file.
5090         * tests/test-log1pl.c: New file.
5091
5092         New module 'log1pl'.
5093         * lib/math.in.h (log1pl): New declaration.
5094         * lib/log1pl.c: New file.
5095         * m4/log1pl.m4: New file.
5096         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5098         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5099         * modules/log1pl: New file.
5100         * tests/test-math-c++.cc: Check the declaration of log1pl.
5101         * doc/posix-functions/log1pl.texi: Mention the new module.
5102
5103 2012-03-10  Bruno Haible  <bruno@clisp.org>
5104
5105         Tests for module 'log1pf'.
5106         * modules/log1pf-tests: New file.
5107         * tests/test-log1pf.c: New file.
5108
5109         New module 'log1pf'.
5110         * lib/math.in.h (log1pf): New declaration.
5111         * lib/log1pf.c: New file.
5112         * m4/log1pf.m4: New file.
5113         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5115         REPLACE_LOG1PF.
5116         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5117         REPLACE_LOG1PF.
5118         * modules/log1pf: New file.
5119         * tests/test-math-c++.cc: Check the declaration of log1pf.
5120         * doc/posix-functions/log1pf.texi: Mention the new module.
5121
5122 2012-03-10  Bruno Haible  <bruno@clisp.org>
5123
5124         log1p tests: More tests.
5125         * tests/test-log1p.h: New file.
5126         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5127         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5128         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5129         (main): Invoke test_function.
5130
5131         log1p: Provide replacement for Minix and MSVC.
5132         * lib/math.in.h (log1p): New declaration.
5133         * lib/log1p.c: New file.
5134         * m4/log1p.m4: New file.
5135         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5137         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5138         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5139         (Depends-on): Add math, isnand, log, round.
5140         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5141         HAVE_LOG1P is 0.
5142         * tests/test-math-c++.cc: Check the declaration of log1p.
5143         * doc/posix-functions/log1p.texi: Mention the replacement.
5144
5145 2012-03-10  Bruno Haible  <bruno@clisp.org>
5146
5147         math tests: Small simplification.
5148         * tests/test-exp.h (test_function): Use the same err_bound for
5149         'double' on platforms with sizeof (long double) == sizeof (double)
5150         than on platforms with sizeof (long double) > sizeof (double).
5151         * tests/test-exp2.h (test_function): Likewise.
5152         * tests/test-expm1.h (test_function): Likewise.
5153         * tests/test-log.h (test_function): Likewise.
5154
5155 2012-03-10  Bruno Haible  <bruno@clisp.org>
5156
5157         Fix some comments.
5158         * lib/expl.c: Fix an ambiguous comment.
5159         * lib/expm1.c: Likewise.
5160         * lib/expm1l.c: Likewise.
5161         * lib/exp2.c: Likewise.
5162         * lib/exp2l.c: Likewise.
5163
5164 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5165
5166         regex: allow inclusion of <regex.h> before <limits.h>
5167         Without this patch, portable programs had to include <limits.h> before
5168         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5169         I ran into this problem with a test version of GNU grep on Solaris 8.
5170         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5171         This is done conditionally so that this change can be merged
5172         back to glibc.
5173         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5174         using the included regex.
5175
5176         fts: depend on fdopendir
5177         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5178         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5179         problem was introduced when fdopendir was split out.
5180
5181 2012-03-10  Bruno Haible  <bruno@clisp.org>
5182
5183         Remove unused variables.
5184         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5185         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5186
5187 2012-03-10  Bruno Haible  <bruno@clisp.org>
5188
5189         isnanf-nolibm: Fix last commit.
5190         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5191
5192         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5193         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5194
5195 2012-03-10  Bruno Haible  <bruno@clisp.org>
5196
5197         logf-ieee: Work around test failure on NetBSD 5.1.
5198         * m4/logf-ieee.m4: New file.
5199         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5200         whether logf works with a negative argument. Replace it if not.
5201         * lib/logf.c (logf): For negative arguments, return NaN.
5202         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5203         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5204         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5205
5206         logf-ieee: Work around test failure on Solaris 9.
5207         * modules/logf-ieee (Depends-on): Add log-ieee.
5208         (configure.ac): Require gl_FUNC_LOGF.
5209
5210         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5211         * m4/log-ieee.m4: New file.
5212         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5213         log works with a negative argument. Replace it if not.
5214         * lib/log.c (log): For negative arguments, return NaN.
5215         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5216         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5217         * doc/posix-functions/log.texi: Mention the log-ieee module.
5218
5219         Tests for module 'logl-ieee'.
5220         * modules/logl-ieee-tests: New file.
5221         * tests/test-logl-ieee.c: New file.
5222
5223         New module 'logl-ieee'.
5224         * modules/logl-ieee: New file.
5225
5226         Tests for module 'log-ieee'.
5227         * modules/log-ieee-tests: New file.
5228         * tests/test-log-ieee.c: New file.
5229
5230         New module 'log-ieee'.
5231         * modules/log-ieee: New file.
5232
5233         Tests for module 'logf-ieee'.
5234         * modules/logf-ieee-tests: New file.
5235         * tests/test-logf-ieee.c: New file.
5236         * tests/test-log-ieee.h: New file.
5237
5238         New module 'logf-ieee'.
5239         * modules/logf-ieee: New file.
5240
5241 2012-03-10  Bruno Haible  <bruno@clisp.org>
5242
5243         log: Fix bug introduced on 2012-03-09.
5244         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5245
5246 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5247
5248         timer-time: link explicitly with pthreads on glibc
5249         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5250         to support static linking, when newer glibc is
5251         detected, as that contains pthread emulation of
5252         POSIX timer functions where required.
5253         * modules/timer-time: Depend on threadlib to
5254         pull in the appropriate library to link.
5255
5256 2012-03-10  Bruno Haible  <bruno@clisp.org>
5257
5258         log* tests: More tests.
5259         * tests/test-log.h: New file.
5260         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5261         (main): Invoke test_function.
5262         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5263         (main): Invoke test_function.
5264         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5265         (main): Invoke test_function.
5266         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5267         tests/randomd.c.
5268         (Makefile.am): Add randomd.c to test_log_SOURCES.
5269         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5270         tests/randomf.c.
5271         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5272         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5273         tests/randoml.c.
5274         (Depends-on): Add 'float'.
5275         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5276
5277 2012-03-09  Bruno Haible  <bruno@clisp.org>
5278
5279         logl: Work around OSF/1 5.1 bug.
5280         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5281         * lib/logl.c (logl): If logl exists, use it and provide just the
5282         workaround.
5283         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5284         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5286         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5287         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5288         (Depends-on): Update conditions.
5289         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5290
5291 2012-03-09  Bruno Haible  <bruno@clisp.org>
5292
5293         logf: Work around OSF/1 5.1 bug.
5294         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5295         * lib/logf.c (logf): If logf exists, use it and provide just the
5296         workaround.
5297         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5298         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5300         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5301         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5302         (Depends-on): Update conditions.
5303         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5304
5305 2012-03-09  Bruno Haible  <bruno@clisp.org>
5306
5307         log: Work around OSF/1 5.1 bug.
5308         * lib/math.in.h (log): New declaration.
5309         * lib/log.c: New file.
5310         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5311         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5312         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5314         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5315         * modules/log (Files): Add lib/log.c.
5316         (Depends-on): Add math.
5317         (configure.ac): If REPLACE_LOG is 1, compile an override.
5318         * tests/test-math-c++.cc: Check the declaration of log.
5319         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5320
5321 2012-03-09  Jim Meyering  <meyering@redhat.com>
5322
5323         readtokens.c: adjust wording in a comment
5324         * lib/readtokens.c: Insert omitted "that" in a comment.
5325
5326 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         modechange: add notations +40, 00440, etc.
5329         * lib/modechange.c (mode_compile): Support new notations
5330         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5331
5332 2012-03-08  Bruno Haible  <bruno@clisp.org>
5333
5334         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5335         * m4/exp2l-ieee.m4: New file.
5336         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5337         test whether exp2l works with a NaN argument and with a negative
5338         infinity argument. Replace it if not.
5339         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5341         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5342         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5343         (Depends-on): Update conditions.
5344         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5345         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5346         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5347
5348         Tests for module 'exp2l-ieee'.
5349         * modules/exp2l-ieee-tests: New file.
5350         * tests/test-exp2l-ieee.c: New file.
5351
5352         New module 'exp2l-ieee'.
5353         * modules/exp2l-ieee: New file.
5354
5355         Tests for module 'exp2-ieee'.
5356         * modules/exp2-ieee-tests: New file.
5357         * tests/test-exp2-ieee.c: New file.
5358
5359         New module 'exp2-ieee'.
5360         * modules/exp2-ieee: New file.
5361
5362         Tests for module 'exp2f-ieee'.
5363         * modules/exp2f-ieee-tests: New file.
5364         * tests/test-exp2f-ieee.c: New file.
5365         * tests/test-exp2-ieee.h: New file.
5366
5367         New module 'exp2f-ieee'.
5368         * modules/exp2f-ieee: New file.
5369
5370 2012-03-08  Bruno Haible  <bruno@clisp.org>
5371
5372         Tests for module 'exp2l'.
5373         * modules/exp2l-tests: New file.
5374         * tests/test-exp2l.c: New file.
5375
5376         New module 'exp2l'.
5377         * lib/math.in.h (exp2l): New declaration.
5378         * lib/exp2l.c: New file.
5379         * lib/expl-table.c: New file, extracted from lib/expl.c.
5380         * lib/expl.c (gl_expl_table): New declaration.
5381         (expl): Remove expl_table. Update reference.
5382         * m4/exp2l.m4: New file.
5383         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5385         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5386         * modules/exp2l: New file.
5387         * modules/expl (Files): Add lib/expl-table.c.
5388         (configure.ac): Compile also expl-table.c.
5389         * tests/test-math-c++.cc: Check the declaration of exp2l.
5390         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5391         problem.
5392
5393 2012-03-08  Bruno Haible  <bruno@clisp.org>
5394
5395         Tests for module 'exp2f'.
5396         * modules/exp2f-tests: New file.
5397         * tests/test-exp2f.c: New file.
5398
5399         New module 'exp2f'.
5400         * lib/math.in.h (exp2f): New declaration.
5401         * lib/exp2f.c: New file.
5402         * m4/exp2f.m4: New file.
5403         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5405         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5406         * modules/exp2f: New file.
5407         * tests/test-math-c++.cc: Check the declaration of exp2f.
5408         * doc/posix-functions/exp2f.texi: Mention the new module and the
5409         IRIX problem.
5410
5411 2012-03-08  Bruno Haible  <bruno@clisp.org>
5412
5413         Tests for module 'exp2'.
5414         * modules/exp2-tests: New file.
5415         * tests/test-exp2.c: New file.
5416         * tests/test-exp2.h: New file.
5417
5418         New module 'exp2'.
5419         * lib/math.in.h (exp2): New declaration.
5420         * lib/exp2.c: New file.
5421         * m4/exp2.m4: New file.
5422         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5424         REPLACE_EXP2.
5425         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5426         REPLACE_EXP2.
5427         * modules/exp2: New file.
5428         * tests/test-math-c++.cc: Check the declaration of exp2.
5429         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5430         and OpenBSD problems.
5431
5432 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5433
5434         savedir: fix comment typo
5435         * lib/savedir.c (savedirstream): Fix typo in comment.
5436
5437 2012-03-08  Bruno Haible  <bruno@clisp.org>
5438
5439         test-readtokens.c: use const; remove unwarranted cast
5440         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5441
5442 2012-03-08  Bruno Haible  <bruno@clisp.org>
5443
5444         fmal: Avoid compilation error on AIX.
5445         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5446         AIX 5.2..7.1.
5447
5448 2012-03-08  Bruno Haible  <bruno@clisp.org>
5449
5450         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5451         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5452         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5453         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5454         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5455         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5456         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5457
5458 2012-03-08  Bruno Haible  <bruno@clisp.org>
5459
5460         remainderf: Override buggy system function on IRIX 6.5.
5461         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5462         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5463         when it exists.
5464         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5465
5466 2012-03-08  Jim Meyering  <meyering@redhat.com>
5467
5468         test-readtokens.c: avoid const-related compilation warnings
5469         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5470
5471 2012-03-07  Jim Meyering  <meyering@redhat.com>
5472             Bruno Haible  <bruno@clisp.org>
5473
5474         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5475         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5476         tests/randomd.c.
5477         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5478         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5479         tests/randoml.c.
5480         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5481
5482 2012-03-07  Bruno Haible  <bruno@clisp.org>
5483
5484         expm1l: Avoid compilation error on AIX.
5485         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5486         AIX 5.2..7.1.
5487
5488 2012-03-07  Bruno Haible  <bruno@clisp.org>
5489
5490         expm1l: Don't override undeclared system function on IRIX 6.5.
5491         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5492         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5493         it exists. Set HAVE_DECL_EXPM1L.
5494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5495         HAVE_EXPM1L.
5496         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5497         HAVE_EXPM1L.
5498         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5499
5500 2012-03-07  Bruno Haible  <bruno@clisp.org>
5501
5502         remainderl: Don't override undeclared system function on IRIX 6.5.
5503         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5504         HAVE_REMAINDERL.
5505         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5506         declared when it exists. Set HAVE_DECL_REMAINDERL.
5507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5508         not HAVE_REMAINDERL.
5509         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5510         HAVE_REMAINDERL.
5511         * doc/posix-functions/remainderl.texi: Mention missing declaration
5512         problem.
5513
5514 2012-03-07  Bruno Haible  <bruno@clisp.org>
5515
5516         rintf: Don't override undeclared system function on IRIX 6.5.
5517         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5518         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5519         exists. Set HAVE_DECL_RINTF.
5520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5521         HAVE_RINTF.
5522         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5523         HAVE_RINTF.
5524         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5525
5526 2012-03-07  Bruno Haible  <bruno@clisp.org>
5527
5528         roundl: Avoid compilation error on AIX.
5529         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5530         AIX 5.2..7.1.
5531
5532 2012-03-07  Bruno Haible  <bruno@clisp.org>
5533
5534         roundl: Don't override undeclared system function on IRIX 6.5.
5535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5536         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5537         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5538         * modules/roundl (configure.ac): For replacement code, test
5539         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5540         (Depends-on): Update conditions.
5541         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5542
5543 2012-03-07  Bruno Haible  <bruno@clisp.org>
5544
5545         roundf: Don't override undeclared system function on IRIX 6.5.
5546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5547         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5548         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5549         * modules/roundf (configure.ac): For replacement code, test
5550         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5551         (Depends-on): Update conditions.
5552         * modules/roundf-ieee (Depends-on): Update conditions.
5553         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5554
5555 2012-03-07  Bruno Haible  <bruno@clisp.org>
5556
5557         round: Don't override undeclared system function on IRIX 6.5.
5558         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5559         argument.
5560         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5561         also when it is not declared. Set HAVE_ROUND. For replacement code,
5562         test HAVE_ROUND, not HAVE_DECL_ROUND.
5563         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5564         not HAVE_DECL_ROUND.
5565         (Depends-on): Update conditions.
5566         * modules/round-ieee (Depends-on): Update conditions.
5567         * doc/posix-functions/round.texi: Mention the IRIX problem.
5568
5569 2012-03-07  Bruno Haible  <bruno@clisp.org>
5570
5571         copysignf: Don't override undeclared system function on IRIX 6.5.
5572         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5573         HAVE_COPYSIGNF.
5574         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5575         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5577         not HAVE_COPYSIGNF.
5578         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5579         HAVE_COPYSIGNF.
5580         * doc/posix-functions/copysignf.texi: Mention missing declaration
5581         problem.
5582
5583 2012-03-07  Jim Meyering  <meyering@redhat.com>
5584
5585         readtokens: add tests
5586         * modules/readtokens-tests: New file.
5587         * tests/test-readtokens.c: New file.
5588
5589 2012-03-07  Jim Meyering  <meyering@redhat.com>
5590
5591         quotearg: the module must now include quote.h
5592         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5593         So must the module.
5594         * modules/quotearg (Files): Add quote.h.
5595
5596 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5597
5598         readtokens: avoid core dumps with unusual calling patterns
5599         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5600         * lib/readtokens.c: Include limits.h.
5601         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5602         (readtoken): Don't cache the delimiters; the cache code was buggy
5603         if !delim && saved_delim, or if the new n_delim differs from the old.
5604         Also, it wasn't thread-safe.
5605
5606 2012-03-07  Bruno Haible  <bruno@clisp.org>
5607
5608         quote: Adhere to common module description layout.
5609         * modules/quote (Makefile.am): Add back empty section.
5610
5611 2012-03-06  Akim Demaille  <demaille@gostai.com>
5612
5613         quote: fuse into quotearg
5614         This patch is made for the benefit of Bison.
5615         quote does not leave the choice of the quoting style to the user.
5616         quoting_style provides poor customizability, yet quoting_options,
5617         which is very rich, is hidden inside quotearg.c.  So in order to
5618         allow quote customization, move its implementation to quotearg.c.
5619         * lib/quote.c: Remove.
5620         * modules/quote: Adjust.
5621         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5622         warning: provide all the members of literal structs.
5623         (quote_quoting_options): New.
5624         (quote, quote_n): Import implementation from quote.c.
5625         * lib/quote.h: Import the comments from quote.c.
5626         (quote_quoting_options): New.
5627
5628 2012-03-06  Bruno Haible  <bruno@clisp.org>
5629
5630         Tests for module 'expm1l-ieee'.
5631         * modules/expm1l-ieee-tests: New file.
5632         * tests/test-expm1l-ieee.c: New file.
5633
5634         New module 'expm1l-ieee'.
5635         * modules/expm1l-ieee: New file.
5636
5637         Tests for module 'expm1f-ieee'.
5638         * modules/expm1f-ieee-tests: New file.
5639         * tests/test-expm1f-ieee.c: New file.
5640
5641         New module 'expm1f-ieee'.
5642         * modules/expm1f-ieee: New file.
5643
5644         Tests for module 'expm1-ieee'.
5645         * modules/expm1-ieee-tests: New file.
5646         * tests/test-expm1-ieee.c: New file.
5647         * tests/test-expm1-ieee.h: New file.
5648
5649         New module 'expm1-ieee'.
5650         * modules/expm1-ieee: New file.
5651         * m4/expm1-ieee.m4: New file.
5652         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5653         whether expm1 works with a minus zero argument. Replace it if not.
5654         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5656         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5657         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5658         (Depends-on): Update conditions.
5659         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5660         AIX problem.
5661
5662 2012-03-06  Bruno Haible  <bruno@clisp.org>
5663
5664         Work around expm1f bug on IRIX 6.5.
5665         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5666         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5667         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5668         not work.
5669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5670         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5671         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5672         (Depends-on): Update conditions.
5673         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5674
5675 2012-03-06  Bruno Haible  <bruno@clisp.org>
5676
5677         Tests for module 'expm1l'.
5678         * modules/expm1l-tests: New file.
5679         * tests/test-expm1l.c: New file.
5680
5681         New module 'expm1l'.
5682         * lib/math.in.h (expm1l): New declaration.
5683         * lib/expm1l.c: New file.
5684         * m4/expm1l.m4: New file.
5685         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5687         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5688         * modules/expm1l: New file.
5689         * tests/test-math-c++.cc: Check the declaration of expm1l.
5690         * doc/posix-functions/expm1l.texi: Mention the new module.
5691
5692 2012-03-06  Bruno Haible  <bruno@clisp.org>
5693
5694         Tests for module 'expm1f'.
5695         * modules/expm1f-tests: New file.
5696         * tests/test-expm1f.c: New file.
5697
5698         New module 'expm1f'.
5699         * lib/math.in.h (expm1f): New declaration.
5700         * lib/expm1f.c: New file.
5701         * m4/expm1f.m4: New file.
5702         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5704         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5705         * modules/expm1f: New file.
5706         * tests/test-math-c++.cc: Check the declaration of expm1f.
5707         * doc/posix-functions/expm1f.texi: Mention the new module.
5708
5709 2012-03-06  Bruno Haible  <bruno@clisp.org>
5710
5711         Tests for module 'expm1'.
5712         * modules/expm1-tests: New file.
5713         * tests/test-expm1.c: New file.
5714         * tests/test-expm1.h: New file.
5715
5716         New module 'expm1'.
5717         * lib/math.in.h (expm1): New declaration.
5718         * lib/expm1.c: New file.
5719         * m4/expm1.m4: New file.
5720         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5722         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5723         * modules/expm1: New file.
5724         * tests/test-math-c++.cc: Check the declaration of expm1.
5725         * doc/posix-functions/expm1.texi: Mention the new module.
5726
5727 2012-03-06  Bruno Haible  <bruno@clisp.org>
5728
5729         math: Ensure declarations of math functions.
5730         * modules/acosf (Depends-on): Add 'extensions'.
5731         * modules/asinf (Depends-on): Likewise.
5732         * modules/atan2f (Depends-on): Likewise.
5733         * modules/atanf (Depends-on): Likewise.
5734         * modules/cbrt (Depends-on): Likewise.
5735         * modules/cbrtf (Depends-on): Likewise.
5736         * modules/cbrtl (Depends-on): Likewise.
5737         * modules/copysignf (Depends-on): Likewise.
5738         * modules/copysignl (Depends-on): Likewise.
5739         * modules/cosf (Depends-on): Likewise.
5740         * modules/coshf (Depends-on): Likewise.
5741         * modules/expf (Depends-on): Likewise.
5742         * modules/fabsf (Depends-on): Likewise.
5743         * modules/fabsl (Depends-on): Likewise.
5744         * modules/fmaf (Depends-on): Likewise.
5745         * modules/fmal (Depends-on): Likewise.
5746         * modules/fmodf (Depends-on): Likewise.
5747         * modules/fmodl (Depends-on): Likewise.
5748         * modules/frexpf (Depends-on): Likewise.
5749         * modules/frexpl (Depends-on): Likewise.
5750         * modules/hypot (Depends-on): Likewise.
5751         * modules/hypotf (Depends-on): Likewise.
5752         * modules/hypotl (Depends-on): Likewise.
5753         * modules/ldexpf (Depends-on): Likewise.
5754         * modules/ldexpl (Depends-on): Likewise.
5755         * modules/log10f (Depends-on): Likewise.
5756         * modules/log10l (Depends-on): Likewise.
5757         * modules/log1p (Depends-on): Likewise.
5758         * modules/logb (Depends-on): Likewise.
5759         * modules/logf (Depends-on): Likewise.
5760         * modules/modff (Depends-on): Likewise.
5761         * modules/modfl (Depends-on): Likewise.
5762         * modules/powf (Depends-on): Likewise.
5763         * modules/remainderf (Depends-on): Likewise.
5764         * modules/remainderl (Depends-on): Likewise.
5765         * modules/rintf (Depends-on): Likewise.
5766         * modules/rintl (Depends-on): Likewise.
5767         * modules/sinf (Depends-on): Likewise.
5768         * modules/sinhf (Depends-on): Likewise.
5769         * modules/sqrtf (Depends-on): Likewise.
5770         * modules/tanf (Depends-on): Likewise.
5771         * modules/tanhf (Depends-on): Likewise.
5772         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5773         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5774         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5775         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5776         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5777         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5778         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5779         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5780         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5781         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5782         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5783         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5784         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5785         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5786         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5787         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5788         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5789         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5790         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5791         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5792         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5793         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5794         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5795         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5797         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5798         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5799         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5800         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5801         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5802         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5803         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5804         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5805         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5806         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5807         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5808         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5809         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5810         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5811         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5812         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5813
5814 2012-03-06  Bruno Haible  <bruno@clisp.org>
5815
5816         math: Update module names in warnings.
5817         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5818         tanl): Use specific module name in warn-on-use warning.
5819
5820 2012-03-06  Bruno Haible  <bruno@clisp.org>
5821
5822         expl: Simplify computation.
5823         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5824
5825 2012-03-05  Bruno Haible  <bruno@clisp.org>
5826
5827         exp* tests: More tests.
5828         * tests/test-exp.h: New file.
5829         * tests/test-exp.c: Include <float.h> and test-exp.h.
5830         (main): Invoke test_function.
5831         * tests/test-expf.c: Include <float.h> and test-exp.h.
5832         (main): Invoke test_function.
5833         * tests/test-expl.c: Include <float.h> and test-exp.h.
5834         (main): Invoke test_function.
5835         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5836         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5837         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5838         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5839         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5840         (Depends-on): Add 'float'.
5841         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5842
5843         expl: Fix precision of computed result.
5844         * lib/expl.c: Completely rewritten.
5845         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5846         (Maintainer): Add me.
5847         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5848
5849 2012-03-05  Bruno Haible  <bruno@clisp.org>
5850
5851         cbrt* tests: More tests.
5852         * tests/test-cbrt.h: New file.
5853         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5854         (main): Invoke test_function.
5855         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5856         (main): Invoke test_function.
5857         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5858         (main): Invoke test_function.
5859         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5860         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5861         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5862         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5863         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5864         (Depends-on): Add 'float'.
5865         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5866
5867 2012-03-05  Bruno Haible  <bruno@clisp.org>
5868
5869         hypot* tests: More tests.
5870         * tests/test-hypot.h: New file, partially extracted from
5871         tests/test-hypotl.c.
5872         * tests/test-hypot.c: Include test-hypot.h.
5873         (main): Invoke test_function.
5874         * tests/test-hypotf.c: Include test-hypot.h.
5875         (main): Invoke test_function.
5876         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5877         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5878         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5879         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5880         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5881         tests/randomf.c.
5882         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5883         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5884         tests/randoml.c.
5885         (Depends-on): Add 'fpucw', 'float'.
5886         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5887
5888 2012-03-05  Bruno Haible  <bruno@clisp.org>
5889
5890         fpucw: Doc about FreeBSD.
5891         * lib/fpucw.h: Mention FreeBSD in comments.
5892
5893 2012-03-04  Bruno Haible  <bruno@clisp.org>
5894
5895         sqrt* tests: More tests.
5896         * tests/test-sqrt.h: New file.
5897         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5898         (main): Invoke test_function.
5899         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5900         (main): Invoke test_function.
5901         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5902         (main): Invoke test_function.
5903         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5904         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5905         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5906         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5907         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5908         (Depends-on): Add 'float'.
5909         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5910
5911 2012-03-04  Bruno Haible  <bruno@clisp.org>
5912
5913         remainder* tests: More tests.
5914         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5915         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5916         (main): Invoke test_function.
5917         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5918         (main): Invoke test_function.
5919         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5920         (main): Invoke test_function.
5921         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5922         tests/randomd.c.
5923         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5924         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5925         tests/randomf.c.
5926         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5927         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5928         tests/randoml.c.
5929         (Depends-on): Add 'float'.
5930         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5931
5932 2012-03-04  Bruno Haible  <bruno@clisp.org>
5933
5934         remainder, remainderf, remainderl: Fix computation for large quotients.
5935         * lib/remainder.c: Completely rewritten.
5936         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5937         USE_FLOAT.
5938         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5939         USE_LONG_DOUBLE.
5940         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5941         isnand, isinf. Remove round, fma.
5942         * modules/remainderf (Files): Add lib/remainder.c.
5943         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5944         Remove roundf, fmaf.
5945         * modules/remainderl (Files): Add lib/remainder.c.
5946         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5947         isinf. Remove roundl, fmal.
5948         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5949         REMAINDER_LIBM.
5950         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5951         REMAINDERF_LIBM.
5952         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5953         REMAINDERL_LIBM.
5954
5955 2012-03-04  Bruno Haible  <bruno@clisp.org>
5956
5957         fmod* tests: More tests.
5958         * tests/test-fmod.h (my_ldexp): New function.
5959         (test_function): Reduce amount of random numbers to test. Add tests
5960         of very large quotients x / y.
5961         * tests/test-fmod.c (MAX_EXP): New macro.
5962         * tests/test-fmodf.c (MAX_EXP): Likewise.
5963         * tests/test-fmodl.c (MAX_EXP): Likewise.
5964
5965 2012-03-04  Bruno Haible  <bruno@clisp.org>
5966
5967         fmod, fmodl: Fix computation for large quotients x / y.
5968         * lib/fmod.c: Completely rewritten.
5969         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5970         USE_LONG_DOUBLE.
5971         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5972         isnand. Remove fma.
5973         * modules/fmodl (Files): Add lib/fmod.c.
5974         (Depends-on): Add float, isfinite, signbit, fabsl,
5975         frexpl, ldexpl, isnanl. Remove fma.
5976         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5977         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5978
5979 2012-03-03  Bruno Haible  <bruno@clisp.org>
5980
5981         fmod* tests: More tests.
5982         * tests/test-fmod.h: New file.
5983         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5984         (main): Invoke test_function.
5985         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5986         (main): Invoke test_function.
5987         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5988         (main): Invoke test_function.
5989         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5990         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5991         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5992         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5993         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5994         (Depends-on): Add 'float'.
5995         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5996
5997 2012-03-03  Bruno Haible  <bruno@clisp.org>
5998
5999         rint* tests: More tests.
6000         * tests/test-rint.h: New file, partially extracted from
6001         tests/test-rintl.c.
6002         * tests/test-rint.c: Include test-rint.h.
6003         (main): Invoke test_function.
6004         * tests/test-rintf.c: Include test-rint.h.
6005         (main): Invoke test_function.
6006         * tests/test-rintl.c: Include test-rint.h.
6007         (main): Invoke test_function.
6008         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6009         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6010         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6011         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6012         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6013         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6014
6015 2012-03-03  Bruno Haible  <bruno@clisp.org>
6016
6017         modf* tests: More tests.
6018         * tests/test-modf.h: New file.
6019         * tests/test-modf.c: Include <float.h> and test-modf.h.
6020         (main): Invoke test_function.
6021         * tests/test-modff.c: Include <float.h> and test-modf.h.
6022         (main): Invoke test_function.
6023         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6024         (main): Invoke test_function.
6025         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6026         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6027         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6028         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6029         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6030         (Depends-on): Add 'float'.
6031         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6032
6033 2012-03-03  Bruno Haible  <bruno@clisp.org>
6034
6035         fabs* tests: More tests.
6036         * tests/test-fabs.h: New file, partially extracted from
6037         tests/test-fabsl.c.
6038         * tests/test-fabs.c (RANDOM): New macro.
6039         * tests/test-fabsf.c (RANDOM): New macro.
6040         * tests/test-fabsl.c (RANDOM): New macro.
6041         * modules/fabs-tests (Files): Add tests/randomd.c.
6042         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6043         * modules/fabsf-tests (Files): Add tests/randomf.c.
6044         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6045         * modules/fabsl-tests (Files): Add tests/randoml.c.
6046         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6047
6048 2012-03-03  Bruno Haible  <bruno@clisp.org>
6049
6050         ldexp* tests: More tests.
6051         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6052         * tests/test-ldexp.c (RANDOM): New macro.
6053         * tests/test-ldexpf.c (RANDOM): New macro.
6054         * tests/test-ldexpl.c (RANDOM): New macro.
6055         * modules/ldexp-tests (Files): Add tests/randomd.c.
6056         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6057         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6058         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6059         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6060         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6061
6062 2012-03-03  Bruno Haible  <bruno@clisp.org>
6063
6064         frexp* tests: More tests.
6065         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6066         * tests/test-frexp.c (RANDOM): New macro.
6067         * tests/test-frexpf.c (RANDOM): New macro.
6068         * tests/test-frexpl.c (RANDOM): New macro.
6069         * modules/frexp-tests (Files): Add tests/randomd.c.
6070         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6071         * modules/frexpf-tests (Files): Add tests/randomf.c.
6072         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6073         * modules/frexpl-tests (Files): Add tests/randoml.c.
6074         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6075
6076 2012-03-03  Bruno Haible  <bruno@clisp.org>
6077
6078         Support for pseudo-random numbers in tests.
6079         * tests/randomf.c: New file.
6080         * tests/randomd.c: New file.
6081         * tests/randoml.c: New file.
6082         * tests/macros.h (randomf, randomd, randoml): New declarations.
6083
6084 2012-03-03  Bruno Haible  <bruno@clisp.org>
6085
6086         frexp* tests: Refactor.
6087         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6088         * tests/test-frexp.c: Include and use it.
6089         * tests/test-frexpf.c: Likewise.
6090         * tests/test-frexpl.c: Likewise.
6091         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6092         * modules/frexpf-tests (Files): Likewise.
6093         * modules/frexpl-tests (Files): Likewise.
6094
6095 2012-03-02  Jim Meyering  <meyering@redhat.com>
6096
6097         maint: don't specify XZ_OPT=-9ev in dist-related rule
6098         Using xz's -9 option is warranted only if you have a very large
6099         tarball (see xz's documentation for the sizes vs. presets), and
6100         requires 64MiB of memory at decompression time.
6101         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6102         Automake's default of just "-e" is fine.  Override on a
6103         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6104
6105 2012-03-01  Eric Blake  <eblake@redhat.com>
6106
6107         maint.mk: allow announcement for non-gnulib project
6108         * maint.mk (announcement): Skip gnulib version if not used.
6109
6110 2012-03-01  Jim Meyering  <meyering@redhat.com>
6111
6112         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6113         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6114         envvar settings cannot interfere.  Otherwise, setting envvars like
6115         prohibit=foo require=bar, etc. would cause spurious test failures.
6116
6117 2012-03-01  Eric Blake  <eblake@redhat.com>
6118
6119         maint.mk: add per-line exclusions to prohibitions
6120         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6121         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6122         (sc_const_long_option): Use it.
6123
6124 2012-03-01  Bruno Haible  <bruno@clisp.org>
6125
6126         Tests for module 'expl-ieee'.
6127         * modules/expl-ieee-tests: New file.
6128         * tests/test-expl-ieee.c: New file.
6129
6130         New module 'expl-ieee'.
6131         * modules/expl-ieee: New file.
6132
6133         Tests for module 'exp-ieee'.
6134         * modules/exp-ieee-tests: New file.
6135         * tests/test-exp-ieee.c: New file.
6136
6137         New module 'exp-ieee'.
6138         * modules/exp-ieee: New file.
6139
6140         Tests for module 'expf-ieee'.
6141         * modules/expf-ieee-tests: New file.
6142         * tests/test-expf-ieee.c: New file.
6143         * tests/test-exp-ieee.h: New file.
6144
6145         New module 'expf-ieee'.
6146         * modules/expf-ieee: New file.
6147
6148 2012-02-29  Bruno Haible  <bruno@clisp.org>
6149
6150         cbrtl-ieee: Work around test failure on IRIX 6.5.
6151         * m4/cbrtl-ieee.m4: New file.
6152         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6153         test whether cbrtl works with a minus zero argument. Replace it if not.
6154         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6156         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6157         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6158         (Depends-on): Update conditions.
6159         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6160         m4/signbit.m4.
6161         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6162         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6163         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6164
6165         Tests for module 'cbrtl-ieee'.
6166         * modules/cbrtl-ieee-tests: New file.
6167         * tests/test-cbrtl-ieee.c: New file.
6168
6169         New module 'cbrtl-ieee'.
6170         * modules/cbrtl-ieee: New file.
6171
6172         Tests for module 'cbrt-ieee'.
6173         * modules/cbrt-ieee-tests: New file.
6174         * tests/test-cbrt-ieee.c: New file.
6175
6176         New module 'cbrt-ieee'.
6177         * modules/cbrt-ieee: New file.
6178
6179         Tests for module 'cbrtf-ieee'.
6180         * modules/cbrtf-ieee-tests: New file.
6181         * tests/test-cbrtf-ieee.c: New file.
6182         * tests/test-cbrt-ieee.h: New file.
6183
6184         New module 'cbrtf-ieee'.
6185         * modules/cbrtf-ieee: New file.
6186
6187 2012-02-29  Bruno Haible  <bruno@clisp.org>
6188
6189         cbrtf: Work around bug in IRIX 6.5 system function.
6190         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6191         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6192         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6193         work.
6194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6195         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6196         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6197         (Depends-on): Update conditions.
6198         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6199
6200 2012-02-29  Bruno Haible  <bruno@clisp.org>
6201
6202         Tests for module 'cbrtl'.
6203         * modules/cbrtl-tests: New file.
6204         * tests/test-cbrtl.c: New file.
6205
6206         New module 'cbrtl'.
6207         * lib/math.in.h (cbrtl): New declaration.
6208         * lib/cbrtl.c: New file.
6209         * m4/cbrtl.m4: New file.
6210         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6212         HAVE_DECL_CBRTL.
6213         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6214         HAVE_DECL_CBRTL.
6215         * modules/cbrtl: New file.
6216         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6217         * doc/posix-functions/cbrtl.texi: Mention the new module.
6218
6219 2012-02-29  Bruno Haible  <bruno@clisp.org>
6220
6221         Tests for module 'cbrtf'.
6222         * modules/cbrtf-tests: New file.
6223         * tests/test-cbrtf.c: New file.
6224
6225         New module 'cbrtf'.
6226         * lib/math.in.h (cbrtf): New declaration.
6227         * lib/cbrtf.c: New file.
6228         * m4/cbrtf.m4: New file.
6229         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6231         HAVE_DECL_CBRTF.
6232         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6233         HAVE_DECL_CBRTF.
6234         * modules/cbrtf: New file.
6235         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6236         * doc/posix-functions/cbrtf.texi: Mention the new module.
6237
6238 2012-02-29  Bruno Haible  <bruno@clisp.org>
6239
6240         cbrt: Provide replacement on MSVC and Minix.
6241         * lib/math.in.h (cbrt): New declaration.
6242         * lib/cbrt.c: New file.
6243         * m4/cbrt.m4: New file.
6244         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6246         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6247         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6248         (Depends-on): Add dependencies.
6249         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6250         * tests/test-math-c++.cc: Check the declaration of cbrt.
6251         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6252         replacement.
6253
6254 2012-02-29  Bruno Haible  <bruno@clisp.org>
6255
6256         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6257         * m4/hypotl-ieee.m4: New file.
6258         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6259         test whether hypotl works with mixed NaN and Infinity arguments.
6260         Replace it if not.
6261         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6263         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6264         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6265         (Depends-on): Update conditions.
6266         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6267         (Depends-on): Add hypot-ieee.
6268         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6269         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6270
6271         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6272         * m4/hypotf-ieee.m4: New file.
6273         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6274         test whether hypotf works with mixed NaN and Infinity arguments.
6275         Replace it if not.
6276         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6277         (Depends-on): Add hypot-ieee.
6278         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6279         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6280
6281         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6282         * lib/math.in.h (hypot): New declaration.
6283         * lib/hypot.c: New file.
6284         * m4/hypot-ieee.m4: New file.
6285         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6286         whether hypot works with mixed NaN and Infinity arguments. Replace it
6287         if not.
6288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6289         REPLACE_HYPOT.
6290         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6291         * modules/hypot (Files): Add lib/hypot.c.
6292         (Depends-on): Add dependencies.
6293         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6294         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6295         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6296         * tests/test-math-c++.cc: Check the declaration of hypot.
6297         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6298
6299         Tests for module 'hypotl-ieee'.
6300         * modules/hypotl-ieee-tests: New file.
6301         * tests/test-hypotl-ieee.c: New file.
6302
6303         New module 'hypotl-ieee'.
6304         * modules/hypotl-ieee: New file.
6305
6306         Tests for module 'hypot-ieee'.
6307         * modules/hypot-ieee-tests: New file.
6308         * tests/test-hypot-ieee.c: New file.
6309
6310         New module 'hypot-ieee'.
6311         * modules/hypot-ieee: New file.
6312
6313         Tests for module 'hypotf-ieee'.
6314         * modules/hypotf-ieee-tests: New file.
6315         * tests/test-hypotf-ieee.c: New file.
6316         * tests/test-hypot-ieee.h: New file.
6317
6318         New module 'hypotf-ieee'.
6319         * modules/hypotf-ieee: New file.
6320
6321 2012-02-29  Bruno Haible  <bruno@clisp.org>
6322
6323         Remove unused variables.
6324         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6325         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6326         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6327         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6328
6329 2012-02-29  Eric Blake  <eblake@redhat.com>
6330
6331         termios: fix pid_t always, not just for tcgetsid
6332         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6333         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6334         just when building tcgetsid.
6335
6336 2012-02-29  Bruno Haible  <bruno@clisp.org>
6337
6338         Tests for module 'hypotl'.
6339         * modules/hypotl-tests: New file.
6340         * tests/test-hypotl.c: New file.
6341
6342         New module 'hypotl'.
6343         * lib/math.in.h (hypotl): New declaration.
6344         * lib/hypotl.c: New file.
6345         * m4/hypotl.m4: New file.
6346         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6348         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6349         * modules/hypotl: New file.
6350         * tests/test-math-c++.cc: Check the hypotl declaration.
6351         * doc/posix-functions/hypotl.texi: Mention the new module.
6352
6353 2012-02-29  Eric Blake  <eblake@redhat.com>
6354
6355         tcgetsid: fix cygwin header bug
6356         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6357
6358         docs: update cygwin progress
6359         * doc/posix-functions/llround.texi (llround): Added in cygwin
6360         1.7.8.
6361         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6362         * doc/glibc-functions/program_invocation_name.texi
6363         (program_invocation_name): Likewise.
6364         * doc/glibc-functions/program_invocation_short_name.texi
6365         (program_invocation_short_name): Likewise.
6366         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6367         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6368         Likewise.
6369         * doc/posix-functions/pthread_spin_destroy.texi
6370         (pthread_spin_destroy): Added in cygwin 1.7.10.
6371         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6372         Likewise.
6373         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6374         Likewise.
6375         * doc/posix-functions/pthread_spin_trylock.texi
6376         (pthread_spin_trylock): Likewise.
6377         * doc/posix-functions/pthread_spin_unlock.texi
6378         (pthread_spin_unlock): Likewise.
6379         * doc/posix-functions/pthread_setschedprio.texi
6380         (pthread_setschedprio): Likewise.
6381         * doc/posix-functions/pthread_attr_getstack.texi
6382         (pthread_attr_getstack): Likewise.
6383         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6384         (pthread_attr_getstackaddr): Likewise.
6385         * doc/glibc-functions/pthread_getattr_np.texi
6386         (pthread_getattr_np): Likewise.
6387         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6388         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6389         * doc/posix-functions/clock_settime.texi (clock_settime):
6390         Likewise.
6391         * doc/posix-functions/pthread_attr_getguardsize.texi
6392         (pthread_attr_getguardsize): Likewise.
6393         * doc/posix-functions/pthread_attr_setguardsize.texi
6394         (pthread_attr_setguardsize): Likewise.
6395         * doc/posix-functions/pthread_attr_setstack.texi
6396         (pthread_attr_setstack): Likewise.
6397         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6398         (pthread_attr_setstackaddr): Likewise.
6399         * doc/posix-functions/clock_getcpuclockid.texi
6400         (clock_getcpuclockid): Likewise.
6401         * doc/posix-functions/pthread_getcpuclockid.texi
6402         (pthread_getcpuclockid): Likewise.
6403         * doc/glibc-functions/error.texi (error): Likewise.
6404         * doc/glibc-functions/error_at_line.texi (error_at_line):
6405         Likewise.
6406         * doc/glibc-functions/error_message_count.texi
6407         (error_message_count): Likewise.
6408         * doc/glibc-functions/error_one_per_line.texi
6409         (error_one_per_line): Likewise.
6410         * doc/glibc-functions/error_print_progname.texi
6411         (error_print_progname): Likewise.
6412         * doc/posix-functions/pthread_condattr_getclock.texi
6413         (pthread_condattr_getclock): Likewise.
6414         * doc/posix-functions/pthread_condattr_setclock.texi
6415         (pthread_condattr_setclock): Likewise.
6416         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6417         Likewise.
6418         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6419         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6420         * doc/glibc-functions/get_current_dir_name.texi
6421         (get_current_dir_name): Likewise.
6422         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6423         Likewise.
6424         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6425         wrong return type.
6426         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6427         1.7.11.
6428
6429 2012-02-29  Bruno Haible  <bruno@clisp.org>
6430
6431         Tests for module 'hypotf'.
6432         * modules/hypotf-tests: New file.
6433         * tests/test-hypotf.c: New file.
6434
6435         New module 'hypotf'.
6436         * lib/math.in.h (hypotf): New declaration.
6437         * lib/hypotf.c: New file.
6438         * m4/hypotf.m4: New file.
6439         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6441         REPLACE_HYPOTF.
6442         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6443         REPLACE_HYPOTF.
6444         * modules/hypotf: New file.
6445         * tests/test-math-c++.cc: Check the hypotf declaration.
6446         * doc/posix-functions/hypotf.texi: Mention the new module.
6447
6448         hypot: Prepare for hypotf module.
6449         * m4/hypot.m4: New file.
6450         * modules/hypot (Files): Add m4/hypot.m4.
6451         (configure.ac): Invoke gl_FUNC_HYPOT.
6452
6453 2012-02-29  Bruno Haible  <bruno@clisp.org>
6454
6455         hypot tests: More tests.
6456         * tests/test-hypot.c: Include <float.h>.
6457         (main): Add tests about overflow and underflow.
6458
6459 2012-02-29  Bruno Haible  <bruno@clisp.org>
6460
6461         math code: Add comments.
6462         * lib/acosl.c: Add comment about related glibc source files.
6463         * lib/asinl.c: Likewise.
6464         * lib/atanl.c: Likewise.
6465         * lib/expl.c: Likewise.
6466         * lib/logl.c: Likewise.
6467         * lib/sincosl.c: Likewise.
6468         * lib/sinl.c: Likewise.
6469         * lib/tanl.c: Likewise.
6470         * lib/trigl.c: Likewise.
6471         * lib/cosl.c: Likewise. Fix comments.
6472
6473 2012-02-28  Bruno Haible  <bruno@clisp.org>
6474
6475         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6476         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6477         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6478         HUGE_VALL are defined.
6479         (numeric_equald): Renamed from numeric_equal.
6480         (numeric_equalf, numeric_equall): New functions.
6481         (main): Check also HUGE_VALF, HUGE_VALL.
6482         * modules/math-tests (Files): Add tests/macros.h.
6483         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6484         HUGE_VALL.
6485
6486 2012-02-28  Bruno Haible  <bruno@clisp.org>
6487
6488         doc: Move ISO C11 feature notes into POSIX chapters.
6489         * doc/posix-functions/aligned_alloc.texi: Renamed from
6490         doc/glibc-functions/aligned_alloc.texi.
6491         * doc/posix-functions/quick_exit.texi: Renamed from
6492         doc/glibc-functions/quick_exit.texi.
6493         * doc/posix-headers/uchar.texi: Renamed from
6494         doc/glibc-headers/uchar.texi.
6495         * doc/posix-functions/c16rtomb.texi: Renamed from
6496         doc/glibc-functions/c16rtomb.texi.
6497         * doc/posix-functions/c32rtomb.texi: Renamed from
6498         doc/glibc-functions/c32rtomb.texi.
6499         * doc/posix-functions/mbrtoc16.texi: Renamed from
6500         doc/glibc-functions/mbrtoc16.texi.
6501         * doc/posix-functions/mbrtoc32.texi: Renamed from
6502         doc/glibc-functions/mbrtoc32.texi.
6503         * doc/gnulib.texi: Update.
6504         (Glibc uchar.h): Remove section.
6505         Suggested by Eric Blake.
6506
6507 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6508
6509         stdnoreturn: port to MSVC better
6510         MSVC standard headers use __declspec(noreturn), so #define noreturn
6511         to empty on that platform.  Reported by Bruno Haible in
6512         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6513         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6514         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6515
6516 2012-02-28  Bruno Haible  <bruno@clisp.org>
6517
6518         doc: Mention new glibc headers and functions.
6519         * doc/glibc-headers/uchar.texi: New file.
6520         * doc/glibc-functions/aligned_alloc.texi: New file.
6521         * doc/glibc-functions/c16rtomb.texi: New file.
6522         * doc/glibc-functions/c32rtomb.texi: New file.
6523         * doc/glibc-functions/clock_adjtime.texi: New file.
6524         * doc/glibc-functions/fanotify_init.texi: New file.
6525         * doc/glibc-functions/fanotify_mark.texi: New file.
6526         * doc/glibc-functions/inet6_opt_append.texi: New file.
6527         * doc/glibc-functions/inet6_opt_find.texi: New file.
6528         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6529         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6530         * doc/glibc-functions/inet6_opt_init.texi: New file.
6531         * doc/glibc-functions/inet6_opt_next.texi: New file.
6532         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6533         * doc/glibc-functions/inet6_rth_add.texi: New file.
6534         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6535         * doc/glibc-functions/inet6_rth_init.texi: New file.
6536         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6537         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6538         * doc/glibc-functions/inet6_rth_space.texi: New file.
6539         * doc/glibc-functions/login.texi: New file.
6540         * doc/glibc-functions/mbrtoc16.texi: New file.
6541         * doc/glibc-functions/mbrtoc32.texi: New file.
6542         * doc/glibc-functions/name_to_handle_at.texi: New file.
6543         * doc/glibc-functions/ntp_gettimex.texi: New file.
6544         * doc/glibc-functions/open_by_handle_at.texi: New file.
6545         * doc/glibc-functions/prlimit.texi: New file.
6546         * doc/glibc-functions/process_vm_readv.texi: New file.
6547         * doc/glibc-functions/process_vm_writev.texi: New file.
6548         * doc/glibc-functions/recvmmsg.texi: New file.
6549         * doc/glibc-functions/scandirat.texi: New file.
6550         * doc/glibc-functions/sendmmsg.texi: New file.
6551         * doc/glibc-functions/setns.texi: New file.
6552         * doc/glibc-functions/timespec_get.texi: New file.
6553         * doc/gnulib.texi: Include them.
6554         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6555         sections.
6556         Reported by Eric Blake.
6557
6558 2012-02-28  Bruno Haible  <bruno@clisp.org>
6559
6560         Avoid compilation errors with MSVC option -fp:strict.
6561         * lib/floor.c: Use MSVC specific pragma fenv_access.
6562         * lib/ceil.c: Likewise.
6563         * lib/trunc.c: Likewise.
6564         * lib/round.c: Likewise.
6565         * lib/rint.c: Likewise.
6566         * lib/fma.c: Likewise.
6567         * lib/integer_length.c: Likewise.
6568         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6570         * tests/test-floor2.c: Likewise.
6571         * tests/test-floorf2.c: Likewise.
6572         * tests/test-ceil2.c: Likewise.
6573         * tests/test-ceilf2.c: Likewise.
6574         * tests/test-trunc2.c: Likewise.
6575         * tests/test-truncf2.c: Likewise.
6576         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6577
6578 2012-02-27  Bruno Haible  <bruno@clisp.org>
6579
6580         Tests for module 'sqrtl-ieee'.
6581         * modules/sqrtl-ieee-tests: New file.
6582         * tests/test-sqrtl-ieee.c: New file.
6583
6584         New module 'sqrtl-ieee'.
6585         * modules/sqrtl-ieee: New file.
6586
6587         Tests for module 'sqrt-ieee'.
6588         * modules/sqrt-ieee-tests: New file.
6589         * tests/test-sqrt-ieee.c: New file.
6590
6591         New module 'sqrt-ieee'.
6592         * modules/sqrt-ieee: New file.
6593
6594         Tests for module 'sqrtf-ieee'.
6595         * modules/sqrtf-ieee-tests: New file.
6596         * tests/test-sqrtf-ieee.c: New file.
6597         * tests/test-sqrt-ieee.h: New file.
6598
6599         New module 'sqrtf-ieee'.
6600         * modules/sqrtf-ieee: New file.
6601
6602 2012-02-27  Bruno Haible  <bruno@clisp.org>
6603
6604         remainderl-ieee: Work around test failure on OSF/1.
6605         * m4/remainderl-ieee.m4: New file.
6606         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6607         present, test whether remainderl works with a zero second argument.
6608         Replace it if not.
6609         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6611         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6612         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6613         (Depends-on): Update conditions.
6614         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6615         (Depends-on): Add remainder-ieee.
6616         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6617         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6618         module.
6619
6620         remainderf-ieee: Work around test failure on OSF/1.
6621         * m4/remainderf-ieee.m4: New file.
6622         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6623         present, test whether remainderf works with a zero second argument.
6624         Replace it if not.
6625         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6627         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6628         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6629         (Depends-on): Update conditions.
6630         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6631         (Depends-on): Add remainder-ieee.
6632         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6633         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6634         module.
6635
6636         remainder-ieee: Work around test failure on OSF/1.
6637         * m4/remainder-ieee.m4: New file.
6638         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6639         present, test whether remainder works with a zero second argument.
6640         Replace it if not.
6641         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6643         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6644         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6645         (Depends-on): Update dependencies.
6646         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6647         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6648         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6649
6650         Tests for module 'remainderl-ieee'.
6651         * modules/remainderl-ieee-tests: New file.
6652         * tests/test-remainderl-ieee.c: New file.
6653
6654         New module 'remainderl-ieee'.
6655         * modules/remainderl-ieee: New file.
6656
6657         Tests for module 'remainder-ieee'.
6658         * modules/remainder-ieee-tests: New file.
6659         * tests/test-remainder-ieee.c: New file.
6660
6661         New module 'remainder-ieee'.
6662         * modules/remainder-ieee: New file.
6663
6664         Tests for module 'remainderf-ieee'.
6665         * modules/remainderf-ieee-tests: New file.
6666         * tests/test-remainderf-ieee.c: New file.
6667         * tests/test-remainder-ieee.h: New file.
6668
6669         New module 'remainderf-ieee'.
6670         * modules/remainderf-ieee: New file.
6671
6672 2012-02-27  Bruno Haible  <bruno@clisp.org>
6673
6674         modff, modfl: Fix configure syntax error.
6675         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6676         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6677
6678 2012-02-27  Bruno Haible  <bruno@clisp.org>
6679
6680         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6681         * m4/fmodl-ieee.m4: New file.
6682         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6683         whether fmodl works with zero arguments. Replace it if not.
6684         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6685         (Depends-on): Add fmod-ieee.
6686         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6687         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6688
6689         fmodf-ieee: Work around test failure on OSF/1.
6690         * m4/fmodf-ieee.m4: New file.
6691         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6692         whether fmodf works with zero arguments. Replace it if not.
6693         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6695         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6696         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6697         (Depends-on): Update dependencies.
6698         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6699         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6700         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6701
6702         fmodf-ieee: Work around test failure on MSVC 9.
6703         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6704         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6705
6706         fmod-ieee: Work around test failures on OSF/1, mingw.
6707         * m4/fmod-ieee.m4: New file.
6708         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6709         whether fmod works with zero arguments. Replace it if not.
6710         * lib/math.in.h (fmod): New declaration.
6711         * lib/fmod.c: New file.
6712         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6714         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6715         * modules/fmod (Files): Add lib/fmod.c.
6716         (Depends-on): Add math, isinf, trunc, fma.
6717         (configure.ac): Arrange to compile lib/fmod.c if needed.
6718         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6719         m4/signbit.m4.
6720         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6721         * tests/test-math-c++.cc: Check the declaration of fmod.
6722         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6723
6724         fmodl-ieee: Fix test failures.
6725         * lib/fmodl.c (fmodl): Treat Inf specially.
6726         * modules/fmodl (Depends-on): Add isinf.
6727
6728         Tests for module 'fmodl-ieee'.
6729         * modules/fmodl-ieee-tests: New file.
6730         * tests/test-fmodl-ieee.c: New file.
6731
6732         New module 'fmodl-ieee'.
6733         * modules/fmodl-ieee: New file.
6734
6735         Tests for module 'fmod-ieee'.
6736         * modules/fmod-ieee-tests: New file.
6737         * tests/test-fmod-ieee.c: New file.
6738
6739         New module 'fmod-ieee'.
6740         * modules/fmod-ieee: New file.
6741
6742         Tests for module 'fmodf-ieee'.
6743         * modules/fmodf-ieee-tests: New file.
6744         * tests/test-fmodf-ieee.c: New file.
6745         * tests/test-fmod-ieee.h: New file.
6746
6747         New module 'fmodf-ieee'.
6748         * modules/fmodf-ieee: New file.
6749
6750 2012-02-27  Bruno Haible  <bruno@clisp.org>
6751
6752         Tests for module 'rintl-ieee'.
6753         * modules/rintl-ieee-tests: New file.
6754         * tests/test-rintl-ieee.c: New file.
6755
6756         New module 'rintl-ieee'.
6757         * modules/rintl-ieee: New file.
6758
6759         Tests for module 'rint-ieee'.
6760         * modules/rint-ieee-tests: New file.
6761         * tests/test-rint-ieee.c: New file.
6762
6763         New module 'rint-ieee'.
6764         * modules/rint-ieee: New file.
6765
6766         Tests for module 'rintf-ieee'.
6767         * modules/rintf-ieee-tests: New file.
6768         * tests/test-rintf-ieee.c: New file.
6769         * tests/test-rint-ieee.h: New file.
6770
6771         New module 'rintf-ieee'.
6772         * modules/rintf-ieee: New file.
6773
6774 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6775
6776         regex: re_search etc. should return -2 when memory exhausted
6777         This bug was uncovered when testing 'grep'.  Without the fix,
6778         re_search and friends return -1 when memory is exhausted, but -1
6779         means no match, and this causes grep to falsely report no-match
6780         instead of memory-exhaustion.  See
6781         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6782         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6783         trouble; this can occur if re_search_internal ran out of memory.
6784
6785 2012-02-26  Bruno Haible  <bruno@clisp.org>
6786
6787         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6788         * m4/modfl-ieee.m4: New file.
6789         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6790         whether modfl works with Inf. Replace it if not.
6791         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6793         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6794         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6795         (Depends-on): Update dependencies.
6796         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6797         m4/signbit.m4.
6798         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6799         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6800
6801         modfl-ieee: Fix dependencies.
6802         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6803
6804         modfl-ieee: Fix test failures.
6805         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6806         * modules/modfl (Depends-on): Add isfinite, isinf.
6807
6808         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6809         * m4/modff-ieee.m4: New file.
6810         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6811         whether modff works with NaN and Inf. Replace it if not.
6812         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6814         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6815         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6816         (Depends-on): Update dependencies.
6817         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6818         m4/signbit.m4.
6819         (Depends-on): Add modf-ieee.
6820         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6821         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6822
6823         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6824         * m4/modf-ieee.m4: New file.
6825         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6826         whether modf works with NaN and Inf. Replace it if not.
6827         * lib/math.in.h (modf): New declaration.
6828         * lib/modf.c: New file.
6829         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6831         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6832         * modules/modf (Files): Add lib/modf.c.
6833         (Depends-on): Add math, isfinite, trunc, isinf.
6834         (configure.ac): Addrange to compile lib/modf.c if needed.
6835         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6836         m4/signbit.m4.
6837         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6838         * tests/test-math-c++.cc: Check the declaration of modf.
6839         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6840
6841         Tests for module 'modfl-ieee'.
6842         * modules/modfl-ieee-tests: New file.
6843         * tests/test-modfl-ieee.c: New file.
6844
6845         New module 'modfl-ieee'.
6846         * modules/modfl-ieee: New file.
6847
6848         Tests for module 'modf-ieee'.
6849         * modules/modf-ieee-tests: New file.
6850         * tests/test-modf-ieee.c: New file.
6851
6852         New module 'modf-ieee'.
6853         * modules/modf-ieee: New file.
6854
6855         Tests for module 'modff-ieee'.
6856         * modules/modff-ieee-tests: New file.
6857         * tests/test-modff-ieee.c: New file.
6858         * tests/test-modf-ieee.h: New file.
6859
6860         New module 'modff-ieee'.
6861         * modules/modff-ieee: New file.
6862
6863 2012-02-26  Bruno Haible  <bruno@clisp.org>
6864
6865         Tests for module 'fabsl-ieee'.
6866         * modules/fabsl-ieee-tests: New file.
6867         * tests/test-fabsl-ieee.c: New file.
6868
6869         New module 'fabsl-ieee'.
6870         * modules/fabsl-ieee: New file.
6871
6872         Tests for module 'fabs-ieee'.
6873         * modules/fabs-ieee-tests: New file.
6874         * tests/test-fabs-ieee.c: New file.
6875
6876         New module 'fabs-ieee'.
6877         * modules/fabs-ieee: New file.
6878
6879         Tests for module 'fabsf-ieee'.
6880         * modules/fabsf-ieee-tests: New file.
6881         * tests/test-fabsf-ieee.c: New file.
6882         * tests/test-fabs-ieee.h: New file.
6883
6884         New module 'fabsf-ieee'.
6885         * modules/fabsf-ieee: New file.
6886
6887 2012-02-26  Bruno Haible  <bruno@clisp.org>
6888
6889         Tests for module 'fmal-ieee'.
6890         * modules/fmal-ieee-tests: New file.
6891         * tests/test-fmal-ieee.c: New file.
6892
6893         New module 'fmal-ieee'.
6894         * modules/fmal-ieee: New file.
6895
6896         Tests for module 'fma-ieee'.
6897         * modules/fma-ieee-tests: New file.
6898         * tests/test-fma-ieee.c: New file.
6899
6900         New module 'fma-ieee'.
6901         * modules/fma-ieee: New file.
6902
6903         Tests for module 'fmaf-ieee'.
6904         * modules/fmaf-ieee-tests: New file.
6905         * tests/test-fmaf-ieee.c: New file.
6906         * tests/test-fma-ieee.h: New file.
6907
6908         New module 'fmaf-ieee'.
6909         * modules/fmaf-ieee: New file.
6910
6911 2012-02-26  Bruno Haible  <bruno@clisp.org>
6912
6913         Tests for module 'ldexpl-ieee'.
6914         * modules/ldexpl-ieee-tests: New file.
6915         * tests/test-ldexpl-ieee.c: New file.
6916
6917         New module 'ldexpl-ieee'.
6918         * modules/ldexpl-ieee: New file.
6919
6920         Tests for module 'ldexp-ieee'.
6921         * modules/ldexp-ieee-tests: New file.
6922         * tests/test-ldexp-ieee.c: New file.
6923
6924         New module 'ldexp-ieee'.
6925         * modules/ldexp-ieee: New file.
6926
6927         Tests for module 'ldexpf-ieee'.
6928         * modules/ldexpf-ieee-tests: New file.
6929         * tests/test-ldexpf-ieee.c: New file.
6930         * tests/test-ldexp-ieee.h: New file.
6931
6932         New module 'ldexpf-ieee'.
6933         * modules/ldexpf-ieee: New file.
6934
6935 2012-02-26  Bruno Haible  <bruno@clisp.org>
6936
6937         Refactor frexp*-ieee tests.
6938         * tests/test-frexp-ieee.h: New file.
6939         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6940         (main): Just call test_function.
6941         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6942         (main): Just call test_function.
6943         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6944         (main): Just call test_function.
6945         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6946         * modules/frexp-ieee-tests (Files): Likewise.
6947         * modules/frexpl-ieee-tests (Files): Likewise.
6948
6949         Tests for module 'frexpl-ieee'.
6950         * modules/frexpl-ieee-tests: New file.
6951         * tests/test-frexpl-ieee.c: New file.
6952
6953         New module 'frexpl-ieee'.
6954         * modules/frexpl-ieee: New file.
6955
6956         Tests for module 'frexp-ieee'.
6957         * modules/frexp-ieee-tests: New file.
6958         * tests/test-frexp-ieee.c: New file.
6959
6960         New module 'frexp-ieee'.
6961         * modules/frexp-ieee: New file.
6962
6963         Tests for module 'frexpf-ieee'.
6964         * modules/frexpf-ieee-tests: New file.
6965         * tests/test-frexpf-ieee.c: New file.
6966
6967         New module 'frexpf-ieee'.
6968         * modules/frexpf-ieee: New file.
6969
6970 2012-02-26  Bruno Haible  <bruno@clisp.org>
6971
6972         roundl-ieee tests: More tests.
6973         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6974         (main): Add tests for [MX] shaded specification in POSIX.
6975         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6976         (Depends-on): Add isnanl-nolibm.
6977
6978         round-ieee tests: More tests.
6979         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6980         (main): Add tests for [MX] shaded specification in POSIX.
6981         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6982         (Depends-on): Add isnand-nolibm.
6983
6984         roundf-ieee tests: More tests.
6985         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6986         (main): Add tests for [MX] shaded specification in POSIX.
6987         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6988         (Depends-on): Add isnanf-nolibm.
6989
6990         truncl-ieee tests: More tests.
6991         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6992         (main): Add tests for [MX] shaded specification in POSIX.
6993         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6994         (Depends-on): Add isnanl-nolibm.
6995
6996         trunc-ieee tests: More tests.
6997         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6998         (main): Add tests for [MX] shaded specification in POSIX.
6999         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7000         (Depends-on): Add isnand-nolibm.
7001
7002         truncf-ieee tests: More tests.
7003         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7004         (main): Add tests for [MX] shaded specification in POSIX.
7005         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7006         (Depends-on): Add isnanf-nolibm.
7007
7008         ceill-ieee tests: More tests.
7009         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7010         (main): Add tests for [MX] shaded specification in POSIX.
7011         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7012         (Depends-on): Add isnanl-nolibm.
7013
7014         ceil-ieee tests: More tests.
7015         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7016         (main): Add tests for [MX] shaded specification in POSIX.
7017         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7018         (Depends-on): Add isnand-nolibm.
7019
7020         ceilf-ieee tests: More tests.
7021         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7022         (main): Add tests for [MX] shaded specification in POSIX.
7023         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7024         (Depends-on): Add isnanf-nolibm.
7025
7026         floorl-ieee tests: More tests.
7027         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7028         (main): Add tests for [MX] shaded specification in POSIX.
7029         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7030         (Depends-on): Add isnanl-nolibm.
7031
7032         floor-ieee tests: More tests.
7033         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7034         (main): Add tests for [MX] shaded specification in POSIX.
7035         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7036         (Depends-on): Add isnand-nolibm.
7037
7038         floorf-ieee tests: More tests.
7039         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7040         (main): Add tests for [MX] shaded specification in POSIX.
7041         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7042         (Depends-on): Add isnanf-nolibm.
7043
7044 2012-02-26  Bruno Haible  <bruno@clisp.org>
7045
7046         fpieee: More comments.
7047         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7048
7049 2012-02-25  Bruno Haible  <bruno@clisp.org>
7050
7051         Tests for module 'log10l'.
7052         * modules/log10l-tests: New file.
7053         * tests/test-log10l.c: New file.
7054         * tests/test-math-c++.cc: Check the declaration of log10l.
7055
7056         New module 'log10l'.
7057         * lib/math.in.h (log10l): New declaration.
7058         * lib/log10l.c: New file.
7059         * m4/log10l.m4: New file.
7060         * modules/log10l: New file.
7061         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7063         HAVE_DECL_LOG10L.
7064         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7065         HAVE_DECL_LOG10L.
7066         * doc/posix-functions/log10l.texi: Mention the new module.
7067
7068 2012-02-25  Bruno Haible  <bruno@clisp.org>
7069
7070         fmodl, remainder*: Avoid wrong results due to rounding errors.
7071         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7072         expected bounds.
7073         * lib/remainderf.c (remainderf): Likewise.
7074         * lib/remainder.c (remainder): Likewise.
7075         * lib/remainderl.c (remainderl): Likewise.
7076
7077 2012-02-25  Bruno Haible  <bruno@clisp.org>
7078
7079         Tests for module 'remainderl'.
7080         * modules/remainderl-tests: New file.
7081         * tests/test-remainderl.c: New file.
7082         * tests/test-math-c++.cc: Check the declaration of remainderl.
7083
7084         New module 'remainderl'.
7085         * lib/math.in.h (remainderl): New declaration.
7086         * lib/remainderl.c: New file.
7087         * m4/remainderl.m4: New file.
7088         * modules/remainderl: New file.
7089         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7091         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7092         HAVE_REMAINDERL.
7093         * doc/posix-functions/remainderl.texi: Mention the new module.
7094
7095 2012-02-25  Bruno Haible  <bruno@clisp.org>
7096
7097         Tests for module 'remainderf'.
7098         * modules/remainderf-tests: New file.
7099         * tests/test-remainderf.c: New file.
7100         * tests/test-math-c++.cc: Check the declaration of remainderf.
7101
7102         New module 'remainderf'.
7103         * lib/math.in.h (remainderf): New declaration.
7104         * lib/remainderf.c: New file.
7105         * m4/remainderf.m4: New file.
7106         * modules/remainderf: New file.
7107         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7109         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7110         HAVE_REMAINDERF.
7111         * doc/posix-functions/remainderf.texi: Mention the new module.
7112
7113 2012-02-25  Bruno Haible  <bruno@clisp.org>
7114
7115         remainder: Support for MSVC.
7116         * lib/math.in.h (remainder): New declaration.
7117         * lib/remainder.c: New file.
7118         * m4/remainder.m4: New file.
7119         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7120         (Depends-on): Add math, round, fma.
7121         (configure.ac): Use results of gl_FUNC_REMAINDER.
7122         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7124         HAVE_DECL_REMAINDER.
7125         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7126         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7127         * tests/test-math-c++.cc: Check the declaration of remainder.
7128         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7129         problems are fixed.
7130
7131 2012-02-25  Bruno Haible  <bruno@clisp.org>
7132
7133         Tests for module 'fmodl'.
7134         * modules/fmodl-tests: New file.
7135         * tests/test-fmodl.c: New file.
7136         * tests/test-math-c++.cc: Check the declaration of fmodl.
7137
7138         New module 'fmodl'.
7139         * lib/math.in.h (fmodl): New declaration.
7140         * lib/fmodl.c: New file.
7141         * m4/fmodl.m4: New file.
7142         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7144         REPLACE_FMODL.
7145         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7146         REPLACE_FMODL.
7147         * modules/fmodl: New file.
7148         * doc/posix-functions/fmodl.texi: Mention the new module.
7149
7150 2012-02-25  Bruno Haible  <bruno@clisp.org>
7151
7152         Tests for module 'modfl'.
7153         * modules/modfl-tests: New file.
7154         * tests/test-modfl.c: New file.
7155         * tests/test-math-c++.cc: Check the declaration of modfl.
7156
7157         New module 'modfl'.
7158         * lib/math.in.h (modfl): New declaration.
7159         * lib/modfl.c: New file.
7160         * m4/modfl.m4: New file.
7161         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7163         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7164         * modules/modfl: New file.
7165         * doc/posix-functions/modfl.texi: Mention the new module.
7166
7167 2012-02-25  Bruno Haible  <bruno@clisp.org>
7168
7169         Tests for module 'fabsl'.
7170         * modules/fabsl-tests: New file.
7171         * tests/test-fabsl.c: New file.
7172         * tests/test-math-c++.cc: Check the declaration of fabsl.
7173
7174         New module 'fabsl'.
7175         * lib/math.in.h (fabsl): New declaration.
7176         * lib/fabsl.c: New file.
7177         * m4/fabsl.m4: New file.
7178         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7180         REPLACE_FABSL.
7181         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7182         REPLACE_FABSL.
7183         * modules/fabsl: New file.
7184         * doc/posix-functions/fabsl.texi: Mention the new module.
7185
7186 2012-02-25  Bruno Haible  <bruno@clisp.org>
7187
7188         fabs tests: More tests.
7189         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7190         (zero): New variable.
7191         (main): Add tests for signed zero.
7192         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7193
7194         fabsf tests: More tests.
7195         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7196         (zero): New variable.
7197         (main): Add tests for signed zero.
7198         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7199
7200 2012-02-24  Bruno Haible  <bruno@clisp.org>
7201
7202         atanl: Provide function definition on MSVC.
7203         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7204         function pointer.
7205         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7206
7207 2012-02-24  Bruno Haible  <bruno@clisp.org>
7208
7209         acosl: Provide function definition on MSVC.
7210         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7211         function pointer.
7212         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7213
7214 2012-02-24  Bruno Haible  <bruno@clisp.org>
7215
7216         asinl: Provide function definition on MSVC.
7217         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7218         function pointer.
7219         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7220
7221 2012-02-24  Bruno Haible  <bruno@clisp.org>
7222
7223         tanl: Provide function definition on MSVC.
7224         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7225         function pointer.
7226         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7227
7228 2012-02-24  Bruno Haible  <bruno@clisp.org>
7229
7230         cosl: Provide function definition on MSVC.
7231         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7232         function pointer.
7233         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7234
7235 2012-02-24  Bruno Haible  <bruno@clisp.org>
7236
7237         sinl: Provide function definition on MSVC.
7238         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7239         function pointer.
7240         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7241
7242 2012-02-24  Bruno Haible  <bruno@clisp.org>
7243
7244         logl: Provide function definition on MSVC.
7245         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7246         function pointer.
7247         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7248
7249 2012-02-24  Bruno Haible  <bruno@clisp.org>
7250
7251         expl: Provide function definition on MSVC.
7252         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7253         function pointer.
7254         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7255
7256 2012-02-24  Bruno Haible  <bruno@clisp.org>
7257
7258         sqrtl: Provide function definition on MSVC.
7259         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7260         a function pointer.
7261         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7262
7263 2012-02-24  Bruno Haible  <bruno@clisp.org>
7264
7265         ceill: Provide function definition on MSVC.
7266         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7267         used as a function pointer.
7268         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7269
7270 2012-02-24  Bruno Haible  <bruno@clisp.org>
7271
7272         floorl: Provide function definition on MSVC.
7273         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7274         used as a function pointer.
7275         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7276
7277 2012-02-24  Bruno Haible  <bruno@clisp.org>
7278
7279         ceilf: Provide function definition on MSVC.
7280         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7281         used as a function pointer.
7282         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7283
7284 2012-02-24  Bruno Haible  <bruno@clisp.org>
7285
7286         floorf: Provide function definition on MSVC.
7287         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7288         used as a function pointer.
7289         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7290
7291 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7292
7293         stdnoreturn: new module
7294         This implements a replacement for C11's <stdnoreturn.h>.
7295         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7296         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7297         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7298         * tests/test-stdnoreturn.c: New files.
7299
7300 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7301
7302         regex: fix false multibyte matches in some regular expressions
7303         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7304         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7305         * lib/regex_internal.c (re_string_skip_chars):
7306         Fix miscomputation of remain_len that may cause incomplete
7307         multi-byte character and false match.
7308
7309 2012-02-24  Jim Meyering  <meyering@redhat.com>
7310
7311         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7312         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7313         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7314         Remove now-unnecessary str''cmp obfuscation.
7315         Suggested by Akim Demaille.
7316
7317 2012-02-24  Bruno Haible  <bruno@clisp.org>
7318
7319         streq: Rename macro.
7320         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7321         * NEWS: Mention the change.
7322         * lib/mbrtowc.c (mbrtowc): Update.
7323         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7324         * lib/wcwidth.c (wcwidth): Update.
7325         Suggested by Akim Demaille and Jim Meyering.
7326
7327 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7328
7329         regex: fix typo in definition of MIN
7330         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7331         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7332
7333 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7334             Bruno Haible  <bruno@clisp.org>
7335
7336         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7337         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7338         entries into a stack-allocated buffer directly.
7339         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7340
7341 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7342             Bruno Haible  <bruno@clisp.org>
7343
7344         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7345
7346          - There were several instances of this pattern:
7347
7348              for (;;) {
7349                n = acl (f, GETACLCNT, 0, NULL);
7350                [ allocate an array A of size N ]
7351                if (acl (f, GETACL, n, a) == n)
7352                  break;
7353              }
7354
7355            This loop might never terminate if some other process is constantly
7356            manipulating the file's ACL.  The loop should be rewritten to
7357            terminate.
7358
7359          - The acl (... GETACLNT ...) call is merely an optimization; its value
7360            is merely a hint as to how big to make the array.  A better
7361            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7362            and just guess a reasonably-big size, growing the size and trying
7363            again if it's not large enough.  This guarantees termination, and
7364            saves a system call.
7365
7366         * lib/acl-internal.h: Include <limits.h>.
7367         (MIN, SIZE_MAX): New macros.
7368         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7369         a stack-allocated buffer, and use malloc if it does not fit. Don't
7370         use GETACLCNT.
7371         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7372
7373 2012-02-19  Bruno Haible  <bruno@clisp.org>
7374
7375         acl: Fix endless loop on Solaris with vxfs.
7376         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7377         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7378         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7379         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7380         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7381         Reported by Bill Jones in
7382         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7383
7384 2012-02-19  Bruno Haible  <bruno@clisp.org>
7385
7386         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7387         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7388         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7389         that this function returns 0 in some more cases.
7390
7391 2012-02-19  Bruno Haible  <bruno@clisp.org>
7392
7393         acl: Update doc references.
7394         * doc/acl-resources.txt: Update links to Solaris documentation.
7395
7396 2012-02-19  Bruno Haible  <bruno@clisp.org>
7397
7398         Fix test failure in many locales on Solaris 11.
7399         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7400         'tr' arguments.
7401         * tests/test-pipe-filter-ii1.c (main): Likewise.
7402         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7403         expressions in the C locale.
7404         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7405         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7406
7407 2012-02-19  Bruno Haible  <bruno@clisp.org>
7408
7409         gnulib-tool: Improve usage message.
7410         * gnulib-tool (func_usage): Move doc of --help and --version to the
7411         section "Operation modes".
7412
7413 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7414
7415         README-release: make it easier to execute commands
7416         * top/README-release: break commands out on to separate lines.
7417
7418 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7419
7420         GNUmakefile: simplify detection of unconfigured trees
7421         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7422         whether the tree make is being run from is already configured or
7423         not.  Related simplifications.
7424
7425 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7426
7427         * gnulib-tool (func_usage): Document --help and --version.
7428
7429 2012-02-11  Jim Meyering  <meyering@redhat.com>
7430
7431         bootstrap: don't exit 0 upon gnulib-tool failure
7432         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7433         its exit status, not 0.
7434
7435 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7436
7437         README-release: various improvements
7438         * top/README-release: Give a command to push changes for the
7439         release.  Add "distcheck" to list of other pre-release checks.
7440         Fix instance of "make stable" which should be "make TYPE".
7441
7442 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7443
7444         maint: replace FSF snail-mail addresses with URLs
7445         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7446         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7447         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7448         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7449         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7450         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7451         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7452         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7453         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7454         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7455         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7456         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7457         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7458         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7459         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7460         * lib/glthread/thread.c, lib/glthread/thread.h:
7461         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7462         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7463         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7464         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7465         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7466         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7467         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7468         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7469         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7470         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7471         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7472         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7473         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7474         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7475         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7476         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7477         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7478         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7479         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7480         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7481         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7482         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7483         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7484         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7485         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7486         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7487         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7488         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7489         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7490         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7491         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7492         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7493         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7494         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7495         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7496         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7497         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7498         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7499         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7500         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7501         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7502         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7503         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7504         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7505         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7506         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7507         * tests/test-poll.c, tests/test-quotearg-simple.c:
7508         * tests/test-quotearg.c, tests/test-quotearg.h:
7509         * tests/test-round-ieee.c, tests/test-round1.c:
7510         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7511         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7512         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7513         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7514         * tests/test-strerror.c, tests/test-strerror_r.c:
7515         * tests/test-strsignal.c, tests/test-strverscmp.c:
7516         * tests/test-xmemdup0.c:
7517         Replace FSF snail mail addresses with URLs, as per GNU coding
7518         standards.  See glibc bug
7519         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7520
7521 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7522
7523         README-release: capitalize a word and split a line
7524         * top/README-release: Fix punctuation and spacing.
7525
7526 2012-02-08  Akim Demaille  <demaille@gostai.com>
7527
7528         fatal-signal: use C prototypes (with explicit void).
7529         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7530         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7531
7532 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7533
7534         regex: spelling fix
7535         * lib/regexec.c: spelling fix
7536
7537         regex: rely on stdint.h for SIZE_MAX
7538         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7539
7540 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7541
7542         regex: merge glibc changes
7543
7544         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7545         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7546         (init_word_char): Work even if bitset words are not exactly 32 or
7547         64 bits wide.  Don't assume there are no padding bits.
7548         * lib/regex.c [_LIBC]: Do not include <config.h>.
7549         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7550         and -Wtype-limits.
7551         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7552         needless disagreement with glibc.  All uses changed.  Define it to
7553         1 only if _GNU_SOURCE, to match glibc.
7554         (_REG_RM_NAME): Remove; no longer needed, since the names in
7555         question are now all protected by __USE_GNU.
7556         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7557         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7558         * lib/regex_internal.h (MIN): New macro.
7559
7560         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7561         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7562
7563         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7564         * lib/regex_internal.c (re_string_fetch_byte_case):
7565         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7566         is miscompiled, and it turns out it is because of an incorrect
7567         attribute on re_string_fetch_byte_case.  Unlike
7568         re_string_peek_byte_case, this one is really not pure, it modifies
7569         memory (increments pstr->cur_idx), and with the pure attribute GCC
7570         assumed it doesn't and it cached the presumed value of
7571         regexp->cur_idx in a variable across the
7572          for (;; ++i)
7573            {
7574              if (i >= BRACKET_NAME_BUF_SIZE)
7575                return REG_EBRACK;
7576              if (token->type == OP_OPEN_CHAR_CLASS)
7577                ch = re_string_fetch_byte_case (regexp);
7578              else
7579                ch = re_string_fetch_byte (regexp);
7580              if (re_string_eoi(regexp))
7581                return REG_EBRACK;
7582              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7583                break;
7584              elem->opr.name[i] = ch;
7585            }
7586
7587         2011-11-29 Andreas Schwab <schwab@redhat.com>
7588         * lib/regcomp.c (build_equiv_class):
7589         Fix access after end of search string in regex matcher.
7590
7591         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7592         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7593
7594         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7595         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7596
7597         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7598         * lib/regcomp.c (parse_branch, parse_sub_exp):
7599         More regex memory leak fixes and tests.
7600         (parse_sub_exp, parse_bracket_exp):
7601         Fix memory leak for some invalid regular expressions.
7602
7603         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7604         * lib/regex_internal.c, lib/regexec.c:
7605         Fix unnecessary overallocation due to incomplete character.  When
7606         incomplete characters are found at the end of a string the code
7607         ran amok and allocated lots of memory.  Stricter limits are now in
7608         place.
7609
7610         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7611         * lib/regex.h: Update documentation.
7612
7613         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7614         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7615
7616         2010-05-05 Andreas Schwab <schwab@redhat.com>
7617         * lib/regexec.c (find_collation_sequence_value):
7618         Fix lookup of collation sequence value during regexp matching.
7619
7620         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7621         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7622
7623         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7624         * lib/regex.h: Cleanup namespace.
7625
7626         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7627         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7628
7629         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7630         * lib/regex_internal.h: Prevent some declarations and definitions
7631         to be seen when used in tests.
7632
7633         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7634         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7635         __libc_lock_* macros if not _LIBC.
7636         (struct re_dfa_t): Add lock.
7637
7638 2012-02-07  Eric Blake  <eblake@redhat.com>
7639
7640         maint.mk: also prohibit lower-case @var@
7641         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7642         lower case, like @top_srcdir@.
7643
7644 2012-02-04  Eric Blake  <eblake@redhat.com>
7645
7646         canonicalize: avoid uninitialized memory use
7647         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7648         random '/' left in dest.
7649         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7650
7651 2012-02-04  Bruno Haible  <bruno@clisp.org>
7652
7653         isatty: Fix test failure of ptsname_r on native Windows.
7654         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7655         and don't set errno.
7656         (isatty): Test first whether fd is valid. Set errno when returning 0.
7657
7658 2012-02-04  Bruno Haible  <bruno@clisp.org>
7659
7660         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7661         * tests/test-spawn-pipe-main.c: Include progname.h.
7662         (main): Invoke set_program_name.
7663         * modules/spawn-pipe-tests (Depends-on): Add progname.
7664
7665         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7666         * tests/test-nonblocking-socket-main.c: Include progname.h.
7667         (main): Invoke set_program_name.
7668         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7669
7670         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7671         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7672         (main): Invoke set_program_name.
7673         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7674
7675 2012-02-04  Eric Blake  <eblake@redhat.com>
7676
7677         canonicalize-lgpl: fix // handling
7678         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7679
7680         canonicalize: fix // handling
7681         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7682         /// to //, since only // is special.
7683
7684 2012-02-04  Bruno Haible  <bruno@clisp.org>
7685
7686         ioctl: Fix test failure on native Windows.
7687         * lib/ioctl.c: Include msvc-nothrow.h.
7688         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7689
7690 2012-02-04  Bruno Haible  <bruno@clisp.org>
7691
7692         fsync: Avoid test failure on native Windows.
7693         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7694         read-only.
7695
7696 2012-02-04  Bruno Haible  <bruno@clisp.org>
7697
7698         sys_select: Avoid syntax error on OpenBSD 5.0.
7699         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7700         currently being included, just include the system's <sys/select.h>.
7701
7702 2012-02-04  Bruno Haible  <bruno@clisp.org>
7703
7704         sys_select: Avoid syntax error on OpenBSD 5.0.
7705         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7706         <sys/select.h>, not before.
7707         Reported by Jiri B <jirib@devio.us>.
7708
7709 2012-02-04  Bruno Haible  <bruno@clisp.org>
7710
7711         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7712         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7713         global variables.
7714         * tests/test-get-rusage-data.c (main): Likewise.
7715         Reported by Jim Meyering.
7716
7717 2012-02-04  Bruno Haible  <bruno@clisp.org>
7718
7719         stdioext: Fix last commit.
7720         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7721
7722 2012-02-03  Bruno Haible  <bruno@clisp.org>
7723
7724         stdioext: Add tentative support for Plan9.
7725         * lib/stdio-impl.h: Include <errno.h>.
7726         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7727         * lib/freadable.c (freadable): Likewise.
7728         * lib/fwritable.c (fwritable): Likewise.
7729         * lib/fbufmode.c (fbufmode): Likewise.
7730         * lib/freading.c (freading): Likewise.
7731         * lib/fwriting.c (fwriting): Likewise.
7732         * lib/freadptr.c (freadptr): Likewise.
7733         * lib/freadseek.c (freadptrinc): Likewise.
7734         * lib/freadahead.c (freadahead): Likewise.
7735         * lib/fpurge.c (fpurge): Likewise.
7736         * lib/fseeko.c (rpl_fseeko): Likewise.
7737         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7738         Reported by Jens Staal <staal1978@gmail.com>.
7739
7740 2012-02-02  Jim Meyering  <meyering@redhat.com>
7741
7742         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7743         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7744         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7745         not even to try to add the attribute.  Instead, add a pragma to suppress
7746         the suggestion/warning.
7747
7748 2012-01-31  Karl Berry  <karl@gnu.org>
7749
7750         setstate doc: typo.
7751         * doc/posix-functions/setstate.texi (setstate): { not (.
7752
7753 2012-01-31  Bruno Haible  <bruno@clisp.org>
7754
7755         popen: Make more robust on Windows.
7756         * lib/popen.c: On native Windows, use the _popen based code even if
7757         HAVE_POPEN is set.
7758         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7759         environment variable on native Windows.
7760
7761 2012-01-30  Bruno Haible  <bruno@clisp.org>
7762
7763         pclose: Fix typo.
7764         * lib/stdio.in.h (pclose): Fix typo in warning message.
7765
7766 2012-01-30  Bruno Haible  <bruno@clisp.org>
7767
7768         doc about getlogin_r, setstate.
7769         * doc/posix-functions/getlogin_r.texi: List the incompatible
7770         declaration problem under "not fixed by gnulib".
7771         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7772         problem on Solaris 11 and other platforms.
7773
7774 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7775             Bruno Haible  <bruno@clisp.org>
7776
7777         poll tests: Make test more robust.
7778         * tests/test-poll.c: Include macros.h.
7779         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7780         return value of various I/O operations.
7781         * modules/poll-tests (Files): Add tests/macros.h.
7782
7783 2012-01-30  Bruno Haible  <bruno@clisp.org>
7784
7785         sys_stat: Fix support for mingw64 and MSVC.
7786         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7787         header files already do it.
7788         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7789         stat itself.
7790         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7791
7792 2012-01-30  Bruno Haible  <bruno@clisp.org>
7793
7794         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7796         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7797
7798 2012-01-29  Bruno Haible  <bruno@clisp.org>
7799
7800         quotearg: Fix test failure on MacOS X 10.5.
7801         * tests/test-quotearg-simple.c: Include localcharset.h.
7802         (main): If the locale encoding is not ASCII, bypass the tests of
7803         locale_quoting_style and clocale_quoting_style.
7804         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7805
7806 2012-01-29  Jim Meyering  <meyering@redhat.com>
7807
7808         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7809         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7810         detect uses of canonicalize_file_name.
7811
7812 2012-01-28  Bruno Haible  <bruno@clisp.org>
7813
7814         test-framework-sh: Fix test failure with AIX 7.1 diff.
7815         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7816         in column 1, like 'diff -c' does.
7817         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7818         whether 'diff -u' is used. Instead, test whether the output contains
7819         some '@' character.
7820
7821 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7822
7823         strtoimax: eliminate need for stdint.h, inttypes.h checks
7824         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7825         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7826         the prerequisites for a recently-introduced strtoimax test.
7827         I guess this might cause strtoimax to be replaced when not
7828         strictly necessary on older hosts, but this shouldn't introduce
7829         any bugs and it should make Emacs 'configure' faster on typical
7830         modern hosts.  Problem discovered when importing the latest gnulib
7831         to an Emacs test version.
7832         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7833
7834 2012-01-28  Bruno Haible  <bruno@clisp.org>
7835
7836         sys_time: Override 'struct timeval' on some native Windows platforms.
7837         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7838         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7839         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7840         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7841         needs to be overridden.
7842         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7843         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7844         * tests/test-sys_select.c: Check that the tv_sec member has the same
7845         size as a 'time_t'.
7846         * tests/test-sys_time.c: Likewise.
7847         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7848         is set, set also REPLACE_GETTIMEOFDAY.
7849         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7850         convert the resulting 'struct timeval' before returning.
7851         * lib/select.c: Include <sys/time.h>.
7852         (select, timeval): Undefine at the right place.
7853         * modules/select (Depends-on): Add sys_time.
7854         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7855         some Windows platforms.
7856         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7857
7858 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7859
7860         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7861         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7862         an integer.
7863         * lib/fcntl.c (dupfd): Likewise.
7864         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7865
7866 2012-01-28  Bruno Haible  <bruno@clisp.org>
7867
7868         fcntl: Avoid compilation error on native Windows.
7869         * modules/fcntl (Depends-on): Add 'close'.
7870
7871 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7872
7873         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7874         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7875         pointer to an integer.
7876         * lib/poll.c (IsConsoleHandle): Likewise.
7877         * lib/isatty.c (IsConsoleHandle): Likewise.
7878
7879 2012-01-28  Jim Meyering  <meyering@redhat.com>
7880
7881         doc: clarify README-release
7882         * top/README-release: Clarify: you should make a point to have
7883         the latest stable versions of build tools in your PATH, and the
7884         reference to buildreq is solely for its list of tool names, not
7885         for its minimal-functional version numbers.
7886         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7887
7888         maint.mk: use more readable (yet functionally equivalent) quoting
7889         It is common to quote a single quote in a single quoted string like
7890         this:  '...'\''...'.  Unless you know the idiom, that looks like
7891         gibberish, so prefer to double-quote the string when possible.
7892         Then you can use a more readable, lone single quote: "...'..."
7893         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7894         "don't" is more readable than the equivalent 'don'\''t'.
7895         (sc_cast_of_x_alloc_return_value): Likewise.
7896         (sc_cast_of_alloca_return_value): Likewise.
7897         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7898         rather than '\'':'\''.
7899
7900 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7901
7902         stdalign: relax _Alignof and tighten _Alignas test
7903         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7904         as it was too strict: alignof must divide offsetof, but it need
7905         not equal offsetof.  Inspired by Joseph S. Myers's comment
7906         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7907         Conversely, tighten the _Alignas test a bit, as the resulting
7908         alignment must be exactly 8.
7909
7910 2012-01-27  Bruno Haible  <bruno@clisp.org>
7911
7912         stdalign: Document the last change.
7913         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7914
7915 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7916
7917         stdalign: check that alignof and offsetof are consistent
7918         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7919         Problem reported for gnulib by Richard W.M. Jones in
7920         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7921
7922 2012-01-27  Jim Meyering  <meyering@redhat.com>
7923
7924         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7925         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7926         convert a sequence with gaps to the minimal containing range.
7927         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7928         * tests/test-update-copyright.sh: Test for this.
7929         The FSF confirmed it is ok to do this, assuming there is at
7930         least one significant change per year in the affected range:
7931         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7932
7933 2012-01-26  Bruno Haible  <bruno@clisp.org>
7934
7935         pipe2: refine doc about thread-safety
7936         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7937         multithread-safety problem.
7938         * doc/glibc-functions/accept4.texi: Likewise.
7939
7940 2012-01-26  Bruno Haible  <bruno@clisp.org>
7941
7942         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7943         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7944         In the test program, include <fcntl.h>, for O_RDONLY.
7945
7946 2012-01-26  Eric Blake  <eblake@redhat.com>
7947
7948         pipe2: document lack of thread-safety in replacement
7949         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7950         issue in replacement.
7951         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7952         Based on a report by Eric Wong.
7953
7954 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7955             Bruno Haible  <bruno@clisp.org>
7956
7957         malloca: Avoid warnings on x86_64 mingw64.
7958         * lib/malloca.c: Include <stdint.h>.
7959         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7960         * modules/malloca (Depends-on): Add stdint.
7961         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7962
7963 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7964
7965         obstack: remove __STDC__ conditionals
7966         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7967         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7968         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7969         m4/include_next.m4 as the only gnulib-maintained places that still
7970         refer to __STDC__.
7971
7972 2012-01-24  Bruno Haible  <bruno@clisp.org>
7973
7974         havelib: Modern quoting.
7975         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7976         the recent change to the GNU coding standards.
7977
7978 2012-01-24  Bruno Haible  <bruno@clisp.org>
7979
7980         stdint: Improve support for Android.
7981         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7982         Reported by Simon Josefsson <simon@josefsson.org>.
7983
7984 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7985
7986         doc: omit trailing empty lines from INSTALL etc.
7987         * doc/Makefile (INSTALL): Omit trailing empty lines.
7988         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7989         omit trailing empty lines.  This simplifies the build procedure.
7990
7991 2012-01-23  Jim Meyering  <meyering@redhat.com>
7992
7993         tests: avoid spurious warnings about gl_sockets_startup
7994         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7995         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7996         reporting a "statement with no effect".
7997         * tests/test-accept.c (main): Mark as "(void)".
7998         * tests/test-accept4.c (main): Likewise.
7999         * tests/test-bind.c (main): Likewise.
8000         * tests/test-connect.c (main): Likewise.
8001         * tests/test-getpeername.c (main): Likewise.
8002         * tests/test-getsockname.c (main): Likewise.
8003         * tests/test-getsockopt.c (main): Likewise.
8004         * tests/test-listen.c (main): Likewise.
8005         * tests/test-recv.c (main): Likewise.
8006         * tests/test-recvfrom.c (main): Likewise.
8007         * tests/test-send.c (main): Likewise.
8008         * tests/test-sendto.c (main): Likewise.
8009         * tests/test-setsockopt.c (main): Likewise.
8010         * tests/test-shutdown.c (main): Likewise.
8011
8012 2012-01-21  Bruno Haible  <bruno@clisp.org>
8013
8014         locale-fr.m4: Fix for Android.
8015         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8016         failure of the test program on Bionic libc.
8017
8018 2012-01-21  Jim Meyering  <meyering@redhat.com>
8019
8020         bootstrap: fail when bootstrap_post_import_hook fails
8021         Otherwise, it's far too easy to miss diagnostics emitted
8022         between gnulib-tool's output and that of running configure.
8023         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8024
8025 2012-01-17  Jim Meyering  <meyering@redhat.com>
8026
8027         maint: enable sc_trailing_blank
8028         * build-aux/pmccabe.css: Remove trailing blanks.
8029         * doc/acl-cygwin.txt: Likewise.
8030         * doc/gnu-oids.texi: Likewise
8031         * cfg.mk: Enable sc_trailing_blank.
8032         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8033
8034 2012-01-17  Jim Meyering  <meyering@redhat.com>
8035
8036         maint: enable sc_prohibit_openat_without_use
8037         * cfg.mk: Enable sc_prohibit_openat_without_use.
8038         Exempt lib/selinux-at.c.
8039
8040 2012-01-17  Jim Meyering  <meyering@redhat.com>
8041
8042         maint: enable sc_prohibit_cloexec_without_use
8043         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8044         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8045
8046 2012-01-17  Jim Meyering  <meyering@redhat.com>
8047
8048         maint: enable sc_prohibit_intprops_without_use
8049         * cfg.mk: Enable sc_prohibit_intprops_without_use
8050         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8051
8052 2012-01-17  Jim Meyering  <meyering@redhat.com>
8053
8054         maint: enable sc_prohibit_hash_pjw_without_use
8055         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8056         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8057         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8058         following " (".
8059
8060 2012-01-17  Jim Meyering  <meyering@redhat.com>
8061
8062         maint: enable double-word-prohibiting rule
8063         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8064         Exempt three files.
8065
8066 2012-01-17  Jim Meyering  <meyering@redhat.com>
8067
8068         maint: remove empty lines at EOF, but excluding modules/*
8069         Apply syntax rules at home as well as abroad.  Most changes
8070         were induced by running this:
8071           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8072             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8073             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8074         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8075         Exempt modules/* and two binary files.
8076         Also exempt doc/INSTALL*, per request from Bruno Haible.
8077         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8078         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8079         * doc/Copyright/request-assign.future: Likewise.
8080         * doc/Copyright/request-disclaim.changes: Likewise.
8081         * doc/INSTALL: Likewise.
8082         * doc/INSTALL.ISO: Likewise.
8083         * doc/INSTALL.UTF-8: Likewise.
8084         * doc/acl-cygwin.txt: Likewise.
8085         * doc/acl-resources.txt: Likewise.
8086         * doc/fdl-1.2.texi: Likewise.
8087         * doc/fdl-1.3.texi: Likewise.
8088         * doc/fdl.texi: Likewise.
8089         * lib/argp-pin.c: Likewise.
8090         * lib/round.c: Likewise.
8091         * lib/unicase/u16-totitle.c: Likewise.
8092         * lib/unictype/block_test.c: Likewise.
8093         * lib/uninorm/canonical-decomposition.c: Likewise.
8094         * m4/README: Likewise.
8095         * m4/relocatable-lib.m4: Likewise.
8096         * tests/test-isnand-nolibm.c: Likewise.
8097         * tests/test-isnand.c: Likewise.
8098         * tests/uninorm/NormalizationTest.txt: Likewise.
8099
8100 2012-01-17  Jim Meyering  <meyering@redhat.com>
8101
8102         maint: add framework to run syntax-check rules against gnulib sources
8103         * cfg.mk: New file, to disable all currently-failing tests.
8104         We'll enable them one by one, as they are made to pass.
8105         * Makefile (sc_maint): New rule.
8106
8107 2012-01-21  Bruno Haible  <bruno@clisp.org>
8108
8109         stdint: Add support for Android.
8110         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8111         include the system's <stdint.h>.
8112         Reported by Simon Josefsson <simon@josefsson.org>.
8113
8114 2012-01-19  Jim Meyering  <meyering@redhat.com>
8115
8116         bootstrap: add bootstrap_post_import_hook
8117         Bison does still need something like the gnulib_mk_hook whose
8118         invocation I had to remove along with slurp in commit 767ccd40.
8119         Technically, we could get along without it, but doing so would
8120         have required living with a warning and a mandatory post-bootstrap
8121         automake rerun.
8122         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8123         (bootstrap_post_import_hook): New function.
8124         Invoke it after gnulib-tool --import and before autoreconf.
8125
8126 2012-01-18  Jim Meyering  <meyering@redhat.com>
8127
8128         gitlog-to-changelog: don't use "no_"-prefixed variable name
8129         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8130         to enable both --cluster and --no-cluster.  Change variable name,
8131         s/\$no_cluster/$cluster/, and reverse usage to match.
8132
8133         gitlog-to-changelog: use "||", not "or" in expressions
8134         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8135         expressions.
8136
8137 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8138
8139         gitlog-to-changelog: new option --no-cluster
8140         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8141         clustering of adjacent commit messages.
8142
8143 2012-01-17  Jim Meyering  <meyering@redhat.com>
8144
8145         maint: spell file systems with two words, not one
8146         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8147         two words, not one.
8148
8149 2012-01-16  Jim Meyering  <meyering@redhat.com>
8150
8151         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8152         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8153
8154 2012-01-16  Eric Blake  <eblake@redhat.com>
8155
8156         bootstrap: cater to autoconf 2.59
8157         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8158         is not available.
8159
8160         bootstrap: properly check for libtool
8161         * build-aux/bootstrap (libtoolize): Also run libtool when older
8162         usage is detected.
8163
8164 2012-01-15  Bruno Haible  <bruno@clisp.org>
8165
8166         Improve support for MSVC 9.
8167         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8168         clashes on MSVC.
8169         * lib/fcntl.in.h: Likewise.
8170         * lib/stdlib.in.h: Likewise.
8171         * lib/sys_stat.in.h: Likewise.
8172
8173 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8174
8175         gnupload: we hold the master copy of this script now
8176         For motivation and more information, see:
8177         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8178         * build-aux/gnupload: Make it clear in the heading comments that the
8179         master copy of this file is maintained by gnulib.  Since we are at
8180         it, bump its copyright year and ...
8181         ($scriptversion): ... the date in its version.
8182         ($usage): Patches and bug reports should be sent to the gnulib list,
8183         not the automake one.
8184         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8185         anymore.
8186
8187 2012-01-15  Bruno Haible  <bruno@clisp.org>
8188
8189         Fix module 'random'.
8190         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8191         initstate, setstate are declared.
8192
8193 2012-01-14  Bruno Haible  <bruno@clisp.org>
8194
8195         Tests for module 'random'.
8196         * modules/random-tests: New file.
8197         * tests/test-random.c: New file, based on tests/test-random_r.c.
8198
8199         New module 'random'.
8200         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8201         declarations.
8202         * lib/random.c: New file, based on glibc/stdlib/random.c.
8203         * m4/random.m4: New file.
8204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8205         HAVE_RANDOM.
8206         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8207         * modules/random: New file.
8208         * config/srclist.txt: Add an entry for random.c.
8209         * doc/posix-functions/random.texi: Mention the 'random' module.
8210         * doc/posix-functions/initstate.texi: Likewise.
8211         * doc/posix-functions/setstate.texi: Likewise.
8212         * doc/posix-functions/srandom.texi: Likewise.
8213
8214 2012-01-12  Bruno Haible  <bruno@clisp.org>
8215
8216         random_r: Use common idioms.
8217         * lib/random_r.c: Include <stdlib.h> first.
8218
8219         random_r: Override incompatible API on AIX, OSF/1.
8220         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8221         Override the system function if REPLACE_RANDOM_R is 1.
8222         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8223         and OSF/1, set REPLACE_RANDOM_R.
8224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8225         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8226         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8227         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8228         * doc/glibc-functions/random_r.texi: Likewise.
8229         * doc/glibc-functions/setstate_r.texi: Likewise.
8230
8231         random_r: Support for MSVC 9.
8232         * lib/random_r.c: Include stdint.h, not inttypes.h.
8233
8234 2012-01-12  Eric Blake  <eblake@redhat.com>
8235
8236         inet_ntop: guard extra work by IF_LINT
8237         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8238         better code generation when not checking for warnings.
8239         Suggested by Paul Eggert and Jim Meyering.
8240
8241         strptime: fix regression on mingw
8242         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8243         Fix regression.  Reported by Bruno Haible.
8244
8245 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8246             Bruno Haible  <bruno@clisp.org>
8247
8248         copy-file: add error-code-returning variant.
8249         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8250         (qcopy_file_preserving): New declaration.
8251         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8252         copy_file_preserving. Change return type to 'int'. Don't emit an error
8253         message here.
8254         (copy_file_preserving): New function.
8255         * tests/test-copy-file.c: Include <stdlib.h>.
8256         (main): Test qcopy_file_preserving if the environment variable
8257         NO_STDERR_OUTPUT is set.
8258         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8259         with NO_STDERR_OUTPUT
8260         * tests/test-copy-file-2.sh: Likewise.
8261
8262 2012-01-10  Bruno Haible  <bruno@clisp.org>
8263
8264         copy-file: Use 'quote' module consistently.
8265         * lib/copy-file.c (copy_file_preserving): Use quote().
8266
8267         copy-file: Refactor.
8268         * lib/copy-file.c: Include quote.h.
8269         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8270         message here.
8271         * modules/copy-file (Depends-on): Add quote.
8272
8273         acl: Export qcopy_acl.
8274         * lib/acl.h (qcopy_acl): New declaration.
8275         * lib/copy-acl.c (qcopy_acl): Make non-static.
8276
8277         acl: Rename a local variable.
8278         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8279
8280         acl: Align return values of copy_acl and qcopy_acl.
8281         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8282         maybe < -1.
8283
8284 2012-01-11  Eric Blake  <eblake@redhat.com>
8285
8286         strptime: silence gcc warnings
8287         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8288         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8289         Reported by Daniel P. Berrange.
8290
8291         inet_ntop: silence gcc warning
8292         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8293         Reported by Daniel P. Berrange.
8294
8295 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8296
8297         getloadavg test: skip the test on GNU/Linux without /proc mounted
8298         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8299         file.  When /proc is not mounted, it always fails with ENOENT.
8300         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8301         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8302
8303 2012-01-10  Bruno Haible  <bruno@clisp.org>
8304
8305         regex: Avoid link error on MSVC 9.
8306         * modules/regex (Depends-on): Add wctype.
8307
8308 2012-01-10  Bruno Haible  <bruno@clisp.org>
8309
8310         doc: Mention --with-tests option.
8311         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8312         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8313         --with-tests.
8314         Reported by Reuben Thomas.
8315
8316 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8317
8318         users.txt: order package names lexicographically.
8319         * users.txt: Order package names lexicographically.
8320
8321 2012-01-10  Jim Meyering  <meyering@redhat.com>
8322
8323         maint.mk: fix description in comment
8324         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8325
8326         ignore-value: remove deprecated ignore_ptr function
8327         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8328         * NEWS: Note this.
8329
8330 2012-01-09  Jim Meyering  <meyering@redhat.com>
8331
8332         test-init.sh: avoid a subshell
8333         * tests/test-init.sh: Remove protective subshell.
8334         Suggested by Bernhard Voelker.  While a subshell is normally
8335         required to protect against older shells (Solaris, FreeBSD) that
8336         warn about a missing program before performing redirection, the
8337         shell-selection tests performed by init.sh probably exclude any
8338         offending shell.
8339
8340 2012-01-08  Bruno Haible  <bruno@clisp.org>
8341
8342         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8343         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8344         variable.
8345
8346 2012-01-08  Bruno Haible  <bruno@clisp.org>
8347
8348         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8349         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8350         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8351         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8352         macro.
8353         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8354         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8355         * lib/spawn_faction_addopen.c: Add workaround implementation if
8356         HAVE_WORKING_POSIX_SPAWN.
8357         * modules/spawn (Makefile): Substitute
8358         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8359         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8360         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8361         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8362         (Depends-on): Update conditions.
8363         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8364         the Solaris 11 bug.
8365
8366 2012-01-08  Bruno Haible  <bruno@clisp.org>
8367
8368         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8369         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8370         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8371         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8372         macro.
8373         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8374         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8375         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8376         HAVE_WORKING_POSIX_SPAWN.
8377         * modules/spawn (Makefile): Substitute
8378         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8379         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8380         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8381         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8382         (Depends-on): Update conditions.
8383         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8384         the Solaris 11 bug.
8385
8386 2012-01-08  Bruno Haible  <bruno@clisp.org>
8387
8388         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8389         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8390         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8392         HAVE_WORKING_POSIX_SPAWN.
8393         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8394         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8395         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8396         * lib/spawn_faction_addclose.c: Add workaround implementation if
8397         HAVE_WORKING_POSIX_SPAWN.
8398         * modules/spawn (Makefile): Substitute
8399         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8400         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8401         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8402         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8403         (Depends-on): Update conditions.
8404         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8405         the Solaris 11 bug.
8406
8407 2012-01-08  Bruno Haible  <bruno@clisp.org>
8408
8409         doc: Update for Solaris 11 2011-11.
8410         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8411         * m4/printf.m4: Update comments.
8412
8413 2012-01-08  Bruno Haible  <bruno@clisp.org>
8414
8415         mktime: Avoid compilation error on Solaris 11.
8416         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8417
8418 2012-01-08  Bruno Haible  <bruno@clisp.org>
8419
8420         doc: Small fix.
8421         * doc/posix-headers/nl_types.texi: Correct platforms list.
8422
8423 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8424
8425         Add lgpl-3.0 module.
8426         * MODULES.html.sh (Support for building documentation): Add
8427         lgpl-3.0.
8428         * modules/lgpl-3.0: New file.
8429
8430 2012-01-08  Jim Meyering  <meyering@redhat.com>
8431
8432         select.c: indent with spaces, not TABs
8433         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8434
8435 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8436
8437         quotearg: do not use grave accent for left quote
8438         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8439         locale_quoting_style.
8440         (quotearg_buffer_restyled): Fix example.
8441         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8442
8443 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8444
8445         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8446         Most programs do not have translation catalogs for English and much
8447         less separate catalogs for British and American English.  Drop the
8448         suggestion to translators about these two, and provide it
8449         automatically for Unicode locales.  Like most programs, even those
8450         using American English, we use single quotation marks.  This conflicts
8451         with the American typographic convention, but works better when you
8452         cite the entire error message within double quotes.  It also tries not
8453         to clash with established practice and with what non-gnulib programs
8454         will usually do.
8455         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8456         using an UTF-8 or GB-18030 locale.  The list of other locales with
8457         quotes was provided by Bruno Haible.
8458         (quotearg_buffer_restyled): Adjust instructions to translators.
8459         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8460         text, since this would be wrong when using Unicode.
8461         * modules/quotearg: Depend on c-strcaseeq.
8462
8463 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8464
8465         quotearg: fix Wikipedia link
8466         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8467
8468 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8469
8470         Fix for mingw with MSVC9.
8471         * m4/ld-version-script.m4: Check that compiler rejects version
8472         scripts with syntax errors.  Reported by Bruno Haible
8473         <bruno@clisp.org>.
8474
8475 2012-01-06  Bruno Haible  <bruno@clisp.org>
8476
8477         Talk about "native Windows API", not "Woe32".
8478         * lib/accept4.c: Update comments to mention native Windows.
8479         * lib/execute.c: Likewise.
8480         * lib/fatal-signal.c: Likewise.
8481         * lib/localcharset.c: Likewise.
8482         * lib/nanosleep.c: Likewise.
8483         * lib/nl_langinfo.c: Likewise.
8484         * lib/pclose.c: Likewise.
8485         * lib/pipe-filter-gi.c: Likewise.
8486         * lib/pipe-filter-ii.c: Likewise.
8487         * lib/pipe.c: Likewise.
8488         * lib/pipe2.c: Likewise.
8489         * lib/popen.c: Likewise.
8490         * lib/progreloc.c: Likewise.
8491         * lib/relocatable.c: Likewise.
8492         * lib/sigaction.c: Likewise.
8493         * lib/sigprocmask.c: Likewise.
8494         * lib/spawn-pipe.h: Likewise.
8495         * lib/spawn-pipe.c: Likewise.
8496         * lib/spawni.c: Likewise.
8497         * lib/stat-time.h: Likewise.
8498         * lib/w32spawn.h: Likewise.
8499         * tests/test-isatty.c: Likewise.
8500         * lib/config.charset: More comments.
8501         * doc/gnulib-intro.texi: Mention native Windows.
8502         * doc/posix-functions/_Exit_C99.texi: Likewise.
8503         * doc/posix-headers/fcntl.texi: Likewise.
8504
8505 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8506
8507         argp: Avoid crash if translator uses % characters in a translation.
8508         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8509         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8510
8511 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         doc: C11 and C++11 are now official
8514         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8515         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8516         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8517         * modules/stdalign:
8518         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8519
8520 2012-01-06  Bruno Haible  <bruno@clisp.org>
8521
8522         uc-is-grapheme-break tests: Tweak.
8523         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8524         message.
8525
8526 2012-01-06  Bruno Haible  <bruno@clisp.org>
8527
8528         test-init.sh: correct the test for diff -u
8529         * tests/test-init.sh: Also redirect stdout to /dev/null.
8530
8531 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8532
8533         Use ', not `, for quoting output.
8534         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8535         (print_changelog_deltas, get_tool_versions, main program):
8536         * build-aux/git-version-gen:
8537         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8538         * build-aux/move-if-change (help):
8539         * build-aux/useless-if-before-free (usage, main program):
8540         * check-module (parse_module_file, usage)
8541         (find_included_lib_files, check_module):
8542         * lib/argmatch.c (main) [TEST]:
8543         * lib/argp-help.c (_help):
8544         * lib/getopt1.c (main) [TEST]:
8545         * lib/git-merge-changelog.c (usage):
8546         * lib/xstrtol-error.c (xstrtol_error):
8547         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8548         * m4/argz.m4 (gl_FUNC_ARGZ):
8549         * m4/bison.m4 (gl_BISON):
8550         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8551         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8552         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8553         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8554         * m4/gc-random.m4 (gl_GC_RANDOM):
8555         * m4/intl.m4 (gt_CHECK_DECL):
8556         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8557         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8558         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8560         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8561         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8562         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8563         * tests/test-dirname.c (main):
8564         * tests/test-getpass.c (main):
8565         * tests/test-iconvme.c (main):
8566         * tests/test-parse-datetime.c (LOG):
8567         * tests/test-xstrtoimax.sh:
8568         * tests/test-xstrtol.sh:
8569         * tests/test-xstrtoll.sh:
8570         * tests/test-xstrtoumax.sh:
8571         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8572         * top/GNUmakefile (abort-due-to-no-makefile):
8573         Quote 'like this', not `like this', as per the recent change to
8574         the GNU coding standards.
8575
8576 2012-01-05  Bruno Haible  <bruno@clisp.org>
8577
8578         strtoimax: Don't force a replacement on systems where intmax_t is int.
8579         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8580         'intmax_t' is not larger than 'int'.
8581         Reported by Pádraig Brady <P@draigBrady.com>.
8582
8583 2012-01-05  Bruno Haible  <bruno@clisp.org>
8584
8585         doc: Mention NetBSD bugs.
8586         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8587         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8588
8589 2012-01-05  Bruno Haible  <bruno@clisp.org>
8590
8591         strtoumax tests: Enhance tests.
8592         * tests/test-strtoumax.c (main): Add tests for large values.
8593
8594 2012-01-05  Bruno Haible  <bruno@clisp.org>
8595
8596         strtoimax: Work around AIX 5.1 bug.
8597         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8598         definition.
8599         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8600         Set HAVE_STRTOIMAX.
8601         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8602         REPLACE_STRTOIMAX.
8603         * modules/inttypes-incomplete (Makefile.am): Substitute
8604         REPLACE_STRTOIMAX.
8605         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8606         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8607         (Depends-on): Update conditions.
8608         * tests/test-strtoimax.c (main): Add tests for large values.
8609         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8610
8611 2012-01-05  Bruno Haible  <bruno@clisp.org>
8612
8613         inttypes: Modernize.
8614         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8615         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8616         (Makefile.am): Update inttypes.h rule.
8617
8618 2012-01-05  Jim Meyering  <meyering@redhat.com>
8619
8620         init.sh: don't waste a subshell just to redirect stderr
8621         * tests/init.sh: In testing for diff -u and diff -c, use a
8622         stderr-redirecting exec inside `...` rather than a subshell.
8623
8624         test-init.sh: avoid failure on HP-UX 11.00
8625         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8626         resolves to diff -c or cmp.  Reported by Bruno Haible.
8627
8628 2012-01-05  Bruno Haible  <bruno@clisp.org>
8629
8630         Tests for module 'strtoull'.
8631         * modules/strtoull-tests: New file.
8632         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8633
8634 2012-01-05  Bruno Haible  <bruno@clisp.org>
8635
8636         Tests for module 'strtoll'.
8637         * modules/strtoll-tests: New file.
8638         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8639
8640 2012-01-05  Bruno Haible  <bruno@clisp.org>
8641
8642         Tests for module 'strtoul'.
8643         * modules/strtoul-tests: New file.
8644         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8645
8646 2012-01-05  Bruno Haible  <bruno@clisp.org>
8647
8648         Tests for module 'strtol'.
8649         * modules/strtol-tests: New file.
8650         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8651
8652 2012-01-04  Jim Meyering  <meyering@redhat.com>
8653
8654         test-init.sh: accommodate Solaris 5.10's different diff -u output
8655         * tests/test-init.sh: Also exempt @@ lines from the comparison
8656         of diff output, since Solaris 5.10 and GNU diff formats differ.
8657         Reported by Stefano Lattarini.
8658
8659 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8660
8661         test-posixtm: don't assume signed integer wraparound
8662         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8663         after signed integer overflow.  Inspired by (though it may not
8664         fix) Bruno Haible's bug report in
8665         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8666
8667         Spell out "Windows 9x" and "Windows XP".
8668         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8669         "Windows 9x" and "WinXP" with "Windows XP".
8670
8671 2012-01-04  Jim Meyering  <meyering@redhat.com>
8672
8673         test-vc-list-files-cvs.sh: remove obsolete comment
8674         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8675         double exit.  Now that's all encapsulated via skip_ and Exit.
8676
8677 2012-01-04  Bruno Haible  <bruno@clisp.org>
8678
8679         Talk about "native Windows API", not "Win32".
8680         * lib/classpath.c: Update comments to mention native Windows.
8681         * lib/csharpexec.c: Likewise.
8682         * lib/dup2.c: Likewise.
8683         * lib/error.c: Likewise.
8684         * lib/fcntl.c: Likewise.
8685         * lib/filename.h: Likewise.
8686         * lib/findprog.c: Likewise.
8687         * lib/get-rusage-as.c: Likewise.
8688         * lib/get-rusage-data.c: Likewise.
8689         * lib/getpagesize.c: Likewise.
8690         * lib/javaexec.c: Likewise.
8691         * lib/msvc-inval.c: Likewise.
8692         * lib/msvc-nothrow.c: Likewise.
8693         * lib/nanosleep.c: Likewise.
8694         * lib/nonblocking.c: Likewise.
8695         * lib/printf-parse.c: Likewise.
8696         * lib/setlocale.c: Likewise.
8697         * lib/sigaction.c: Likewise.
8698         * lib/strerror_r.c: Likewise.
8699         * lib/tmpdir.c: Likewise.
8700         * lib/vasnprintf.c: Likewise.
8701         * lib/w32spawn.h: Likewise.
8702         * lib/waitpid.c: Likewise.
8703         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8704         * m4/locale-ar.m4: Likewise.
8705         * m4/locale-fr.m4: Likewise.
8706         * m4/locale-ja.m4: Likewise.
8707         * m4/locale-tr.m4: Likewise.
8708         * m4/locale-zh.m4: Likewise.
8709         * m4/printf.m4: Likewise.
8710         * tests/test-cloexec.c: Likewise.
8711         * tests/test-copy-acl.sh: Likewise.
8712         * tests/test-copy-file.sh: Likewise.
8713         * tests/test-file-has-acl.sh: Likewise.
8714         * tests/test-set-mode-acl.sh: Likewise.
8715         * tests/test-dup-safer.c: Likewise.
8716         * tests/test-dup2.c: Likewise.
8717         * tests/test-dup3.c: Likewise.
8718         * tests/test-fcntl.c: Likewise.
8719         * tests/test-nonblocking-pipe.h: Likewise.
8720         * tests/test-nonblocking-socket.h: Likewise.
8721         * tests/test-pipe.c: Likewise.
8722         * tests/test-pipe2.c: Likewise.
8723         * tests/test-spawn-pipe-child.c: Likewise.
8724         * doc/acl-resources.txt: Likewise.
8725         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8726         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8727         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8728         * lib/localcharset.c: Update comments to mention native Windows.
8729         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8730         * lib/localename.c: Likewise.
8731         * lib/progreloc.c: Likewise.
8732         * lib/relocatable.c: Likewise.
8733         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8734         (windows_compute_revents): Renamed from win32_compute_revents.
8735         (windows_compute_revents_socket): Renamed from
8736         win32_compute_revents_socket.
8737         * lib/select.c: Update comments to mention native Windows.
8738         (windows_poll_handle): Renamed from win32_poll_handle.
8739         * m4/threadlib.m4: Update comments to mention native Windows.
8740         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8741         --enable-threads=windows instead of --enable-threads=win32. Set
8742         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8743         * lib/glthread/lock.h: Update comments to mention native Windows.
8744         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8745         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8746         USE_WIN32_THREADS.
8747         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8748         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8749         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8750         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8751         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8752         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8753         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8754         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8755         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8756         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8757         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8758         * tests/test-tls.c: Likewise.
8759         Rationale:
8760         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8761         on both 32-bit and 64-bit Windows systems.
8762         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8763         line of distinction is between "native Windows" on one side and Unix/
8764         POSIX systems on the other side. More details in
8765         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8766         Suggested by Paul Eggert.
8767
8768 2012-01-03  Bruno Haible  <bruno@clisp.org>
8769
8770         isatty: Support for MSVC 9.
8771         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8772         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8773         (_isatty_nothrow): New function.
8774         (isatty): Use it instead of _isatty.
8775         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8776         * lib/poll.c (IsConsoleHandle): Likewise.
8777         * lib/select.c (IsConsoleHandle): Likewise.
8778         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8779         (gl_PREREQ_ISATTY): New macro.
8780         * modules/isatty (Depends-on): Add msvc-inval.
8781         (configure.ac): Invoke gl_PREREQ_ISATTY.
8782
8783 2012-01-03  Jim Meyering  <meyering@redhat.com>
8784
8785         maint.mk: remove temporary transition aid from over 1.5 years ago
8786         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8787         purpose was to aid in the transition (avoiding silent malfunction)
8788         from that old name to the new _sc_search_regexp.  This shim was
8789         added by commit 219c504b.
8790
8791         init.sh: do not try to accommodate compare arguments starting with "-"
8792         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8793         compare arguments that start with "-".  Besides, we do not worry
8794         about this when invoking diff or cmp; why start now with sed?
8795         Using "--" to separate options from argument would trigger sed
8796         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8797         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8798
8799 2012-01-02  Bruno Haible  <bruno@clisp.org>
8800
8801         Enhance tests for module 'isatty'.
8802         * modules/isatty-tests (Depends-on): Add pipe-posix.
8803         * tests/test-isatty.c: Include <fcntl.h>.
8804         (DEV_NULL): New macro.
8805         (main): Test the resut of isatty() also on regular files, pipes, and
8806         /dev/null.
8807
8808         New module 'isatty'.
8809         * lib/unistd.in.h (isatty): New declaration.
8810         * lib/isatty.c: New file, based on an idea of
8811         Bastien Roucariès <roucaries.bastien@gmail.com>.
8812         * m4/isatty.m4: New file.
8813         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8814         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8815         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8816         REPLACE_ISATTY.
8817         * modules/isatty: New file.
8818         * doc/posix-functions/isatty.texi: Mention the new module.
8819         Suggested by Paolo Bonzini.
8820
8821 2012-01-02  Bruno Haible  <bruno@clisp.org>
8822
8823         canonicalize: Tweak 2011-12-29 commit.
8824         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8825         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8826
8827 2012-01-02  Jim Meyering  <meyering@redhat.com>
8828
8829         gitlog-to-changelog: describe input syntax in --help output
8830         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8831
8832         gitlog-to-changelog: fix typo in --help: show backslash before email @
8833         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8834         in sources, but not in actual output.
8835
8836 2011-12-30  Jim Meyering  <meyering@redhat.com>
8837
8838         gitlog-to-changelog: don't malfunction when name contains %-directive
8839         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8840         in a name string cause trouble.  E.g., with a user name of "%s",
8841         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8842
8843 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8844
8845         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8846         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8847         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8848         the "  (tiny change)" notation that is appended to the standard
8849         ChangeLog "date  name  email" header line.
8850
8851 2012-01-01  Jim Meyering  <meyering@redhat.com>
8852
8853         test-framework-sh: init.sh: fix "make dist" failure
8854         When using gnulib-tool's --with-tests option and any module that
8855         depends on test-framework-sh, "make dist" would fail due to the
8856         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8857         in the gltests directory, and not in the gllib/ directory.
8858         One way to work around that is to move the EXTRA_DIST += init.sh
8859         from the primary module to the -tests one:
8860         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8861         * modules/test-framework-sh (Makefile.am): ...not here.
8862         Reported by Tom G. Christensen in
8863         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8864
8865         version-etc: update copyright year reported by --version
8866         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8867
8868 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8869
8870         canonicalize: only stat() if required
8871         * lib/canonicalize.c (canonicalize_filename_mode):
8872         Avoid calling l?stat() when both CAN_MISSING,
8873         and CAN_NOLINKS are set, as we neither need
8874         to resolve symlinks or test component existence.
8875
8876 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8877
8878         doc: cover st_ino issues once; add OpenVMS etc.
8879         * doc/posix-functions/stat.texi (stat):
8880         * doc/posix-functions/lstat.texi (lstat):
8881         * doc/posix-functions/fstatat.texi (fstatat):
8882         * doc/posix-functions/fstat.texi (fstat):
8883         Move general 'struct stat' stuff to sys_stat.texi,
8884         leaving behind a pointer.
8885         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8886         Merge duplicate info about 'struct stat' problems into here.
8887         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8888         and suggest partial workarounds.
8889
8890         same-inode: port to OpenVMS
8891         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8892         three st_ino values.
8893
8894 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8895
8896         canonicalize: fix references to stat() and lstat()
8897         * lib/canonicalize.c (canonicalize_filename_mode):
8898         Ensure references always resolve to a replacement
8899         function if required (even via a macro).
8900
8901 2011-12-30  Jim Meyering  <meyering@redhat.com>
8902
8903         gitlog-to-changelog: remove a little duplication
8904         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8905         rather than twice.
8906
8907 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8908
8909         canonicalize: add support for not resolving symlinks
8910         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8911         indicate we don't want to follow symlinks.  Also
8912         provide CAN_MODE_MASK to aid setting these existing
8913         mutually exclusive values.
8914         * lib/canonicalize.c (canonicalize_filename_mode):
8915         Extract the flags from can_mode parameter, which
8916         are currently just used to select between stat()
8917         and lstat().  Also ensure that mutually exclusive
8918         values are flagged immediately as invalid.
8919         * tests/test-canonicalize.c: Verify symlinks are
8920         not followed, and that invalid flag combinations
8921         are diagnosed.
8922
8923 2011-12-25  Jim Meyering  <meyering@redhat.com>
8924
8925         gitlog-to-changelog: do not clump multi-paragraph entries
8926         Identical header lines (date,name,email+coauthors) are suppressed,
8927         thus putting all entries with those same characteristics under
8928         a single header.  However, when a log entry consists of two or
8929         more paragraphs, it may not be clear where it starts and ends.
8930         This change makes it so that such an entry is always separated
8931         from others by a header line, even when that header would
8932         otherwise be suppressed.
8933         * build-aux/gitlog-to-changelog: Implement the above.
8934         Inspired by a related request from Stefano Lattarini in
8935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8936
8937 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8938
8939         announce-gen: fix `cmd' typo in diagnostic
8940         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8941         diagnostic: a missing '$' meant that the command was not output.
8942
8943 2011-12-23  Jim Meyering  <meyering@redhat.com>
8944
8945         test-framework-sh: distribute init.sh
8946         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8947         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8948         fail due to the lack of init.sh.
8949
8950         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8951         * modules/atexit-tests: Rather than listing tests/init.sh,
8952         now that there's a module for it, simply depend on that new module.
8953         * modules/closein-tests: Likewise.
8954         * modules/exclude-tests: Likewise.
8955         * modules/getcwd-tests: Likewise.
8956         * modules/perror-tests: Likewise.
8957         * modules/pread-tests: Likewise.
8958         * modules/pwrite-tests: Likewise.
8959         * modules/vc-list-files-tests: Likewise.
8960         * modules/verify-tests: Likewise.
8961         * modules/xalloc-die-tests: Likewise.
8962         * modules/xstrtoimax-tests: Likewise.
8963         * modules/xstrtol-tests: Likewise.
8964         * modules/xstrtoll-tests: Likewise.
8965         * modules/xstrtoumax-tests: Likewise.
8966         * modules/yesno-tests: Likewise.
8967
8968 2011-12-22  Jim Meyering  <meyering@redhat.com>
8969
8970         test-framework-sh: add minimal tests of init.sh's compare function
8971         * modules/test-framework-sh-tests: New file.
8972         * tests/test-init.sh: New file.
8973
8974         test-framework-sh: new module
8975         * modules/test-framework-sh: New file.
8976         * MODULES.html.sh (Support for maintaining and releasing projects):
8977         List it.
8978
8979         init.sh: do not emit simulated diff output to stderr
8980         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8981
8982 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8983
8984         .gitignore: ignore gnulib.dvi and regex.info
8985         * doc/.gitignore:add gnulib.dvi and regex.info
8986
8987 2011-12-22  Jim Meyering  <meyering@redhat.com>
8988
8989         init.sh: correct previous change
8990         * tests/init.sh (compare): My previous change was wrong.
8991         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8992
8993         init.sh: avoid unwarranted test failure when using "set -e"
8994         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8995         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8996         a use like "compare exp out" would get evoke an unconditional failure.
8997
8998 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8999
9000         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9001         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9002         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9003         autoreconf that did not.
9004         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9005         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9006
9007 2011-12-17  Jim Meyering  <meyering@redhat.com>
9008
9009         bootstrap: remove some now-unneeded code
9010         This script arose back when gnulib-tool was young.
9011         Since then, it has seen improvements that render much of this
9012         script unnecessary.  In particular, it can now make symlinks
9013         to the files it uses.  Also, I no longer see as much value in
9014         marking files as read-only via comments.
9015         If you relied on the symlink-creation feature of the preceding
9016         version of this script, you can get most of that functionality
9017         by adding the --symlink option to the definition of
9018         gnulib_tool_option_extras in your bootstrap.conf file.
9019         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9020         Run autopoint and libtoolize *before* gnulib-tool.
9021         After it, run an abbreviated autoreconf, rather than a loop around
9022         all tools.
9023         (slirp, bt_mark_as_generated): Remove functions.
9024
9025 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9026
9027         ftoastr: fix typo
9028         * lib/ftoastr.h: Fix misspelling in comment.
9029
9030 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9031
9032         * top/README-release: fix punctuation.
9033
9034 2011-12-17  Jim Meyering  <meyering@redhat.com>
9035
9036         bootstrap: correct the recent buildreq change
9037         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9038         had no effect.
9039         * build-aux/bootstrap (buildreq): Bracket each search term with
9040         "*...*", so that the shell "case" statement works as intended.
9041         Add comments.
9042
9043 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9044
9045         build: let bootstrap resort to wget when downloading .po files
9046         * build-aux/bootstrap (download_po_files): Fallback to wget when
9047         downloading the .po files via rsync fails.  This is necessary to
9048         bootstrap from behind a strict firewall.
9049
9050 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9051
9052         stdint: don't assume C++11 when compiling with g++
9053         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9055         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9056         work also in C++ before C++11, as that improperly inhibits
9057         generating a substitute stdint.h for that case.
9058
9059 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9060
9061         alloca: protect comment from gnulib-tool
9062         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9063         that gnulib-tool doesn't think it's a license, and munge it to
9064         say "GCC version 3".
9065
9066 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9067
9068         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9069         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9070         $(abs_top_builddir) instead of $(top_builddir).
9071
9072 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9073
9074         strftime-tests: also test nanoseconds
9075         * tests/test-strftime.c (T): Add a test of %N.
9076
9077 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9078
9079         inttypes, stdint: add C++11 support
9080         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9081         when including inttypes.h and stdint.h.  Support this change to
9082         the standard.
9083         * doc/posix-headers/inttypes.texi (inttypes.h):
9084         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9085         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9086         Define if not defined already, for the benefit of pre-C++11 hosts.
9087         Define the standard format macros (e.g., PRId8) always.
9088         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9089         Likewise, if __cpluspus.  Define the standard constant and limit
9090         macros (e.g., INT8_C, INT8_MAX) always.
9091         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9092         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9093         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9094         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9095         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9096         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9097         Likewise.
9098
9099 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         nonblocking tests: Fix test failure on Linux/PPC.
9102         Suggested by Prerna Saxena in
9103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9104         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9105         Set to 1100000.
9106
9107 2011-12-12  Jim Meyering  <meyering@redhat.com>
9108
9109         argmatch: don't hard-code `' when listing valid option arguments
9110         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9111         use the quote function to add quotes.  Use fputs rather than
9112         fprintf for the format string with no format directive.
9113
9114 2011-12-07  Eric Blake  <eblake@redhat.com>
9115
9116         bootstrap: detect tools required by gnulib-tool
9117         * build-aux/bootstrap (buildreq): Provide minimum implicit
9118         dependencies.
9119         * DEPENDENCIES: Mention patch as a prereq.
9120
9121 2011-12-04  Bruno Haible  <bruno@clisp.org>
9122
9123         sethostname: Port to Windows platforms.
9124         * lib/sethostname.c: Provide an alternate implementation for Windows
9125         platforms.
9126         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9127         (main): Skip the test if sethostname() fails with EPERM. On Windows
9128         platforms, don't check the result of gethostname().
9129
9130 2011-12-04  Bruno Haible  <bruno@clisp.org>
9131             Jim Meyering  <meyering@redhat.com>
9132
9133         tests: Avoid spurious error message on platforms without mktemp program.
9134         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9135
9136 2011-12-04  Bruno Haible  <bruno@clisp.org>
9137
9138         sethostname: Fix documentation.
9139         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9140         "not fixed" section.
9141
9142 2011-12-03  Bruno Haible  <bruno@clisp.org>
9143
9144         gnulib-tool: Verify that the License field is present and non-empty.
9145         * gnulib-tool (func_get_license_raw): New function, extracted from
9146         func_get_license.
9147         (func_get_license): Use it. Warn if the module is not a test module and
9148         has no license.
9149         Suggested by Jim Meyering.
9150
9151 2011-12-03  Bruno Haible  <bruno@clisp.org>
9152
9153         sethostname tests: Fix link error on mingw.
9154         * tests/test-sethostname1.c: New file, extracted from
9155         tests/test-sethostname.c.
9156         * tests/test-sethostname2.c: New file, extracted from
9157         tests/test-sethostname.c.
9158         * tests/test-sethostname.c: Remove file.
9159         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9160         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9161         (Depends-on): Add gethostname.
9162         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9163         Link the latter with $(GETHOSTNAME_LIB).
9164
9165         sethostname tests: Fix compilation error on mingw.
9166         * tests/test-sethostname.c: Don't include <sys/types.h>.
9167         (geteuid): Use a dummy value without uid_t.
9168         * modules/sethostname-tests (Depends-on): Remove sys_types.
9169
9170         sethostname tests: Avoid a gcc warning.
9171         * tests/test-sethostname.c (main): Remove an unused variable.
9172
9173         Tweak last commit.
9174         * modules/sethostname-tests (Files): Sort by decreasing importance.
9175         (configure.ac): Check for geteuid.
9176         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9177         the test when there's nothing to test. Drop an unnecessary cast.
9178         Improve an error message. Verify that the final sethostname() call
9179         succeeds.
9180
9181 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9182
9183         Add a test suite for the sethostname module.
9184         * modules/sethostname-tests: New file.  A test program
9185         for the sethostname module.
9186         * tests/test-sethostname.c: Likewise.
9187
9188 2011-12-03  Bruno Haible  <bruno@clisp.org>
9189
9190         Tweak last commit.
9191         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9192         Fix preprocessor directives indentation. Fix typos.
9193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9194         * modules/unistd (Makefile): Likewise.
9195
9196 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9197
9198         Integrate the sethostname module into unistd.
9199         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9200         into the unistd.h header.
9201         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9202         preprocessor directives.
9203         * modules/unistd: Setup the Makefile substitutions of the
9204         SETHOSTNAME preprocessor directives.
9205
9206 2011-12-03  Bruno Haible  <bruno@clisp.org>
9207
9208         Tweak last commit.
9209         * lib/sethostname.c: Don't include <string.h>.
9210         (sethostname): No need to copy the argument string to the stack. Don't
9211         call clearerr. Preserve errno when fprintf failed.
9212         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9213         Don't invoke AC_REPLACE_FUNCS.
9214         * modules/sethostname (Link): Remove empty section.
9215         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9216         failure problem.
9217
9218 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9219
9220         New module 'sethostname'.
9221         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9222         for systems that lack it.
9223         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9224         sethostname declaration and function.
9225         * modules/sethostname: New file.  Define the sethostname module.
9226
9227 2011-12-03  Bruno Haible  <bruno@clisp.org>
9228
9229         Tweak last commit.
9230         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9231
9232 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9233
9234         Split the HOST_NAME_MAX detection into a separate m4 macro.
9235         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9236         macro so it can be used by the pending sethostname module.
9237
9238 2011-12-03  Bruno Haible  <bruno@clisp.org>
9239
9240         Fix module descriptions syntax.
9241         * modules/argv-iter (License): Fix syntax.
9242         * modules/di-set (License): Likewise.
9243         * modules/ino-map (License): Likewise.
9244         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9245
9246 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         stdalign: port to Clang 3.0
9249         Problem reported by Simon Josefsson in
9250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9251         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9252         which has <stdalign.h> but which does not define alignof.
9253         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9254
9255 2011-12-01  Eric Blake  <eblake@redhat.com>
9256
9257         mktempd: silence dd usage
9258         * build-aux/mktempd (rand_bytes): Silence dd.
9259
9260 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9261
9262         manywarnings: Don't mention gcc version in docstring.
9263         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9264         Jim Meyering <meyering@redhat.com>.
9265
9266 2011-11-30  Jim Meyering  <meyering@redhat.com>
9267
9268         hash: mark a few floating point constants with "f" suffix
9269         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9270         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9271         floating point constants with "f", since they're destined to be
9272         saved/used as "float"s.
9273
9274 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9275
9276         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9277         * tests/test-float.c (test_long_double): Correct and re-enable the
9278         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9279
9280 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9281
9282         Avoid subtracting two pointers that don't point into the same block.
9283         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9284         only pointers into the same memory block are subtracted. We cannot
9285         assume that sizeof (ptrdiff_t) == sizeof (void *).
9286
9287 2011-11-29  Eric Blake  <eblake@redhat.com>
9288
9289         maint.mk: add syntax check for use of compare from init.sh
9290         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9291         moved here from coreutils.
9292
9293         manywarnings: drop -Wunsuffixed-float-constants
9294         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9295         '1.0D', which is the only way to silence this warning for 'double'.
9296
9297 2011-11-29  Jim Meyering  <meyering@redhat.com>
9298
9299         hash: mark compute_bucket_size with the pure attribute
9300         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9301
9302         quotearg, propername: correct pragma guard expression
9303         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9304         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9305
9306 2011-11-28  Jim Meyering  <meyering@redhat.com>
9307
9308         propername: do not mark proper_name with the const attribute
9309         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9310         since it examines data pointed to by its parameter.
9311         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9312         the suggestion from -Wsuggest-attribute=const.
9313
9314         propername: mark one more function as const
9315         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9316
9317 2011-11-27  Jim Meyering  <meyering@redhat.com>
9318
9319         mark functions with const and pure attributes
9320
9321         Mark functions per suggestions from gcc-4.6 when using these options:
9322         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9323         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9324         Follow these guidelines: when possible, apply the attribute to
9325         an extern declaration, not to its definition.  Apply it to the
9326         definition only when the definition is static.
9327         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9328         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9329         * lib/base64.h (isbase64): Likewise.
9330         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9331         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9332         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9333         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9334         (c_tolower, c_toupper): Likewise.
9335         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9336         * lib/chdir-long.c (find_non_slash): Likewise.
9337         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9338         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9339         * lib/file-type.h (file_type): Likewise.
9340         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9341         * lib/filevercmp.c (verrevcmp): Likewise.
9342         * lib/freadahead.h (freadahead): Likewise.
9343         * lib/fts.c (fts_maxarglen): Likewise.
9344         * lib/hash-pjw.h (hash_pjw): Likewise.
9345         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9346         * lib/hash.c (is_prime, next_prime): Likewise.
9347         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9348         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9349         (hash_table_ok, hash_get_first, hash_string): Likewise.
9350         (compute_bucket_size): Likewise.
9351         * lib/i-ring.h (i_ring_empty): Likewise.
9352         * lib/isnan.c (isnanl): Likewise.
9353         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9354         * lib/memcasecmp.h (memcasecmp): Likewise.
9355         * lib/memchr2.h (memchr2): Likewise.
9356         * lib/memcmp2.h (memcmp2): Likewise.
9357         * lib/parse-datetime.y (lookup_zone): Likewise.
9358         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9359         [!WINDOWS_SOCKETS]: Likewise.
9360         * lib/strnlen1.h (strnlen1): Likewise.
9361         * lib/uniwidth.in.h (uc_width): Likewise.
9362         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9363         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9364         (quoting_options_from_style): Add a comment.
9365         * lib/propername.h (proper_name): Add a comment.
9366
9367 2011-11-27  Bruno Haible  <bruno@clisp.org>
9368
9369         Remove unused macros from !_LIBC code in glibc-borrowed files.
9370         * lib/fnmatch.c (STRCOLL): Remove macro.
9371         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9372         * lib/glob.c (__stat, __readdir64): Remove macros.
9373         * lib/tempname.c (__open64, __xstat64): Remove macros.
9374         Suggested by Paul Eggert.
9375
9376 2011-11-27  Bruno Haible  <bruno@clisp.org>
9377
9378         getcwd: Fix link error on MSVC 9.
9379         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9380
9381 2011-11-27  Bruno Haible  <bruno@clisp.org>
9382
9383         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9384         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9385         HAVE_OPENDIR is 0.
9386         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9387         HAVE_CLOSEDIR is 0.
9388         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9389         is 0.
9390         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9391
9392 2011-11-27  Bruno Haible  <bruno@clisp.org>
9393
9394         getcwd: Fix bug from 2011-08-17.
9395         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9396         platforms that need it.
9397         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9398         code of 4 to be a failure, not a success. This ensures that
9399         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9400
9401 2011-11-27  Bruno Haible  <bruno@clisp.org>
9402
9403         binary-io tests: Avoid test failure on mingw when libtool is used.
9404         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9405         Don't verify the size of t-bin-out1.tmp here.
9406         * tests/test-binary-io.sh: Verify it here.
9407         Reported by Simon Josefsson.
9408
9409 2011-11-26  Bruno Haible  <bruno@clisp.org>
9410
9411         Fix conflict between two instantiations of module 'unistd'.
9412         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9413         ${include_guard_prefix} also in the autoconf snippet.
9414         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9416         GNULIB_UNISTD_H_GETOPT.
9417         * modules/getopt-posix (configure.ac): Set the
9418         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9419         * modules/getopt-gnu (configure.ac): Likewise.
9420         * modules/unistd (Makefile.am): Change the substitution value of
9421         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9422         Reported by Simon Josefsson.
9423
9424 2011-11-25  Bruno Haible  <bruno@clisp.org>
9425
9426         pagealign_alloc: Doc and comments.
9427         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9428         module.
9429         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9430
9431 2011-11-25  Jim Meyering  <meyering@redhat.com>
9432
9433         test-update-copyright.sh: avoid false-positive failure
9434         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9435         around false positive failure on Cygwin/Windows.  The latter was
9436         matching erroneously-created files with names like
9437         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9438
9439 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9440
9441         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9442         * m4/valgrind-tests.m4: Check that the parameters that will be
9443         used works, not just a subset of them.  Reported by Bruno Haible
9444         <bruno@clisp.org>.
9445
9446 2011-11-24  Jim Meyering  <meyering@redhat.com>
9447
9448         test-stdalign.c: comment out long double tests
9449         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9450         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9451         error: '_Alignas' specifiers cannot reduce alignment of \
9452         'static_longdouble_alignas'.
9453
9454 2011-11-22  Jim Meyering  <meyering@redhat.com>
9455
9456         init.sh: make "compare /dev/null FILE" output more readable
9457         * tests/init.sh (compare_): Document the preferred order of arguments.
9458         (emit_diff_u_header_): New function.
9459         (compare_dev_null_): Emit a simulated diff, rather than just the
9460         contents of the unexpected file.  Suggestion from Bruno Haible.
9461
9462 2011-11-21  Jim Meyering  <meyering@redhat.com>
9463             Eric Blake  <eblake@redhat.com>
9464
9465         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9466         * tests/init.sh: Make our compare function slightly more portable.
9467         Reported by Bruno Haible in
9468         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9469
9470 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9471
9472         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9473         before using it, in code that ends up in config.h.
9474
9475 2011-11-20  Bruno Haible  <bruno@clisp.org>
9476
9477         getcwd: Work around getcwd bug on AIX 5..7.
9478         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9479         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9480         Use a different value for gl_cv_func_getcwd_path_max. Move the
9481         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9482         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9483         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9484         Define HAVE_MINIMALLY_WORKING_GETCWD.
9485         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9486         where it is not even minimally working, that is, on AIX.
9487         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9488         m4/getcwd-path-max.m4.
9489         (main): Update exit code computation.
9490         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9491         getcwd does not handle long file names.
9492
9493 2011-11-20  Bruno Haible  <bruno@clisp.org>
9494
9495         getcwd: Fix bug from 2009-09-10.
9496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9497         like "no".
9498
9499 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9500
9501         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9502
9503 2011-11-20  Bruno Haible  <bruno@clisp.org>
9504
9505         fma tests: Avoid shadowing local variables.
9506         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9507         expected.
9508
9509 2011-11-20  Bruno Haible  <bruno@clisp.org>
9510
9511         copysignf tests: Fix.
9512         * tests/test-copysignf.c: Fix signature check.
9513
9514 2011-11-20  Bruno Haible  <bruno@clisp.org>
9515
9516         fma: Remove unused code.
9517         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9518         unused macros.
9519
9520 2011-11-20  Bruno Haible  <bruno@clisp.org>
9521
9522         sethostname: Fix doc about AIX.
9523         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9524         sethostname; it has it.
9525
9526         sethostname: Mention more portability problems.
9527         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9528         problem.
9529         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9530
9531 2011-11-19  Bruno Haible  <bruno@clisp.org>
9532
9533         Depend on module fcntl-h when AT_FDCWD is used.
9534         * modules/utimens (Depends-on): Add fcntl-h.
9535         * modules/areadlinkat (Depends-on): Likewise.
9536         * modules/areadlinkat-with-size (Depends-on): Likewise.
9537         * modules/faccessat (Depends-on): Likewise.
9538         * modules/fchmodat (Depends-on): Likewise.
9539         * modules/fchownat (Depends-on): Likewise.
9540         * modules/getcwd (Depends-on): Likewise.
9541         * modules/mkdirat (Depends-on): Likewise.
9542         * modules/mkfifoat (Depends-on): Likewise.
9543         * modules/readlinkat (Depends-on): Likewise.
9544         * modules/symlinkat (Depends-on): Likewise.
9545         * modules/dup2-tests (Depends-on): Likewise.
9546         * modules/fdutimensat-tests (Depends-on): Likewise.
9547         * modules/futimens-tests (Depends-on): Likewise.
9548
9549 2011-11-19  Bruno Haible  <bruno@clisp.org>
9550
9551         euidaccess: Update a comment.
9552         * lib/euidaccess.c: Update comment about platforms with faccessat.
9553
9554 2011-11-19  Bruno Haible  <bruno@clisp.org>
9555
9556         openat: Fix file list.
9557         * modules/openat (Files): Remove lib/at-func.c.
9558
9559 2011-11-19  Bruno Haible  <bruno@clisp.org>
9560
9561         fstatat: Simplify.
9562         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9563         gnulib should define rpl_fstatat, there is a
9564         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9565
9566 2011-11-19  Bruno Haible  <bruno@clisp.org>
9567
9568         Ensure 'inline' can be used in tests/test-utimens-common.h.
9569         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9570         * modules/futimens-tests (configure.ac): Likewise.
9571         * modules/utimens-tests (configure.ac): Likewise.
9572         * modules/utimensat-tests (configure.ac): Likewise.
9573
9574 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9575
9576         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9577         not hash_insert0.
9578         (hash_insert_if_absent): Doc fix.
9579
9580 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9581
9582         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9583
9584 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9585
9586         test-getcwd: disambiguate exit status
9587         * tests/test-getcwd.c (test_long_name): Return 0..7.
9588         (main): Exit with an unambiguous exit status.  The old
9589         code yielded a mysterious mixture of two failure codes.
9590
9591         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9592         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9593         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9594         rpl_fstatat or fstatat.  This should fix the other problem
9595         reported by Kai Habel in
9596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9597         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9599         and I reproduced it on a Solaris 8 host we still have in production.
9600
9601 2011-11-18  Jim Meyering  <meyering@redhat.com>
9602
9603         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9604         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9605         Add a sentence to the comment.
9606         (hash_insert0): New function that simply calls hash_insert_if_absent.
9607         * lib/hash.h (hash_insert_if_absent): Declare it.
9608         (hash_insert0): Add deprecation attribute.
9609         (_GL_ATTRIBUTE_DEPRECATED): Define.
9610         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9611         not hash_insert0.
9612         * NEWS: Mention it, even though it's not really an incompatible change.
9613
9614 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9615
9616         openat: avoid compilation failure due to lack of <errno.h> inclusion
9617         * lib/openat.c: Include <errno.h>.
9618
9619 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9620
9621         * modules/getcwd (Depends-on): Add fdopendir.
9622         This fixes one of the two problems reported by Kai Habel in
9623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9624
9625         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9626         stdalign problem reported by Ian Beckwith in
9627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9628         * modules/crypto/gc-arcfour (Depends-on):
9629         Depend conditionally on crypto/arcfour.
9630         * modules/crypto/gc-arctwo (Depends-on):
9631         Depend conditionally on crypto/arctwo.
9632         * modules/crypto/gc-des (Depends-on):
9633         Depend conditionally on crypto/des.
9634         * modules/crypto/gc-hmac-md5 (Depends-on):
9635         Depend conditionally on crypto/hmac-md5.
9636         * modules/crypto/gc-hmac-sha1 (Depends-on):
9637         Depend conditionally on crypto/hmac-sha1.
9638         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9639         * modules/crypto/gc-md4 (Depends-on):
9640         Depend conditionally on crypto/md4.
9641         * modules/crypto/gc-md5 (Depends-on):
9642         Depend conditionally on crypto/md5.
9643         * modules/crypto/gc-rijndael (Depends-on):
9644         Depend conditionally on crypto/rijndael.
9645         * modules/crypto/gc-sha1 (Depends-on):
9646         Depend conditionally on crypto/sha1.
9647         * modules/crypto/gc-arcfour:
9648         * modules/crypto/gc-arctwo:
9649         * modules/crypto/gc-des:
9650         * modules/crypto/gc-hmac-md5:
9651         * modules/crypto/gc-hmac-sha1:
9652         * modules/crypto/gc-md2:
9653         * modules/crypto/gc-md4:
9654         * modules/crypto/gc-md5:
9655         * modules/crypto/gc-rijndael:
9656         * modules/crypto/gc-sha1:
9657         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9658         now that the conditional dependencies do the work for us.
9659
9660 2011-11-17  Jim Meyering  <meyering@redhat.com>
9661
9662         tests: factor st_ctime-comparison out of two headers
9663         * tests/test-utimens-common.h (ctime_compare): Define.
9664         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9665         * tests/test-lutimens.h (test_lutimens): Likewise.
9666         * tests/test-utimens.h (test_utimens): Likewise.
9667
9668         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9669         Invoke the test program via an init.sh-using wrapper.
9670         * tests/test-getcwd.sh: New file.
9671         * modules/getcwd-tests (Files): Add it.
9672         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9673
9674 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9675
9676         gitlog-to-changelog: support multi-author commits.
9677         The FSF cares about keeping track of all authors of patches to its
9678         projects, but Git doesn't provide obvious support for multi-author
9679         changesets. Consensus seems to be forming around the use of extra
9680         Signed-off-by inspired lines in the log message formatted as
9681         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9682         multi-author commits between version control systems.
9683         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9684         log message and output in standard ChangeLog multi-author format.
9685         Reported by Peter Rosin <peda@lysator.liu.se>
9686
9687 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9688             Bruno Haible  <bruno@clisp.org>
9689
9690         Fix some modules' file list.
9691         * modules/fstatat (Files): Add m4/lstat.m4.
9692         * modules/openat (Files): Likewise.
9693         * modules/unlinkat (Files): Likewise.
9694
9695 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9696
9697         maint.mk: fix tight-scope.mk generation in VPATH builds.
9698         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9699         reference with $(srcdir) so that the file is found correctly even
9700         when running `make syntax-check' in a VPATH build.
9701
9702 2011-11-13  Bruno Haible  <bruno@clisp.org>
9703             Jim Meyering  <meyering@redhat.com>
9704
9705         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9706         * tests/init.sh (compare): Remove "No differences encountered" or
9707         synonymous output from the 'diff' program.
9708
9709 2011-11-13  Bruno Haible  <bruno@clisp.org>
9710
9711         Makefile: Tweak indentation.
9712         * Makefile: Use tab as first character in every line that contains rule
9713         commands.
9714
9715 2011-11-13  Bruno Haible  <bruno@clisp.org>
9716
9717         Syntax check for copyright statements.
9718         * check-copyright: New file.
9719         * Makefile (sc_check_copyright): New rule.
9720
9721 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9722
9723         * build-aux/git-version-gen: Add --prefix to configure the tag
9724         match string.
9725
9726 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9727
9728         * build-aux/git-version-gen: Add --help and --version.
9729
9730 2011-11-12  Jim Meyering  <meyering@redhat.com>
9731
9732         revamp the other test-exclude?.sh scripts to use init.sh, too
9733         * tests/test-exclude1.sh: Use init.sh.
9734         * tests/test-exclude2.sh: Likewise.
9735         * tests/test-exclude3.sh: Likewise.
9736         * tests/test-exclude4.sh: Likewise.
9737         * tests/test-exclude5.sh: Likewise.
9738         * tests/test-exclude6.sh: Likewise.
9739         * tests/test-exclude7.sh: Likewise.
9740         * tests/test-exclude8.sh: Likewise.
9741         * modules/exclude-tests (Files): List init.sh.
9742
9743         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9744         These shell scripts ignored failure of the binary test-exclude,
9745         so making the latter return 77 didn't cause them to be skipped.
9746         * tests/test-exclude5.sh: Exit with test-exclude's error status
9747         when that program fails.  Revamp to use init.sh.
9748         * tests/test-exclude2.sh: Likewise.
9749
9750         test-exclude: fix a typo
9751         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9752
9753 2011-11-11  Bruno Haible  <bruno@clisp.org>
9754
9755         obstack: Fix compilation error on MSVC 9.
9756         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9757
9758 2011-11-11  Jim Meyering  <meyering@redhat.com>
9759
9760         test-exclude: skip tests rather than failing on deficient systems
9761         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9762         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9763         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9764         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9765
9766 2011-11-10  Bruno Haible  <bruno@clisp.org>
9767
9768         ptsname_r test: Avoid gcc warning on glibc systems.
9769         * tests/test-ptsname_r.c (null_ptr): New function.
9770         (test_errors): Use it.
9771
9772 2011-11-10  Bruno Haible  <bruno@clisp.org>
9773
9774         ptsname_r: Avoid compilation error on OSF/1 5.1.
9775         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9777         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9778         function is not declared or incompatibly declared.
9779         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9780         * modules/ptsname_r (Depends-on, configure.ac): Update.
9781         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9782
9783 2011-11-10  Bruno Haible  <bruno@clisp.org>
9784
9785         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9786         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9787         When cross-compiling, guess yes on all platforms except AIX.
9788         Reported by Ludovic Courtès <ludo@gnu.org>.
9789
9790 2011-11-09  Bruno Haible  <bruno@clisp.org>
9791
9792         ptsname_r tests: Fix bugs.
9793         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9794         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9795
9796 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9797
9798         fstatat: work with cross-compilation
9799         Problem reported by Ludovic Courtès in
9800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9801         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9802         "cross-compiling" and assume the bug is present.  Replace
9803         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9804         an inverted sense, to be more conservative about our assumptions.
9805         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9806
9807 2011-11-09  Bruno Haible  <bruno@clisp.org>
9808
9809         Improve MODULES.html output.
9810         * modules/mkfifoat (Description): Use the word "function".
9811         * modules/readlinkat (Description): Likewise.
9812         * modules/symlinkat (Description): Likewise.
9813
9814 2011-11-09  Eric Blake  <eblake@redhat.com>
9815
9816         ptsname_r-tests: new test module
9817         * modules/ptsname_r-tests: New module.
9818         * tests/test-ptsname_r.c: New file.
9819
9820         ptsname_r: new module
9821         * modules/ptsname_r: New module.
9822         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9823         * lib/ptsname.c (__ptsname_r): Split...
9824         * lib/ptsname_r.c: ...into new file.
9825         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9826         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9827         * modules/stdlib (Makefile.am): Substitute witnesses.
9828         * lib/stdlib.in.h (ptsname_r): Declare it.
9829         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9830         * MODULES.html.sh (Misc): Likewise.
9831         * modules/ptsname (Depends-on): Alter dependency.
9832         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9833
9834 2011-11-09  Jim Meyering  <meyering@redhat.com>
9835
9836         announce-gen: be more concise when there's only one URL+tarball
9837         * build-aux/announce-gen (get_tool_versions): When you distribute
9838         only one type of tarball, combine the first two "Here are..."
9839         sections and make the key-checking grammar independent of
9840         how many tarballs there are.
9841
9842 2011-11-09  Eric Blake  <eblake@redhat.com>
9843
9844         openpty: provide a stub on mingw
9845         * lib/pty.in.h (includes): Provide forward declarations.
9846         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9847
9848         raise: fix mingw handling of SIGPIPE
9849         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9850
9851 2011-11-08  Bruno Haible  <bruno@clisp.org>
9852
9853         More conditional dependencies.
9854         * modules/faccessat (Depends-on): Add conditions.
9855         * modules/fchmodat (Depends-on): Likewise.
9856         * modules/fchownat (Depends-on): Likewise.
9857         * modules/fstatat (Depends-on): Likewise.
9858         * modules/mkfifoat (Depends-on): Likewise.
9859         * modules/readlinkat (Depends-on): Likewise.
9860         * modules/symlinkat (Depends-on): Likewise.
9861         * modules/unlinkat (Depends-on): Likewise.
9862         * modules/utimensat (Depends-on): Likewise.
9863         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9864         * modules/linkat (Depends-on): Refine the conditions.
9865         * modules/renameat (Depends-on): Likewise.
9866
9867 2011-11-08  Bruno Haible  <bruno@clisp.org>
9868
9869         faccessat: Move AC_LIBOBJ invocation to module description.
9870         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9871         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9872         invocation from here...
9873         * modules/faccessat (configure.ac): ... to here. Invoke
9874         gl_PREREQ_FACCESSAT.
9875
9876 2011-11-08  Bruno Haible  <bruno@clisp.org>
9877
9878         faccessat: Simplify autoconf macro.
9879         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9880         gl_FUNC_EUIDACCESS.
9881
9882 2011-11-08  Bruno Haible  <bruno@clisp.org>
9883
9884         renameat: Fix dependencies.
9885         * modules/renameat (Depends-on): Add stdbool.
9886
9887 2011-11-08  Bruno Haible  <bruno@clisp.org>
9888
9889         mkfifoat: Fix module description.
9890         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9891         not gl_UNISTD_MODULE_INDICATOR.
9892
9893 2011-11-08  Bruno Haible  <bruno@clisp.org>
9894
9895         fstatat: Remove unused dependency.
9896         * modules/fstatat (Depends-on): Remove fstat.
9897
9898 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9899
9900         GNUmakefile: behave when Makefile is missing.
9901         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9902
9903 2011-11-08  Bruno Haible  <bruno@clisp.org>
9904
9905         openat: Conditionalize dependencies.
9906         * lib/openat.c: Reduce the scope of some #includes.
9907         * modules/openat (Depends-on): Add conditions.
9908
9909 2011-11-07  Jim Meyering  <meyering@redhat.com>
9910
9911         maint.mk: extract GPG key ID without using a temporary file
9912         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9913         without using a temporary file.  Based on a suggestion from Werner Koch
9914         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9915
9916 2011-11-07  Eric Blake  <eblake@redhat.com>
9917
9918         grantpt: fix typo
9919         * lib/stdlib.in.h (grantpt): Check correct function.
9920
9921         maint.mk: silence new syntax check
9922         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9923
9924 2011-11-06  Bruno Haible  <bruno@clisp.org>
9925
9926         Doc about floating-point and math API.
9927         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9928         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9929
9930 2011-11-06  Bruno Haible  <bruno@clisp.org>
9931
9932         stdalign tests: Skip the test when compiled by Sun C.
9933         * tests/test-stdalign.c (main): Skip the test on Sun C.
9934
9935 2011-11-06  Bruno Haible  <bruno@clisp.org>
9936
9937         ansi-c++-opt: Complete the 2011-06-05 change.
9938         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9939         does not support namespaces, set the variable to "no", not to ":".
9940
9941 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9942
9943         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9944
9945 2011-11-06  Bruno Haible  <bruno@clisp.org>
9946
9947         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9948         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9949         (minus_zerol) [HP-UX]: New macro.
9950         (unary_minus) [HP-UX]: New function.
9951         (copysignl) [HP-UX]: Use unary_minus function.
9952
9953 2011-11-06  Bruno Haible  <bruno@clisp.org>
9954
9955         ldexp, ldexpf, ldexpl: Enhance tests.
9956         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9957         and tests/test-ldexpl.c.
9958         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9959         LDEXP, MIN_EXP, MAX_EXP): New macros.
9960         Include test-ldexp.h.
9961         (main): Just call test_function.
9962         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9963         infinity.h, nan.h.
9964         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9965         MAX_EXP): New macros.
9966         Include test-ldexp.h.
9967         (x, y): Remove variables.
9968         (main): Just call test_function.
9969         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9970         infinity.h, nan.h.
9971         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9972         MAX_EXP): New macros.
9973         Include test-ldexp.h.
9974         (x, y): Remove variables.
9975         (main): Just call test_function.
9976         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9977         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9978         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9979         (Depends-on): Add isnand-nolibm, signbit, float.
9980         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9981         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9982         (Depends-on): Add isnanf-nolibm, signbit, float.
9983
9984 2011-11-06  Bruno Haible  <bruno@clisp.org>
9985
9986         math tests: Cosmetics.
9987         * tests/test-math-c++.cc: Reorder declarations.
9988
9989 2011-11-05  Bruno Haible  <bruno@clisp.org>
9990
9991         fma*: Simplify test.
9992         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9993         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9994
9995         Tests for module 'fmal'.
9996         * modules/fmal-tests: New file.
9997         * tests/test-fmal1.c: New file.
9998         * tests/test-fmal2.c: New file.
9999
10000         New module 'fmal'.
10001         * lib/math.in.h (fmal): New declaration.
10002         * lib/fmal.c: New file.
10003         * m4/fmal.m4: New file.
10004         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10006         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10007         REPLACE_FMAL.
10008         * modules/fmal: New file.
10009         * doc/posix-functions/fmal.texi: Mention the new module and the various
10010         bugs.
10011
10012         Tests for module 'fmaf'.
10013         * modules/fmaf-tests: New file.
10014         * tests/test-fmaf1.c: New file.
10015         * tests/test-fmaf2.c: New file.
10016
10017         New module 'fmaf'.
10018         * lib/math.in.h (fmaf): New declaration.
10019         * lib/fmaf.c: New file.
10020         * m4/fmaf.m4: New file.
10021         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10023         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10024         REPLACE_FMAF.
10025         * modules/fmaf: New file.
10026         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10027         bugs.
10028
10029         Tests for module 'fma'.
10030         * modules/fma-tests: New file.
10031         * tests/test-fma1.c: New file.
10032         * tests/test-fma1.h: New file.
10033         * tests/test-fma2.c: New file.
10034         * tests/test-fma2.h: New file.
10035
10036         New module 'fma'.
10037         * lib/math.in.h (fma): New declaration.
10038         * lib/fma.c: New file.
10039         * m4/fma.m4: New file.
10040         * m4/fegetround.m4: New file.
10041         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10043         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10044         REPLACE_FMA.
10045         * modules/fma: New file.
10046         * doc/posix-functions/fma.texi: Mention the new module and the various
10047         bugs.
10048
10049         Extend gl_MATHFUNC.
10050         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10051         Support 'void' as argument type.
10052         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10053
10054 2011-11-05  Jim Meyering  <meyering@redhat.com>
10055
10056         maint.mk: also prohibit inclusion of dirent.h without use
10057         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10058
10059 2011-11-05  Bruno Haible  <bruno@clisp.org>
10060
10061         ldexpl tests: Avoid test failure on MSVC 9.
10062         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10063         value. Needed in order to enforce the conversion from a value greater
10064         than LDBL_MAX to Infinity.
10065
10066 2011-11-05  Bruno Haible  <bruno@clisp.org>
10067
10068         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10069         * modules/at-internal: New file, extracted from modules/openat.
10070         * modules/openat-h: New file.
10071         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10072         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10073         * modules/openat (Description): Add reference to POSIX function.
10074         (Files): Remove lib/openat.h, lib/openat-proc.c.
10075         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10076         intprops, unistd.
10077         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10078         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10079         gl_FCNTL_MODULE_INDICATOR.
10080         (Include): Remove unistd.h, openat.h.
10081         * modules/areadlinkat (Files): Add lib/at-func.c.
10082         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10083         openat-die, openat-h, save-cwd.
10084         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10085         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10086         openat-die, openat-h, save-cwd, unistd.
10087         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10088         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10089         openat-h, save-cwd. Remove fcntl-h, openat.
10090         * modules/fchmodat (Files): Remove lib/openat.h.
10091         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10092         openat, stdbool, unistd.
10093         * modules/fchownat (Files): Remove lib/openat.h.
10094         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10095         openat, stdbool, sys_stat.
10096         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10097         lib/openat-proc.c.
10098         (Depends-on): Add at-internal.
10099         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10100         * modules/fstatat (Files): Remove lib/openat.h.
10101         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10102         stdbool, unistd.
10103         * modules/fts (Depends-on): Add openat-h.
10104         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10105         openat.
10106         * modules/mkdirat (Files): Remove lib/openat.h.
10107         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10108         openat, stdbool, sys_stat.
10109         * modules/mkfifoat (Files): Add lib/at-func.c.
10110         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10111         openat-h, save-cwd. Remove fcntl-h, openat.
10112         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10113         * modules/readlinkat (Files): Add lib/at-func.c.
10114         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10115         openat-h, save-cwd. Remove fcntl-h, openat.
10116         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10117         openat.
10118         * modules/selinux-at (Files): Add lib/at-func.c.
10119         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10120         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10121         * modules/symlinkat (Files): Add lib/at-func.c.
10122         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10123         openat-h, save-cwd. Remove fcntl-h, openat.
10124         * modules/unlinkat (Files): Remove lib/openat.h.
10125         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10126         stdbool.
10127         * modules/utimensat (Files): Add lib/at-func.c.
10128         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10129         openat-die, openat-h, save-cwd.
10130         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10131         * modules/fdutimensat-tests (Depends-on): Add openat.
10132         * modules/fstatat-tests (Depends-on): Add openat-h.
10133         * modules/readlinkat-tests (Depends-on): Add openat.
10134         * modules/symlinkat-tests (Depends-on): Add openat.
10135
10136 2011-11-05  Bruno Haible  <bruno@clisp.org>
10137
10138         openat: Include <stdbool.h>.
10139         * lib/openat.c: Include <stdbool.h>.
10140
10141 2011-11-04  Bruno Haible  <bruno@clisp.org>
10142
10143         fchownat, renameat, unlinkat: Fix dependencies.
10144         * modules/fchownat (Depends-on): Add fstatat.
10145         * modules/renameat (Depends-on): Likewise.
10146         * modules/unlinkat (Depends-on): Likewise.
10147
10148 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         openat: remove direct dependency on dirent
10151         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10152         and hasn't been needed ever since fdopendir was split into its own
10153         module on 2009-08-31.
10154         * modules/openat (Depends-on): Remove dirent.
10155
10156 2011-11-04  Bruno Haible  <bruno@clisp.org>
10157
10158         renameat: Optimize code size.
10159         * modules/renameat (configure.ac): Don't compile at-func2.c if
10160         REPLACE_RENAMEAT is 1.
10161
10162 2011-11-04  Bruno Haible  <bruno@clisp.org>
10163
10164         openat tests: Fix file list.
10165         * modules/openat-tests (Files): Add tests/test-open.h.
10166
10167 2011-11-04  Bruno Haible  <bruno@clisp.org>
10168
10169         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10170         * modules/fchmodat (Depends-on): Add openat-die.
10171         * modules/fchownat (Depends-on): Likewise.
10172         * modules/linkat (Depends-on): Likewise.
10173         * modules/renameat (Depends-on): Likewise.
10174         * modules/openat (Depends-on): Add dirent.
10175
10176 2011-11-04  Jim Meyering  <meyering@redhat.com>
10177
10178         at-func*.c: fix comments
10179         * lib/at-func2.c: Correct/improve first-line comment.
10180         * lib/at-func.c: Correct grammar in first-line comment.
10181
10182 2011-11-04  Bruno Haible  <bruno@clisp.org>
10183
10184         New module 'mkdirat', split off from module 'openat'.
10185         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10186         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10187         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10188         * modules/mkdirat: New file, extracted from modules/openat.
10189         * modules/openat (Files): Remove lib/mkdirat.c.
10190         (Depends-on): Remove mkdir.
10191         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10192         (Include): Remove <sys/stat.h>.
10193         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10194         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10195         tests/test-mkdir.h.
10196         (Depends-on): Remove ignore-value.
10197         (Makefile.am): Remove rules for test-mkdirat.
10198         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10199         of module 'openat'.
10200         * NEWS: Mention the change.
10201
10202 2011-11-04  Bruno Haible  <bruno@clisp.org>
10203
10204         closedir: Avoid warning on mingw.
10205         * lib/closedir.c: Include <unistd.h>.
10206
10207 2011-11-04  Bruno Haible  <bruno@clisp.org>
10208
10209         New module 'fstatat', split off from module 'openat'.
10210         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10211         defined.
10212         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10213         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10214         gl_FUNC_FSTATAT.
10215         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10216         * modules/fstatat: New file, extracted from modules/openat.
10217         * modules/openat (Files): Remove lib/fstatat.c.
10218         (Depends-on): Remove lstat.
10219         (configure.ac): Remove AC_LIBOBJ of fstatat.
10220         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10221         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10222         tests/test-lstat.h, tests/test-stat.h.
10223         (Depends-on): Remove getcwd-lgpl.
10224         (Makefile.am): Remove rules for test-fstatat.
10225         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10226         of module 'openat'.
10227         * NEWS: Mention the change.
10228         * modules/getcwd (Depends-on): Add fstatat.
10229         * modules/linkat (Depends-on): Likewise.
10230         * modules/mkfifoat-tests (Depends-on): Likewise.
10231         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10232
10233 2011-11-03  Bruno Haible  <bruno@clisp.org>
10234
10235         New module 'unlinkat', split off from module 'openat'.
10236         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10237         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10238         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10239         * modules/unlinkat: New file, extracted from modules/openat. Correct
10240         the dependency conditions.
10241         * modules/openat (Files): Remove lib/unlinkat.c.
10242         (Depends-on): Remove rmdir, unlink.
10243         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10244         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10245         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10246         tests/test-rmdir.h, tests/test-unlink.h.
10247         (Depends-on): Remove unlinkdir.
10248         (Makefile.am): Remove rules for test-unlinkat.
10249         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10250         of module 'openat'.
10251         * NEWS: Mention the change.
10252         * modules/linkat-tests (Depends-on): Add unlinkat.
10253         * modules/mkfifoat-tests (Depends-on): Likewise.
10254         * modules/readlinkat-tests (Depends-on): Likewise.
10255
10256 2011-11-02  Bruno Haible  <bruno@clisp.org>
10257
10258         New module 'fchmodat', split off from module 'openat'.
10259         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10260         defined.
10261         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10262         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10263         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10264         * modules/fchmodat: New file, extracted from modules/openat.
10265         * modules/openat (Files): Remove lib/fchmodat.c.
10266         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10267         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10268         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10269         (Makefile.am): Remove rules for test-fchmodat.
10270         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10271         of module 'openat'.
10272         * NEWS: Mention the change.
10273
10274 2011-11-02  Jim Meyering  <meyering@redhat.com>
10275
10276         putenv: indent #definition of "environ" to placate cppi
10277         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10278
10279         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10280         Git logs are often treated as immutable, because editing them
10281         changes the SHA1 checksums of all descendants.  Thus, errors in
10282         git logs tend to stay there forever.  However, when we generate
10283         a ChangeLog file -- typically for distribution -- from that git log,
10284         we can actually make corrections in the generated file.  The key
10285         lies in recording in machine-readable/applicable form the desired
10286         corrections.  See --help for description and an example.
10287         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10288         (usage): Describe it; alphabetize option descriptions.
10289         (main): Honor the new option, carefully.
10290
10291 2011-11-01  Jim Meyering  <meyering@redhat.com>
10292
10293         gitlog-to-changelog: avoid an infloop
10294         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10295         that ends up being empty.
10296
10297 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10298
10299         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10300         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10301         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10302         contains (possibly-quoted) backslashes.  This should avoid
10303         all-too-common shell bugs if COMPLICATED contains backslashes in
10304         the "wrong" places.  Reported by David Evans in
10305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10306         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10307         because we want ASCII ranges.  Is there some reason we don't use
10308         the C locale everywhere in this script?
10309         (func_module, top level): Avoid unwanted pathname expansion when
10310         $repo_url_prefix or $repo_url_suffix_repl contain shell
10311         metacharacters like '?' and '*'.
10312
10313 2011-11-01  Bruno Haible  <bruno@clisp.org>
10314
10315         fchownat: Improve description.
10316         * modules/fchownat (Description): Add link to function.
10317
10318 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10319
10320         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10321         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10323         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10324
10325 2011-11-01  Bruno Haible  <bruno@clisp.org>
10326
10327         alignof: Avoid collision with stdalign module.
10328         * lib/alignof.h (alignof): Remove macro.
10329         * NEWS: Mention the change.
10330         Reported by Paul Eggert.
10331
10332 2011-11-01  Bruno Haible  <bruno@clisp.org>
10333
10334         New module 'fchownat', split off from module 'openat'.
10335         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10336         defined.
10337         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10338         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10339         invoke gl_FUNC_FCHOWNAT.
10340         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10341         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10342         * modules/fchownat: New file, extracted from modules/openat.
10343         * modules/openat (Files): Remove lib/fchownat.c.
10344         (Depends-on): Remove lchown.
10345         (configure.ac): Remove AC_LIBOBJ of fchownat.
10346         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10347         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10348         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10349         (Depends-on): Remove mgetgroups, usleep, stat-time.
10350         (configure.ac): Remove test for getegid.
10351         (Makefile.am): Remove rules for test-fchownat.
10352         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10353         of module 'openat'.
10354         * NEWS: Mention the change.
10355
10356 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10357
10358         stdalign: port better to MSVC and to Sun C 5.11
10359         This fixes some of the problems reported by Bruno Haible in
10360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10361         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10362         shortcomings of MSVC and of Sun C 5.11.
10363         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10364         around __declspec arg.
10365         * modules/stdalign-tests (Files): Add tests/macros.h.
10366         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10367         Include macros.h, for ASSERT.
10368         (DECLARE_ALIGNED): Remove.
10369         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10370         to catch bug), and to 1 if not (simplifies the rest of the code).
10371         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10372         (CHECK_AUTO): Remove.
10373         (CHECK_ALIGNED): Check only the alignment of the static vars,
10374         since auto var alignment isn't supported by Sun C 5.11.
10375         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10376         ASSERT failures are easier to diagnose.
10377
10378 2011-10-31  Bruno Haible  <bruno@clisp.org>
10379
10380         doc about some IRIX 5.3 problems.
10381         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10382         on IRIX 5.3.
10383         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10384         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10385         5.3.
10386         * doc/posix-functions/grantpt.texi: Likewise.
10387         * doc/posix-functions/unlockpt.texi: Likewise.
10388         * doc/posix-functions/lgamma.texi: Likewise.
10389         * doc/posix-functions/nextafter.texi: Likewise.
10390         * doc/posix-functions/remainder.texi: Likewise.
10391         * doc/posix-functions/select.texi: Mention misplaced declaration on
10392         IRIX 5.3.
10393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10394
10395 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10396
10397         gitlog-to-changelog: fix git-log invocation.
10398         git-log mishandles date strings before 1970-01-01 UTC, and there is
10399         no use to specify --since=1970-01-01 by default anyway.
10400         * build-aux/gitlog-to-changelog: By default, when no --since option
10401         was given, do not specify explicit --since option to git-log.
10402
10403 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10404
10405         gitlog-to-changelog: new option --append-dot.
10406         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10407         first non-blank line of each commit message terminated with a dot.
10408
10409 2011-10-30  Bruno Haible  <bruno@clisp.org>
10410
10411         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10412         * lib/ffsl.h: Include <config.h>.
10413         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10414
10415 2011-10-30  Jim Meyering  <meyering@redhat.com>
10416
10417         GNUmakefile: reenable "make syntax-check" for most projects
10418         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10419         build-aux variable", "syntax-check" would do nothing but succeed with
10420         the "No version control files detected..." diagnostic (unless you
10421         happened to override _build-aux via cfg.mk).
10422         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10423         to precede inclusion of maint.mk.  Otherwise, these variables would
10424         be used undefined in any project that does not override the default.
10425
10426 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10427
10428         gitlog-to-changelog: treat a message with only blank lines as empty.
10429         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10430         trailing blank lines before the code that issues a warning about an
10431         empty commit message.
10432
10433 2011-10-30  Jim Meyering  <meyering@redhat.com>
10434
10435         test-parse-datetime.c: avoid new DST-related false positive test failure
10436         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10437         based on the time/date we'll convert, not the current time.
10438         Otherwise, the moment we cross a DST boundary like today's in
10439         Europe, (CEST to CET), that offset ends up being one hour off.
10440
10441 2011-10-27  Bruno Haible  <bruno@clisp.org>
10442
10443         fstat: Tweak documentation.
10444         * modules/fstat (Description): More precise description.
10445
10446 2011-10-27  Bruno Haible  <bruno@clisp.org>
10447
10448         Update documentation regarding 'largefile' module.
10449         * doc/posix-functions/fstat.texi: Tweak wording.
10450         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10451         problems with huge directories and/or small ino_t types.
10452         * doc/posix-functions/readdir.texi: Likewise.
10453         * doc/posix-functions/rewinddir.texi: Likewise.
10454
10455 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10456
10457         maint.mk: don't maintain a second build-aux variable.
10458         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10459         depends on GNUmakefile, which already maintains a cfg.mk
10460         overridable $(_build-aux) for projects with a non-standard
10461         build-aux directory location, although without the $(srcdir)
10462         prefix.  Use that variable consistently instead of introducing a
10463         second one.  Adjust all call sites.
10464
10465 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10466
10467         Add stdalign module and use it in other modules.
10468         This is based on a previous proposal by Bruno Haible
10469         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10470
10471         stdalign: new module
10472         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10473         * modules/stdalign: New files.
10474         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10475         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10476
10477         stdalign-tests: new module
10478         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10479
10480         argp: use stdalign
10481         * lib/argp-parse.c: Include <stdalign.h>.
10482         (alignof): Remove.
10483         * modules/argp (Depends-on): Add stdalign.
10484
10485         crypto libraries: use stdalign
10486         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10487         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10488         Do not include <stdlib.h> twice, in md4.c.
10489         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10490         because we are accessing a pointer's bit-pattern, not a size.
10491         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10492         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10493         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10494         * modules/crypto/sha512: Likewise.
10495
10496         sys_socket: use stdalign, not alignof
10497         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10498         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10499
10500 2011-10-27  Bruno Haible  <bruno@clisp.org>
10501
10502         raise test: Avoid a test failure on Linux/MIPS.
10503         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10504         because 99 is a valid signal on Linux/MIPS.
10505
10506 2011-10-27  Bruno Haible  <bruno@clisp.org>
10507
10508         nonblocking tests: Fix test failure on Linux/MIPS.
10509         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10510         Set to 270000.
10511
10512 2011-10-27  Bruno Haible  <bruno@clisp.org>
10513
10514         utimensat: Work around problem on Linux/hppa.
10515         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10516         values.
10517         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10518
10519 2011-10-25  Jim Meyering  <meyering@redhat.com>
10520
10521         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10522         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10523         after symbols like NULL, size_t, etc.
10524         Reported by Alfred M. Szmidt.
10525
10526         maint.mk: exempt ENODATA from a syntax-check rule
10527         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10528         from the sc_prohibit_always-defined_macros syntax-check rule.
10529         Add a comment.  See this for more details:
10530         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10531
10532 2011-10-23  Jim Meyering  <meyering@redhat.com>
10533
10534         fts: close parent dir FD before returning from post-traversal fts_read
10535         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10536         unlink A, even though an FD open on A remained.  This is suboptimal
10537         (holding a file descriptor open longer than needed), but otherwise not
10538         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10539         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10540         that represents a real problem: it causes the removal of A to fail
10541         with e.g., "rm: cannot remove `A': Device or resource busy"
10542
10543         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10544         directory file descriptors.  After completing the final, FTS_DP,
10545         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10546         cache, but then proceeded to add a new FD to it via the subsequent
10547         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10548         final file descriptor would be closed only via fts_close's call to
10549         fd_ring_clear.  Now, it is usually closed earlier, via the final
10550         FTS_DP-returning fts_read call.
10551         * lib/fts.c (restore_initial_cwd): New function, converted from
10552         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10553         Update callers.
10554         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10555         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10556
10557 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10558             Bruno Haible  <bruno@clisp.org>
10559             Jim Meyering  <jim@meyering.net>
10560
10561         readme-release: improve safety of release prep instructions.
10562         * README-release: Don't git pull all branches when only master
10563         is needed for the release process.
10564         Run make maintainer-clean before changing trees and merging.
10565         Don't try to run ./configure right after git pull in case files
10566         that influence the bootstrap process have changed, move the
10567         ./configure step to after running ./bootstrap.
10568         Don't bootstrap "one last time"... it's the first time!
10569
10570 2011-10-22  Bruno Haible  <bruno@clisp.org>
10571
10572         errno, strerror-override: Support for MSVC 10.
10573         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10574         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10575         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10576         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10577         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10578         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10579         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10580         Assign values compatible with MSVC 10.
10581         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10582         New macros.
10583         (GNULIB_defined_EWINSOCK): New macro.
10584         * lib/strerror-override.c (strerror_override): Update accordingly.
10585         * lib/strerror-override.h: Likewise.
10586         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10587         longer equal to the corresponding errno value.
10588         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10589
10590 2011-10-22  Bruno Haible  <bruno@clisp.org>
10591
10592         perror: Recognize when test program crashes.
10593         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10594         strerror, set gl_cv_func_perror_works to no.
10595         Reported by Daniel Richard G. <skunk@iskunk.org>.
10596
10597         perror: Fix indentation.
10598         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10599
10600 2011-10-22  Bruno Haible  <bruno@clisp.org>
10601
10602         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10603         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10604         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10605         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10606         functions, not as a macro.
10607         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10608         macros.
10609         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10610         absence of macro.
10611         Suggested by Eric Blake.
10612         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10613
10614 2011-10-21  Bruno Haible  <bruno@clisp.org>
10615
10616         relocatable-prog-wrapper: Don't leave object files behind.
10617         * build-aux/install-reloc: Re-synchronize list of .o files to be
10618         removed with list of compilation units.
10619
10620 2011-10-20  Bruno Haible  <bruno@clisp.org>
10621
10622         openpty, posix_openpt: Remove code duplication.
10623         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10624         * lib/openpty.c: Include <stdlib.h>.
10625         (openpty): Use posix_openpt on all platforms except IRIX.
10626         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10627
10628 2011-10-20  Bruno Haible  <bruno@clisp.org>
10629
10630         unlockpt: Detect invalid argument.
10631         * lib/unlockpt.c: Include <fcntl.h>.
10632         (unlockpt): Check whether fd is valid, using fcntl().
10633         * modules/unlockpt (Depends-on): Add fcntl-h.
10634
10635 2011-10-20  Bruno Haible  <bruno@clisp.org>
10636
10637         openpty: Avoid compilation error on AIX 6.1.
10638         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10639
10640 2011-10-20  Bruno Haible  <bruno@clisp.org>
10641
10642         posix_openpt: Support for OpenBSD.
10643         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10644         (posix_openpt) [OpenBSD]: New code.
10645         * lib/grantpt.c: Include <fcntl.h>.
10646         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10647         * modules/grantpt (Depends-on): Add fcntl-h.
10648
10649 2011-10-20  Bruno Haible  <bruno@clisp.org>
10650
10651         posix_openpt test: Coding style.
10652         * tests/test-posix_openpt.c: Use GNU coding style.
10653
10654 2011-10-20  Bruno Haible  <bruno@clisp.org>
10655
10656         grantpt: Support --avoid=pt_chown.
10657         * modules/grantpt (Files): Add lib/pty-private.h.
10658
10659 2011-10-20  Bruno Haible  <bruno@clisp.org>
10660
10661         posix_openpt: Fix autoconf macro.
10662         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10663         unneeded check for _getpty.
10664
10665 2011-10-20  Bruno Haible  <bruno@clisp.org>
10666
10667         openpty: Update comments.
10668         * lib/openpty.c: Add comments about Minix.
10669
10670 2011-10-19  Eric Blake  <eblake@redhat.com>
10671
10672         openpty: relax license
10673         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10674
10675         pt_chown: use configmake to simplify build
10676         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10677
10678         ptsname and others: relax license
10679         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10680         * modules/unlockpt (License): Likewise.
10681         * modules/pt_chown (License): Likewise.
10682         * modules/ptsname (License): Likewise.
10683         * modules/ttyname_r (License): Likewise.
10684
10685 2011-10-19  Jim Meyering  <meyering@redhat.com>
10686
10687         posix_openpt: remove spurious #endif
10688         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10689
10690 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10691
10692         maint.mk: Respect $(build_aux) in web-manual rule.
10693         * top/maint.mk (web-manual): Find gen-announce script in user's
10694         $(build_aux) directory instead of hard-coding 'build-aux'.
10695
10696 2011-10-19  Bruno Haible  <bruno@clisp.org>
10697
10698         posix_openpt: Fix compilation error.
10699         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10700         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10701         Mention the openpty module as an alternative.
10702
10703 2011-10-19  Bruno Haible  <bruno@clisp.org>
10704
10705         Support for old NeXTstep 3.3 frexp().
10706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10707         execution time of the test to 5 seconds.
10708         Reported by Daniel Richard G. <skunk@iskunk.org>.
10709
10710 2011-10-19  Bruno Haible  <bruno@clisp.org>
10711
10712         Support for old NeXTstep 3.3 sed.
10713         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10714         part, use /.../, not \|...|. Escape periods in the header file name.
10715         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10716         Reported by Daniel Richard G. <skunk@iskunk.org>.
10717
10718 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10719
10720         Support for old NeXTstep 3.3 gcc.
10721         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10722         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10723         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10724         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10725         * lib/regex.h (_Restrict_arr_): Likewise.
10726         * lib/regex_internal.h (re_token_t): Likewise.
10727         * lib/regexec.c (check_node_accept_bytes): Likewise.
10728         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10729
10730 2011-10-18  Eric Blake  <eblake@redhat.com>
10731
10732         posix_openpt: new module
10733         * modules/posix_openpt: New module.
10734         * m4/posix_openpt.m4: New file.
10735         * lib/posix_openpt.c: Likewise.
10736         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10737         (gl_STDLIB_H_DEFAULTS): Set defaults.
10738         * modules/stdlib (Makefile.am): Substitute macros.
10739         * lib/stdlib.in.h (posix_openpt): Declare.
10740         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10741         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10742         * modules/posix_openpt-tests: New test module.
10743         * tests/test-posix_openpt.c: New test.
10744
10745 2011-10-15  Bruno Haible  <bruno@clisp.org>
10746
10747         xstrtoll: Fix compilation failure.
10748         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10749         from lib/strtol.c.
10750         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10751         some platforms.
10752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10753
10754 2011-10-15  Bruno Haible  <bruno@clisp.org>
10755
10756         vasnprintf: Optimize bit search operation.
10757         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10759         gl_DOUBLE_EXPONENT_LOCATION.
10760         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10761         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10762         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10763         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10764         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10765         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10766         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10767         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10768         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10769
10770 2011-10-15  Bruno Haible  <bruno@clisp.org>
10771
10772         vasnprintf: Fix comments.
10773         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10774
10775 2011-10-14  Bruno Haible  <bruno@clisp.org>
10776
10777         Tests for module 'integer_length_ll'.
10778         * modules/integer_length_ll-tests: New file.
10779         * tests/test-integer_length_ll.c: New file.
10780
10781         New module 'integer_length_ll'.
10782         * lib/integer_length_ll.c: New file.
10783         * modules/integer_length_ll: New file.
10784
10785 2011-10-14  Bruno Haible  <bruno@clisp.org>
10786
10787         Tests for module 'integer_length_l'.
10788         * modules/integer_length_l-tests: New file.
10789         * tests/test-integer_length_l.c: New file.
10790
10791         New module 'integer_length_l'.
10792         * lib/integer_length_l.c: New file.
10793         * modules/integer_length_l: New file.
10794
10795 2011-10-14  Bruno Haible  <bruno@clisp.org>
10796
10797         Tests for module 'integer_length'.
10798         * modules/integer_length-tests: New file.
10799         * tests/test-integer_length.c: New file.
10800
10801         New module 'integer_length'.
10802         * lib/integer_length.h: New file.
10803         * lib/integer_length.c: New file.
10804         * modules/integer_length: New file.
10805
10806 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10807
10808         popen: Fix dependency conditions.
10809         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10810
10811 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10812
10813         perror: Fix autoconf test.
10814         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10815         <stdlib.h> and <string.h>.
10816
10817 2011-10-14  Bruno Haible  <bruno@clisp.org>
10818
10819         ffsl: Optimize on 64-bit platforms.
10820         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10821         unrolling.
10822
10823 2011-10-13  Bruno Haible  <bruno@clisp.org>
10824
10825         ffsl: Optimize on 32-bit platforms.
10826         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10827         use ffs() without a loop.
10828
10829         ffsl, ffsll: Optimize for GCC.
10830         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10831         * lib/ffsl.c (GCC_BUILTIN): New macro.
10832         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10833
10834 2011-10-13  Bruno Haible  <bruno@clisp.org>
10835
10836         ffs, bcopy, memset: Support symbol renaming via config.h.
10837         * lib/ffs.c: Include <config.h>.
10838         * lib/bcopy.c: Likewise.
10839         * lib/memset.c: Likewise.
10840
10841 2011-10-10  Bruno Haible  <bruno@clisp.org>
10842
10843         atanl: Simplify for platforms where 'long double' == 'double'.
10844         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10845         alternative implementation.
10846         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10847         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10848         * modules/atanl (Depends-on): Add atan. Update conditions.
10849
10850 2011-10-10  Bruno Haible  <bruno@clisp.org>
10851
10852         acosl: Simplify for platforms where 'long double' == 'double'.
10853         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10854         alternative implementation.
10855         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10856         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10857         * modules/acosl (Depends-on): Add acos. Update conditions.
10858
10859 2011-10-10  Bruno Haible  <bruno@clisp.org>
10860
10861         asinl: Simplify for platforms where 'long double' == 'double'.
10862         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10863         alternative implementation.
10864         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10865         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10866         * modules/asinl (Depends-on): Add asin. Update conditions.
10867
10868 2011-10-10  Bruno Haible  <bruno@clisp.org>
10869
10870         tanl: Simplify for platforms where 'long double' == 'double'.
10871         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10872         implementation.
10873         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10874         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10875         * modules/tanl (Depends-on): Add tan. Update conditions.
10876         (configure.ac): Don't compile trigl.c if
10877         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10878
10879 2011-10-10  Bruno Haible  <bruno@clisp.org>
10880
10881         cosl: Simplify for platforms where 'long double' == 'double'.
10882         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10883         implementation.
10884         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10885         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10886         * modules/cosl (Depends-on): Add cos. Update conditions.
10887         (configure.ac): Don't compile sincosl.c and trigl.c if
10888         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10889
10890 2011-10-10  Bruno Haible  <bruno@clisp.org>
10891
10892         sinl: Simplify for platforms where 'long double' == 'double'.
10893         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10894         implementation.
10895         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10896         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10897         * modules/sinl (Depends-on): Add sin. Update conditions.
10898         (configure.ac): Don't compile sincosl.c and trigl.c if
10899         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10900
10901 2011-10-10  Bruno Haible  <bruno@clisp.org>
10902
10903         logl: Simplify for platforms where 'long double' == 'double'.
10904         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10905         implementation.
10906         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10907         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10908         * modules/logl (Depends-on): Add log. Update conditions.
10909
10910 2011-10-10  Bruno Haible  <bruno@clisp.org>
10911
10912         expl: Simplify for platforms where 'long double' == 'double'.
10913         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10914         implementation.
10915         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10916         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10917         * modules/expl (Depends-on): Add exp. Update conditions.
10918
10919 2011-10-10  Bruno Haible  <bruno@clisp.org>
10920
10921         sqrtl: Simplify for platforms where 'long double' == 'double'.
10922         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10923         alternative implementation.
10924         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10925         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10926         * modules/sqrtl (Depends-on): Update conditions.
10927
10928 2011-10-10  Bruno Haible  <bruno@clisp.org>
10929
10930         ldexpl: Simplify for platforms where 'long double' == 'double'.
10931         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10932         alternative implementation.
10933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10934         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10935         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10936
10937 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10938
10939         ffsll: set correct witness
10940         * modules/ffsll (configure.ac): Fix typo.
10941
10942 2011-10-10  Bruno Haible  <bruno@clisp.org>
10943
10944         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10945         * lib/printf-frexpl.c: Include <config.h>.
10946         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10947         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10948         second time.
10949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10950         gl_LONG_DOUBLE_VS_DOUBLE.
10951         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10952         conditions.
10953
10954 2011-10-10  Bruno Haible  <bruno@clisp.org>
10955
10956         frexpl: Simplify for platforms where 'long double' == 'double'.
10957         * lib/frexpl.c: Include <config.h>.
10958         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10959         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10960         time.
10961         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10962         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10963         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10964         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10965         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10966         conditions.
10967
10968 2011-10-10  Jim Meyering  <meyering@redhat.com>
10969
10970         test-renameat: don't leave behind a temporary file
10971         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10972           ERROR: files left in build directory after distclean:
10973           ./gltests/test-renameat.too
10974           make[1]: *** [distcleancheck] Error 1
10975         Reported by Tom G. Christensen.
10976
10977 2011-10-09  Bruno Haible  <bruno@clisp.org>
10978
10979         rint: Determine RINT_LIBM correctly on AIX 7.
10980         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10981         directly, not only through a function pointer. Also accept an optional
10982         4th argument with extra code.
10983         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10984         rintf() call by gcc when optimizing.
10985
10986         mathfunc.m4: Refactor.
10987         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10988         m4 variable.
10989
10990 2011-10-09  Bruno Haible  <bruno@clisp.org>
10991
10992         rintl: Simplify for platforms where 'long double' == 'double'.
10993         * lib/rintl.c: Include <config.h>.
10994         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10995         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10996         time.
10997         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10998         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10999         * modules/rintl (Depends-on): Add rint. Update conditions.
11000
11001 2011-10-09  Bruno Haible  <bruno@clisp.org>
11002
11003         roundl: Simplify for platforms where 'long double' == 'double'.
11004         * lib/roundl.c: Include <config.h>.
11005         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11006         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11007         time.
11008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11009         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11010         * modules/roundl (Depends-on): Add round. Update conditions.
11011
11012 2011-10-09  Bruno Haible  <bruno@clisp.org>
11013
11014         truncl: Simplify for platforms where 'long double' == 'double'.
11015         * lib/truncl.c: Include <config.h>.
11016         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11017         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11018         time.
11019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11020         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11021         * modules/truncl (Depends-on): Add trunc. Update conditions.
11022
11023 2011-10-09  Bruno Haible  <bruno@clisp.org>
11024
11025         ceill: Simplify for platforms where 'long double' == 'double'.
11026         * lib/ceill.c: Include <config.h>.
11027         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11028         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11029         time.
11030         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11031         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11032         * modules/ceill (Depends-on): Add ceil. Update conditions.
11033
11034 2011-10-09  Bruno Haible  <bruno@clisp.org>
11035
11036         floorl: Simplify for platforms where 'long double' == 'double'.
11037         * lib/floorl.c: Include <config.h>.
11038         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11039         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11040         time.
11041         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11042         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11043         * modules/floorl (Depends-on): Add floor. Update conditions.
11044
11045 2011-10-09  Bruno Haible  <bruno@clisp.org>
11046
11047         rint: Fix ordering constraints.
11048         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11049         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11050         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11051
11052 2011-10-09  Bruno Haible  <bruno@clisp.org>
11053
11054         copysignl: Simplify for platforms where 'long double' == 'double'.
11055         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11056         alternative.
11057         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11058         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11059         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11060
11061 2011-10-09  Bruno Haible  <bruno@clisp.org>
11062
11063         Tests for module 'rintl'.
11064         * modules/rintl-tests: New file.
11065         * tests/test-rintl.c: New file.
11066
11067         New module 'rintl'.
11068         * lib/math.in.h (rintl): New declaration.
11069         * lib/rintl.c: New file.
11070         * m4/rintl.m4: New file.
11071         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11073         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11074         * modules/rintl: New file.
11075         * tests/test-math-c++.cc: Check the declaration of rintl.
11076         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11077         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11078         * doc/posix-functions/rintl.texi: Mention the new module.
11079
11080 2011-10-09  Bruno Haible  <bruno@clisp.org>
11081
11082         Tests for module 'rintf'.
11083         * modules/rintf-tests: New file.
11084         * tests/test-rintf.c: New file.
11085
11086         New module 'rintf'.
11087         * lib/math.in.h (rintf): New declaration.
11088         * lib/rintf.c: New file.
11089         * m4/rintf.m4: New file.
11090         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11092         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11093         * modules/rintf: New file.
11094         * tests/test-math-c++.cc: Check the declaration of rintf.
11095         * doc/posix-functions/rintf.texi: Mention the new module.
11096
11097 2011-10-09  Bruno Haible  <bruno@clisp.org>
11098
11099         rint: Support for MSVC.
11100         * lib/math.in.h (rint): New declaration.
11101         * lib/rint.c: New file.
11102         * m4/rint.m4: New file.
11103         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11105         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11106         * modules/rint (Description): Fix.
11107         (Files): Add lib/rint.c, m4/rint.m4.
11108         (Depends-on): Add math.
11109         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11110         gl_MATH_MODULE_INDICATOR.
11111         * tests/test-math-c++.cc: Check the declaration of rint.
11112         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11113         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11114         * doc/posix-functions/rint.texi: Mention the replacement provided by
11115         the module.
11116
11117         rint tests: More tests.
11118         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11119         minus-zero.h, infinity.h, nan.h.
11120         (main): Skip the test if the current rounding mode is not standard. Add
11121         tests for negative numbers, minus zero, infinity, NaN.
11122         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11123         tests/nan.h.
11124         (Depends-on): Add isnand-nolibm.
11125
11126 2011-10-09  Bruno Haible  <bruno@clisp.org>
11127
11128         Tests for module 'copysignl'.
11129         * modules/copysignl-tests: New file.
11130         * tests/test-copysignl.c: New file.
11131
11132         New module 'copysignl'.
11133         * lib/math.in.h (copysignl): New declaration.
11134         * lib/copysignl.c: New file.
11135         * m4/copysignl.m4: New file.
11136         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11138         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11139         HAVE_COPYSIGNL.
11140         * modules/copysignl: New file.
11141         * tests/test-math-c++.cc: Check the declaration of copysignl.
11142         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11143         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11144         * doc/posix-functions/copysignl.texi: Mention the new module.
11145
11146 2011-10-09  Bruno Haible  <bruno@clisp.org>
11147
11148         Tests for module 'copysignf'.
11149         * modules/copysignf-tests: New file.
11150         * tests/test-copysignf.c: New file.
11151
11152         New module 'copysignf'.
11153         * lib/math.in.h (copysignf): New declaration.
11154         * lib/copysignf.c: New file.
11155         * m4/copysignf.m4: New file.
11156         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11158         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11159         HAVE_COPYSIGNF.
11160         * modules/copysignf: New file.
11161         * tests/test-math-c++.cc: Check the declaration of copysignf.
11162         * doc/posix-functions/copysignf.texi: Mention the new module.
11163
11164 2011-10-09  Bruno Haible  <bruno@clisp.org>
11165
11166         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11167         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11168         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11169         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11171         gl_SIGNAL_H_DEFAULTS.
11172
11173 2011-10-09  Bruno Haible  <bruno@clisp.org>
11174
11175         poll: Make macro safer.
11176         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11177         ac_cv_header_poll_h is not set.
11178
11179 2011-10-09  Bruno Haible  <bruno@clisp.org>
11180
11181         copysign: Provide replacement.
11182         * lib/math.in.h (copysign): New declaration.
11183         * lib/copysign.c: New file.
11184         * m4/copysign.m4: New file.
11185         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11187         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11188         HAVE_COPYSIGN.
11189         * modules/copysign (Description): Clarify.
11190         (Files): Add lib/copysign.c, m4/copysign.m4.
11191         (Depends-on): Add math, signbit.
11192         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11193         gl_MATH_MODULE_INDICATOR.
11194         * tests/test-math-c++.cc: Check the declaration of copysign.
11195         * doc/posix-functions/copysign.texi: Mention the effects of the module
11196         on Minix and MSVC.
11197
11198 2011-10-09  Bruno Haible  <bruno@clisp.org>
11199
11200         isinf: Ensure macro on AIX 5.1.
11201         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11202         macro.
11203         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11204
11205 2011-10-09  Bruno Haible  <bruno@clisp.org>
11206
11207         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11208         * modules/snprintf-posix-tests (configure.ac): Require
11209         gl_LONG_DOUBLE_VS_DOUBLE.
11210         * modules/sprintf-posix-tests (configure.ac): Likewise.
11211         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11212         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11213         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11214         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11215         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11216         tests on platforms where 'long double' is the same as 'double'.
11217         * tests/test-sprintf-posix.h (test_function): Likewise.
11218         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11219         * tests/test-vasprintf-posix.c (test_function): Likewise.
11220
11221         *printf: Fix for platforms where 'long double' == 'double'.
11222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11223         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11224         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11225         * modules/fprintf-posix (Files): Likewise.
11226         * modules/obstack-printf-posix (Files): Likewise.
11227         * modules/snprintf-posix (Files): Likewise.
11228         * modules/sprintf-posix (Files): Likewise.
11229         * modules/vasnprintf (Files): Likewise.
11230         * modules/vasnprintf-posix (Files): Likewise.
11231         * modules/vasprintf-posix (Files): Likewise.
11232         * modules/vdprintf-posix (Files): Likewise.
11233         * modules/vfprintf-posix (Files): Likewise.
11234         * modules/vsnprintf-posix (Files): Likewise.
11235         * modules/vsprintf-posix (Files): Likewise.
11236         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11237         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11238         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11239         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11240         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11241         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11242         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11243
11244         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11245         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11246         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11247         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11248         'long double'.
11249         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11250
11251         isinf: Fix for platforms where 'long double' == 'double'.
11252         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11253         Don't blindly assume 80-bit 'long double'.
11254
11255         isfinite: Fix for platforms where 'long double' == 'double'.
11256         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11257         Don't blindly assume 80-bit 'long double'.
11258
11259         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11260         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11261         * modules/isfinite-tests (configure.ac): Require
11262         gl_LONG_DOUBLE_VS_DOUBLE.
11263         * modules/isinf-tests (configure.ac): Likewise.
11264         * modules/isnan-tests (configure.ac): Likewise.
11265         * modules/isnanl-tests (configure.ac): Likewise.
11266         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11267         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11268         tests on platforms where 'long double' is the same as 'double'.
11269         * tests/test-isinf.c (test_isinfl): Likewise.
11270         * tests/test-isnan.c (test_long_double): Likewise.
11271         * tests/test-isnanl.h (main): Likewise.
11272
11273 2011-10-08  Bruno Haible  <bruno@clisp.org>
11274
11275         Tests for module 'tanhf'.
11276         * modules/tanhf-tests: New file.
11277         * tests/test-tanhf.c: New file.
11278
11279         New module 'tanhf'.
11280         * lib/math.in.h (tanhf): New declaration.
11281         * lib/tanhf.c: New file.
11282         * m4/tanhf.m4: New file.
11283         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11285         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11286         * modules/tanhf: New file.
11287         * tests/test-math-c++.cc: Check the declaration of tanhf.
11288         * doc/posix-functions/tanhf.texi: Mention the new module.
11289
11290         tanh: Use a .m4 file.
11291         * m4/tanh.m4: New file.
11292         * modules/tanh (Files): Add it.
11293         (configure.ac): Just invoke gl_FUNC_TANH.
11294
11295 2011-10-08  Bruno Haible  <bruno@clisp.org>
11296
11297         Tests for module 'coshf'.
11298         * modules/coshf-tests: New file.
11299         * tests/test-coshf.c: New file.
11300
11301         New module 'coshf'.
11302         * lib/math.in.h (coshf): New declaration.
11303         * lib/coshf.c: New file.
11304         * m4/coshf.m4: New file.
11305         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11307         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11308         * modules/coshf: New file.
11309         * tests/test-math-c++.cc: Check the declaration of coshf.
11310         * doc/posix-functions/coshf.texi: Mention the new module.
11311
11312         cosh: Use a .m4 file.
11313         * m4/cosh.m4: New file.
11314         * modules/cosh (Files): Add it.
11315         (configure.ac): Just invoke gl_FUNC_COSH.
11316
11317 2011-10-08  Bruno Haible  <bruno@clisp.org>
11318
11319         Tests for module 'sinhf'.
11320         * modules/sinhf-tests: New file.
11321         * tests/test-sinhf.c: New file.
11322
11323         New module 'sinhf'.
11324         * lib/math.in.h (sinhf): New declaration.
11325         * lib/sinhf.c: New file.
11326         * m4/sinhf.m4: New file.
11327         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11329         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11330         * modules/sinhf: New file.
11331         * tests/test-math-c++.cc: Check the declaration of sinhf.
11332         * doc/posix-functions/sinhf.texi: Mention the new module.
11333
11334         sinh: Use a .m4 file.
11335         * m4/sinh.m4: New file.
11336         * modules/sinh (Files): Add it.
11337         (configure.ac): Just invoke gl_FUNC_SINH.
11338
11339 2011-10-08  Bruno Haible  <bruno@clisp.org>
11340
11341         Tests for module 'atan2f'.
11342         * modules/atan2f-tests: New file.
11343         * tests/test-atan2f.c: New file.
11344
11345         New module 'atan2f'.
11346         * lib/math.in.h (atan2f): New declaration.
11347         * lib/atan2f.c: New file.
11348         * m4/atan2f.m4: New file.
11349         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11351         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11352         * modules/atan2f: New file.
11353         * tests/test-math-c++.cc: Check the declaration of atan2f.
11354         * doc/posix-functions/atan2f.texi: Mention the new module.
11355
11356         atan2: Use a .m4 file.
11357         * m4/atan2.m4: New file.
11358         * modules/atan2 (Files): Add it.
11359         (configure.ac): Just invoke gl_FUNC_ATAN2.
11360
11361 2011-10-08  Bruno Haible  <bruno@clisp.org>
11362
11363         Tests for module 'atanf'.
11364         * modules/atanf-tests: New file.
11365         * tests/test-atanf.c: New file.
11366
11367         New module 'atanf'.
11368         * lib/math.in.h (atanf): New declaration.
11369         * lib/atanf.c: New file.
11370         * m4/atanf.m4: New file.
11371         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11373         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11374         * modules/atanf: New file.
11375         * tests/test-math-c++.cc: Check the declaration of atanf.
11376         * doc/posix-functions/atanf.texi: Mention the new module.
11377
11378         atan: Use a .m4 file.
11379         * m4/atan.m4: New file.
11380         * modules/atan (Files): Add it.
11381         (configure.ac): Just invoke gl_FUNC_ATAN.
11382
11383 2011-10-08  Bruno Haible  <bruno@clisp.org>
11384
11385         Tests for module 'acosf'.
11386         * modules/acosf-tests: New file.
11387         * tests/test-acosf.c: New file.
11388
11389         New module 'acosf'.
11390         * lib/math.in.h (acosf): New declaration.
11391         * lib/acosf.c: New file.
11392         * m4/acosf.m4: New file.
11393         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11395         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11396         * modules/acosf: New file.
11397         * tests/test-math-c++.cc: Check the declaration of acosf.
11398         * doc/posix-functions/acosf.texi: Mention the new module.
11399
11400         acos: Use a .m4 file.
11401         * m4/acos.m4: New file.
11402         * modules/acos (Files): Add it.
11403         (configure.ac): Just invoke gl_FUNC_ACOS.
11404
11405 2011-10-08  Bruno Haible  <bruno@clisp.org>
11406
11407         Tests for module 'asinf'.
11408         * modules/asinf-tests: New file.
11409         * tests/test-asinf.c: New file.
11410
11411         New module 'asinf'.
11412         * lib/math.in.h (asinf): New declaration.
11413         * lib/asinf.c: New file.
11414         * m4/asinf.m4: New file.
11415         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11417         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11418         * modules/asinf: New file.
11419         * tests/test-math-c++.cc: Check the declaration of asinf.
11420         * doc/posix-functions/asinf.texi: Mention the new module.
11421
11422         asin: Use a .m4 file.
11423         * m4/asin.m4: New file.
11424         * modules/asin (Files): Add it.
11425         (configure.ac): Just invoke gl_FUNC_ASIN.
11426
11427 2011-10-08  Bruno Haible  <bruno@clisp.org>
11428
11429         Tests for module 'tanf'.
11430         * modules/tanf-tests: New file.
11431         * tests/test-tanf.c: New file.
11432
11433         New module 'tanf'.
11434         * lib/math.in.h (tanf): New declaration.
11435         * lib/tanf.c: New file.
11436         * m4/tanf.m4: New file.
11437         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11439         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11440         * modules/tanf: New file.
11441         * tests/test-math-c++.cc: Check the declaration of tanf.
11442         * doc/posix-functions/tanf.texi: Mention the new module.
11443
11444         tan: Use a .m4 file.
11445         * m4/tan.m4: New file.
11446         * modules/tan (Files): Add it.
11447         (configure.ac): Just invoke gl_FUNC_TAN.
11448
11449 2011-10-08  Bruno Haible  <bruno@clisp.org>
11450
11451         Tests for module 'cosf'.
11452         * modules/cosf-tests: New file.
11453         * tests/test-cosf.c: New file.
11454
11455         New module 'cosf'.
11456         * lib/math.in.h (cosf): New declaration.
11457         * lib/cosf.c: New file.
11458         * m4/cosf.m4: New file.
11459         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11461         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11462         * modules/cosf: New file.
11463         * tests/test-math-c++.cc: Check the declaration of cosf.
11464         * doc/posix-functions/cosf.texi: Mention the new module.
11465
11466         cos: Use a .m4 file.
11467         * m4/cos.m4: New file.
11468         * modules/cos (Files): Add it.
11469         (configure.ac): Just invoke gl_FUNC_COS.
11470
11471 2011-10-08  Bruno Haible  <bruno@clisp.org>
11472
11473         Tests for module 'sinf'.
11474         * modules/sinf-tests: New file.
11475         * tests/test-sinf.c: New file.
11476
11477         New module 'sinf'.
11478         * lib/math.in.h (sinf): New declaration.
11479         * lib/sinf.c: New file.
11480         * m4/sinf.m4: New file.
11481         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11483         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11484         * modules/sinf: New file.
11485         * tests/test-math-c++.cc: Check the declaration of sinf.
11486         * doc/posix-functions/sinf.texi: Mention the new module.
11487
11488         sin: Use a .m4 file.
11489         * m4/sin.m4: New file.
11490         * modules/sin (Files): Add it.
11491         (configure.ac): Just invoke gl_FUNC_SIN.
11492
11493 2011-10-08  Bruno Haible  <bruno@clisp.org>
11494
11495         Tests for module 'powf'.
11496         * modules/powf-tests: New file.
11497         * tests/test-powf.c: New file.
11498
11499         New module 'powf'.
11500         * lib/math.in.h (powf): New declaration.
11501         * lib/powf.c: New file.
11502         * m4/powf.m4: New file.
11503         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11505         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11506         * modules/powf: New file.
11507         * tests/test-math-c++.cc: Check the declaration of powf.
11508         * doc/posix-functions/powf.texi: Mention the new module.
11509
11510         pow: Use a .m4 file.
11511         * m4/pow.m4: New file.
11512         * modules/pow (Files): Add it.
11513         (configure.ac): Just invoke gl_FUNC_POW.
11514
11515 2011-10-08  Bruno Haible  <bruno@clisp.org>
11516
11517         Tests for module 'log10f'.
11518         * modules/log10f-tests: New file.
11519         * tests/test-log10f.c: New file.
11520
11521         New module 'log10f'.
11522         * lib/math.in.h (log10f): New declaration.
11523         * lib/log10f.c: New file.
11524         * m4/log10f.m4: New file.
11525         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11527         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11528         * modules/log10f: New file.
11529         * tests/test-math-c++.cc: Check the declaration of log10f.
11530         * doc/posix-functions/log10f.texi: Mention the new module.
11531
11532         log10: Use a .m4 file.
11533         * m4/log10.m4: New file.
11534         * modules/log10 (Files): Add it.
11535         (configure.ac): Just invoke gl_FUNC_LOG10.
11536
11537 2011-10-08  Bruno Haible  <bruno@clisp.org>
11538
11539         Tests for module 'logf'.
11540         * modules/logf-tests: New file.
11541         * tests/test-logf.c: New file.
11542
11543         New module 'logf'.
11544         * lib/math.in.h (logf): New declaration.
11545         * lib/logf.c: New file.
11546         * m4/logf.m4: New file.
11547         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11549         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11550         * modules/logf: New file.
11551         * tests/test-math-c++.cc: Check the declaration of logf.
11552         * doc/posix-functions/logf.texi: Mention the new module.
11553
11554         log: Use a .m4 file.
11555         * m4/log.m4: New file.
11556         * modules/log (Files): Add it.
11557         (configure.ac): Just invoke gl_FUNC_LOG.
11558
11559 2011-10-08  Bruno Haible  <bruno@clisp.org>
11560
11561         Tests for module 'expf'.
11562         * modules/expf-tests: New file.
11563         * tests/test-expf.c: New file.
11564
11565         New module 'expf'.
11566         * lib/math.in.h (expf): New declaration.
11567         * lib/expf.c: New file.
11568         * m4/expf.m4: New file.
11569         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11571         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11572         * modules/expf: New file.
11573         * tests/test-math-c++.cc: Check the declaration of expf.
11574         * doc/posix-functions/expf.texi: Mention the new module.
11575
11576         exp: Use a .m4 file.
11577         * m4/exp.m4: New file.
11578         * modules/exp (Files): Add it.
11579         (configure.ac): Just invoke gl_FUNC_EXP.
11580
11581 2011-10-08  Bruno Haible  <bruno@clisp.org>
11582
11583         Tests for module 'sqrtf'.
11584         * modules/sqrtf-tests: New file.
11585         * tests/test-sqrtf.c: New file.
11586
11587         New module 'sqrtf'.
11588         * lib/math.in.h (sqrtf): New declaration.
11589         * lib/sqrtf.c: New file.
11590         * m4/sqrtf.m4: New file.
11591         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11593         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11594         * modules/sqrtf: New file.
11595         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11596         * doc/posix-functions/sqrtf.texi: Mention the new module.
11597
11598 2011-10-08  Bruno Haible  <bruno@clisp.org>
11599
11600         Tests: Avoid link failures w.r.t. libintl.
11601         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11602         $(LIBINTL).
11603         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11604         $(LIBINTL).
11605         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11606         against $(LIBINTL).
11607         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11608         $(LIBINTL).
11609         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11610         $(LIBINTL).
11611         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11612
11613 2011-10-08  Bruno Haible  <bruno@clisp.org>
11614
11615         pow tests: Defeat compiler optimizations.
11616         * tests/test-pow.c (main): Assign arguments to x and y before use.
11617
11618 2011-10-08  Bruno Haible  <bruno@clisp.org>
11619
11620         gnulib-tool: Improve last commit.
11621         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11622         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11623         ignore dependencies that are not among the modules list.
11624
11625 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         gnulib-tool: don't follow dependencies to avoided modules
11628         This fixes a bug that is related to the previous one.
11629         * gnulib-tool (func_modules_transitive_closure)
11630         (func_emit_autoconf_snippets):
11631         Check whether a dependency is acceptable before using it.
11632         (--extract-dependencies): Report an error if --avoid is also used,
11633         since this combination of options is not yet supported.
11634
11635         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11636         Problem reported by Peter Dyballa in
11637         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11638         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11639         when echoing "$condition".
11640
11641 2011-10-07  Bruno Haible  <bruno@clisp.org>
11642
11643         Fix documentation about math functions on MacOS X.
11644         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11645         MacOS X 10.5.
11646         * doc/posix-functions/fdim.texi: Likewise.
11647         * doc/posix-functions/feclearexcept.texi: Likewise.
11648         * doc/posix-functions/fegetenv.texi: Likewise.
11649         * doc/posix-functions/fegetround.texi: Likewise.
11650         * doc/posix-functions/feholdexcept.texi: Likewise.
11651         * doc/posix-functions/feraiseexcept.texi: Likewise.
11652         * doc/posix-functions/fesetenv.texi: Likewise.
11653         * doc/posix-functions/fesetround.texi: Likewise.
11654         * doc/posix-functions/fetestexcept.texi: Likewise.
11655         * doc/posix-functions/feupdateenv.texi: Likewise.
11656         * doc/posix-functions/fmax.texi: Likewise.
11657         * doc/posix-functions/fmin.texi: Likewise.
11658         * doc/posix-functions/log2.texi: Likewise.
11659         * doc/posix-functions/modff.texi: Likewise.
11660         * doc/posix-functions/nan.texi: Likewise.
11661         * doc/posix-functions/nanf.texi: Likewise.
11662         * doc/posix-functions/nextafterf.texi: Likewise.
11663         * doc/posix-functions/remquo.texi: Likewise.
11664
11665 2011-10-07  Bruno Haible  <bruno@clisp.org>
11666
11667         modff: Drop assumption about library that defines modff.
11668         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11669         AC_CHECK_FUNCS.
11670         * modules/modff (Files): Add m4/mathfunc.m4.
11671
11672 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11673
11674         raise tests: Avoid a GCC warning.
11675         * tests/test-raise.c (handler): Use _Noreturn.
11676
11677 2011-10-07  Bruno Haible  <bruno@clisp.org>
11678
11679         Tests for module 'ldexpf'.
11680         * modules/ldexpf-tests: New file.
11681         * tests/test-ldexpf.c: New file.
11682
11683         New module 'ldexpf'.
11684         * lib/math.in.h (ldexpf): New declaration.
11685         * lib/ldexpf.c: New file.
11686         * m4/ldexpf.m4: New file.
11687         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11689         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11690         * modules/ldexpf: New file.
11691         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11692         * doc/posix-functions/ldexpf.texi: Mention the new module.
11693
11694 2011-10-06  Bruno Haible  <bruno@clisp.org>
11695
11696         frexpf: Work around problems on IRIX and mingw.
11697         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11699         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11700         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11701         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11702         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11703         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11704
11705 2011-10-06  Bruno Haible  <bruno@clisp.org>
11706
11707         fabsf: Drop assumption about library that defines fabsf.
11708         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11709         AC_CHECK_FUNCS.
11710         * modules/fabsf (Files): Add m4/mathfunc.m4.
11711
11712 2011-10-06  Bruno Haible  <bruno@clisp.org>
11713
11714         frexpf: Drop assumption about library that defines frexpf.
11715         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11716         'int *', 'float *', 'long double *', 'float', 'long double'.
11717         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11718         AC_CHECK_FUNCS.
11719         * modules/frexpf (Files): Add m4/mathfunc.m4.
11720
11721         Tests for module 'frexpf'.
11722         * modules/frexpf-tests: New file.
11723         * tests/test-frexpf.c: New file.
11724
11725         New module 'frexpf'.
11726         * lib/math.in.h (frexpf): New declaration.
11727         * lib/frexpf.c: New file.
11728         * m4/frexpf.m4: New file.
11729         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11731         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11732         * modules/frexpf: New file.
11733         * tests/test-math-c++.cc: Check the declaration of frexpf.
11734         * doc/posix-functions/frexpf.texi: Mention the new module.
11735
11736 2011-10-06  Bruno Haible  <bruno@clisp.org>
11737
11738         math: Sort function declarations of math.in.h.
11739         * lib/math.in.h (frexp, logb): Move declarations.
11740
11741 2011-10-05  Bruno Haible  <bruno@clisp.org>
11742
11743         Tests for module 'modff'.
11744         * modules/modff-tests: New file.
11745         * tests/test-modff.c: New file.
11746
11747         New module 'modff'.
11748         * lib/math.in.h (modff): New declaration.
11749         * lib/modff.c: New file.
11750         * m4/modff.m4: New file.
11751         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11753         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11754         * modules/modff: New file.
11755         * tests/test-math-c++.cc: Check the declaration of modff.
11756         * doc/posix-functions/modff.texi: Mention the new module.
11757
11758         modf tests: Make test sharper.
11759         * tests/test-modf.c (main): Strengthen upper bound.
11760
11761         modf: Use a .m4 file.
11762         * m4/modf.m4: New file.
11763         * modules/modf (Files): Add it.
11764         (configure.ac): Just invoke gl_FUNC_MODF.
11765
11766 2011-10-05  Bruno Haible  <bruno@clisp.org>
11767
11768         Tests for module 'fmodf'.
11769         * modules/fmodf-tests: New file.
11770         * tests/test-fmodf.c: New file.
11771
11772         New module 'fmodf'.
11773         * lib/math.in.h (fmodf): New declaration.
11774         * lib/fmodf.c: New file.
11775         * m4/fmodf.m4: New file.
11776         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11778         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11779         * modules/fmodf: New file.
11780         * tests/test-math-c++.cc: Check the declaration of fmodf.
11781         * doc/posix-functions/fmodf.texi: Mention the new module.
11782
11783         fmod: Use a .m4 file.
11784         * m4/fmod.m4: New file.
11785         * modules/fmod (Files): Add it.
11786         (configure.ac): Just invoke gl_FUNC_FMOD.
11787
11788 2011-10-05  Bruno Haible  <bruno@clisp.org>
11789
11790         Tests for module 'fabsf'.
11791         * modules/fabsf-tests: New file.
11792         * tests/test-fabsf.c: New file.
11793
11794         New module 'fabsf'.
11795         * lib/math.in.h (fabsf): New declaration.
11796         * lib/fabsf.c: New file.
11797         * m4/fabsf.m4: New file.
11798         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11800         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11801         * modules/fabsf: New file.
11802         * tests/test-math-c++.cc: Check the declaration of fabsf.
11803         * doc/posix-functions/fabsf.texi: Mention the new module.
11804
11805         fabs: Use a .m4 file.
11806         * m4/fabs.m4: New file.
11807         * modules/fabs (Files): Add it.
11808         (configure.ac): Just invoke gl_FUNC_FABS.
11809
11810 2011-10-05  Jim Meyering  <meyering@redhat.com>
11811
11812         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11813         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11814         ls -lL regression introduced in coreutils-8.12, it does so at the
11815         cost of an additional stat call in the common case.  Besides, now
11816         that the kernel change that prompted commit 95f7c57f has been reverted
11817         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11818         we have no use for commit 95f7c57f, "file-has-acl: use
11819         acl_extended_file_nofollow if available".
11820
11821 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11822
11823         file-has-acl: revert unintended change in behavior of ls -L
11824         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11825         derived from...
11826         (file_has_acl): ...code here.  Call it.
11827         This problem was introduced with 2011-07-22 commit 95f7c57f,
11828         "file-has-acl: use acl_extended_file_nofollow if available".
11829         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11830
11831 2011-10-03  Bruno Haible  <bruno@clisp.org>
11832
11833         poll: Avoid link errors on MSVC.
11834         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11835         * modules/poll (Depends-on): Add sockets.
11836         (Link): New section.
11837         * NEWS: Mention the change.
11838         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11839         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11840         $(LIB_POLL) instead of $(LIBSOCKET).
11841
11842 2011-10-03  Bruno Haible  <bruno@clisp.org>
11843
11844         sys_select tests: Fix link error on MSVC 9.
11845         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11846         with $(LIB_SELECT) instead of $(LIBSOCKET).
11847
11848 2011-10-03  Bruno Haible  <bruno@clisp.org>
11849
11850         sys_select: Fix compilation error on mingw.
11851         * lib/sys_select.in.h: On native Windows, include <io.h>.
11852
11853 2011-10-03  Bruno Haible  <bruno@clisp.org>
11854
11855         wmemset: Support for MSVC.
11856         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11857         whether wmemset() exists.
11858
11859 2011-10-03  Bruno Haible  <bruno@clisp.org>
11860
11861         wmemmove: Support for MSVC.
11862         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11863         whether wmemmove() exists.
11864
11865 2011-10-03  Bruno Haible  <bruno@clisp.org>
11866
11867         wmemcpy: Support for MSVC.
11868         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11869         whether wmemcpy() exists.
11870
11871 2011-10-03  Bruno Haible  <bruno@clisp.org>
11872
11873         wmemcmp: Support for MSVC.
11874         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11875         whether wmemcmp() exists.
11876
11877 2011-10-03  Bruno Haible  <bruno@clisp.org>
11878
11879         wmemchr: Support for MSVC.
11880         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11881         whether wmemchr() exists.
11882
11883 2011-10-03  Bruno Haible  <bruno@clisp.org>
11884
11885         glthread/*, strsignal: Support for MSVC.
11886         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11887         including <winsock.h> on MSVC 9.
11888         * lib/glthread/lock.h: Likewise.
11889         * lib/glthread/thread.h: Likewise.
11890         * lib/glthread/tls.h: Likewise.
11891         * lib/glthread/yield.h: Likewise.
11892         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11893         if HAVE_UNISTD_H is false.
11894         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11895
11896 2011-10-03  Bruno Haible  <bruno@clisp.org>
11897
11898         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11899         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11900         Set to 100000.
11901
11902 2011-10-03  Bruno Haible  <bruno@clisp.org>
11903
11904         acl: Fix specification.
11905         * lib/file-has-acl.c (file_has_acl): Fix specification.
11906
11907 2011-10-03  Bruno Haible  <bruno@clisp.org>
11908
11909         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11910         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11911         (compute_curr_prefix, shared_library_fullname,
11912         find_shared_library_fullname, get_shared_library_fullname, relocate):
11913         Use it together with PIC && INSTALLDIR.
11914         Reported by <jojelino@gmail.com>
11915         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11916
11917 2011-10-01  Jim Meyering  <meyering@redhat.com>
11918
11919         maint.mk: adjust a release-related rule not to require use of gzip
11920         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11921         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11922         projects that build only .tar.xz files.  Also fix an erroneous test.
11923
11924         test-linkat: don't leave behind a temporary file
11925         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11926         Otherwise, coreutils' "make distcheck" would fail with this:
11927           Only in /c/cu/tests/torture/coreutils/test/\
11928             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11929           make[2]: *** [my-distcheck] Error 1
11930
11931         float, math: add omitted file
11932         * lib/itold.c: Add file, required for yesterday's float change.
11933
11934 2011-10-01  Bruno Haible  <bruno@clisp.org>
11935
11936         isinf: Fix for OpenBSD/x86.
11937         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11938         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11939         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11940
11941 2011-10-01  Bruno Haible  <bruno@clisp.org>
11942
11943         isfinite: Fix syntax error in configure test.
11944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11945
11946         isfinite: Fix typo.
11947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11948         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11949
11950 2011-10-01  Bruno Haible  <bruno@clisp.org>
11951
11952         nonblocking tests: Fix test failure on Linux/IA-64.
11953         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11954         Set to 270000.
11955
11956 2011-10-01  Bruno Haible  <bruno@clisp.org>
11957
11958         mkfifoat tests: Fix a test failure on mingw.
11959         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11960         with error ENOSYS.
11961
11962 2011-09-30  Bruno Haible  <bruno@clisp.org>
11963
11964         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11965         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11966         'long double'. Set REPLACE_ITOLD.
11967         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11968         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11969         * lib/itold.c: New file.
11970         * modules/float (Files): Add lib/itold.c.
11971         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11972         (Makefile.am): Substitute REPLACE_ITOLD.
11973         * modules/math (Depends-on): Add float.
11974         (Makefile.am): Substitute REPLACE_ITOLD.
11975         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11976         * doc/posix-headers/math.texi: Likewise.
11977         * doc/posix-functions/logl.texi: Likewise.
11978
11979 2011-09-30  Bruno Haible  <bruno@clisp.org>
11980
11981         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11982         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11983         Set to 140000.
11984
11985 2011-09-30  Bruno Haible  <bruno@clisp.org>
11986
11987         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11988         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11989         invocation, say "right after AC_PROG_CC_STDC", not "right after
11990         AC_PROG_CC".
11991         Reported by Gary V. Vaughan <gary@gnu.org>.
11992
11993 2011-09-30  Bruno Haible  <bruno@clisp.org>
11994
11995         Centralize C99 requirement.
11996         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11997         * modules/stdarg (configure.ac-early): Invoke it instead of
11998         AC_PROG_CC_STDC.
11999         Reported by Gary V. Vaughan and Paul Eggert.
12000
12001 2011-09-29  Bruno Haible  <bruno@clisp.org>
12002
12003         float: Fix LDBL_MAX value on Linux/PowerPC.
12004         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12005         on Linux/PowerPC.
12006         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12007         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12008         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12009         platform.
12010         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12011
12012 2011-09-29  Bruno Haible  <bruno@clisp.org>
12013
12014         doc: Improve doc about gl_EARLY.
12015         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12016         AC_PROG_CC_STDC invocation.
12017         Reported by Gary V. Vaughan <gary@gnu.org>.
12018
12019 2011-09-28  Bruno Haible  <bruno@clisp.org>
12020
12021         fgetc, fputc, fread, fwrite tests: Fix link error.
12022         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12023         on non-MSVC platforms.
12024         * tests/test-fputc.c (main): Likewise.
12025         * tests/test-fread.c (main): Likewise.
12026         * tests/test-fwrite.c (main): Likewise.
12027         Reported by Jim Meyering.
12028
12029 2011-09-27  Bruno Haible  <bruno@clisp.org>
12030
12031         fputc, fwrite tests: Avoid test failure on MSVC.
12032         * tests/test-fgetc.c: Include msvc-inval.h.
12033         (main): Invoke gl_msvc_inval_ensure_handler.
12034         * tests/test-fputc.c: Include msvc-inval.h.
12035         (main): Invoke gl_msvc_inval_ensure_handler.
12036         * tests/test-fread.c: Include msvc-inval.h.
12037         (main): Invoke gl_msvc_inval_ensure_handler.
12038         * tests/test-fwrite.c: Include msvc-inval.h.
12039         (main): Invoke gl_msvc_inval_ensure_handler.
12040         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12041         * modules/fputc-tests (Depends-on): Likewise.
12042         * modules/fread-tests (Depends-on): Likewise.
12043         * modules/fwrite-tests (Depends-on): Likewise.
12044
12045 2011-09-27  Bruno Haible  <bruno@clisp.org>
12046
12047         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12048         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12049         (raise): Remove older, duplicated declaration.
12050         (_gl_raise_SIGPIPE): New declaration.
12051         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12052         (rpl_raise): Remove function.
12053         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12054         a gnulib-defined SIGPIPE here.
12055         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12056         'sigprocmask' has detected missing signal-blocking and the module
12057         'sigpipe' is enabled.
12058         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12059
12060 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12061
12062         base64-tests: avoid memory leak
12063         * tests/test-base64.c (main): Plug memory leak.
12064
12065         base32: new module
12066         * modules/base32: New module.
12067         * lib/base32.c: New file.
12068         * lib/base32.h: Likewise.
12069         * m4/base32.m4: Likewise.
12070         * modules/base32-tests: New test.
12071         * tests/test-base32.c: Likewise.
12072         * MODULES.html.sh (Misc): Mention it.
12073
12074 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12075
12076         gnulib: use more-standard license notice wording
12077         * gnulib-tool (func_emit_copyright_notice): When emitting a
12078         license notice into a file, use the standard wording as suggested
12079         by the current information for GNU maintainers, except say "file"
12080         rather than "program".  The new wording gives a license version
12081         number, which addresses an issue raised by Glenn Morris in
12082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12083         * m4/onceonly.m4: Use that same wording here, too.
12084
12085         dup2: minor simplification
12086         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12087         as lib/dup2.c no longer uses 'inline'.
12088
12089 2011-09-25  Bruno Haible  <bruno@clisp.org>
12090
12091         strings: Fix compilation error on MSVC.
12092         * lib/strings.in.h: Include <stddef.h> for size_t.
12093
12094 2011-09-25  Bruno Haible  <bruno@clisp.org>
12095
12096         fflush et al.: Document limitation on MSVC.
12097         * doc/posix-functions/fflush.texi: Document possible crash in handling
12098         mode other than DEFAULT_HANDLING.
12099         * doc/posix-functions/fgetc.texi: Likewise.
12100         * doc/posix-functions/fputc.texi: Likewise.
12101         * doc/posix-functions/fread.texi: Likewise.
12102         * doc/posix-functions/fwrite.texi: Likewise.
12103
12104 2011-09-25  Bruno Haible  <bruno@clisp.org>
12105
12106         msvc-inval: Allow three invalid parameter handling modes.
12107         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12108         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12109         macros.
12110         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12111         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12112         SANE_LIBRARY_HANDLING as a no-op.
12113         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12114         <stdlib.h>.
12115         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12116
12117 2011-09-25  Bruno Haible  <bruno@clisp.org>
12118
12119         msvc-inval: Make handler multithread-safe.
12120         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12121         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12122         declarations.
12123         (gl_msvc_inval_current): New declaration.
12124         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12125         Operate on the structure returned by gl_msvc_inval_current().
12126         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12127         Remove varaiables.
12128         (tls_index, tls_initialized): New variables.
12129         (not_per_thread): New variable.
12130         (gl_msvc_inval_current): New function.
12131         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12132         returned by gl_msvc_inval_current().
12133
12134 2011-09-25  Bruno Haible  <bruno@clisp.org>
12135
12136         msvc-inval: Install handler globally.
12137         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12138         !_MSC_VER.
12139         (gl_msvc_invalid_parameter_handler): Remove declaration.
12140         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12141         declarations.
12142         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12143         Install the handler globally, don't uninstall it.
12144         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12145         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12146         currently valid, call RaiseException instead.
12147         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12148         for !_MSC_VER.
12149
12150 2011-09-25  Bruno Haible  <bruno@clisp.org>
12151
12152         strerror_r-posix: Fix for MSVC 9.
12153         * lib/strerror_r.c (local_snprintf): New function.
12154         (snprintf): Define to local_snprintf, not to _snprintf.
12155
12156 2011-09-25  Bruno Haible  <bruno@clisp.org>
12157
12158         ftruncate: Support for MSVC 9.
12159         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12160         (chsize_nothrow): New function.
12161         (chsize): Redefine as a macro.
12162         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12163         * modules/ftruncate (Depends-on): Add msvc-inval.
12164
12165 2011-09-25  Bruno Haible  <bruno@clisp.org>
12166
12167         New module 'fstat'.
12168         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12169         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12170         * lib/fchdir.c (rpl_fstat): Remove function.
12171         * m4/fstat.m4: New file.
12172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12174         declared.
12175         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12176         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12177         * modules/fstat: New file.
12178         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12179         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12180         is set.
12181         * doc/posix-functions/fstat.texi: Mention the new module and the
12182         problem on MSVC.
12183         * NEWS: Mention the change.
12184         * modules/acl (Depends-on): Add fstat.
12185         * modules/chdir-safer (Depends-on): Likewise.
12186         * modules/chown (Depends-on): Likewise.
12187         * modules/copy-file (Depends-on): Likewise.
12188         * modules/fchdir (Depends-on): Likewise.
12189         * modules/fdopendir (Depends-on): Likewise.
12190         * modules/fopen (Depends-on): Likewise.
12191         * modules/fts (Depends-on): Likewise.
12192         * modules/getcwd (Depends-on): Likewise.
12193         * modules/isapipe (Depends-on): Likewise.
12194         * modules/linkat (Depends-on): Likewise.
12195         * modules/lseek (Depends-on): Likewise.
12196         * modules/mkdir-p (Depends-on): Likewise.
12197         * modules/open (Depends-on): Likewise.
12198         * modules/openat (Depends-on): Likewise.
12199         * modules/read-file (Depends-on): Likewise.
12200         * modules/renameat (Depends-on): Likewise.
12201         * modules/utimens (Depends-on): Likewise.
12202
12203 2011-09-25  Bruno Haible  <bruno@clisp.org>
12204
12205         linkat: Fix compilation on MSVC 9.
12206         * lib/linkat.c: Don't include <stdint.h>.
12207
12208 2011-09-25  Bruno Haible  <bruno@clisp.org>
12209
12210         fclose: Support for MSVC 9.
12211         * lib/fclose.c: Include msvc-inval.h.
12212         (fclose_nothrow): New function.
12213         (rpl_fclose): Use it.
12214         * modules/fclose (Depends-on): Add msvc-inval.
12215         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12216
12217 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12218
12219         dup2: minor simplifications
12220         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12221         that it's a performance win.
12222         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12223         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12224
12225 2011-09-24  Jim Meyering  <meyering@redhat.com>
12226
12227         test-futimens: avoid a warning from gcc -Wshadow
12228         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12229         to avoid a shadowing warning.
12230
12231 2011-09-24  Bruno Haible  <bruno@clisp.org>
12232
12233         fdopen: Support for MSVC 9.
12234         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12235         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12236         * lib/fdopen.c: Include msvc-inval.h.
12237         (fdopen_nothrow): New function.
12238         (rpl_fdopen): Use it.
12239         * modules/fdopen (Depends-on): Add msvc-inval.
12240         * modules/fclose-tests (Depends-on): Add fdopen.
12241         * modules/fflush-tests (Depends-on): Likewise.
12242         * modules/fgetc-tests (Depends-on): Likewise.
12243         * modules/fputc-tests (Depends-on): Likewise.
12244         * modules/fread-tests (Depends-on): Likewise.
12245         * modules/freopen-tests (Depends-on): Likewise.
12246         * modules/fseeko-tests (Depends-on): Likewise.
12247         * modules/ftello-tests (Depends-on): Likewise.
12248         * modules/fwrite-tests  (Depends-on): Likewise.
12249         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12250
12251 2011-09-24  Bruno Haible  <bruno@clisp.org>
12252
12253         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12254         * modules/fgetc-tests (Depends-on): Add unistd.
12255         * modules/fputc-tests (Depends-on): Likewise.
12256         * modules/fread-tests (Depends-on): Likewise.
12257         * modules/fwrite-tests (Depends-on): Likewise.
12258
12259 2011-09-24  Bruno Haible  <bruno@clisp.org>
12260
12261         dup: Simplify autoconf test.
12262         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12263         on gl_MSVC_INVAL's result.
12264
12265 2011-09-24  Bruno Haible  <bruno@clisp.org>
12266
12267         Tests for function fwrite().
12268         * modules/fwrite-tests: New file.
12269         * tests/test-fwrite.c: New file.
12270         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12271
12272         Tests for function fread().
12273         * modules/fread-tests: New file.
12274         * tests/test-fread.c: New file.
12275         * modules/stdio-tests (Depends-on): Add fread-tests.
12276
12277         Activate fputc tests.
12278         * modules/stdio-tests (Depends-on): Add fputc-tests.
12279
12280         Enhance fgetc, fputc tests.
12281         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12282         * tests/test-fputc.c (main): Likewise.
12283
12284 2011-09-24  Bruno Haible  <bruno@clisp.org>
12285
12286         write: Support for MSVC 9.
12287         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12288         is not 1.
12289         * lib/write.c (write_nothrow): New function.
12290         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12291         not 1. Use write_nothrow.
12292         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12293         invalid parameter handler.
12294         (gl_PREREQ_WRITE): New macro.
12295         * modules/write (Depends-on): Add msvc-inval.
12296         (configure.ac): Invoke gl_PREREQ_WRITE.
12297         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12298
12299 2011-09-24  Bruno Haible  <bruno@clisp.org>
12300
12301         read: Fix last commit.
12302         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12303
12304 2011-09-24  Bruno Haible  <bruno@clisp.org>
12305
12306         dup2: Fix last commit.
12307         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12308         (rpl_dup2): Disable fcntl workaround on native Windows.
12309
12310         sigprocmask: Make code safer.
12311         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12312         section that changes macro definitions for this compilation unit.
12313
12314 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12315
12316         dup2: clarify by coalescing Windows-specific material
12317         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12318         "msvc-nothrow.h"' to the Windows-specific section, so that the
12319         Emacs source need not contain these include files.
12320         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12321         Windows-specific fixes into this function rather than just the
12322         nothrow fix, as this shortens and clarifies the code.  Always
12323         define as a function, as that's a bit cleaner than having it be
12324         sometimes a function and sometimes a macro.
12325         (rpl_dup2): Move the Windows-specific stuff out of here and into
12326         ms_windows_dup2.  Don't protect the Haiku-related fix with
12327         "#if !defined __linux__", as the same code also works around
12328         a Linux kernel bug, and it doesn't add any system calls on any
12329         platform.  Add comment about FreeBSD 6.1.
12330
12331         sigprocmask: move #include directive
12332         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12333         Windows-specific section, so that the Emacs source need not
12334         contain msvc-inval.h.
12335
12336 2011-09-23  Bruno Haible  <bruno@clisp.org>
12337
12338         read: Support for MSVC 9.
12339         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12340         is not 1.
12341         * lib/read.c (read_nothrow): New function.
12342         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12343         read_nothrow.
12344         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12345         invalid parameter handler.
12346         (gl_PREREQ_READ): New macro.
12347         * modules/read (Depends-on): Add msvc-inval.
12348         (configure.ac): Invoke gl_PREREQ_READ.
12349         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12350
12351 2011-09-23  Bruno Haible  <bruno@clisp.org>
12352
12353         close: Support for MSVC 9.
12354         * lib/close.c: Include <errno.h>, msvc-inval.h.
12355         (close_nothrow): New function.
12356         (rpl_close): Use it.
12357         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12358         invalid parameter handler.
12359         * modules/close (Depends-on): Add msvc-inval.
12360         * modules/dup2-tests (Depends-on): Add close.
12361         * modules/dup3-tests (Depends-on): Likewise.
12362         * modules/fcntl-tests (Depends-on): Likewise.
12363         * modules/spawn-pipe-tests (Depends-on): Likewise.
12364         * modules/unistd-safer-tests (Depends-on): Likewise.
12365         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12366
12367 2011-09-23  Bruno Haible  <bruno@clisp.org>
12368
12369         New module 'dup'.
12370         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12371         Allow replacement.
12372         * lib/dup.c: New file.
12373         * lib/fchdir.c (rpl_dup): Remove function.
12374         * m4/dup.m4: New file.
12375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12376         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12377         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12378         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12379         * modules/dup: New file.
12380         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12381         'dup' module is in use.
12382         * modules/fdopendir (Depends-on): Add dup.
12383         * modules/fdutimensat-tests (Depends-on): Likewise.
12384         * modules/fts (Depends-on): Likewise.
12385         * modules/futimens-tests (Depends-on): Likewise.
12386         * modules/posix_spawnp-tests (Depends-on): Likewise.
12387         * modules/unistd-safer-tests (Depends-on): Likewise.
12388         * modules/utimens-tests (Depends-on): Likewise.
12389         * doc/posix-functions/dup.texi: Mention the new module and the problem
12390         on MSVC.
12391
12392 2011-09-23  Bruno Haible  <bruno@clisp.org>
12393
12394         getdtablesize: Support for MSVC 9.
12395         * lib/getdtablesize.c: Include msvc-inval.h.
12396         (_setmaxstdio_nothrow): New function.
12397         (_setmaxstdio): Redefine it.
12398         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12399         * modules/getdtablesize (Depends-on): Add msvc-inval.
12400         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12401
12402 2011-09-23  Bruno Haible  <bruno@clisp.org>
12403
12404         signal-h: Rename from signal.
12405         * modules/signal-h: Renamed from modules/signal.
12406         * modules/pthread_sigmask (Depends-on): Update.
12407         * modules/raise (Depends-on): Likewise.
12408         * modules/sigaction (Depends-on): Likewise.
12409         * modules/sigpipe (Depends-on): Likewise.
12410         * modules/sigprocmask (Depends-on): Likewise.
12411         * modules/sys_select (Depends-on): Likewise.
12412         * modules/signal-h-tests: Renamed from modules/signal-tests.
12413         (Files, Depends-on, Makefile.am): Update.
12414         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12415         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12416         (Files, Makefile.am): Update.
12417         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12418         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12419         * modules/signal: New placeholder file.
12420         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12421         * doc/posix-headers/signal.texi: Update.
12422         * NEWS: Mention the change.
12423
12424 2011-09-23  Bruno Haible  <bruno@clisp.org>
12425
12426         sigprocmask: Avoid crashes through signal() on MSVC 9.
12427         * lib/sigprocmask.c: Include msvc-inval.h.
12428         (signal_nothrow): New function.
12429         (signal): Redefine it.
12430         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12431         * modules/sigprocmask (Depends-on): Add msvc-inval.
12432         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12433
12434 2011-09-23  Bruno Haible  <bruno@clisp.org>
12435
12436         Tests for module 'raise'.
12437         * modules/raise-tests: New file.
12438         * tests/test-raise.c: New file.
12439
12440         raise: Support for MSVC.
12441         * lib/signal.in.h (raise): New declaration.
12442         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12443         for native Windows platforms.
12444         * m4/raise.m4: New file.
12445         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12446         HAVE_RAISE, REPLACE_RAISE.
12447         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12448         REPLACE_RAISE.
12449         * modules/raise (Status, Notice): Remove fields.
12450         (Files): Add m4/raise.m4.
12451         (Depends-on): Add signal, msvc-inval.
12452         (configure.ac): Use the common idioms.
12453         (Maintainer): Add me.
12454         * tests/test-signal-c++.cc: Check the signature of raise.
12455         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12456
12457 2011-09-23  Bruno Haible  <bruno@clisp.org>
12458
12459         pipe2: Fix compilation on pre-C99 compilers.
12460         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12461
12462 2011-09-23  Bruno Haible  <bruno@clisp.org>
12463
12464         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12465         * lib/msvc-nothrow.h: New file.
12466         * lib/msvc-nothrow.c: New file.
12467         * m4/msvc-nothrow.m4: New file.
12468         * modules/msvc-nothrow: New file.
12469         * lib/dup2.c: Include msvc-nothrow.h.
12470         (rpl_dup2): No need to protect _get_osfhandle call here.
12471         * lib/accept4.c: Include msvc-nothrow.h.
12472         * lib/error.c: Likewise.
12473         * lib/fcntl.c: Likewise.
12474         * lib/lseek.c: Likewise.
12475         * lib/nonblocking.c: Likewise.
12476         * lib/poll.c: Likewise.
12477         * lib/read.c: Likewise.
12478         * lib/select.c: Likewise.
12479         * lib/sockets.h: Likewise.
12480         * lib/sockets.c: Likewise.
12481         * lib/stdio-read.c: Likewise.
12482         * lib/stdio-write.c: Likewise.
12483         * lib/write.c: Likewise.
12484         * lib/w32sock.h: Likewise.
12485         * lib/w32spawn.h: Likewise.
12486         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12487         * lib/fsync.c: Likewise.
12488         * lib/isapipe.c: Likewise.
12489         * modules/dup2 (Depends-on): Add msvc-nothrow.
12490         * modules/accept4 (Depends-on): Likewise.
12491         * modules/error (Depends-on): Likewise.
12492         * modules/fcntl (Depends-on): Likewise.
12493         * modules/lseek (Depends-on): Likewise.
12494         * modules/nonblocking (Depends-on): Likewise.
12495         * modules/poll (Depends-on): Likewise.
12496         * modules/read (Depends-on): Likewise.
12497         * modules/select (Depends-on): Likewise.
12498         * modules/sockets (Depends-on): Likewise.
12499         * modules/sigpipe (Depends-on): Likewise.
12500         * modules/write (Depends-on): Likewise.
12501         * modules/accept (Depends-on): Likewise.
12502         * modules/bind (Depends-on): Likewise.
12503         * modules/connect (Depends-on): Likewise.
12504         * modules/gethostname (Depends-on): Likewise.
12505         * modules/getpeername (Depends-on): Likewise.
12506         * modules/getsockname (Depends-on): Likewise.
12507         * modules/getsockopt (Depends-on): Likewise.
12508         * modules/ioctl (Depends-on): Likewise.
12509         * modules/listen (Depends-on): Likewise.
12510         * modules/recv (Depends-on): Likewise.
12511         * modules/recvfrom (Depends-on): Likewise.
12512         * modules/send (Depends-on): Likewise.
12513         * modules/sendto (Depends-on): Likewise.
12514         * modules/setsockopt (Depends-on): Likewise.
12515         * modules/shutdown (Depends-on): Likewise.
12516         * modules/socket (Depends-on): Likewise.
12517         * modules/execute (Depends-on): Likewise.
12518         * modules/spawn-pipe (Depends-on): Likewise.
12519         * modules/flock (Depends-on): Likewise.
12520         * modules/fsync (Depends-on): Likewise.
12521         * modules/isapipe (Depends-on): Likewise.
12522         * tests/test-cloexec.c: Include msvc-nothrow.h.
12523         * tests/test-dup-safer.c: Likewise.
12524         * tests/test-dup2.c: Likewise.
12525         * tests/test-dup3.c: Likewise.
12526         * tests/test-fcntl.c: Likewise.
12527         * tests/test-pipe.c: Likewise.
12528         * tests/test-pipe2.c: Likewise.
12529         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12530         * modules/unistd-safer-tests (Depends-on): Likewise.
12531         * modules/dup2-tests (Depends-on): Likewise.
12532         * modules/dup3-tests (Depends-on): Likewise.
12533         * modules/fcntl-tests (Depends-on): Likewise.
12534         * modules/pipe-posix-tests (Depends-on): Likewise.
12535         * modules/pipe2-tests (Depends-on): Likewise.
12536
12537 2011-09-23  Bruno Haible  <bruno@clisp.org>
12538
12539         dup2: Make code more maintainable.
12540         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12541         (rpl_dup2): Use it.
12542         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12543         * modules/dup2 (configure.ac): Invoke it.
12544         Reported by Paul Eggert.
12545
12546 2011-09-23  Bruno Haible  <bruno@clisp.org>
12547
12548         msvc-inval: Fix compilation error.
12549         * lib/msvc-inval.h: Include <excpt.h>.
12550
12551 2011-09-23  Bruno Haible  <bruno@clisp.org>
12552
12553         mkdir: Tweak for MSVC 9.
12554         * lib/sys_stat.in.h: Update comments.
12555         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12556
12557         Tests for module 'chdir'.
12558         * modules/chdir-tests: New file.
12559         * tests/test-chdir.c: New file.
12560
12561         New module 'chdir'.
12562         * modules/chdir: New file.
12563         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12564         (chdir): New declaration.
12565         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12566         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12567         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12568         * tests/test-unistd-c++.cc: Check signature of chdir.
12569         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12570         * modules/chdir-long (Depends-on): Add chdir.
12571         * modules/fchdir (Depends-on): Likewise.
12572         * modules/rename (Depends-on): Likewise.
12573         * modules/savewd (Depends-on): Likewise.
12574
12575         rmdir: Support for mingw, MSVC 9.
12576         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12577         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12578
12579         getcwd: Tweak for MSVC 9.
12580         * lib/unistd.in.h: Update comments.
12581         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12582
12583 2011-09-22  Bruno Haible  <bruno@clisp.org>
12584
12585         strerror_r-posix: Avoid a link error on MSVC.
12586         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12587         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12588
12589 2011-09-22  Bruno Haible  <bruno@clisp.org>
12590
12591         select: Avoid link errors on MSVC.
12592         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12593         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12594         * modules/pselect (Link): Likewise.
12595         * NEWS: Mention the change.
12596         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12597         test-select-stdin against $(LIB_SELECT).
12598         * modules/pselect-tests (Makefile.am): Link test-pselect against
12599         $(LIB_SELECT).
12600
12601 2011-09-22  Bruno Haible  <bruno@clisp.org>
12602
12603         select: Avoid compilation error on MSVC.
12604         * lib/select.c: Don't include <stdbool.h>.
12605
12606 2011-09-21  Bruno Haible  <bruno@clisp.org>
12607
12608         Consolidate all uses of PATH_MAX in *.m4 files.
12609         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12610         macros.
12611         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12612         and gl_PATHMAX_SNIPPET.
12613         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12615         * modules/chdir-long (Files): Add m4/pathmax.m4.
12616         * modules/getcwd (Files): Likewise.
12617
12618 2011-09-21  Bruno Haible  <bruno@clisp.org>
12619
12620         ftruncate: Un-deprecate, concentrate on Win32 support.
12621         * modules/ftruncate (Status, Notice): Remove sections.
12622         (Depends-on): Add largefile.
12623         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12624         non-mingw platforms.
12625         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12626         include <io.h>.
12627         * modules/perror-tests (Depends-on): Add ftruncate.
12628         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12629         'ftruncate' module.
12630
12631 2011-09-21  Bruno Haible  <bruno@clisp.org>
12632
12633         Add dependencies to new dirent related modules.
12634         * modules/opendir (Depends-on): Add closedir.
12635         * modules/getcwd (Depends-on): Add opendir, closedir.
12636         * modules/dirent-safer-tests (Depends-on): Likewise.
12637         * modules/fdopendir-tests (Depends-on): Likewise.
12638         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12639         * modules/renameat-tests (Depends-on): Likewise.
12640
12641 2011-09-21  Bruno Haible  <bruno@clisp.org>
12642
12643         opendir: Avoid compilation error on mingw.
12644         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12645         * modules/opendir (Depends-on): Add unistd.
12646
12647 2011-09-21  Bruno Haible  <bruno@clisp.org>
12648
12649         ftruncate tests: Avoid a test failure on mingw.
12650         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12651
12652 2011-09-21  Bruno Haible  <bruno@clisp.org>
12653
12654         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12655         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12656         native Windows.
12657
12658 2011-09-21  Bruno Haible  <bruno@clisp.org>
12659
12660         New module 'fdopen'.
12661         * lib/stdio.in.h (fdopen): New declaration.
12662         * lib/fdopen.c: New file.
12663         * m4/fdopen.m4: New file.
12664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12665         REPLACE_FDOPEN.
12666         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12667         REPLACE_FDOPEN.
12668         * modules/fdopen: New file.
12669         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12670         * tests/test-stdio-c++.cc: Check signature of fdopen.
12671         * doc/posix-functions/fdopen.texi: Mention the new module.
12672
12673 2011-09-21  Bruno Haible  <bruno@clisp.org>
12674
12675         unlockpt tests: Avoid test failure on NetBSD 5.1.
12676         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12677         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12678
12679 2011-09-21  Bruno Haible  <bruno@clisp.org>
12680
12681         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12682         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12683         * tests/test-getlogin_r.c (main): Likewise.
12684
12685 2011-09-20  Bruno Haible  <bruno@clisp.org>
12686
12687         time tests: Don't require pid_t.
12688         * doc/posix-headers/time.texi: Revert last change.
12689         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12690         * tests/test-time.c: Comment out the check for pid_t.
12691
12692 2011-09-20  Bruno Haible  <bruno@clisp.org>
12693
12694         fsync tests: Avoid a test failure on mingw.
12695         * tests/test-fsync.c (main): Allow a failure with EIO.
12696
12697 2011-09-20  Bruno Haible  <bruno@clisp.org>
12698
12699         euidaccess: Update comments.
12700         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12701
12702 2011-09-20  Bruno Haible  <bruno@clisp.org>
12703
12704         Ensure EBADF returns for socket functions on mingw.
12705         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12706         descriptor is invalid.
12707         * lib/bind.c (rpl_bind): Likewise.
12708         * lib/connect.c (rpl_connect): Likewise.
12709         * lib/getpeername.c (rpl_getpeername): Likewise.
12710         * lib/getsockname.c (rpl_getsockname): Likewise.
12711         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12712         * lib/listen.c (rpl_listen): Likewise.
12713         * lib/recv.c (rpl_recv): Likewise.
12714         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12715         * lib/send.c (rpl_send): Likewise.
12716         * lib/sendto.c (rpl_sendto): Likewise.
12717         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12718         * lib/shutdown.c (rpl_shutdown): Likewise.
12719
12720 2011-09-20  Bruno Haible  <bruno@clisp.org>
12721
12722         select tests: EBADF tests.
12723         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12724         test_bad_fd): New functions.
12725         (test_function): Invoke also test_bad_fd.
12726
12727 2011-09-20  Bruno Haible  <bruno@clisp.org>
12728
12729         Tests for module 'posix_spawn_file_actions_addopen.
12730         * modules/posix_spawn_file_actions_addopen-tests: New file.
12731         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12732
12733         Tests for module 'posix_spawn_file_actions_adddup2'.
12734         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12735         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12736
12737         Tests for module 'posix_spawn_file_actions_addclose'.
12738         * modules/posix_spawn_file_actions_addclose-tests: New file.
12739         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12740
12741 2011-09-20  Bruno Haible  <bruno@clisp.org>
12742
12743         Tests for module 'unlockpt'.
12744         * modules/unlockpt-tests: New file.
12745         * tests/test-unlockpt.c: New file.
12746         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12747
12748         Tests for module 'grantpt'.
12749         * modules/grantpt-tests: New file.
12750         * tests/test-grantpt.c: New file.
12751         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12752
12753 2011-09-20  Bruno Haible  <bruno@clisp.org>
12754
12755         freopen tests: EBADF tests.
12756         * tests/test-freopen.c: Include errno.h, unistd.h.
12757         (main): Add tests for EBADF, commented out for the moment.
12758
12759         fclose tests: EBADF tests.
12760         * tests/test-fclose.c (main): Add tests for EBADF.
12761
12762         fflush tests: EBADF tests.
12763         * tests/test-fflush.c: Include errno.h, macros.h.
12764         (main): Add tests for EBADF.
12765
12766         ftello tests: EBADF tests.
12767         * tests/test-ftello4.sh: New file.
12768         * tests/test-ftello4.c: New file.
12769         * modules/ftello-tests (Files): Add them.
12770         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12771
12772         fseeko tests: EBADF tests.
12773         * tests/test-fseeko4.sh: New file.
12774         * tests/test-fseeko4.c: New file.
12775         * modules/fseeko-tests (Files): Add them.
12776         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12777
12778         Tests for function fputc().
12779         * modules/fputc-tests: New file.
12780         * tests/test-fputc.c: New file.
12781         * modules/stdio-tests (Depends-on): Add fputc-tests.
12782
12783         Tests for function fgetc().
12784         * modules/fgetc-tests: New file.
12785         * tests/test-fgetc.c: New file.
12786         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12787
12788         Tests for function fdopen().
12789         * modules/fdopen-tests: New file.
12790         * tests/test-fdopen.c: New file.
12791         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12792
12793         Tests for module 'vdprintf'.
12794         * modules/vdprintf-tests: New file.
12795         * tests/test-vdprintf.c: New file.
12796
12797         Tests for module 'dprintf'.
12798         * modules/dprintf-tests: New file.
12799         * tests/test-dprintf.c: New file.
12800
12801 2011-09-20  Bruno Haible  <bruno@clisp.org>
12802
12803         Tests for module 'ioctl'.
12804         * modules/ioctl-tests: New file.
12805         * tests/test-ioctl.c: New file.
12806
12807 2011-09-20  Bruno Haible  <bruno@clisp.org>
12808
12809         fcntl tests: EBADF tests.
12810         * tests/test-fcntl.c (main): Add more tests for EBADF.
12811
12812 2011-09-20  Bruno Haible  <bruno@clisp.org>
12813
12814         utimensat tests: EBADF tests.
12815         * tests/test-utimensat.c (main): Add tests for EBADF.
12816
12817         renameat tests: EBADF tests.
12818         * tests/test-renameat.c (main): Add tests for EBADF.
12819
12820         mkfifoat tests: EBADF tests.
12821         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12822
12823         readlinkat tests: EBADF tests.
12824         * tests/test-readlinkat.c (main): Add tests for EBADF.
12825
12826         symlinkat tests: EBADF tests.
12827         * tests/test-symlinkat.c (main): Add tests for EBADF.
12828
12829         linkat tests: EBADF tests.
12830         * tests/test-linkat.c (main): Add tests for EBADF.
12831
12832         Tests for module 'faccessat'.
12833         * modules/faccessat-tests: New file.
12834         * tests/test-faccessat.c: New file.
12835
12836         fdopendir tests: EBADF tests.
12837         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12838
12839         openat tests: EBADF tests.
12840         * tests/test-fchownat.c (main): Add tests for EBADF.
12841         * tests/test-fstatat.c (main): Likewise.
12842         * tests/test-mkdirat.c (main): Likewise.
12843         * tests/test-openat.c (main): Likewise.
12844         * tests/test-unlinkat.c (main): Likewise.
12845         * tests/test-fchmodat.c: New file.
12846         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12847         (Makefile.am): Also run 'test-fchmodat'.
12848
12849 2011-09-20  Bruno Haible  <bruno@clisp.org>
12850
12851         utimens, futimens, fdutimensat tests: EBADF tests.
12852         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12853
12854         Tests for function fstat().
12855         * modules/fstat-tests: New file.
12856         * tests/test-fstat.c: New file.
12857         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12858
12859 2011-09-20  Bruno Haible  <bruno@clisp.org>
12860
12861         test-ttyname_r tests: EBADF tests.
12862         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12863
12864         Tests for module 'isatty'.
12865         * modules/isatty-tests: New file.
12866         * tests/test-isatty.c: New file.
12867
12868         Tests for module 'write'.
12869         * modules/write-tests: New file.
12870         * tests/test-write.c: New file.
12871
12872         Tests for module 'read'.
12873         * modules/read-tests: New file.
12874         * tests/test-read.c: New file.
12875
12876         pwrite tests: EBADF tests.
12877         * tests/test-pwrite.c (main): Add tests for EBADF.
12878
12879         pread tests: EBADF tests.
12880         * tests/test-pread.c (main): Add tests for EBADF.
12881
12882         lseek tests: EBADF tests.
12883         * tests/test-lseek.c (main): Add more tests for EBADF.
12884
12885         Tests for module 'ftruncate'.
12886         * modules/ftruncate-tests: New file.
12887         * tests/test-ftruncate.sh: New file.
12888         * tests/test-ftruncate.c: New file.
12889
12890         fsync tests: EBADF tests.
12891         * tests/test-fsync.c (main): Add more tests for EBADF.
12892
12893         fdatasync tests: EBADF tests.
12894         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12895
12896         Tests for module 'fchown'.
12897         * modules/fchown-tests: New file.
12898         * tests/test-fchown.c: New file.
12899
12900         Tests for module 'fchmod'.
12901         * modules/fchmod-tests: New file.
12902         * tests/test-fchmod.c: New file.
12903
12904         fchdir tests: EBADF tests.
12905         * tests/test-fchdir.c (main): Add more tests for EBADF.
12906
12907         dup2 tests: EBADF tests.
12908         * tests/test-dup2.c (main): Add more tests for EBADF.
12909
12910         Tests for module 'dup'.
12911         * modules/dup-tests: New file.
12912         * tests/test-dup.c: New file.
12913
12914         Tests for module 'close'.
12915         * modules/close-tests: New file.
12916         * tests/test-close.c: New file.
12917
12918 2011-09-20  Bruno Haible  <bruno@clisp.org>
12919
12920         Tests for module 'shutdown'.
12921         * modules/shutdown-tests: New file.
12922         * tests/test-shutdown.c: New file.
12923
12924         Tests for module 'setsockopt'.
12925         * modules/setsockopt-tests: New file.
12926         * tests/test-setsockopt.c: New file.
12927
12928         Tests for module 'sendto'.
12929         * modules/sendto-tests: New file.
12930         * tests/test-sendto.c: New file.
12931
12932         Tests for module 'send'.
12933         * modules/send-tests: New file.
12934         * tests/test-send.c: New file.
12935
12936         Tests for module 'recvfrom'.
12937         * modules/recvfrom-tests: New file.
12938         * tests/test-recvfrom.c: New file.
12939
12940         Tests for module 'recv'.
12941         * modules/recv-tests: New file.
12942         * tests/test-recv.c: New file.
12943
12944         Tests for module 'listen'.
12945         * modules/listen-tests: New file.
12946         * tests/test-listen.c: New file.
12947
12948         Tests for module 'getsockopt'.
12949         * modules/getsockopt-tests: New file.
12950         * tests/test-getsockopt.c: New file.
12951
12952         Tests for module 'getsockname'.
12953         * modules/getsockname-tests: New file.
12954         * tests/test-getsockname.c: New file.
12955
12956         Tests for module 'getpeername'.
12957         * modules/getpeername-tests: New file.
12958         * tests/test-getpeername.c: New file.
12959
12960         Tests for module 'connect'.
12961         * modules/connect-tests: New file.
12962         * tests/test-connect.c: New file.
12963
12964         Tests for module 'bind'.
12965         * modules/bind-tests: New file.
12966         * tests/test-bind.c: New file.
12967
12968         accept4 tests: Fix for native Windows.
12969         * tests/test-accept4.c: Include sockets.h.
12970         (main): Invoke gl_sockets_startup.
12971         * modules/accept4-tests (Depends-on): Add sockets.
12972
12973         accept tests: Fix for native Windows.
12974         * tests/test-accept.c: Include sockets.h.
12975         (main): Invoke gl_sockets_startup.
12976         * modules/accept-tests (Depends-on): Add sockets.
12977
12978 2011-09-19  Bruno Haible  <bruno@clisp.org>
12979
12980         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12981         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12982         do...while(0).
12983         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12984         Suggested by Paul Eggert.
12985
12986 2011-09-19  Bruno Haible  <bruno@clisp.org>
12987
12988         sched: Ensure pid_t is defined.
12989         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12990         not define pid_t.
12991         * lib/sched.in.h: Include <sys/types.h>.
12992         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12994
12995 2011-09-19  Bruno Haible  <bruno@clisp.org>
12996
12997         msvc-inval: Ensure the entire expansion is a single statement.
12998         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12999         of braces.
13000
13001 2011-09-19  Jim Meyering  <meyering@redhat.com>
13002
13003         tests: use printf, not echo in init.sh's warn_ function
13004         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13005         misbehave when given strings containing a backslash or starting
13006         with e.g., -n.  James Youngman suggested setting IFS.
13007
13008 2011-09-19  Eric Blake  <eblake@redhat.com>
13009
13010         futimens: enhance test
13011         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13012         closed non-negative fd.
13013
13014         date: accept 'hence' as opposite of 'ago'
13015         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13016         * tests/test-parse-datetime.c (main): Enhance test.
13017         Suggested by Jesse Wilson.
13018
13019 2011-09-19  Jim Meyering  <meyering@redhat.com>
13020
13021         getcwd: don't fail in a deep directory on a system without openat
13022         Before this change, getcwd would fail when called from a directory
13023         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13024         the non-openat implementation used "..", "../..", "../../..", etc.
13025         to access ancestor directories.  With too many, that string would
13026         be longer than PATH_MAX.
13027         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13028         using gnulib's openat replacement.
13029         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13030         we're using the replacement function.
13031
13032 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13033
13034         maint.mk: avoid warnings from perl about missing files
13035         * top/maint.mk (def_sym_regex): Ignore files listed in
13036         $(gl_other_headers_) that do not exist, say because a project
13037         does not use a corresponding module.
13038
13039 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13040
13041         stat: use pathmax.h only if needed
13042         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13043         This is better for Emacs, which does not have a mingw port and
13044         therefore can avoid the pathmax module.
13045
13046         utimens: remove dependency on dup2
13047         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13048         to work around the Linux kernel bug.
13049         * modules/utimens (Depends-on): Remove dup2.
13050
13051 2011-09-18  Bruno Haible  <bruno@clisp.org>
13052
13053         inet_ntop, inet_pton: Look for it also in libresolv.
13054         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13055         libnsl, search for it in libresolv.
13056         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13057         Needed on Solaris 7.
13058
13059 2011-09-18  Bruno Haible  <bruno@clisp.org>
13060
13061         accept, accept4 tests: Avoid link error on Solaris.
13062         * modules/accept-tests (Makefile.am): Link test-accept against
13063         $(LIBSOCKET).
13064         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13065         $(LIBSOCKET).
13066
13067         accept4: Avoid link error on Solaris.
13068         * modules/accept4 (Link): New section.
13069
13070         socket functions: Avoid link errors on Solaris.
13071         * modules/accept (Depends-on): Add socketlib.
13072         (Link): New section.
13073         * modules/bind (Depends-on): Add socketlib.
13074         (Link): New section.
13075         * modules/connect (Depends-on): Add socketlib.
13076         (Link): New section.
13077         * modules/getpeername (Depends-on): Add socketlib.
13078         (Link): New section.
13079         * modules/getsockname (Depends-on): Add socketlib.
13080         (Link): New section.
13081         * modules/getsockopt (Depends-on): Add socketlib.
13082         (Link): New section.
13083         * modules/listen (Depends-on): Add socketlib.
13084         (Link): New section.
13085         * modules/recv (Depends-on): Add socketlib.
13086         (Link): New section.
13087         * modules/recvfrom (Depends-on): Add socketlib.
13088         (Link): New section.
13089         * modules/send (Depends-on): Add socketlib.
13090         (Link): New section.
13091         * modules/sendto (Depends-on): Add socketlib.
13092         (Link): New section.
13093         * modules/setsockopt (Depends-on): Add socketlib.
13094         (Link): New section.
13095         * modules/shutdown (Depends-on): Add socketlib.
13096         (Link): New section.
13097         * modules/socket (Depends-on): Add socketlib.
13098         (Link): New section.
13099
13100 2011-09-18  Bruno Haible  <bruno@clisp.org>
13101
13102         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13103         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13104         than 5 seconds.
13105         * modules/ptsname-tests (configure.ac): Test for alarm.
13106
13107 2011-09-18  Bruno Haible  <bruno@clisp.org>
13108
13109         posix_spawn_file_actions_add*: Fix module dependencies.
13110         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13111         posix_spawn_file_actions_init.
13112         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13113         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13114
13115 2011-09-18  Bruno Haible  <bruno@clisp.org>
13116
13117         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13118         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13119         * tests/test-renameat.c (main): Likewise.
13120
13121 2011-09-18  Bruno Haible  <bruno@clisp.org>
13122
13123         Tests for module 'accept4'.
13124         * modules/accept4-tests: New file.
13125         * tests/test-accept4.c: New file.
13126
13127 2011-09-18  Bruno Haible  <bruno@clisp.org>
13128
13129         Tests for module 'accept'.
13130         * modules/accept-tests: New file.
13131         * tests/test-accept.c: New file.
13132
13133 2011-09-18  Bruno Haible  <bruno@clisp.org>
13134
13135         dup2: Support for MSVC.
13136         * lib/dup2.c: Include msvc-inval.h.
13137         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13138         _get_osfhandle calls.
13139         * modules/dup2 (Depends-on): Add msvc-inval.
13140         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13141
13142         New module 'msvc-inval'.
13143         * lib/msvc-inval.h: New file.
13144         * lib/msvc-inval.c: New file.
13145         * m4/msvc-inval.m4: New file.
13146         * modules/msvc-inval: New file.
13147
13148 2011-09-17  Bruno Haible  <bruno@clisp.org>
13149
13150         Tests for module 'pclose'.
13151         * modules/pclose-tests: New file.
13152
13153         New module 'pclose'.
13154         * lib/stdio.in.h (pclose): New declaration.
13155         * lib/pclose.c: New file.
13156         * m4/pclose.m4: New file.
13157         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13158         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13159         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13160         * modules/pclose: New file.
13161         * modules/popen-tests (Depends-on): Add pclose.
13162         * modules/popen-safer-tests (Depends-on): Likewise.
13163         * doc/posix-functions/pclose.texi: Mention the new module.
13164
13165 2011-09-17  Bruno Haible  <bruno@clisp.org>
13166
13167         popen: Support for MSVC.
13168         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13169         * lib/popen.c (popen): Provide alternate definition for native Windows.
13170         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13172         * modules/popen (Depends-on, configure.ac): Update condition.
13173         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13174         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13175         fixed.
13176
13177 2011-09-17  Bruno Haible  <bruno@clisp.org>
13178
13179         isnanl, isnand, isnanf: Work around MSVC bug.
13180         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13181
13182 2011-09-17  Bruno Haible  <bruno@clisp.org>
13183
13184         sys_socket tests: Fix recent mistake.
13185         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13186
13187 2011-09-17  Bruno Haible  <bruno@clisp.org>
13188
13189         putenv: Support for MSVC.
13190         * modules/putenv (Depends-on): Add environ.
13191         * lib/putenv.c (environ): Disable declaration.
13192         * lib/unistd.in.h: Update comment.
13193
13194 2011-09-17  Bruno Haible  <bruno@clisp.org>
13195
13196         math: Avoid macro redefinition warnings on MSVC.
13197         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13198         Undefine before redefining.
13199
13200 2011-09-17  Bruno Haible  <bruno@clisp.org>
13201
13202         doc: Mention functions which are declared as macros.
13203         * doc/posix-functions/*[fl].texi: Mention that some functions are
13204         defined as macros with arguments only.
13205
13206 2011-09-17  Bruno Haible  <bruno@clisp.org>
13207
13208         Add dependencies to new dirent related modules.
13209         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13210         * modules/fts (Depends-on): Likewise.
13211         * modules/glob (Depends-on): Likewise.
13212         * modules/savedir (Depends-on): Likewise.
13213         * modules/scandir (Depends-on): Likewise.
13214         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13215         * modules/fdopendir (Depends-on): Add opendir.
13216
13217 2011-09-17  Bruno Haible  <bruno@clisp.org>
13218
13219         inet_pton: Support for MSVC on Windows Vista or newer.
13220         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13221         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13222         HAVE_DECL_INET_PTON is defined.
13223         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13224         On platforms with <winsock2.h>, test whether inet_pton is declared in
13225         <ws2tcpip.h>. If so, arrange to replace it.
13226         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13227         REPLACE_INET_PTON.
13228         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13229         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13230         (Depends-on, configure.ac): Update condition.
13231         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13232
13233 2011-09-17  Bruno Haible  <bruno@clisp.org>
13234
13235         inet_ntop: Support for MSVC on Windows Vista or newer.
13236         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13237         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13238         HAVE_DECL_INET_NTOP is defined.
13239         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13240         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13241         <ws2tcpip.h>. If so, arrange to replace it.
13242         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13243         REPLACE_INET_NTOP.
13244         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13245         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13246         (Depends-on, configure.ac): Update condition.
13247         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13248
13249 2011-09-16  Eric Blake  <eblake@redhat.com>
13250
13251         test-fsync: yet another enhancement
13252         * tests/test-fsync.c (main): Also test behavior on read-only text
13253         file.
13254
13255 2011-09-16  Bruno Haible  <bruno@clisp.org>
13256
13257         Enhance fsync, fdatasync tests.
13258         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13259         * tests/test-fdatasync.c (main): Likewise.
13260
13261 2011-09-16  Bruno Haible  <bruno@clisp.org>
13262
13263         Support for MSVC compiler: Ensure mode_t gets defined.
13264         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13265         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13267         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13268         * tests/test-fcntl-h.c: Check that mode_t is defined.
13269         * tests/test-sys_stat.c: Likewise.
13270         * tests/test-sys_types.c: Likewise.
13271         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13272         * doc/posix-headers/sys_stat.texi: Likewise.
13273         * doc/posix-headers/sys_types.texi: Likewise.
13274
13275 2011-09-16  Bruno Haible  <bruno@clisp.org>
13276
13277         sys_stat: Support for MSVC.
13278         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13279         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13280         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13281         MSVC.
13282
13283 2011-09-16  Bruno Haible  <bruno@clisp.org>
13284
13285         Support for MSVC compiler: Ensure off_t gets defined.
13286         * lib/unistd.in.h: Include <sys/types.h>.
13287         * tests/test-fcntl-h.c: Check that off_t is defined.
13288         * tests/test-sys_stat.c: Likewise.
13289         * tests/test-sys_types.c: Likewise.
13290
13291 2011-09-16  Eric Blake  <eblake@redhat.com>
13292
13293         fdatasync: port to Solaris
13294         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13295         * modules/fdatasync (Link): Document it.
13296         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13297
13298         fdatasync: port to MacOS X 10.7
13299         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13300         declared.
13301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13302         * modules/unistd (Makefile.am): Substitute it.
13303         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13304         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13305
13306         fdatasync: minor improvements
13307         * modules/fdatasync (Depends-on): Add condition for fsync.
13308         * lib/fdatasync.c (fdatasync): Add comment.
13309         * tests/test-unistd-c++.cc: Test fdatasync.
13310
13311         unistd: update refs to newer POSIX
13312         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13313         Suggested by Bruno Haible.
13314
13315         fdatasync: new module
13316         * modules/fsync (Description): Document difference to fdatasync.
13317         * modules/fdatasync: New module.
13318         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13319         * lib/fdatasync.c (fdatasync): Likewise.
13320         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13321         defaults.
13322         * modules/unistd (Makefile.am): Set witnesses.
13323         * lib/unistd.in.h (fdatasync): Declare.
13324         * MODULES.html.sh: Document it.
13325         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13326         * modules/fdatasync-tests: New test.
13327         * tests/test-fdatasync.c: Likewise.
13328
13329 2011-09-16  Eric Blake  <eblake@redhat.com>
13330
13331         test-fsync: enhance tests
13332         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13333         * tests/test-fsync.c (main): Enhance test.
13334
13335 2011-09-15  Bruno Haible  <bruno@clisp.org>
13336
13337         Support for MSVC compiler: Ensure ssize_t gets defined.
13338         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13339         * doc/posix-headers/stdio.texi: Likewise.
13340         * modules/stdio (Depends-on): Add ssize_t.
13341         * modules/sys_socket (Depends-on): Likewise.
13342         * modules/sys_types (Depends-on): Likewise.
13343         * modules/sys_uio (Depends-on): Likewise.
13344         * modules/unistd (Depends-on): Likewise.
13345         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13346         * tests/test-sys_types.c: Check that ssize_t is defined.
13347
13348 2011-09-14  Bruno Haible  <bruno@clisp.org>
13349
13350         Avoid using #, the m4 comment starter character, near brackets.
13351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13352         delimiter character in sed expressions.
13353         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13354         Suggested by Eric Blake.
13355
13356         Properly quote AC_CHECK_DECLS' 4th argument.
13357         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13358         argument.
13359         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13360         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13361         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13362         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13363         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13364         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13366         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13367         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13369         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13370         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13371         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13372         * m4/isinf.m4 (gl_ISINF): Likewise.
13373         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13374         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13375         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13376         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13379         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13380         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13381         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13382         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13383         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13384         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13386         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13388         Reported by Eric Blake.
13389
13390         Properly quote AC_CHECK_DECL's 4th argument.
13391         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13392         argument.
13393         * m4/argp.m4 (gl_ARGP): Likewise.
13394         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13395         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13396         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13397         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13398         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13399         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13401         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13403         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13404         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13405         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13406         Reported by Eric Blake.
13407
13408 2011-09-14  Eric Blake  <eblake@redhat.com>
13409
13410         opendir: avoid compile warning
13411         * lib/opendir.c (includes): Always include errno.h.
13412         Reported by Tatsuro MATSUOKA.
13413
13414 2011-09-14  Jim Meyering  <meyering@redhat.com>
13415
13416         maint.mk: sc_tight_scope: propagate failure from sub-make
13417         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13418         Reported by Martin von Gagern.
13419
13420 2011-09-13  Bruno Haible  <bruno@clisp.org>
13421
13422         tempname: Support for MSVC.
13423         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13424         MSVC.
13425         * modules/tempname (Depends-on): Add fcntl-h.
13426
13427 2011-09-13  Bruno Haible  <bruno@clisp.org>
13428
13429         sys_time: Support for MSVC.
13430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13431         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13432         include <winsock2.h>.
13433         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13434         function declarations that collide with POSIX.
13435         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13436         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13437
13438 2011-09-13  Bruno Haible  <bruno@clisp.org>
13439
13440         stat: Support for MSVC.
13441         * lib/stat.c: Include pathmax.h.
13442         * modules/stat (Depends-on): Add pathmax.
13443
13444         pathmax: Support for native Windows.
13445         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13446
13447 2011-09-12  Bruno Haible  <bruno@clisp.org>
13448
13449         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13450         * lib/dirent.in.h (struct dirent): New type.
13451         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13452         DT_WHT): New macros.
13453         (DIR): New type.
13454         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13455         (readdir, rewinddir): New declarations.
13456         * lib/dirent-private.h: New file.
13457         * lib/opendir.c: New file.
13458         * lib/readdir.c: New file.
13459         * lib/rewinddir.c: New file.
13460         * lib/closedir.c: New file.
13461         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13462         * m4/opendir.m4: New file.
13463         * m4/readdir.m4: New file.
13464         * m4/rewinddir.m4: New file.
13465         * m4/closedir.m4: New file.
13466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13467         REPLACE_CLOSEDIR here.
13468         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13469         readdir, rewinddir are declared.
13470         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13471         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13472         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13473         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13474         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13475         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13476         * modules/opendir: New file.
13477         * modules/readdir: New file.
13478         * modules/rewinddir: New file.
13479         * modules/closedir: New file.
13480         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13481         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13482         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13483         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13484         * NEWS: Mention the 'fchdir' change.
13485
13486 2011-09-11  Bruno Haible  <bruno@clisp.org>
13487
13488         asm-underscore.m4: Support for MSVC.
13489         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13490         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13491
13492 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13493
13494         Doc about crypt functions.
13495         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13496         needing for _GNU_SOURCE to get crypt.
13497         * doc/posix-functions/encrypt.texi: Likewise.
13498         * doc/posix-functions/setkey.texi: Likewise.
13499
13500 2011-09-11  Bruno Haible  <bruno@clisp.org>
13501
13502         doc: Update regarding MSVC 9.
13503         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13504         tested".
13505         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13506         * doc/posix-headers/*.texi: Likewise.
13507         * doc/pastposix-functions/*.texi: Likewise.
13508         * doc/glibc-functions/*.texi: Likewise.
13509         * doc/glibc-headers/*.texi: Likewise.
13510
13511 2011-09-11  Bruno Haible  <bruno@clisp.org>
13512
13513         unistd et al.: Don't assume <unistd.h> exists.
13514         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13515         does not exist.
13516         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13517         exist. But include <stdlib.h>.
13518         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13519         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13520         symlink() does not exist.
13521         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13522         include <io.h> instead.
13523         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13524         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13525         include <direct.h> instead.
13526         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13527         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13528         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13529         <io.h> instead.
13530         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13531         correctly if the system does not have hard links.
13532         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13533         <direct.h> instead.
13534         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13535         it when looking for function declarations.
13536         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13537         <direct.h> and <io.h> instead.
13538         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13539
13540 2011-09-11  Bruno Haible  <bruno@clisp.org>
13541
13542         strcase: Support for MSVC.
13543         * modules/strcase (Status, Notice): Remove obsoletion mark.
13544         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13545         * doc/posix-functions/strncasecmp.texi: Likewise.
13546
13547         strings: Don't assume <strings.h> exists.
13548         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13549         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13550         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13551         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13552
13553 2011-09-11  Bruno Haible  <bruno@clisp.org>
13554
13555         dirent: Don't assume <dirent.h> exists.
13556         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13557         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13558         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13559         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13560
13561 2011-09-11  Bruno Haible  <bruno@clisp.org>
13562
13563         Fix wint_t on MSVC.
13564         * lib/wchar.in.h (wint_t): On MSVC, override it.
13565         * lib/wctype.in.h (wint_t): Likewise.
13566         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13567         MSVC.
13568         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13569         * doc/posix-headers/wctype.texi: Likewise.
13570
13571 2011-09-11  Bruno Haible  <bruno@clisp.org>
13572
13573         sys_types: Fix typo.
13574         * lib/sys_types.in.h: Fix typo in comment.
13575         Reported by Paul Eggert.
13576
13577         Support for MSVC compiler: Ensure size_t gets defined.
13578         * modules/strings (Depends-on): Add 'sys_types'.
13579         * modules/sys_uio (Depends-on): Likewise.
13580         * lib/sys_uio.in.h: Update comment.
13581
13582         C++ tests for module 'sys_types'.
13583         * modules/sys_types-c++-tests: New file.
13584         * tests/test-sys_types-c++.cc: New file.
13585
13586         Tests for module 'sys_types'.
13587         * modules/sys_types-tests: New file.
13588         * tests/test-sys_types.c: New file.
13589
13590         New module 'sys_types'.
13591         * lib/sys_types.in.h: New file.
13592         * m4/sys_types_h.m4: New file.
13593         * modules/sys_types: New file.
13594         * doc/posix-headers/sys_types.texi: Mention the new module and the
13595         size_t problem on MSVC 9.
13596
13597 2011-09-11  Bruno Haible  <bruno@clisp.org>
13598
13599         Support for MSVC compiler: Avoid division by a literal 0.
13600         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13601         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13602         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13603         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13604         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13605         * tests/infinity.h: New file.
13606         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13607         on MSVC.
13608         * tests/test-ceilf1.c: Include infinity.h.
13609         (main): Use Infinityf.
13610         * tests/test-ceil1.c: Include infinity.h.
13611         (main): Use Infinityd.
13612         * tests/test-ceill.c: Include infinity.h.
13613         (main): Use Infinityl.
13614         * tests/test-dprintf-posix.c: Include infinity.h.
13615         (test_function): Use Infinityd.
13616         * tests/test-floorf1.c: Include infinity.h.
13617         (main): Use Infinityf.
13618         * tests/test-floor1.c: Include infinity.h.
13619         (main): Use Infinityd.
13620         * tests/test-floorl.c: Include infinity.h.
13621         (main): Use Infinityl.
13622         * tests/test-fprintf-posix.c: Include infinity.h.
13623         (test_function): Use Infinityd.
13624         * tests/test-frexp.c: Include infinity.h.
13625         (main): Use Infinityd.
13626         * tests/test-frexpl.c: Include infinity.h.
13627         (main): Use Infinityl.
13628         * tests/test-isfinite.c: Include infinity.h.
13629         (test_isfinitef): Use Infinityf.
13630         (test_isfinited): Use Infinityd.
13631         (test_isfinitel): Use Infinityl.
13632         * tests/test-isinf.c: Include infinity.h.
13633         (test_isinff): Use Infinityf.
13634         (test_isinfd): Use Infinityd.
13635         (test_isinfl): Use Infinityl.
13636         * tests/test-isnan.c: Include infinity.h.
13637         (test_float): Use Infinityf.
13638         (test_double): Use Infinityd.
13639         (test_long_double): Use Infinityl.
13640         * tests/test-isnanf.h: Include infinity.h.
13641         (main): Use Infinityf.
13642         * tests/test-isnand.h: Include infinity.h.
13643         (main): Use Infinityd.
13644         * tests/test-isnanl.h: Include infinity.h.
13645         (main): Use Infinityl.
13646         * tests/test-ldexpl.c: Include infinity.h.
13647         (main): Use Infinityl.
13648         * tests/test-printf-posix.h: Include infinity.h.
13649         (test_function): Use Infinityd.
13650         * tests/test-roundf1.c: Include infinity.h.
13651         (main): Use Infinityf.
13652         * tests/test-round1.c: Include infinity.h.
13653         (main): Use Infinityd.
13654         * tests/test-roundl.c: Include infinity.h.
13655         (main): Use Infinityl.
13656         * tests/test-signbit.c: Include infinity.h.
13657         (test_signbitf): Use Infinityf.
13658         (test_signbitd): Use Infinityd.
13659         (test_signbitl): Use Infinityl.
13660         * tests/test-snprintf-posix.h: Include infinity.h.
13661         (test_function): Use Infinityd, Infinityl.
13662         * tests/test-sprintf-posix.h: Include infinity.h.
13663         (test_function): Use Infinityd, Infinityl.
13664         * tests/test-truncf1.c: Include infinity.h.
13665         (main): Use Infinityf.
13666         * tests/test-trunc1.c: Include infinity.h.
13667         (main): Use Infinityd.
13668         * tests/test-truncl.c: Include infinity.h.
13669         (main): Use Infinityl.
13670         * tests/test-vasnprintf-posix.c: Include infinity.h.
13671         (test_function): Use Infinityd, Infinityl.
13672         * tests/test-vasprintf-posix.c: Include infinity.h.
13673         (test_function): Use Infinityd, Infinityl.
13674         * modules/ceilf-tests (Files): Add tests/infinity.h.
13675         * modules/ceil-tests (Files): Likewise.
13676         * modules/ceill-tests (Files): Likewise.
13677         * modules/dprintf-posix-tests (Files): Likewise.
13678         * modules/floorf-tests (Files): Likewise.
13679         * modules/floor-tests (Files): Likewise.
13680         * modules/floorl-tests (Files): Likewise.
13681         * modules/fprintf-posix-tests (Files): Likewise.
13682         * modules/frexp-tests (Files): Likewise.
13683         * modules/frexp-nolibm-tests (Files): Likewise.
13684         * modules/frexpl-tests (Files): Likewise.
13685         * modules/frexpl-nolibm-tests (Files): Likewise.
13686         * modules/isfinite-tests (Files): Likewise.
13687         * modules/isinf-tests (Files): Likewise.
13688         * modules/isnan-tests (Files): Likewise.
13689         * modules/isnanf-tests (Files): Likewise.
13690         * modules/isnanf-nolibm-tests (Files): Likewise.
13691         * modules/isnand-tests (Files): Likewise.
13692         * modules/isnand-nolibm-tests (Files): Likewise.
13693         * modules/isnanl-tests (Files): Likewise.
13694         * modules/isnanl-nolibm-tests (Files): Likewise.
13695         * modules/ldexpl-tests (Files): Likewise.
13696         * modules/printf-posix-tests (Files): Likewise.
13697         * modules/roundf-tests (Files): Likewise.
13698         * modules/round-tests (Files): Likewise.
13699         * modules/roundl-tests (Files): Likewise.
13700         * modules/signbit-tests (Files): Likewise.
13701         * modules/snprintf-posix-tests (Files): Likewise.
13702         * modules/sprintf-posix-tests (Files): Likewise.
13703         * modules/truncf-tests (Files): Likewise.
13704         * modules/trunc-tests (Files): Likewise.
13705         * modules/truncl-tests (Files): Likewise.
13706         * modules/vasnprintf-posix-tests (Files): Likewise.
13707         * modules/vasprintf-posix-tests (Files): Likewise.
13708         * modules/vdprintf-posix-tests (Files): Likewise.
13709         * modules/vfprintf-posix-tests (Files): Likewise.
13710         * modules/vprintf-posix-tests (Files): Likewise.
13711         * modules/vsnprintf-posix-tests (Files): Likewise.
13712         * modules/vsprintf-posix-tests (Files): Likewise.
13713         * modules/xprintf-posix-tests (Files): Likewise.
13714
13715 2011-09-11  Bruno Haible  <bruno@clisp.org>
13716
13717         Ensure pid_t gets defined.
13718         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13719         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13720         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13721         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13722         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13723         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13724         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13725         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13726         * tests/test-fcntl-h.c: Check that pid_t is defined.
13727         * tests/test-sched.c: Likewise.
13728         * tests/test-termios.c: Likewise.
13729         * tests/test-time.c: Likewise.
13730         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13731         * doc/posix-headers/signal.texi: Likewise.
13732         * doc/posix-headers/sys_types.texi: Likewise.
13733         * doc/posix-headers/time.texi: Likewise.
13734
13735 2011-09-11  Bruno Haible  <bruno@clisp.org>
13736
13737         acl: Fix compilation on Solaris 10 (older version).
13738         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13739         of ACE_EVERYONE.
13740         * lib/set-mode-acl.c (qset_acl): Likewise.
13741         Reported by Christian Jullien <eligis@orange.fr>.
13742
13743 2011-09-10  Bruno Haible  <bruno@clisp.org>
13744
13745         iconv, unsetenv: Add support for MSVC compiler.
13746         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13747         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13748
13749 2011-09-10  Bruno Haible  <bruno@clisp.org>
13750
13751         *printf: Add support for MSVC compiler.
13752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13753         handles the exception caused by the %n directive. When cross-compiling,
13754         guess no on native Windows.
13755         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13756         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13757         emulate it through vsnprintf.
13758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13759         * doc/posix-functions/dprintf.texi: Update documentation regarding
13760         MSVC 9.
13761         * doc/posix-functions/fprintf.texi: Likewise.
13762         * doc/posix-functions/printf.texi: Likewise.
13763         * doc/posix-functions/snprintf.texi: Likewise.
13764         * doc/posix-functions/sprintf.texi: Likewise.
13765         * doc/posix-functions/swprintf.texi: Likewise.
13766         * doc/posix-functions/vdprintf.texi: Likewise.
13767         * doc/posix-functions/vfprintf.texi: Likewise.
13768         * doc/posix-functions/vprintf.texi: Likewise.
13769         * doc/posix-functions/vsnprintf.texi: Likewise.
13770         * doc/posix-functions/vsprintf.texi: Likewise.
13771         * doc/glibc-functions/asprintf.texi: Likewise.
13772         * doc/glibc-functions/obstack_printf.texi: Likewise.
13773         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13774         * doc/glibc-functions/vasprintf.texi: Likewise.
13775
13776 2011-09-10  Bruno Haible  <bruno@clisp.org>
13777
13778         nocrash: Add support for native Windows.
13779         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13780
13781 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13782             Bruno Haible  <bruno@clisp.org>
13783
13784         absolute-header, include-next: Add support for MSVC compiler.
13785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13786         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13787         directory separator in #line directives.
13788         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13789         recognize also backslash as directory separator in #line directives.
13790
13791 2011-09-08  Jim Meyering  <meyering@redhat.com>
13792
13793         maint.mk: mark the post-release commit log with "maint: " prefix
13794         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13795         one-line commit-log summary.
13796
13797 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13798             Bruno Haible  <bruno@clisp.org>
13799
13800         Doc about crypt functions.
13801         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13802         systems.
13803         * doc/posix-functions/encrypt.texi: Likewise.
13804         * doc/posix-functions/setkey.texi: Likewise.
13805
13806 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13807
13808         * lib/gc.h: Fix copyright header.
13809
13810 2011-09-07  Bruno Haible  <bruno@clisp.org>
13811
13812         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13813         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13814         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13815
13816 2011-09-07  Bruno Haible  <bruno@clisp.org>
13817
13818         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13819         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13820         * lib/freopen.c: Likewise.
13821         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13822         * lib/lstat.c: Likewise.
13823         * lib/stat.c: Likewise.
13824         * lib/open.c: Use different syntax for include of <fcntl.h>.
13825         * lib/openat.c: Include fcntl.h again, explicitly.
13826
13827 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13828
13829         parse-datetime: document the newly accepted format
13830         * doc/parse-datetime.texi (Combined date and time of day items):
13831         New section.
13832
13833 2011-09-06  Bruno Haible  <bruno@clisp.org>
13834
13835         acl: Fix a test failure on newer Solaris 10 with ZFS.
13836         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13837         ENOSYS as no ACL.
13838         Reported by Jim Meyering.
13839
13840 2011-09-06  Bruno Haible  <bruno@clisp.org>
13841
13842         acl: Update for AIX >= 5.3 with NFS.
13843         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13844         ENOSYS as no ACL.
13845
13846         acl: Fix a test failure on AIX >= 5.3 with NFS.
13847         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13848         as no ACL.
13849
13850 2011-09-06  Bruno Haible  <bruno@clisp.org>
13851
13852         acl: Fix a test failure on IRIX 6.5 with NFS.
13853         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13854         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13855         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13856         * lib/copy-acl.c (qcopy_acl): Likewise.
13857
13858 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13859
13860         openat: port to AIX 7.1 with large files
13861         AIX 7.1 does a "#define openat open64at" if large files are in use,
13862         so we can't simply #undef openat.  Use the orig_openat trick (similar
13863         to orig_open in lib/open.c) to work around the problem.  Problem
13864         reported by Kevin Brott for GNU tar, in the thread containing
13865         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13866         * lib/openat.c (__need_system_fcntl_h): Define first.
13867         Include <fcntl.h> and <sys/types.h> before undefining.
13868         (orig_openat) [HAVE_OPENAT]: New inline function.
13869         (openat) [HAVE_OPENAT]: Do not undef.
13870         (rpl_openat): Use orig_openat, not openat.
13871
13872 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13873             Bruno Haible  <bruno@clisp.org>
13874
13875         acl: Avoid errors on NonStop Kernel.
13876         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13877         ENOTSUP errors.
13878
13879 2011-09-05  Bruno Haible  <bruno@clisp.org>
13880
13881         acl: Clean up Solaris code.
13882         * lib/acl-internal.h: Remove no-op #if.
13883         * lib/file-has-acl.c: Likewise.
13884         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13885         * lib/copy-acl.c (qcopy_acl): Likewise.
13886
13887 2011-09-05  Bruno Haible  <bruno@clisp.org>
13888
13889         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13890         binaries built on the original Solaris 10.
13891         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13892         trivial.
13893
13894 2011-09-05  Bruno Haible  <bruno@clisp.org>
13895
13896         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13897         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13898         10.
13899         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13900         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13901         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13902         instead of acl_get, facl_get, acl_set, facl_set.
13903
13904 2011-09-05  Bruno Haible  <bruno@clisp.org>
13905
13906         copy-file: Try unit tests on more file systems.
13907         * tests/test-copy-file-1.sh: New file.
13908         * tests/test-copy-file-2.sh: New file.
13909         * modules/copy-file-tests (Files): Add them.
13910         (Makefile.am): Add them to TESTS.
13911
13912         acl: Try unit tests on more file systems.
13913         * tests/test-file-has-acl-1.sh: New file.
13914         * tests/test-file-has-acl-2.sh: New file.
13915         * tests/test-set-mode-acl-1.sh: New file.
13916         * tests/test-set-mode-acl-2.sh: New file.
13917         * tests/test-copy-acl-1.sh: New file.
13918         * tests/test-copy-acl-2.sh: New file.
13919         * modules/acl-tests (Files): Add them.
13920         (Makefile.am): Add them to TESTS.
13921
13922 2011-09-04  Bruno Haible  <bruno@clisp.org>
13923
13924         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13925         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13926         10.
13927         (OLD_ALLOW, OLD_DENY): New macros.
13928         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13929         ACE_ACCESS_ALLOWED_ACE_TYPE.
13930         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13931         ACE_ACCESS_DENIED_ACE_TYPE.
13932         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13933         (NEW_ACE_EXECUTE): Fix value.
13934         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13935         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13936         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13937         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13938         NEW_ACE_SYNCHRONIZE): New macros.
13939         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13940         instead of acl_fromtext, acl_set, facl_set.
13941         Fixes a coreutils/tests/cp/perm failure.
13942
13943 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13944
13945         openat: test for fstatat (..., 0) bug
13946         Further testing with tar suggests that fstatat (..., 0)
13947         does not work in general, on AIX 7.1; see
13948         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13949         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13950         replacement fstatat (which is what older AIX releases were using
13951         anyway).
13952         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13953         use is now changed to orig_fstatat.  This was probably the right
13954         thing to do anyway.
13955         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13956         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13957         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13958         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13959         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13960         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13961         if the bug is found.
13962
13963         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13964         This tests for another fstatat bug on AIX 7.1:
13965         fstatat (AT_FDCWD, ..., 0) does not work.  See
13966         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13967         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13968         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13969         (rpl_fstatat): Adjust so that it works around either (or both)
13970         bugs if present.
13971         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13972
13973 2011-09-03  Karl Berry  <karl@gnu.org>
13974
13975         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13976         in index entries.
13977
13978 2011-09-02  Bruno Haible  <bruno@clisp.org>
13979
13980         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13981         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13982         values of AR, ARFLAGS, RANLIB.
13983         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13984
13985 2011-09-02  Bruno Haible  <bruno@clisp.org>
13986
13987         Find 'ar' program that fits with --host argument.
13988         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13989
13990 2011-09-02  Bruno Haible  <bruno@clisp.org>
13991
13992         tests: init.sh: Support any non-GNU diff.
13993         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13994         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13995         Solaris 8.
13996
13997 2011-09-02  Bruno Haible  <bruno@clisp.org>
13998
13999         tests: init.sh: work also with any non-GNU diff that supports -u
14000         * tests/init.sh: Relax check for diff -u support.
14001         Rather than checking for GNU diff via --version, simply check
14002         for support for -u itself.  Useful at least on OpenBSD 4.9,
14003         AIX 7.1, IRIX 6.5, and Solaris 10.
14004
14005 2011-09-01  Bruno Haible  <bruno@clisp.org>
14006
14007         strtoimax, strtoumax: Document problem on HP-UX 11.
14008         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14009         * doc/posix-functions/strtoumax.texi: Likewise.
14010
14011 2011-09-01  Bruno Haible  <bruno@clisp.org>
14012
14013         strtoumax: Avoid link error on OSF/1 with DTK cc.
14014         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14015         defined as a function.
14016         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14017         strtoumax is defined, not whether it is declared.
14018
14019 2011-09-01  Bruno Haible  <bruno@clisp.org>
14020
14021         strtoimax: Avoid link error on OSF/1 with DTK cc.
14022         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14023         defined as a function.
14024         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14025         strtoimax is defined, not whether it is declared.
14026
14027 2011-09-01  Bruno Haible  <bruno@clisp.org>
14028
14029         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14030         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14031         as a function.
14032         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14033         whether it is declared.
14034
14035 2011-09-01  Bruno Haible  <bruno@clisp.org>
14036
14037         imaxabs: Avoid link error on OSF/1 with DTK cc.
14038         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14039         as a function.
14040         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14041         whether it is declared.
14042
14043 2011-09-01  Bruno Haible  <bruno@clisp.org>
14044
14045         Tests for module 'strtoumax'.
14046         * modules/strtoumax-tests: New file.
14047         * tests/test-strtoumax.c: New file.
14048
14049         Tests for module 'strtoimax'.
14050         * modules/strtoimax-tests: New file.
14051         * tests/test-strtoimax.c: New file.
14052
14053         Tests for module 'imaxdiv'.
14054         * modules/imaxdiv-tests: New file.
14055         * tests/test-imaxdiv.c: New file.
14056
14057         Tests for module 'imaxabs'.
14058         * modules/imaxabs-tests: New file.
14059         * tests/test-imaxabs.c: New file.
14060
14061 2011-09-01  Bruno Haible  <bruno@clisp.org>
14062
14063         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14064         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14065         pthread_create.
14066
14067 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14068
14069         openat: work around AIX 7.1 fstatat issue
14070         This should fix the problem that was not properly fixed
14071         in the previous change, dated 2011-08-30.
14072         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14073         __need_system_stat_h defined.
14074         (orig_fstatat) [HAVE_FSTATAT]: New function.
14075         (rpl_fstatat): Go back to the old way of doing things,
14076         except call orig_fstatat instead of fstatat.
14077         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14078         Remove unnecessary check whether fstatat fills in st_size etc.
14079
14080 2011-09-01  Bruno Haible  <bruno@clisp.org>
14081
14082         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14083         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14084         just include the system's header.
14085
14086 2011-08-31  Jim Meyering  <meyering@redhat.com>
14087
14088         tests: avoid spurious assertion failure in test-float.c on ppc64
14089         * tests/test-float.c (test_long_double): Comment out an assertion,
14090         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14091         with gcc-4.4.4.
14092
14093         maint: indent with spaces, not TABs
14094         I need to get in the habit of running gnulib's "make check".
14095         Both of these would have been caught.
14096         * m4/largefile.m4: Indent with spaces, not TABs.
14097         * lib/parse-datetime.y (iso_8601_time): Likewise.
14098         Spotted by Pádraig Brady.
14099
14100         test-parse-datetime.c: accommodate a relatively strict gcc warning
14101         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14102         to avoid a warning from gcc's -Werror=missing-declarations.
14103         Insert a few spaces-before-funcall-parenthesis.
14104
14105 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14106
14107         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14108         The parser now accepts ISO 8601 date-time strings with "T" as the
14109         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14110         with a space between the date and time strings.  Now it also parses
14111         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14112         variants like "2004-02-29T16:21:42.333-07:00"
14113         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14114         of day representation using the 'T' separator character.
14115         * doc/parse-datetime.texi (General date syntax): replace use of
14116         deprecated --iso-8601 option with --rfc-3339 in example of date
14117         command output formats that can be parsed.
14118         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14119         lib/parse-datetime.y.
14120         (gmt_offset): New function.
14121         (main): Add additional test cases to validate ISO8601 extended
14122         date and time of day parsing.
14123
14124 2011-08-31  Bruno Haible  <bruno@clisp.org>
14125
14126         freopen: Documentation.
14127         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14128         name.
14129         Reported by Claudio Bley <claudio.bley@gmail.com>.
14130
14131 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14132
14133         freopen: Don't crash if the filename argument is NULL.
14134         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14135         NULL.
14136
14137 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14138
14139         openat: work around AIX 7.1 fstatat bug
14140         Problem reported by Kevin Brott for GNU tar, in the thread containing
14141         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14142         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14143         FSTATAT_ST_SIZE_ETC_BROKEN.
14144         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14145         rpl_fstatat.
14146         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14147         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14148         AC_CHECK_FUNCS_ONCE for fstatat.
14149         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14150         fchmodat, mkdirat, openat and unlinkat.
14151
14152 2011-08-30  Bruno Haible  <bruno@clisp.org>
14153
14154         Avoid endless recursions if config.h includes some header files.
14155         * lib/fopen.c (__need_FILE): Define already before including config.h.
14156         * lib/freopen.c (__need_FILE): Likewise.
14157         * lib/open.c (__need_system_fcntl_h): Likewise.
14158         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14159         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14160         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14161
14162 2011-08-25  Karl Berry  <karl@gnu.org>
14163
14164         * config/srclist.txt (ylwrap): new try.
14165         * build-aux/ylwrap: new file.
14166
14167 2011-08-23  Bruno Haible  <bruno@clisp.org>
14168
14169         tmpdir: Use a good default directory on native Windows.
14170         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14171         (P_tmpdir): Default to _P_tmpdir on native Windows.
14172         (path_search): On native Windows, try the value returned by GetTempPath
14173         before trying P_tmpdir.
14174         * modules/tmpdir (Depends-on): Add pathmax.
14175         Suggested by John Darrington <john@darrington.wattle.id.au>.
14176
14177 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14178
14179         doc: fix typo in README-release
14180         * top/README-release: Capitalize first word of a sentence.
14181
14182 2011-08-19  Jim Meyering  <meyering@redhat.com>
14183
14184         fts: do not exhaust memory when processing million-entry directories
14185         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14186         directory would require about 256*N bytes of memory.  Thus, it was
14187         easy to construct a directory too large to be processed by any of
14188         those tools.  With this change, fts' maximum memory utilization is
14189         now limited to around 30MB.
14190         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14191         (fts_read): When we've processed the final entry (i.e., when
14192         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14193         using the parent entry to read any remaining entries.  Dispatch
14194         depending on what fts_build returns:
14195         - NULL+stop, aka failure: stop
14196         - NULL otherwise: move up in the dir hierarchy
14197         - non-NULL: handle this new entry
14198         (fts_build): Declare and use new local, continue_readdir.
14199         Prepare to be called from fts_read, when the entries
14200         from a partially-read directory have just been exhausted.
14201         In that case, we'll skip the opendir and instead use the parent's
14202         fts_dirp and derive dir_fd from that.
14203         Finally, in the readdir loop, if we read max_entries entries,
14204         exit the loop ensuring *not* to call closedir.  This is required
14205         so that fts_dirp can be reused on a subsequent call.
14206         Prompted by Ben England's report of memory exhaustion in find
14207         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14208
14209         maint: fts: move decl of `dp' down into while loop; split a long line
14210         * lib/fts.c (fts_build): No semantic change.
14211
14212         fts: add/use new struct member, fts_dirp
14213         We are about to use this to manage any directory with
14214         too many entries to read all of them into memory at once.
14215         To do that, we'll need to save the DIR* pointer in each
14216         affected FTSENT struct.
14217         * lib/fts_.h: Include <dirent.h>.
14218         (struct FTSENT) [fts_dirp]: New member.
14219         * lib/fts.c (closedir_and_clear): Define.
14220         Use it in place of closedir so that we are sure to
14221         clear the new fts_dirp member when done with it.
14222         (fts_alloc): Initialize the new member.
14223         (fts_lfree): Free, if needed.
14224
14225         maint: fts: give __opendir2 a new parameter and rename
14226         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14227         than surreptitiously using sole caller's "dir_fd".
14228         (fts_opendir): Rename from __opendir2.
14229
14230         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14231         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14232
14233         maint: fts.c: correct off-by-one indentation
14234         * lib/fts.c (fts_build): Correct indentation, change style
14235         of a couple of block comments, and bracing style.
14236
14237         maint: fts.c: move __opendir2 #define "up" out of function body
14238         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14239
14240         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14241         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14242         out for a long time and besides was useful only on BSD systems.
14243
14244 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14245
14246         regex: port to Stratus OpenVOS
14247         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14248         define to empty, rather than attempting nonportable optimizations.
14249         Problem reported by Paul Green in:
14250         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14251         and fix suggested by Eric Blake in:
14252         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14253
14254 2011-08-17  Eric Blake  <eblake@redhat.com>
14255
14256         getcwd: fix test failures on mingw
14257         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14258         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14259         test if long directory cannot be created, and allow mingw errno.
14260
14261         getcwd-lgpl: fix m4 to match relaxed test for BSD
14262         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14263         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14264         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14265         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14266         signature problem.
14267
14268         getcwd: fix compilation on mingw64
14269         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14270         getcwd.
14271         Reported by Marc-André Lureau.
14272
14273         pipe2: silence compiler warning
14274         * lib/pipe2.c (pipe2): Hide label if it is not used.
14275
14276 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14277
14278         relocatable-prog: fix link error
14279         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14280         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14281         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14282         into modules/relocatable-lib without noticing that
14283         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14284         also needs to build relocatable.c.
14285
14286 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14289         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14290         shell code: it contained a 'break' that was not in a loop.
14291         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14292         via a shell-language loop; this may have been true in old Autoconf
14293         versions, but it's not true in Autoconf 2.68.  I found this bug
14294         when testing coreutils git on Solaris 8, whose shell complains
14295         about the syntax error.
14296
14297 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14298
14299         * lib/base64.c: Fix comment to reference RFC 4648.
14300         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14301         <gvtulder@gmail.com>.
14302
14303 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14304
14305         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14306
14307         po/Makefile.in.in: fix make -q problem
14308         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14309         rule, since there's no file named 'check-macro-version' and its
14310         use as a file breaks make -q.
14311         (all): Don't depend on check-macro-version.
14312         (CHECK_MACRO_VERSION): New macro.
14313         (stamp-po): Use it.
14314
14315         configmake: fix make -q problem
14316         * modules/configmake (configmake.h): Update configmake.h's time stamp
14317         even if the file does not change.  Otherwise, 'make -q' fails.
14318         Problem reported by Simon Josefsson in
14319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14320
14321 2011-08-11  Jim Meyering  <meyering@redhat.com>
14322
14323         git-version-gen: correct the advice in a comment
14324         * build-aux/git-version-gen: Correct comment.
14325         Don't recommend to list .tarball-version in .gitignore.
14326
14327 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14328
14329         base64: fix off-by-one buffer size bug
14330         Problem and (trivial) fix reported by Gijs van Tulder in
14331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14332         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14333         * tests/test-base64.c (main): Catch the bug.
14334
14335 2011-08-10  Eric Blake  <eblake@redhat.com>
14336
14337         closein: correct comments
14338         * lib/closein.c (close_stdin): Improve comments.
14339
14340 2011-08-09  Bruno Haible  <bruno@clisp.org>
14341
14342         More tests for 'fseeko'.
14343         * tests/test-fseeko3.c: New file, from Eric Blake.
14344         * tests/test-fseeko3.sh: New file.
14345         * modules/fseeko-tests (Files): Add them.
14346         (TESTS): Add test-fseeko3.sh.
14347         (check_PROGRAMS): Add test-fseeko3.
14348
14349 2011-08-09  Eric Blake  <eblake@redhat.com>
14350
14351         fseeko: remove unneeded hack
14352         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14353
14354         fseeko: fix bug on glibc
14355         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14356         Reported by John W. Eaton.
14357
14358 2011-08-08  Bruno Haible  <bruno@clisp.org>
14359
14360         unictype/base: Fix interoperability with preinstalled libunistring.
14361         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14362         Reported by Simon Josefsson.
14363
14364 2011-08-08  Bruno Haible  <bruno@clisp.org>
14365
14366         iswblank: Detect declaration correctly.
14367         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14368         AC_CHECK_DECLS invocation.
14369
14370 2011-08-08  Bruno Haible  <bruno@clisp.org>
14371
14372         tcgetsid: Detect declaration correctly.
14373         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14374         AC_CHECK_DECLS invocation.
14375         Reported by Simon Josefsson.
14376
14377 2011-08-08  Eric Blake  <eblake@redhat.com>
14378
14379         largefile: fix typo that regressed large file support
14380         * modules/largefile (configure.ac-early): Fix section name.
14381
14382 2011-08-06  Karl Berry  <karl@gnu.org>
14383
14384         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14385         a separate module.
14386
14387 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14388
14389         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14390         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14391         get prototype for free.
14392
14393 2011-08-04  Bruno Haible  <bruno@clisp.org>
14394
14395         Tests for module 'pathmax'.
14396         * modules/pathmax-tests: New file.
14397         * tests/test-pathmax.c: New file.
14398
14399         canonicalize-lgpl: Support larger filenames on the Hurd.
14400         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14401         Reported by Paul Eggert.
14402
14403         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14404         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14405         * lib/chdir-long.h: Include pathmax.h.
14406         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14407         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14408         (PATH_MAX): Remove code that is done by pathmax.h.
14409         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14410         * lib/tmpfile.c: Add a comment.
14411         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14412         * modules/chdir-long (Depends-on): Add pathmax.
14413         * modules/getcwd (Depends-on): Add pathmax.
14414         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14415         is not defined.
14416         * doc/posix-headers/limits.texi: Mention the pathmax module.
14417         * NEWS: Mention the change.
14418
14419 2011-08-02  Bruno Haible  <bruno@clisp.org>
14420
14421         pthread_sigmask: Actually use results of gl_THREADLIB.
14422         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14423         gl_THREADLIB, not gl_[]THREADLIB.
14424         Reported by Eric Blake.
14425
14426 2011-08-02  Jim Meyering  <meyering@redhat.com>
14427
14428         maint.mk: relax the default _gl_TS_function_match regexp
14429         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14430         space between function name and "(" in an "extern" declaration.
14431         That would fail to match a decl with no space there: extern void foo();
14432
14433 2011-07-31  Iain Nicol  <iain@thenicols.net>
14434
14435         git-version-gen: document that EXTRA_DIST must include .version
14436         * build-aux/git-version-gen: In the how-to-use comment, document
14437         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14438         will fail when run from an unpacked distribution tarball.
14439
14440 2011-08-01  Bruno Haible  <bruno@clisp.org>
14441
14442         wctype-h: Fix last change.
14443         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14444         REPLACE_TOWLOWER to 0.
14445         Reported by Sam Steingold <sds@gnu.org>.
14446
14447 2011-07-31  Bruno Haible  <bruno@clisp.org>
14448
14449         frexpl: Update autoconf test.
14450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14451         according to changes of 2011-06-20.
14452
14453 2011-07-31  Bruno Haible  <bruno@clisp.org>
14454
14455         sys_utsname: Add support for Minix.
14456         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14457         <sys/utsname.h>.
14458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14459         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14460
14461 2011-07-31  Bruno Haible  <bruno@clisp.org>
14462
14463         strings: Add support for Minix.
14464         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14465         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14466         * doc/posix-headers/strings.texi: Document the Minix problem.
14467
14468 2011-07-31  Bruno Haible  <bruno@clisp.org>
14469
14470         wctype-h: Add support for Minix.
14471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14472         REPLACE_TOWLOWER.
14473         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14474         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14475         REPLACE_ISWCNTRL.
14476
14477 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14480         This is a performance improvement for 64-bit hosts: it causes the
14481         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14482
14483 2011-07-31  Bruno Haible  <bruno@clisp.org>
14484
14485         stdioext: Add support for Minix.
14486         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14487         * lib/fpurge.c (fpurge): Likewise.
14488         * lib/freadahead.c (freadahead): Likewise.
14489         * lib/freadable.c (freadable): Likewise.
14490         * lib/freading.c (freading): Likewise.
14491         * lib/freadptr.c (freadptr): Likewise.
14492         * lib/freadseek.c (freadptrinc): Likewise.
14493         * lib/fseeko.c (rpl_fseeko): Likewise.
14494         * lib/fseterr.c (fseterr): Likewise.
14495         * lib/fwritable.c (fwritable): Likewise.
14496         * lib/fwriting.c (fwriting): Likewise.
14497         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14498         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14499
14500 2011-07-31  Bruno Haible  <bruno@clisp.org>
14501
14502         errno: Port to Minix.
14503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14504         ECONNABORTED are defined.
14505         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14506         GNULIB_defined_ECONNABORTED): New macros.
14507         * lib/strerror-override.h (strerror_override): Test also
14508         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14509         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14510         ECONNABORTED.
14511         * doc/posix-headers/errno.texi: Mention the Minix problem.
14512
14513 2011-07-31  Bruno Haible  <bruno@clisp.org>
14514
14515         Work around declaration collisions on Minix.
14516         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14517         defined, set REPLACE_MBSINIT.
14518         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14519         defined, set REPLACE_MBRTOWC.
14520         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14521         set REPLACE_MBRLEN.
14522         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14523         defined, set REPLACE_MBSRTOWCS.
14524         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14525         defined, set REPLACE_WCRTOMB.
14526         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14527         defined, set REPLACE_WCSRTOMBS.
14528
14529 2011-07-31  Bruno Haible  <bruno@clisp.org>
14530
14531         Add support for Minix with ACK compiler.
14532         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14533         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14534         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14535
14536 2011-07-31  Bruno Haible  <bruno@clisp.org>
14537
14538         Documentation about Minix.
14539         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14540         * doc/glibc-headers/*.texi: Likewise.
14541         * doc/posix-functions/*.texi: Likewise.
14542         * doc/glibc-functions/*.texi: Likewise.
14543
14544 2011-07-31  Bruno Haible  <bruno@clisp.org>
14545
14546         snippet/warn-on-use: Fix indentation.
14547         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14548
14549 2011-07-25  Jim Meyering  <meyering@redhat.com>
14550
14551         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14552         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14553         commands.
14554
14555 2011-07-27  Jim Meyering  <meyering@redhat.com>
14556
14557         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14558         * top/maint.mk (gl_extract_significant_defines_): Now that
14559         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14560         gnulib/lib/signal.in.h, and now that we recommend to
14561         define-if-undefined those two symbols in application code,
14562         we must filter them out of the "significant" list.
14563         This avoids a "make syntax-check" failure in coreutils.
14564
14565 2011-07-26  Eric Blake  <eblake@redhat.com>
14566
14567         warnings: add comments about previous patch
14568         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14569         * m4/include_next.m4: Likewise.
14570         * m4/warn-on-use.m4: Likewise.
14571         * m4/warnings.m4: Likewise, and simplify use.
14572         Suggested by Stefano Lattarini.
14573
14574         include-next, warnings: support older autoconf
14575         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14576         AS_VAR_PUSHDEF in a way that works with older autoconf.
14577         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14578         Reported by Daniel P. Berrange.
14579
14580 2011-07-25  Bruno Haible  <bruno@clisp.org>
14581
14582         fseek, ftell: Fix doc.
14583         * doc/posix-functions/fseek.texi: Reword statement about
14584         AC_SYS_LARGEFILE.
14585         * doc/posix-functions/ftell.texi: Likewise.
14586
14587 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14588             Bruno Haible  <bruno@clisp.org>
14589
14590         Add dependencies to the 'largefile' module.
14591         * modules/fopen (Depends-on): Add 'largefile'.
14592         * modules/freopen (Depends-on): Likewise.
14593         * modules/fseeko (Depends-on): Likewise.
14594         * modules/ftello (Depends-on): Likewise.
14595         * modules/glob (Depends-on): Likewise.
14596         * modules/lseek (Depends-on): Likewise.
14597         * modules/lstat (Depends-on): Likewise.
14598         * modules/mkostemp (Depends-on): Likewise.
14599         * modules/mkostemps (Depends-on): Likewise.
14600         * modules/mkstemp (Depends-on): Likewise.
14601         * modules/mkstemps (Depends-on): Likewise.
14602         * modules/open (Depends-on): Likewise.
14603         * modules/openat (Depends-on): Likewise.
14604         * modules/pread (Depends-on): Likewise.
14605         * modules/pwrite (Depends-on): Likewise.
14606         * modules/scandir (Depends-on): Likewise.
14607         * modules/stat (Depends-on): Likewise.
14608         * modules/tmpfile (Depends-on): Likewise.
14609         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14610         since the containing module now depends on the largefile module.
14611         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14612         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14613         off_t is fixed by gnulib.
14614         * doc/posix-functions/freopen.texi: Likewise.
14615         * doc/posix-functions/fseeko.texi: Likewise.
14616         * doc/posix-functions/fstatat.texi: Likewise.
14617         * doc/posix-functions/ftello.texi: Likewise.
14618         * doc/posix-functions/glob.texi: Likewise.
14619         * doc/posix-functions/lseek.texi: Likewise.
14620         * doc/posix-functions/lstat.texi: Likewise.
14621         * doc/posix-functions/mkstemp.texi: Likewise.
14622         * doc/posix-functions/open.texi: Likewise.
14623         * doc/posix-functions/openat.texi: Likewise.
14624         * doc/posix-functions/pread.texi: Likewise.
14625         * doc/posix-functions/pwrite.texi: Likewise.
14626         * doc/posix-functions/scandir.texi: Likewise.
14627         * doc/posix-functions/stat.texi: Likewise.
14628         * doc/posix-functions/tmpfile.texi: Likewise.
14629         * doc/glibc-functions/mkostemp.texi: Likewise.
14630         * doc/glibc-functions/mkostemps.texi: Likewise.
14631         * doc/glibc-functions/mkstemps.texi: Likewise.
14632
14633 2011-07-25  Bruno Haible  <bruno@clisp.org>
14634
14635         fcntl: Move AC_LIBOBJ invocation to module description.
14636         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14637         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14638
14639         fcntl: Remove call-in from fchdir.m4.
14640         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14642
14643         dup3: Remove potential call-in from fchdir.m4.
14644         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14646
14647         dup2: Move AC_LIBOBJ invocation to module description.
14648         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14649         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14650         Don't invoke AC_LIBOBJ.
14651         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14652
14653         dup2: Remove call-in from fchdir.m4.
14654         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14656
14657         fclose: Move AC_LIBOBJ invocation to module description.
14658         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14659         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14660         to 1.
14661         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14662
14663         fclose: Remove call-in from close.m4.
14664         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14665         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14666
14667         close: Move AC_LIBOBJ invocation to module description.
14668         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14669         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14670         1.
14671         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14672
14673         close: Remove call-in from fchdir.m4.
14674         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14676
14677         open: Move AC_LIBOBJ invocation to module description.
14678         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14679         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14680         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14681
14682         open: Remove call-in from fchdir.m4.
14683         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14685
14686         fchdir: Start to remove gl_REPLACE_* idiom.
14687         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14688         (gl_FUNC_FCHDIR): Invoke it.
14689
14690 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14691
14692         * lib/ftell.c (ftell): Comment out cast.
14693
14694         close: use gl_REPLACE_FCLOSE only if defined
14695         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14696         is defined.  The close module doesn't depend on the fclose module
14697         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14699         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14700
14701 2011-07-24  Jim Meyering  <meyering@redhat.com>
14702
14703         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14704         * tests/test-select.h (test_function): Declare as "static".
14705
14706 2011-07-24  Bruno Haible  <bruno@clisp.org>
14707
14708         doc: Mention the effects of AC_SYS_LARGEFILE.
14709         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14710         on this function.
14711         * doc/posix-functions/aio_error.texi: Likewise.
14712         * doc/posix-functions/aio_fsync.texi: Likewise.
14713         * doc/posix-functions/aio_read.texi: Likewise.
14714         * doc/posix-functions/aio_return.texi: Likewise.
14715         * doc/posix-functions/aio_suspend.texi: Likewise.
14716         * doc/posix-functions/aio_write.texi: Likewise.
14717         * doc/posix-functions/fgetpos.texi: Likewise.
14718         * doc/posix-functions/fopen.texi: Likewise.
14719         * doc/posix-functions/freopen.texi: Likewise.
14720         * doc/posix-functions/fsetpos.texi: Likewise.
14721         * doc/posix-functions/fstatvfs.texi: Likewise.
14722         * doc/posix-functions/ftruncate.texi: Likewise.
14723         * doc/posix-functions/ftw.texi: Likewise.
14724         * doc/posix-functions/getrlimit.texi: Likewise.
14725         * doc/posix-functions/glob.texi: Likewise.
14726         * doc/posix-functions/lio_listio.texi: Likewise.
14727         * doc/posix-functions/lockf.texi: Likewise.
14728         * doc/posix-functions/mkstemp.texi: Likewise.
14729         * doc/posix-functions/mmap.texi: Likewise.
14730         * doc/posix-functions/nftw.texi: Likewise.
14731         * doc/posix-functions/openat.texi: Likewise.
14732         * doc/posix-functions/opendir.texi: Likewise.
14733         * doc/posix-functions/posix_fadvise.texi: Likewise.
14734         * doc/posix-functions/posix_fallocate.texi: Likewise.
14735         * doc/posix-functions/pread.texi: Likewise.
14736         * doc/posix-functions/pwrite.texi: Likewise.
14737         * doc/posix-functions/readdir.texi: Likewise.
14738         * doc/posix-functions/readdir_r.texi: Likewise.
14739         * doc/posix-functions/rewinddir.texi: Likewise.
14740         * doc/posix-functions/scandir.texi: Likewise.
14741         * doc/posix-functions/seekdir.texi: Likewise.
14742         * doc/posix-functions/setrlimit.texi: Likewise.
14743         * doc/posix-functions/statvfs.texi: Likewise.
14744         * doc/posix-functions/telldir.texi: Likewise.
14745         * doc/posix-functions/tmpfile.texi: Likewise.
14746         * doc/posix-functions/truncate.texi: Likewise.
14747         * doc/glibc-functions/fallocate.texi: Likewise.
14748         * doc/glibc-functions/fstatfs.texi: Likewise.
14749         * doc/glibc-functions/fts_children.texi: Likewise.
14750         * doc/glibc-functions/fts_read.texi: Likewise.
14751         * doc/glibc-functions/getdirentries.texi: Likewise.
14752         * doc/glibc-functions/mkostemp.texi: Likewise.
14753         * doc/glibc-functions/mkostemps.texi: Likewise.
14754         * doc/glibc-functions/mkstemps.texi: Likewise.
14755         * doc/glibc-functions/preadv.texi: Likewise.
14756         * doc/glibc-functions/pwritev.texi: Likewise.
14757         * doc/glibc-functions/sendfile.texi: Likewise.
14758         * doc/glibc-functions/statfs.texi: Likewise.
14759
14760 2011-07-24  Bruno Haible  <bruno@clisp.org>
14761
14762         doc: Fix typo.
14763         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14764
14765 2011-07-24  Bruno Haible  <bruno@clisp.org>
14766
14767         doc: Mention fsusage.
14768         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14769
14770 2011-07-24  Bruno Haible  <bruno@clisp.org>
14771
14772         doc: Mention new glibc headers and functions.
14773         * doc/glibc-headers/gshadow.texi: New file.
14774         * doc/glibc-functions/endsgent.texi: New file.
14775         * doc/glibc-functions/fgetsgent.texi: New file.
14776         * doc/glibc-functions/fgetsgent_r.texi: New file.
14777         * doc/glibc-functions/getsgent.texi: New file.
14778         * doc/glibc-functions/getsgent_r.texi: New file.
14779         * doc/glibc-functions/getsgnam.texi: New file.
14780         * doc/glibc-functions/getsgnam_r.texi: New file.
14781         * doc/glibc-functions/putsgent.texi: New file.
14782         * doc/glibc-functions/setsgent.texi: New file.
14783         * doc/glibc-functions/sgetsgent.texi: New file.
14784         * doc/glibc-functions/sgetsgent_r.texi: New file.
14785         * doc/glibc-functions/malloc_info.texi: New file.
14786         * doc/glibc-functions/preadv.texi: New file.
14787         * doc/glibc-functions/pwritev.texi: New file.
14788         * doc/glibc-functions/register_printf_modifier.texi: New file.
14789         * doc/glibc-functions/register_printf_specifier.texi: New file.
14790         * doc/glibc-functions/register_printf_type.texi: New file.
14791         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14792         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14793         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14794         * doc/glibc-functions/pthread_getname_np.texi: New file.
14795         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14796         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14797         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14798         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14799         * doc/glibc-functions/pthread_setname_np.texi: New file.
14800         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14801         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14802         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14803         * doc/glibc-functions/qsort_r.texi: New file.
14804         * doc/glibc-functions/quick_exit.texi: New file.
14805         * doc/glibc-functions/syncfs.texi: New file.
14806         * doc/gnulib.texi: Include them.
14807         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14808         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14809         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14810         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14811         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14812         * doc/glibc-functions/execvpe.texi: Likewise.
14813
14814 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14815
14816         ftell: don't include <unistd.h>
14817         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14818         guaranteed to define off_t, and the ftell module depends on the
14819         stdio module.
14820
14821         ftell: do not assume wraparound signed arithmetic
14822         * lib/ftell.c: Include <limits.h>.
14823         (ftell): Don't assume wraparound signed arithmetic.
14824
14825 2011-07-24  Bruno Haible  <bruno@clisp.org>
14826
14827         close: No longer depend on module 'fclose'.
14828         * modules/close (Depends-on): Remove fclose.
14829         * NEWS: Mention the change.
14830         Suggested by Sam Steingold <sds@gnu.org>.
14831
14832 2011-07-24  Bruno Haible  <bruno@clisp.org>
14833
14834         fsusage: Enable large volume support on AIX >= 5.2.
14835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14836         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14837         instead of STAT_STATVFS.
14838         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14839
14840         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14842         f_blocks field only on MacOS X.
14843
14844         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14846         * modules/fsusage (Depends-on): Add largefile.
14847
14848 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14849
14850         * README: Modernize discussion of signed integers.
14851         Assuming overflow wraparound is no longer safe.
14852         Mention ones' complement and signed magnitude.
14853
14854 2011-07-22  Bruno Haible  <bruno@clisp.org>
14855
14856         select tests, pselect tests: Refactor.
14857         * tests/test-select.h: New file, extracted from tests/test-select.c.
14858         (select_fn): New type.
14859         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14860         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14861         test_pipe): Add my_select argument.
14862         (test_function): Renamed from main. Add my_select argument.
14863         * tests/test-select.c: Move most code to tests/test-select.h. Include
14864         test-select.h.
14865         * modules/select-tests (Files): Add tests/test-select.h.
14866         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14867         (my_select, main): New functions.
14868         * modules/pselect-tests (Files): Add tests/test-select.h,
14869         tests/macros.h, tests/signature.h.
14870         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14871         (configure.ac): Check for <sys/wait.h>.
14872
14873 2011-07-22  Bruno Haible  <bruno@clisp.org>
14874
14875         sys_select tests: Check the signature of FD_*.
14876         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14877         signature tests from here...
14878         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14879         here.
14880         * modules/sys_select-tests (Files): Add tests/signature.h.
14881
14882 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14883
14884         largefile: new module, replacing large-inode
14885         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14886         * MODULES.html.sh: Add largefile, remove large-inode.
14887         * modules/largefile, m4/largefile.m4: New files.
14888         * modules/large-inode, m4/large-inode.m4: Remove.
14889
14890         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14892         implementations that use only 32 bits to count blocks.
14893         On typical hosts with 1024-byte blocks, this fails with file
14894         systems as small as 4 TiB.  Problem reported by Herb Wartens
14895         <http://debbugs.gnu.org/9140> and this should also fix a similar
14896         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14897
14898         large-inode: New module
14899         * MODULES.html.sh: Add it.
14900         * modules/large-inode, m4/large-inode.m4: New files.
14901
14902         extensions: Enable extensions on MacOS X 10.5 and later.
14903         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14904
14905 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14906
14907         file-has-acl: use acl_extended_file_nofollow if available
14908         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14909         (acl_extended_file): New macro.
14910         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14911         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14912
14913 2011-07-21  Bruno Haible  <bruno@clisp.org>
14914
14915         Declare system functions in a way that works with C++.
14916         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14917         declare fdopendir as extern "C".
14918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14919         declare frexpl as extern "C".
14920         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14921         declare gai_strerror as extern "C".
14922         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14923         programs, declare gai_strerror as extern "C".
14924         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14925         declare getlogin_r as extern "C".
14926         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14927         as extern "C".
14928         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14929         declare ldexpl as extern "C".
14930         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14931         as extern "C".
14932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14933         program, declare getmntinfo as extern "C".
14934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14935         stpncpy as extern "C".
14936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14937         program, declare __xpg_strerror_r as extern "C".
14938         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14939         strndup as extern "C".
14940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14941         declare memset and bzero as extern "C".
14942         Reported by Sam Steingold <sds@gnu.org>.
14943
14944 2011-07-12  Jim Meyering  <meyering@redhat.com>
14945
14946         maint.mk: prohibit inclusion of "verify.h" without use
14947         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14948
14949 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14950
14951         timer-time: A new module to check for timer_settime()
14952         * m4/timer_time.m4: Check for the posix function.
14953         * modules/timer-time: Add the new module.
14954         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14955         Mention it.
14956
14957 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14958             Bruno Haible  <bruno@clisp.org>
14959
14960         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14962         not defined, assume POSIX threads and look for pthread_sigmask in
14963         $LIBS, without changing $CPPFLAGS.
14964
14965 2011-07-19  Bruno Haible  <bruno@clisp.org>
14966
14967         strstr: Update cross-compilation guess.
14968         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14969         CPUs, guess no, in view of glibc
14970         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14971         Suggested by Eric Blake. Reported by Reuben Thomas.
14972
14973 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14974
14975         getopt-gnu: suppress core dumps from detection code
14976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14977         to suppress core dumps that may well occur on glibc systems.
14978         * modules/getopt-gnu: Depend on nocrash.
14979
14980 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14981
14982         pthread_sigmask: ensure usleep is declared
14983         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14984         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14985
14986 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         doc: Document NonStop portability issues.
14989         * doc/posix-functions/sigaction.texi (sigaction):
14990         * doc/posix-headers/signal.texi (signal.h):
14991         Document NonStop.  See Joachim Schmitz in
14992         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14993
14994 2011-07-15  Bruno Haible  <bruno@clisp.org>
14995
14996         ffsl, ffsll: Avoid unportable behaviour.
14997         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14998
14999 2011-07-15  Bruno Haible  <bruno@clisp.org>
15000
15001         ffs: More tests.
15002         * tests/test-ffs.c (NBITS): New macro.
15003         (main): Add more tests.
15004         * tests/test-ffsl.c (NBITS): New macro.
15005         (main): Add more tests.
15006         * tests/test-ffsll.c (NBITS): New macro.
15007         (main): Add more tests.
15008
15009 2011-07-15  Eric Blake  <eblake@redhat.com>
15010
15011         ffsl, ffsll: new modules
15012         * modules/ffsl: New file.
15013         * modules/ffsll: Likewise.
15014         * m4/ffsl.m4: Likewise.
15015         * m4/ffsll.m4: Likewise.
15016         * lib/ffsl.c: Likewise.
15017         * lib/ffsl.h: Likewise.
15018         * lib/ffsll.c: Likewise.
15019         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15020         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15021         * modules/string (Makefile.am): Substitute witnesses.
15022         * lib/strings.in.h (ffsl, ffsll): Declare.
15023         * modules/ffsl-tests: New test file.
15024         * modules/ffsll-tests: Likewise.
15025         * tests/test-ffsl.c: Likewise.
15026         * tests/test-ffsll.c: Likewise.
15027         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15028         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15029         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15030
15031         ffs: fix m4 prerequisite
15032         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15033
15034         ffs: avoid undefined behavior
15035         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15036         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15037         Reported by Bruno Haible.
15038
15039 2011-07-12  Bruno Haible  <bruno@clisp.org>
15040
15041         pthread_sigmask: Rely on module 'threadlib'.
15042         * modules/pthread_sigmask (Depends-on): Add threadlib.
15043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15044         is defined.
15045
15046 2011-07-12  Bruno Haible  <bruno@clisp.org>
15047
15048         regex: Depend on module 'strcase'.
15049         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15050
15051 2011-07-12  Jim Meyering  <meyering@redhat.com>
15052
15053         warn-on-use: fix typo in file name
15054         * modules/snippet/warn-on-use (Files): Correct file name:
15055         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15056
15057 2011-07-12  Bruno Haible  <bruno@clisp.org>
15058
15059         strings: Document module.
15060         * doc/posix-headers/strings.texi: Mention module 'strings'.
15061
15062 2011-07-12  Bruno Haible  <bruno@clisp.org>
15063
15064         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15065         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15066         (Files, Makefile.am): Update.
15067         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15068         * modules/stdlib (Depends-on): Update.
15069
15070 2011-07-12  Bruno Haible  <bruno@clisp.org>
15071
15072         * NEWS: Mention the changes.
15073
15074         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15075         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15076         (Files, Makefile.am): Update.
15077         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15078         * modules/arpa_inet (Depends-on): Update.
15079         * modules/ctype (Depends-on): Update.
15080         * modules/dirent (Depends-on): Update.
15081         * modules/fcntl-h (Depends-on): Update.
15082         * modules/glob (Depends-on): Update.
15083         * modules/iconv-h (Depends-on): Update.
15084         * modules/inttypes-incomplete (Depends-on): Update.
15085         * modules/langinfo (Depends-on): Update.
15086         * modules/locale (Depends-on): Update.
15087         * modules/math (Depends-on): Update.
15088         * modules/netdb (Depends-on): Update.
15089         * modules/poll-h (Depends-on): Update.
15090         * modules/pty (Depends-on): Update.
15091         * modules/search (Depends-on): Update.
15092         * modules/signal (Depends-on): Update.
15093         * modules/spawn (Depends-on): Update.
15094         * modules/stdio (Depends-on): Update.
15095         * modules/stdlib (Depends-on): Update.
15096         * modules/string (Depends-on): Update.
15097         * modules/strings (Depends-on): Update.
15098         * modules/sys_file (Depends-on): Update.
15099         * modules/sys_ioctl (Depends-on): Update.
15100         * modules/sys_select (Depends-on): Update.
15101         * modules/sys_socket (Depends-on): Update.
15102         * modules/sys_stat (Depends-on): Update.
15103         * modules/sys_time (Depends-on): Update.
15104         * modules/sys_times (Depends-on): Update.
15105         * modules/sys_utsname (Depends-on): Update.
15106         * modules/sys_wait (Depends-on): Update.
15107         * modules/termios (Depends-on): Update.
15108         * modules/time (Depends-on): Update.
15109         * modules/unistd (Depends-on): Update.
15110         * modules/wchar (Depends-on): Update.
15111         * modules/wctype-h (Depends-on): Update.
15112         * MODULES.html.sh (Support for building libraries and executables):
15113         Update.
15114
15115         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15116         * modules/snippet/unused-parameter: Renamed from
15117         modules/unused-parameter.
15118         (Files, Makefile.am): Update.
15119         * build-aux/snippet/unused-parameter.h: Renamed from
15120         build-aux/unused-parameter.h.
15121         * modules/selinux-h (Depends-on): Update.
15122         * modules/unistr/base (Depends-on): Update.
15123         * MODULES.html.sh (Core language properties): Update.
15124
15125         Rename module 'link-warning' to 'snippet/link-warning'.
15126         * modules/snippet/link-warning: Renamed from modules/link-warning.
15127         (Files, Makefile.am): Update.
15128         * build-aux/snippet/link-warning.h: Renamed from
15129         build-aux/link-warning.h.
15130         * MODULES.html.sh (Support for building libraries and executables):
15131         Update.
15132
15133         Rename module 'c++defs' to 'snippet/c++defs'.
15134         * modules/snippet/c++defs: Renamed from modules/c++defs.
15135         (Files, Makefile.am): Update.
15136         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15137         * modules/arpa_inet (Depends-on): Update.
15138         * modules/ctype (Depends-on): Update.
15139         * modules/dirent (Depends-on): Update.
15140         * modules/fcntl-h (Depends-on): Update.
15141         * modules/glob (Depends-on): Update.
15142         * modules/iconv-h (Depends-on): Update.
15143         * modules/langinfo (Depends-on): Update.
15144         * modules/locale (Depends-on): Update.
15145         * modules/math (Depends-on): Update.
15146         * modules/netdb (Depends-on): Update.
15147         * modules/poll-h (Depends-on): Update.
15148         * modules/pty (Depends-on): Update.
15149         * modules/search (Depends-on): Update.
15150         * modules/signal (Depends-on): Update.
15151         * modules/spawn (Depends-on): Update.
15152         * modules/stdio (Depends-on): Update.
15153         * modules/stdlib (Depends-on): Update.
15154         * modules/string (Depends-on): Update.
15155         * modules/strings (Depends-on): Update.
15156         * modules/sys_ioctl (Depends-on): Update.
15157         * modules/sys_select (Depends-on): Update.
15158         * modules/sys_socket (Depends-on): Update.
15159         * modules/sys_stat (Depends-on): Update.
15160         * modules/sys_time (Depends-on): Update.
15161         * modules/sys_wait (Depends-on): Update.
15162         * modules/termios (Depends-on): Update.
15163         * modules/time (Depends-on): Update.
15164         * modules/unistd (Depends-on): Update.
15165         * modules/wchar (Depends-on): Update.
15166         * modules/wctype-h (Depends-on): Update.
15167
15168         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15169         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15170         (Files, Makefile.am): Update.
15171         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15172         * modules/argv-iter (Depends-on): Update.
15173         * modules/arpa_inet (Depends-on): Update.
15174         * modules/dirent (Depends-on): Update.
15175         * modules/fcntl-h (Depends-on): Update.
15176         * modules/fnmatch (Depends-on): Update.
15177         * modules/getopt-posix (Depends-on): Update.
15178         * modules/glob (Depends-on): Update.
15179         * modules/iconv-h (Depends-on): Update.
15180         * modules/inttypes-incomplete (Depends-on): Update.
15181         * modules/locale (Depends-on): Update.
15182         * modules/math (Depends-on): Update.
15183         * modules/netdb (Depends-on): Update.
15184         * modules/search (Depends-on): Update.
15185         * modules/signal (Depends-on): Update.
15186         * modules/spawn (Depends-on): Update.
15187         * modules/stdio (Depends-on): Update.
15188         * modules/stdlib (Depends-on): Update.
15189         * modules/string (Depends-on): Update.
15190         * modules/strings (Depends-on): Update.
15191         * modules/sys_socket (Depends-on): Update.
15192         * modules/sys_stat (Depends-on): Update.
15193         * modules/sys_time (Depends-on): Update.
15194         * modules/sys_times (Depends-on): Update.
15195         * modules/sys_utsname (Depends-on): Update.
15196         * modules/time (Depends-on): Update.
15197         * modules/unistd (Depends-on): Update.
15198         * modules/wchar (Depends-on): Update.
15199         * MODULES.html.sh (Support for building libraries and executables):
15200         Update.
15201
15202 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         Improvements on _Noreturn and related modules.
15205
15206         modules/_Exit-tests: test _Noreturn too
15207         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15208         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15209         (main): Use them.
15210
15211         stdnoreturn, stdnoreturn-tests: remove modules
15212         They're not needed here and a bit premature for use elsewhere.  See
15213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15214         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15215         * tests/test-stdnoreturn.c: Remove files.
15216         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15217         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15218         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15219         and using noreturn.
15220         * modules/openat, modules/sigpipe-die, modules/xalloc:
15221         * modules/xmemdup0, modules/xstrtol:
15222         Remove dependency on stdnoreturn.
15223
15224         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15225         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15226         Reparenthesize to avoid GCC warning.
15227         Support Microsoft's syntax.
15228         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15229
15230         _Noreturn-tests: remove module
15231         * modules/_Noreturn-tests: Remove.
15232         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15233         * tests/test-_Noreturn.c: Remove.
15234         * tests/test-stdnoreturn.c: Merge from the old
15235         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15236
15237 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         _Noreturn, stdnoreturn, and related modules.
15240
15241         * top/maint.mk: Adjust to new noreturn support.
15242         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15243         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15244
15245         xalloc: use stdnoreturn.h
15246         * lib/xalloc.h: Include <stdnoreturn.h>.
15247         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15248         * modules/xalloc (Depends-on): Add stdnoreturn.
15249
15250         xstrtol: use stdnoreturn.h
15251         * lib/xstrtol.h: Include <stdnoreturn.h>.
15252         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15253         * modules/xstrtol (Depends-on): Add stdnoreturn.
15254
15255         xmemdup0: use stdnoreturn.h
15256         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15257         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15258         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15259
15260         sigpipe-die: use stdnoreturn.h
15261         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15262         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15263         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15264
15265         openat: use stdnoreturn.h
15266         * lib/openat.h: Include <stdnoreturn.h>.
15267         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15268         * modules/openat (Depends-on): Add stdnoreturn.
15269
15270         * lib/openat-die.c (openat_save_fail): Modernize comment.
15271
15272         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15273
15274         * lib/glthread/thread.h: Modernize comment.
15275
15276         obstack: use _Noreturn
15277         * lib/obstack.c (__attribute__): Remove macro.
15278         (print_and_abort): Use _Noreturn.
15279
15280         c-stack: use _Noreturn
15281         * lib/c-stack.c (die, overflow_handler, segv_handler):
15282         Use _Noreturn rather than __attribute__((noreturn)).
15283
15284         argmatch-tests, exclude_tests: use _Noreturn
15285         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15286         Remove.
15287         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15288
15289         stdlib: use _Noreturn
15290         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15291         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15292         * modules/stdlib (Depends-on): Add _Noreturn.
15293         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15294
15295         stdnoreturn-tests: new module
15296         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15297
15298         stdnoreturn: new module
15299         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15300         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15301
15302         _Noreturn-tests: new module
15303         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15304
15305         _Noreturn: new module
15306         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15307         New section, mentioning it.
15308         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15309
15310         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15311
15312 2011-07-11  Eric Blake  <eblake@redhat.com>
15313
15314         ffs: new module
15315         * modules/ffs: New file.
15316         * m4/ffs.m4: Likewise.
15317         * lib/ffs.c: Likewise.
15318         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15319         * modules/strings (Makefile.am): Substitute witness.
15320         (Depends-on): Add c++defs.
15321         * lib/strings.in.h (ffs): Declare.
15322         * modules/ffs-tests: New test file.
15323         * tests/test-ffs.c: Test new module.
15324         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15325         * doc/posix-functions/ffs.texi (ffs): Likewise.
15326
15327         regex: avoid compiler warning
15328         * lib/regex.c (includes): Include <strings.h>, for use of
15329         strcasecmp in regcomp.c.
15330         Reported by Joachim Schmitz.
15331
15332 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15333
15334         stdint: respect system's intmax_t if INTMAX_MAX
15335         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15336         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15337         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15338         long but int64_t is long long, and where we will clash with the
15339         system intmax_t if we override it.  See
15340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15341         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15342         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15343         similarly for UINTMAX_C.
15344
15345 2011-07-08  Bruno Haible  <bruno@clisp.org>
15346
15347         pthread_sigmask tests: Avoid a compiler warning.
15348         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15349         non-zero.
15350
15351         sigprocmask tests: A better way to avoid a compiler warning.
15352         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15353         (main): Complain if system() returns non-zero.
15354         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15355
15356 2011-07-08  Bruno Haible  <bruno@clisp.org>
15357
15358         pthread_sigmask: Work around IRIX bug.
15359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15360         bug.
15361         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15362         there may be unblocked pending signals.
15363         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15364
15365 2011-07-08  Bruno Haible  <bruno@clisp.org>
15366
15367         pthread_sigmask: Work around Cygwin bug.
15368         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15369         bug.
15370         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15371         the system's pthread_sigmask function.
15372         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15373
15374 2011-07-08  Bruno Haible  <bruno@clisp.org>
15375
15376         pthread_sigmask: Work around bug in single-threaded implementation.
15377         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15378         FreeBSD, HP-UX, Solaris bug.
15379         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15380         * lib/pthread_sigmask.c: Include <stddef.h>.
15381         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15382         the system's pthread_sigmask function.
15383         * modules/pthread_sigmask (configure.ac): Invoke
15384         gl_PREREQ_PTHREAD_SIGMASK.
15385         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15386         HP-UX, Solaris.
15387
15388 2011-07-08  Eric Blake  <eblake@redhat.com>
15389
15390         test-sigprocmask: avoid compiler warning
15391         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15392         * tests/test-sigprocmask.c (main): Use it to silence warning.
15393         Reported by Jim Meyering.
15394
15395         test-snprintf: avoid compiler warning
15396         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15397         * tests/test-vsnprintf.c (main): Likewise.
15398         Reported by Jim Meyering.
15399
15400 2011-07-08  Bruno Haible  <bruno@clisp.org>
15401
15402         Tests for module 'pthread_sigmask'.
15403         * modules/pthread_sigmask-tests: New file.
15404         * tests/test-pthread_sigmask1.c: New file, based on
15405         tests/test-sigprocmask.c.
15406         * tests/test-pthread_sigmask2.c: New file.
15407
15408 2011-07-08  Jim Meyering  <meyering@redhat.com>
15409
15410         test-getopt.h: avoid warning about an unused variable
15411         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15412
15413 2011-07-07  Jim Meyering  <meyering@redhat.com>
15414
15415         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15416         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15417         now that it no longer contains leading TABs.
15418         Remove unused "url=FIXME" statement.
15419
15420 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15423         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15424         When gl_THREADLIB is not in use, assume that the POSIX sematics
15425         are desired.  This is better for Emacs, which uses POSIX semantics
15426         on GNUish and/or POSIXish platforms, and does not use threads at
15427         all otherwise.
15428
15429         pthread_sigmask: fix typo when testing for libraries
15430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15431         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15432
15433 2011-07-08  Eric Blake  <eblake@redhat.com>
15434
15435         fts: introduce FTS_NOATIME
15436         * lib/fts_.h (FTS_NOATIME): New bit flag.
15437         (FTS_OPTIONMASK): Adjust.
15438         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15439         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15440
15441 2011-07-08  Bruno Haible  <bruno@clisp.org>
15442
15443         Tests for module 'thread'.
15444         * modules/thread-tests: New file.
15445         * tests/test-thread_self.c: New file.
15446         * tests/test-thread_create.cc: New file.
15447
15448 2011-07-08  Bruno Haible  <bruno@clisp.org>
15449
15450         thread: Avoid gcc warnings when using gl_thread_self().
15451         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15452         'void *'.
15453         (gl_thread_self_pointer): Update.
15454
15455 2011-07-07  Bruno Haible  <bruno@clisp.org>
15456
15457         signal-c++-tests: Check declaration of pthread_sigmask.
15458         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15459         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15460         $(LIB_PTHREAD_SIGMASK).
15461
15462 2011-07-07  Bruno Haible  <bruno@clisp.org>
15463
15464         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15465         * lib/signal.in.h (pthread_sigmask): Override if
15466         REPLACE_PTHREAD_SIGMASK is 1.
15467         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15468         REPLACE_PTHREAD_SIGMASK.
15469         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15470         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15471         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15472         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15473         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15474
15475 2011-07-07  Bruno Haible  <bruno@clisp.org>
15476
15477         pthread_sigmask: Ensure declaration in <signal.h>.
15478         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15479         include <pthread.h>.
15480         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15481         problem.
15482
15483 2011-07-07  Bruno Haible  <bruno@clisp.org>
15484
15485         pthread_sigmask: Document the module.
15486         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15487
15488 2011-07-07  Bruno Haible  <bruno@clisp.org>
15489
15490         pthread_sigmask: Follow gnulib conventions.
15491         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15492         gl_PTHREAD_SIGMASK.
15493         * modules/pthread_sigmask (configure.ac): Update.
15494
15495 2011-07-07  Bruno Haible  <bruno@clisp.org>
15496
15497         pthread_sigmask: Make declaration C++ safe.
15498         * lib/signal.in.h: In two special conditions, just do an #include_next.
15499         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15500         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15501         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15502         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15503         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15504         not REPLACE_PTHREAD_MASK.
15505         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15506         not REPLACE_PTHREAD_MASK.
15507         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15508
15509 2011-07-07  Bruno Haible  <bruno@clisp.org>
15510
15511         pthread_sigmask: Fix return value.
15512         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15513         * lib/pthread_sigmask.c: New file.
15514         * modules/pthread_sigmask (Files): Add it.
15515         (configure.ac): Invoke AC_LIBOBJ.
15516
15517 2011-07-07  Eric Blake  <eblake@redhat.com>
15518
15519         getopt: more portable argv creation
15520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15521         const, use char arrays rather than strings.
15522         Suggested by Paul Eggert.
15523
15524 2011-07-07  Bruno Haible  <bruno@clisp.org>
15525
15526         Tests for module 'sigprocmask'.
15527         * modules/sigprocmask-tests: New file.
15528         * tests/test-sigprocmask.c: New file.
15529
15530 2011-07-07  Bruno Haible  <bruno@clisp.org>
15531
15532         float tests: Tweak.
15533         * tests/test-float.c (main): Tweak skip message.
15534
15535 2011-07-07  Eric Blake  <eblake@redhat.com>
15536
15537         getopt: avoid compiler warning during configure
15538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15539         assigning string literals to non-const pointer.
15540
15541         getopt-gnu: avoid crash in glibc getopt
15542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15543         * tests/test-getopt.h (test_getopt): Enhance test.
15544         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15545         * doc/posix-functions/getopt.texi (getopt): Document it.
15546         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15547         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15548         Likewise.
15549
15550 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15551
15552         getopt: handle W; without long options in getopt [BZ #12922]
15553         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15554         but no long options are defined, just return 'W'.
15555
15556 2011-07-07  Bruno Haible  <bruno@clisp.org>
15557
15558         Avoid literal tabs.
15559         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15560         variable containing a tab instead of a literal tab.
15561         Reported by Jim Meyering.
15562
15563 2011-07-07  Bruno Haible  <bruno@clisp.org>
15564
15565         Comments.
15566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15567
15568 2011-07-06  Bruno Haible  <bruno@clisp.org>
15569
15570         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15571         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15572         <winsock2.h>.
15573         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15574         lib/sys_socket.in.h.
15575         (close, gethostname): Hide declarations from <winsock2.h>.
15576         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15577         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15578         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15579         (select): Don't override if gnulib's <sys/select.h> was already
15580         included.
15581         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15582         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15583         setsockopt, shutdown, select): Tweak indentation.
15584
15585 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15586
15587         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15588         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15589         in an application that does not use the sys_select module.
15590
15591 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15592
15593         poll: do not return 0 on timeout=-1
15594         * lib/poll.c: Loop with yield if no events occurred.
15595
15596 2011-07-06  Eric Blake  <eblake@redhat.com>
15597
15598         pthread_sigmask: always replace when not using pthread
15599         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15600         replacement when using some threading other than pthread.  Fix
15601         logic bug.
15602
15603 2011-07-06  Bruno Haible  <bruno@clisp.org>
15604
15605         Comments.
15606         * m4/printf.m4: Update comments about mingw.
15607
15608 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15609
15610         sys_select: define sigset_t more portably
15611         * lib/sys_select.in.h: Always include <sys/types.h>, since
15612         we now need sigset_t and mingw defines it there.
15613         Include <signal.h> before split inclusion guard, to avoid
15614         mishaps on Solaris, whose <signal.h> eventually includes us.
15615         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15616         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15617         which come from ...
15618         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15619         gl_CHECK_TYPE_SIGSET_T.
15620         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15621         does the real work.
15622         * modules/sys_select (Depends-on): Add 'signal'.
15623
15624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15625         Suggested by Bruno Haible.
15626
15627         pselect: Use pthread_sigmask, not sigprocmask.
15628         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15629         multithreaded apps better than sigprocmask does.
15630         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15631         sigprocmask directly.
15632
15633 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15634
15635         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15636         Don't #undef,  since we don't need any underlying pselect.
15637         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15638         (Depends-on): Add select.
15639         (Link): Add $(LIBSOCKET).
15640         These changes suggested by Bruno Haible.
15641
15642         pselect: document better
15643         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15644         * doc/posix-functions/pselect.texi (pselect): Document new module.
15645
15646         pthread_sigmask: new module
15647         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15648         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15649         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15650         This is done only as a macro; I don't know how well that'll
15651         work for C++.  Move <sys/types.h> include before the include_next,
15652         to avoid mishap on Solaris.
15653         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15654         * modules/signal (Makefile.am): Substitute the check's results.
15655         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15656
15657         test-pselect: new module
15658         * modules/pselect-tests, tests/test-pselect.c: New files.
15659         * tests/test-select.c, tests/test-sys_select-c++.cc:
15660         If TEST_PSELECT is defined, test pselect instead of testing select.
15661
15662         * tests/test-sys_select.c (sigset_t): Test for it, too.
15663         Suggested by Bruno Haible.
15664
15665 2011-07-05  Eric Blake  <eblake@redhat.com>
15666
15667         snprintf: guarantee %1$d, for libintl
15668         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15669         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15670         * doc/posix-functions/snprintf.texi (snprintf): Update.
15671         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15672         * tests/test-snprintf.c (main): Enhance test.
15673         * tests/test-vsnprintf.c (main): Likewise.
15674
15675 2011-07-05  Jim Meyering  <meyering@redhat.com>
15676
15677         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15678         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15679         per Bruno's request, to accommodate this idiom (no space after "#")
15680         even when the function is inside an #if block:
15681         char *
15682         gets (char *s)
15683         #undef gets
15684         {
15685           ...
15686         }
15687
15688 2011-07-04  Jim Meyering  <meyering@redhat.com>
15689
15690         maint: indent with spaces, not TABs, and add a rule to check this
15691         * tests/test-userspec.c: Indent with spaces, not TABs.
15692         * tests/test-argp.c: Likewise.
15693         * tests/test-c-stack2.sh: Likewise.
15694         * tests/test-parse-duration.sh: Likewise
15695         * m4/strtod.m4: Likewise.
15696         * m4/alloca.m4: Likewise.
15697         * m4/pselect.m4: Likewise.
15698         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15699
15700 2011-07-03  Jim Meyering  <meyering@redhat.com>
15701
15702         maint.mk: correct omissions in prohibit_argmatch_without_use check
15703         This rule would mistakenly report that argmatch.h is included without
15704         use even when both the argmatch and invalid_arg macro were used.
15705         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15706         of argmatch and invalid_arg.
15707
15708 2011-07-03  Bruno Haible  <bruno@clisp.org>
15709
15710         Comments about EINTR.
15711         * lib/safe-read.h: Explain the purpose of this module.
15712         * lib/safe-write.h: Likewise.
15713         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15714         module.
15715         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15716         module.
15717         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15718
15719 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15720
15721         xnanosleep: Rewrite to use new dtotimespec module.
15722         It has the conversion code that used to be in xnanosleep.
15723         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15724         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15725         (TIME_T_MAX): Remove.
15726         (xnanosleep): Rewrite in terms of dtotimespec.
15727         * modules/xnanosleep (Depends-on): Add dtotimespec.
15728         Remove intprops, stdbool.
15729
15730         timespec-add, timespec-sub: new modules
15731         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15732         * lib/timespec-add.c, lib/timespec-sub.c:
15733         * modules/timespec-add, modules/timespec-sub: New files.
15734
15735         dtotimespec: new module
15736         * lib/timespec.h (dtotimespec): New decl.
15737         * lib/dtotimespec.c, modules/dtotimespec: New files.
15738
15739         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15740
15741         pselect: new module
15742         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15743         (pselect): New decls.
15744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15745         since the standard pselect decl uses 'restrict'.
15746         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15747         HAVE_PSELECT, REPLACE_PSELECT.
15748         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15749         HAVE_PSELECT, REPLACE_PSELECT.
15750         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15751
15752         sys_select: don't depend on sys_socket
15753         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15755         This fix works on GNU and GNU-like platforms, but has not been tested
15756         on native Windows.
15757         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15759         gl_HEADER_SYS_SOCKET.
15760         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15761         gl_PREREQ_SYS_H_WINSOCK2.
15762
15763 2011-06-29  Eric Blake  <eblake@redhat.com>
15764
15765         pipe2: fix C89 compile problem
15766         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15767         Reported by Bruno Haible.
15768
15769         pipe, pipe2: don't corrupt fd on error
15770         * lib/pipe.c (pipe): Leave fd unchanged on error.
15771         * lib/pipe2.c (pipe2): Likewise.
15772         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15773         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15774
15775 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15776
15777         mmap-anon: do not use regular expressions inadvertently
15778         * m4/mmap-anon.m4: Remove trailing period from strings sought
15779         in the output.
15780
15781 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15782
15783         nanosleep: fix integer overflow problem
15784         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15785         arithmetic wraps around on overflow.
15786
15787         nanosleep: simplify carrying
15788         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15789         first call to the underyling nanosleep, not for the last one.
15790         This doesn't fix any bugs, but it simplifies the computation of
15791         the remaining delay.  Found while auditing integer overflow issues.
15792
15793         dup2: remove test for existence of fcntl
15794         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15795         "#if HAVE_FCNTL", in the configure-time test program.
15796         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15797         and therefore speeds up "configure" a bit.  Found while
15798         adding the dup2 module to Emacs.
15799
15800 2011-06-24  Eric Blake  <eblake@redhat.com>
15801
15802         maint.mk: enhance useless header checks
15803         * top/maint.mk (_sc_header_without_use): Check both include
15804         styles.
15805         (sc_prohibit_assert_without_use)
15806         (sc_prohibit_close_stream_without_use)
15807         (sc_prohibit_getopt_without_use)
15808         (sc_prohibit_quotearg_without_use)
15809         (sc_prohibit_quote_without_use)
15810         (sc_prohibit_long_options_without_use)
15811         (sc_prohibit_inttostr_without_use)
15812         (sc_prohibit_ignore_value_without_use)
15813         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15814         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15815         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15816         (sc_prohibit_hash_pjw_without_use)
15817         (sc_prohibit_safe_read_without_use)
15818         (sc_prohibit_argmatch_without_use)
15819         (sc_prohibit_canonicalize_without_use)
15820         (sc_prohibit_root_dev_ino_without_use)
15821         (sc_prohibit_openat_without_use)
15822         (sc_prohibit_c_ctype_without_use)
15823         (sc_prohibit_signal_without_use)
15824         (sc_prohibit_stdio--_without_use)
15825         (sc_prohibit_stdio-safer_without_use)
15826         (sc_prohibit_strings_without_use)
15827         (sc_prohibit_intprops_without_use)
15828         (sc_prohibit_stddef_without_use)
15829         (sc_prohibit_xfreopen_without_use): Update clients.
15830
15831 2011-06-24  Jim Meyering  <meyering@redhat.com>
15832
15833         syntax-check: keep one maint.mk rule in sync with its header
15834         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15835         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15836         I prefer to avoid temporary files here, so use <(...), but that
15837         is not supported by /bin/sh, so...
15838         (SHELL): Define to /bin/bash.
15839
15840 2011-06-24  Eric Blake  <eblake@redhat.com>
15841
15842         maint.mk: update sc_prohibit_intprops_without_use
15843         * top/maint.mk (_intprops_names): Match recent changes.
15844
15845 2011-06-24  Bruno Haible  <bruno@clisp.org>
15846
15847         strerror-override: No-op tweak.
15848         * lib/strerror-override.h (strerror_override): Reorder conditions,
15849         for consistency with lib/strerror-override.c.
15850
15851 2011-06-23  Eric Blake  <eblake@redhat.com>
15852
15853         maint.mk: test further PATH_MAX issues
15854         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15855         (sc_prohibit_path_max_allocation): ...and also test alloca.
15856         Suggested by Jim Meyering.
15857
15858 2011-06-22  Eric Blake  <eblake@redhat.com>
15859
15860         maint.mk: add syntax-check to avoid char[PATH_MAX]
15861         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15862
15863         stat: be robust to PATH_MAX definition
15864         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15865         * modules/stat (Depends-on): Add verify.
15866
15867         link: work around IRIX bug
15868         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15869         * lib/link.c (rpl_link): Work around it.
15870         * tests/test-link.h (test_link): Enhance test.
15871         * doc/posix-functions/link.texi (link): Document the bug.
15872
15873         getopt: silence clang warning
15874         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15875         dereference.
15876         Reported by Gustavo Martin Domato.
15877
15878 2011-06-22  Jim Meyering  <meyering@redhat.com>
15879
15880         bootstrap: do not insert a blank line into each .gitignore file
15881         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15882
15883 2011-06-21  Eric Blake  <eblake@redhat.com>
15884
15885         perror: test for output mismatch
15886         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15887         perror on IRIX.
15888
15889         strerror_r: fix OpenBSD behavior on out-of-range
15890         * lib/strerror_r.c (strerror_r): Always use maximal string.
15891         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15892
15893         strerror_r: fix OpenBSD behavior on 0
15894         * lib/strerror-override.c (strerror_override): Also override 0
15895         when needed.
15896         * lib/strerror-override.h (strerror_override): Likewise.
15897         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15898         earlier.
15899         * lib/strerror_r.c (strerror_r): Likewise.
15900         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15901         behavior...
15902         (gl_FUNC_STRERROR_0): ...into new macro.
15903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15904         is overridden.
15905         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15906         * modules/strerror-override (Files): Add strerror.m4.
15907         (configure.ac): Also provide override for 0 when needed.
15908         * doc/posix-functions/strerror.texi (strerror): Document this.
15909         * doc/posix-functions/perror.texi (perror): Likewise.
15910
15911         perror: adjust array size
15912         * modules/perror (Depends-on): Add strerror-override.
15913         * lib/perror.c (perror): Use it to avoid magic number.
15914
15915         strerror-override: reduce size
15916         * lib/strerror-override.c (strerror_override): Use fewer lines.
15917
15918 2011-06-20  Bruno Haible  <bruno@clisp.org>
15919
15920         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15921         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15922
15923 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15924
15925         alloca: port to compilers that can optimize like GCC 4.6.0
15926         * lib/alloca.c (find_stack_direction): New signature, taken from
15927         Autoconf git.  This works with GCC 4.6.0.  This code should never
15928         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15929         be used with other compilers that optimize as well as GCC 4.6.0 does.
15930         (alloca): Adjust to new signature.
15931         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15932         New macro, which patches Autoconf in a similar way.
15933
15934         c-stack: stop worrying about stack direction
15935         * lib/c-stack.c (find_stack_direction): Remove.
15936         (segv_handler): Don't worry about stack direction growth, as it's
15937         too much of a pain to configure this correctly, given how compilers
15938         are optimizing-away our stack-growth detection code.  Instead, assume
15939         that any access to just before or just after the stack is OK.
15940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15941         Don't require AC_FUNC_ALLOCA; no longer needed.
15942
15943 2011-06-20  Eric Blake  <eblake@redhat.com>
15944
15945         test-stat: don't allocate PATH_MAX bytes
15946         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15947         PATH_MAX-sized buffer.
15948         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15949         * modules/stat-tests (Depends-on): Likewise.
15950         * tests/test-fstatat.c (includes): Drop pathmax.h.
15951         * tests/test-stat.c (includes): Likewise.
15952         Reported by Bruno Haible.
15953
15954 2011-06-20  Bruno Haible  <bruno@clisp.org>
15955
15956         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15957         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15958         * lib/float.c: New file.
15959         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15960         REPLACE_FLOAT_LDBL.
15961         * modules/float (Files): Add lib/float.c.
15962         (configure.ac): Invoke AC_LIBOBJ.
15963         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15964
15965 2011-06-20  Bruno Haible  <bruno@clisp.org>
15966
15967         Tests for module 'float'.
15968         * modules/float-tests: New file.
15969         * tests/test-float.c: New file.
15970
15971 2011-06-19  Bruno Haible  <bruno@clisp.org>
15972
15973         isinf: Coding style.
15974         * lib/isinf.c: Use GNU coding style.
15975
15976 2011-06-19  Bruno Haible  <bruno@clisp.org>
15977
15978         linkat test: Avoid test failure on AIX 7.1.
15979         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15980         * tests/test-link.h (test_link): Likewise.
15981
15982 2011-06-19  Bruno Haible  <bruno@clisp.org>
15983
15984         pread test: Avoid test failure on OpenBSD 4.9.
15985         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15986
15987 2011-06-19  Bruno Haible  <bruno@clisp.org>
15988
15989         sprintf-posix: Fix test failure on AIX 7.1.
15990         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15991         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15992         on AIX.
15993         * doc/posix-functions/fprintf.texi: Likewise.
15994         * doc/posix-functions/printf.texi: Likewise.
15995         * doc/posix-functions/snprintf.texi: Likewise.
15996         * doc/posix-functions/sprintf.texi: Likewise.
15997         * doc/posix-functions/vdprintf.texi: Likewise.
15998         * doc/posix-functions/vfprintf.texi: Likewise.
15999         * doc/posix-functions/vprintf.texi: Likewise.
16000         * doc/posix-functions/vsnprintf.texi: Likewise.
16001         * doc/posix-functions/vsprintf.texi: Likewise.
16002
16003 2011-06-19  Bruno Haible  <bruno@clisp.org>
16004
16005         roundl-ieee: Fix test failure on AIX 7.1.
16006         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16007         * doc/posix-functions/roundl.texi: Mention problem with negative
16008         arguments.
16009
16010 2011-06-19  Bruno Haible  <bruno@clisp.org>
16011
16012         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16013         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16014         * doc/posix-functions/round.texi: Mention problem with negative
16015         arguments.
16016         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16017
16018 2011-06-19  Bruno Haible  <bruno@clisp.org>
16019
16020         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16022         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16023         * doc/posix-functions/roundf.texi: Mention problem with negative
16024         arguments.
16025         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16026
16027 2011-06-19  Bruno Haible  <bruno@clisp.org>
16028
16029         ceilf-ieee: Work around bug on MacOS X 10.5.
16030         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16031
16032         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16033         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16034         IEEE compliant, avoid compiler optimizations.
16035         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16036         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16037         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16038         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16039         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16040         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16041         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16043         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16045
16046 2011-06-19  Bruno Haible  <bruno@clisp.org>
16047
16048         ceilf-ieee: Work around bug on AIX 7.1.
16049         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16050         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16051
16052 2011-06-19  Bruno Haible  <bruno@clisp.org>
16053
16054         ceil-ieee: Work around bug on AIX 7.1.
16055         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16056         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16057
16058 2011-06-18  Bruno Haible  <bruno@clisp.org>
16059
16060         fsync test: Avoid test failure on MacOS X and AIX.
16061         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16062         EINVAL.
16063
16064 2011-06-18  Bruno Haible  <bruno@clisp.org>
16065
16066         openat, fdopendir tests: Fix link errors.
16067         * modules/openat-tests (Depends-on): Add progname.
16068         * modules/fdopendir-tests (Depends-on): Likewise.
16069         * tests/test-fchownat.c: Include progname.h.
16070         (main): Call set_program_name.
16071         * tests/test-fstatat.c: Include progname.h.
16072         (main): Call set_program_name.
16073         * tests/test-mkdirat.c: Include progname.h.
16074         (main): Call set_program_name.
16075         * tests/test-openat.c: Include progname.h.
16076         (main): Call set_program_name.
16077         * tests/test-unlinkat.c: Include progname.h.
16078         (main): Call set_program_name.
16079         * tests/test-fdopendir.c: Include progname.h.
16080         (main): Call set_program_name.
16081
16082 2011-06-18  Bruno Haible  <bruno@clisp.org>
16083
16084         Doc update.
16085         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16086         HP-UX.
16087         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16088
16089 2011-06-18  Bruno Haible  <bruno@clisp.org>
16090
16091         getcwd tests: Avoid compilation error on HP-UX 11.31.
16092         * modules/getcwd-tests (Depends-on): Add pathmax.
16093         * tests/test-getcwd.c: Include pathmax.h.
16094
16095 2011-06-18  Bruno Haible  <bruno@clisp.org>
16096
16097         isfinite, isinf: Fix link error on AIX 6 and 7.
16098         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16099         needed, also test the macro with a 'float' argument.
16100         * m4/isinf.m4 (gl_ISINF): Likewise.
16101
16102 2011-06-18  Bruno Haible  <bruno@clisp.org>
16103
16104         getloadavg: Don't clobber LIBS. Regression from previous commit.
16105         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16106         AC_CHECK_LIB from here...
16107         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16108         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16109         gl_func_getloadavg_done.
16110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16111
16112 2011-06-18  Bruno Haible  <bruno@clisp.org>
16113
16114         clean-temp: Improve documentation.
16115         * lib/clean-temp.h: Explain better how to use this module.
16116         Reported by John Darrington <john@darrington.wattle.id.au>.
16117
16118 2011-06-17  Bruno Haible  <bruno@clisp.org>
16119
16120         pread, pwrite: Avoid cc warning on AIX.
16121         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16122         (pwrite): Likewise.
16123
16124 2011-06-17  Bruno Haible  <bruno@clisp.org>
16125
16126         spawn-pipe tests: Fix link error.
16127         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16129
16130 2011-06-17  Bruno Haible  <bruno@clisp.org>
16131
16132         Tests: Remove unnecessary dependency.
16133         * modules/canonicalize-tests (Depends-on): Remove progname.
16134         * modules/chown-tests (Depends-on): Likewise.
16135         * modules/dirname-tests (Depends-on): Likewise.
16136         * modules/fdopendir-tests (Depends-on): Likewise.
16137         * modules/fdutimensat-tests (Depends-on): Likewise.
16138         * modules/hash-tests (Depends-on): Likewise.
16139         * modules/lchown-tests (Depends-on): Likewise.
16140         * modules/linkat-tests (Depends-on): Likewise.
16141         * modules/renameat-tests (Depends-on): Likewise.
16142         * modules/spawn-pipe-tests (Depends-on): Likewise.
16143         * modules/utimensat-tests (Depends-on): Likewise.
16144
16145 2011-06-17  Bruno Haible  <bruno@clisp.org>
16146
16147         spawn-pipe tests: Fix link error.
16148         * tests/test-spawn-pipe-child.c: Undefine fflush.
16149
16150 2011-06-17  Bruno Haible  <bruno@clisp.org>
16151
16152         Fix tests link errors.
16153         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16154         * modules/chown-tests (Makefile.am): Don't link test-chown with
16155         LIBINTL.
16156         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16157         LIBINTL.
16158         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16159         LIBINTL.
16160         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16161         LIBINTL.
16162
16163 2011-06-16  Bruno Haible  <bruno@clisp.org>
16164
16165         crypto/gc-sha1: Fix recent regression.
16166         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16167         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16168
16169         crypto/gc-md5: Fix recent regression.
16170         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16171
16172         crypto/gc-md4: Fix recent regression.
16173         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16174         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16175
16176         crypto/gc-arctwo: Fix recent regression.
16177         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16178         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16179
16180         crypto/gc-rijndael: Fix recent regression.
16181         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16182         (configure.ac): Invoke AC_LIBOBJ here.
16183         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16185
16186         crypto/gc-hmac-sha1: Fix recent regression.
16187         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16188         (configure.ac): Invoke AC_LIBOBJ here.
16189         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16191
16192         crypto/gc-hmac-md5: Fix recent regression.
16193         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16194         (configure.ac): Invoke AC_LIBOBJ here.
16195         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16197
16198         crypto/gc-des: Fix recent regression.
16199         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16200         (configure.ac): Invoke AC_LIBOBJ here.
16201         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16203
16204         crypto/gc-arcfour: Fix recent regression.
16205         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16206         (configure.ac): Invoke AC_LIBOBJ here.
16207         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16209
16210 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16213         After the 2011-05-21 change, this macro requires
16214         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16215         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16216
16217 2011-06-16  Bruno Haible  <bruno@clisp.org>
16218
16219         fprintftime: Move AC_LIBOBJ invocations to module description.
16220         * m4/fprintftime.m4: Remove file.
16221         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16222         (configure.ac): Remove gl_FPRINTFTIME call.
16223         (Makefile.am): Augment lib_SOURCES.
16224         Reported by Jim Meyering.
16225
16226 2011-06-16  Bruno Haible  <bruno@clisp.org>
16227
16228         tmpfile-safer: Finish 2011-05-23 commit.
16229         * m4/stdio-safer.m4: Really remove file.
16230         Reported by Jim Meyering.
16231
16232 2011-06-16  Bruno Haible  <bruno@clisp.org>
16233
16234         syntax-check: Fix typo.
16235         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16236         printf-posix.m4.
16237         Reported by Jim Meyering.
16238
16239 2011-06-13  Jim Meyering  <meyering@redhat.com>
16240
16241         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16242         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16243
16244 2011-05-23  Bruno Haible  <bruno@clisp.org>
16245
16246         yesno: Move AC_LIBOBJ invocations to module description.
16247         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16248         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16249
16250 2011-05-23  Bruno Haible  <bruno@clisp.org>
16251
16252         xstrtol: Move AC_LIBOBJ invocations to module description.
16253         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16254         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16255
16256 2011-05-23  Bruno Haible  <bruno@clisp.org>
16257
16258         xstrtold: Move AC_LIBOBJ invocations to module description.
16259         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16260         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16261
16262 2011-05-23  Bruno Haible  <bruno@clisp.org>
16263
16264         xstrtod: Move AC_LIBOBJ invocations to module description.
16265         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16266         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16267
16268 2011-05-23  Bruno Haible  <bruno@clisp.org>
16269
16270         xnanosleep: Move AC_LIBOBJ invocations to module description.
16271         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16272         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16273
16274 2011-05-23  Bruno Haible  <bruno@clisp.org>
16275
16276         xgetcwd: Move AC_LIBOBJ invocations to module description.
16277         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16278         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16279
16280 2011-05-23  Bruno Haible  <bruno@clisp.org>
16281
16282         xalloc: Move AC_LIBOBJ invocations to module description.
16283         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16284         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16285
16286 2011-05-23  Bruno Haible  <bruno@clisp.org>
16287
16288         write-any-file: Move AC_LIBOBJ invocations to module description.
16289         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16290         invocation.
16291         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16292
16293 2011-05-23  Bruno Haible  <bruno@clisp.org>
16294
16295         utimens: Move AC_LIBOBJ invocations to module description.
16296         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16297         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16298
16299 2011-05-23  Bruno Haible  <bruno@clisp.org>
16300
16301         utimecmp: Move AC_LIBOBJ invocations to module description.
16302         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16303         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16304
16305 2011-05-23  Bruno Haible  <bruno@clisp.org>
16306
16307         userspec: Move AC_LIBOBJ invocations to module description.
16308         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16309         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16310
16311 2011-05-23  Bruno Haible  <bruno@clisp.org>
16312
16313         unlinkdir: Move AC_LIBOBJ invocations to module description.
16314         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16315         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16316
16317 2011-05-23  Bruno Haible  <bruno@clisp.org>
16318
16319         unistd-safer: Move AC_LIBOBJ invocations to module description.
16320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16321         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16322
16323 2011-05-23  Bruno Haible  <bruno@clisp.org>
16324
16325         tempname: Move AC_LIBOBJ invocations to module description.
16326         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16327         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16328
16329 2011-05-23  Bruno Haible  <bruno@clisp.org>
16330
16331         strftime: Move AC_LIBOBJ invocations to module description.
16332         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16333         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16334
16335 2011-05-23  Bruno Haible  <bruno@clisp.org>
16336
16337         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16338         * m4/stdlib-safer.m4: Remove file.
16339         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16340         (configure.ac): Remove gl_STDLIB_SAFER call.
16341         (Makefile.am): Augment lib_SOURCES.
16342
16343 2011-05-23  Bruno Haible  <bruno@clisp.org>
16344
16345         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16346         * m4/stdio-safer.m4: Remove file.
16347         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16348         (configure.ac): Remove gl_TMPFILE_SAFER call.
16349         (Makefile.am): Augment lib_SOURCES.
16350
16351 2011-05-23  Bruno Haible  <bruno@clisp.org>
16352
16353         popen-safer: Move AC_LIBOBJ invocations to module description.
16354         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16355         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16356         (configure.ac): Remove gl_POPEN_SAFER call.
16357         (Makefile.am): Augment lib_SOURCES.
16358
16359 2011-05-23  Bruno Haible  <bruno@clisp.org>
16360
16361         freopen-safer: Move AC_LIBOBJ invocations to module description.
16362         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16363         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16364         (configure.ac): Remove gl_FREOPEN_SAFER call.
16365         (Makefile.am): Augment lib_SOURCES.
16366
16367 2011-05-23  Bruno Haible  <bruno@clisp.org>
16368
16369         fopen-safer: Move AC_LIBOBJ invocations to module description.
16370         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16371         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16372         (configure.ac): Remove gl_FOPEN_SAFER call.
16373         (Makefile.am): Augment lib_SOURCES.
16374
16375 2011-05-23  Bruno Haible  <bruno@clisp.org>
16376
16377         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16378         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16379         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16380
16381 2011-05-23  Bruno Haible  <bruno@clisp.org>
16382
16383         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16384         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16385         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16386
16387 2011-05-23  Bruno Haible  <bruno@clisp.org>
16388
16389         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16390         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16391         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16392
16393 2011-05-23  Bruno Haible  <bruno@clisp.org>
16394
16395         settime: Move AC_LIBOBJ invocations to module description.
16396         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16397         * modules/settime (Makefile.am): Augment lib_SOURCES.
16398
16399 2011-05-23  Bruno Haible  <bruno@clisp.org>
16400
16401         savedir: Move AC_LIBOBJ invocations to module description.
16402         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16403         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16404
16405 2011-05-23  Bruno Haible  <bruno@clisp.org>
16406
16407         save-cwd: Move AC_LIBOBJ invocations to module description.
16408         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16409         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16410
16411 2011-05-23  Bruno Haible  <bruno@clisp.org>
16412
16413         same: Move AC_LIBOBJ invocations to module description.
16414         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16415         * modules/same (Makefile.am): Augment lib_SOURCES.
16416
16417 2011-05-23  Bruno Haible  <bruno@clisp.org>
16418
16419         safe-write: Move AC_LIBOBJ invocations to module description.
16420         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16421         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16422         instead of gl_SAFE_WRITE.
16423         (Makefile.am): Augment lib_SOURCES.
16424
16425 2011-05-23  Bruno Haible  <bruno@clisp.org>
16426
16427         safe-read: Move AC_LIBOBJ invocations to module description.
16428         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16429         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16430         of gl_SAFE_READ.
16431         (Makefile.am): Augment lib_SOURCES.
16432
16433 2011-05-23  Bruno Haible  <bruno@clisp.org>
16434
16435         safe-alloc: Move AC_LIBOBJ invocations to module description.
16436         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16437         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16438
16439 2011-05-23  Bruno Haible  <bruno@clisp.org>
16440
16441         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16442         * m4/rijndael.m4: Remove file.
16443         * modules/crypto/rijndael (Files): Remove it.
16444         (configure.ac): Remove gl_RIJNDAEL call.
16445         (Makefile.am): Augment lib_SOURCES.
16446
16447 2011-05-23  Bruno Haible  <bruno@clisp.org>
16448
16449         readtokens: Move AC_LIBOBJ invocations to module description.
16450         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16451         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16452
16453 2011-05-23  Bruno Haible  <bruno@clisp.org>
16454
16455         read-file: Move AC_LIBOBJ invocations to module description.
16456         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16457         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16458         of gl_FUNC_READ_FILE.
16459         (Makefile.am): Augment lib_SOURCES.
16460
16461 2011-05-23  Bruno Haible  <bruno@clisp.org>
16462
16463         quotearg: Move AC_LIBOBJ invocations to module description.
16464         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16465         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16466
16467 2011-05-23  Bruno Haible  <bruno@clisp.org>
16468
16469         quote: Move AC_LIBOBJ invocations to module description.
16470         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16471         * modules/quote (Makefile.am): Augment lib_SOURCES.
16472
16473 2011-05-23  Bruno Haible  <bruno@clisp.org>
16474
16475         posixver: Move AC_LIBOBJ invocations to module description.
16476         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16477         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16478
16479 2011-05-23  Bruno Haible  <bruno@clisp.org>
16480
16481         posixtm: Move AC_LIBOBJ invocations to module description.
16482         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16483         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16484
16485 2011-05-23  Bruno Haible  <bruno@clisp.org>
16486
16487         physmem: Move AC_LIBOBJ invocations to module description.
16488         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16489         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16490
16491 2011-05-23  Bruno Haible  <bruno@clisp.org>
16492
16493         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16494         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16495         invocation.
16496         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16497
16498 2011-05-23  Bruno Haible  <bruno@clisp.org>
16499
16500         mpsort: Move AC_LIBOBJ invocations to module description.
16501         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16502         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16503
16504 2011-05-23  Bruno Haible  <bruno@clisp.org>
16505
16506         modechange: Move AC_LIBOBJ invocations to module description.
16507         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16508         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16509
16510 2011-05-23  Bruno Haible  <bruno@clisp.org>
16511
16512         mkdir-p: Move AC_LIBOBJ invocations to module description.
16513         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16514         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16515
16516 2011-05-23  Bruno Haible  <bruno@clisp.org>
16517
16518         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16519         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16520         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16521
16522 2011-05-23  Bruno Haible  <bruno@clisp.org>
16523
16524         mgetgroups: Move AC_LIBOBJ invocations to module description.
16525         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16526         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16527
16528 2011-05-23  Bruno Haible  <bruno@clisp.org>
16529
16530         memxor: Move AC_LIBOBJ invocations to module description.
16531         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16532         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16533
16534 2011-05-23  Bruno Haible  <bruno@clisp.org>
16535
16536         memcoll: Move AC_LIBOBJ invocations to module description.
16537         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16538         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16539
16540 2011-05-23  Bruno Haible  <bruno@clisp.org>
16541
16542         memcasecmp: Move AC_LIBOBJ invocations to module description.
16543         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16544         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16545
16546 2011-05-23  Bruno Haible  <bruno@clisp.org>
16547
16548         crypto/md5: Move AC_LIBOBJ invocations to module description.
16549         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16550         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16551
16552 2011-05-23  Bruno Haible  <bruno@clisp.org>
16553
16554         crypto/md4: Move AC_LIBOBJ invocations to module description.
16555         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16556         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16557
16558 2011-05-23  Bruno Haible  <bruno@clisp.org>
16559
16560         crypto/md2: Move AC_LIBOBJ invocations to module description.
16561         * m4/md2.m4: Remove file.
16562         * modules/crypto/md2 (Files): Remove it.
16563         (configure.ac): Remove gl_MD2 call.
16564         (Makefile.am): Augment lib_SOURCES.
16565
16566 2011-05-23  Bruno Haible  <bruno@clisp.org>
16567
16568         long-options: Move AC_LIBOBJ invocations to module description.
16569         * m4/long-options.m4: Remove file.
16570         * modules/long-options (Files): Remove it.
16571         (configure.ac): Remove gl_LONG_OPTIONS call.
16572         (Makefile.am): Augment lib_SOURCES.
16573
16574 2011-05-23  Bruno Haible  <bruno@clisp.org>
16575
16576         i-ring: Move AC_LIBOBJ invocations to module description.
16577         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16578         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16579
16580 2011-05-23  Bruno Haible  <bruno@clisp.org>
16581
16582         idcache: Move AC_LIBOBJ invocations to module description.
16583         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16584         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16585
16586 2011-05-23  Bruno Haible  <bruno@clisp.org>
16587
16588         human: Move AC_LIBOBJ invocations to module description.
16589         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16590         * modules/human (Makefile.am): Augment lib_SOURCES.
16591
16592 2011-05-23  Bruno Haible  <bruno@clisp.org>
16593
16594         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16595         * m4/hmac-sha1.m4: Remove file.
16596         * modules/crypto/hmac-sha1 (Files): Remove it.
16597         (configure.ac): Remove gl_HMAC_SHA1 call.
16598         (Makefile.am): Augment lib_SOURCES.
16599
16600 2011-05-23  Bruno Haible  <bruno@clisp.org>
16601
16602         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16603         * m4/hmac-md5.m4: Remove file.
16604         * modules/crypto/hmac-md5 (Files): Remove it.
16605         (configure.ac): Remove gl_HMAC_MD5 call.
16606         (Makefile.am): Augment lib_SOURCES.
16607
16608 2011-05-23  Bruno Haible  <bruno@clisp.org>
16609
16610         hash: Move AC_LIBOBJ invocations to module description.
16611         * m4/hash.m4: Remove file.
16612         * modules/hash (Files): Remove it.
16613         (configure.ac): Remove gl_HASH call.
16614         (Makefile.am): Augment lib_SOURCES.
16615
16616 2011-05-23  Bruno Haible  <bruno@clisp.org>
16617
16618         hard-locale: Move AC_LIBOBJ invocations to module description.
16619         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16620         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16621
16622 2011-05-23  Bruno Haible  <bruno@clisp.org>
16623
16624         getugroups: Move AC_LIBOBJ invocations to module description.
16625         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16626         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16627
16628 2011-05-23  Bruno Haible  <bruno@clisp.org>
16629
16630         gettime: Move AC_LIBOBJ invocations to module description.
16631         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16632         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16633
16634 2011-05-23  Bruno Haible  <bruno@clisp.org>
16635
16636         getndelim2: Move AC_LIBOBJ invocations to module description.
16637         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16638         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16639
16640 2011-05-23  Bruno Haible  <bruno@clisp.org>
16641
16642         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16643         * m4/gc-pbkdf2-sha1.m4: Remove file.
16644         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16645         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16646         (Makefile.am): Augment lib_SOURCES.
16647
16648 2011-05-23  Bruno Haible  <bruno@clisp.org>
16649
16650         fts: Move AC_LIBOBJ invocations to module description.
16651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16652         * modules/fts (configure.ac): ... to here.
16653
16654 2011-05-23  Bruno Haible  <bruno@clisp.org>
16655
16656         file-type: Move AC_LIBOBJ invocations to module description.
16657         * m4/file-type.m4: Remove file.
16658         * modules/file-type (Files): Remove it.
16659         (configure.ac): Remove gl_FILE_TYPE call.
16660         (Makefile.am): Augment lib_SOURCES.
16661
16662 2011-05-23  Bruno Haible  <bruno@clisp.org>
16663
16664         filenamecat*: Respect rules for use of AC_LIBOBJ.
16665         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16666         Remove AC_LIBOBJ invocation.
16667         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16668         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16669
16670 2011-05-23  Bruno Haible  <bruno@clisp.org>
16671
16672         filemode: Move AC_LIBOBJ invocations to module description.
16673         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16674         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16675
16676 2011-05-23  Bruno Haible  <bruno@clisp.org>
16677
16678         openat-safer: Move AC_LIBOBJ invocations to module description.
16679         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16680         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16681
16682 2011-05-23  Bruno Haible  <bruno@clisp.org>
16683
16684         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16685         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16686         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16687
16688 2011-05-23  Bruno Haible  <bruno@clisp.org>
16689
16690         exclude: Move AC_LIBOBJ invocations to module description.
16691         * m4/exclude.m4: Remove file.
16692         * modules/exclude (Files): Remove it.
16693         (configure.ac): Remove gl_EXCLUDE call.
16694         (Makefile.am): Augment lib_SOURCES.
16695
16696 2011-05-23  Bruno Haible  <bruno@clisp.org>
16697
16698         dirname*: Respect rules for use of AC_LIBOBJ.
16699         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16700         invocations.
16701         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16702         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16703
16704 2011-05-23  Bruno Haible  <bruno@clisp.org>
16705
16706         dirent-safer: Move AC_LIBOBJ invocations to module description.
16707         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16708         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16709
16710 2011-05-23  Bruno Haible  <bruno@clisp.org>
16711
16712         crypto/des: Move AC_LIBOBJ invocations to module description.
16713         * m4/des.m4: Remove file.
16714         * modules/crypto/des (Files): Remove it.
16715         (configure.ac): Remove gl_DES call.
16716         (Makefile.am): Augment lib_SOURCES.
16717
16718 2011-05-23  Bruno Haible  <bruno@clisp.org>
16719
16720         cycle-check: Move AC_LIBOBJ invocations to module description.
16721         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16722         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16723
16724 2011-05-23  Bruno Haible  <bruno@clisp.org>
16725
16726         c-strtold: Move AC_LIBOBJ invocations to module description.
16727         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16728         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16729
16730 2011-05-23  Bruno Haible  <bruno@clisp.org>
16731
16732         c-strtod: Move AC_LIBOBJ invocations to module description.
16733         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16734         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16735
16736 2011-05-23  Bruno Haible  <bruno@clisp.org>
16737
16738         crc: Move AC_LIBOBJ invocations to module description.
16739         * m4/crc.m4: Remove file.
16740         * modules/crc (Files): Remove it.
16741         (configure.ac): Remove gl_CRC call.
16742         (Makefile.am): Augment lib_SOURCES.
16743
16744 2011-05-23  Bruno Haible  <bruno@clisp.org>
16745
16746         close-stream: Move AC_LIBOBJ invocations to module description.
16747         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16748         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16749
16750 2011-05-23  Bruno Haible  <bruno@clisp.org>
16751
16752         closeout: Move AC_LIBOBJ invocations to module description.
16753         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16754         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16755
16756 2011-05-23  Bruno Haible  <bruno@clisp.org>
16757
16758         closein: Move AC_LIBOBJ invocations to module description.
16759         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16760         * modules/closein (Makefile.am): Augment lib_SOURCES.
16761
16762 2011-05-23  Bruno Haible  <bruno@clisp.org>
16763
16764         cloexec: Move AC_LIBOBJ invocations to module description.
16765         * m4/cloexec.m4: Remove file.
16766         * modules/cloexec (Files): Remove it.
16767         (configure.ac): Remove gl_CLOEXEC call.
16768         (Makefile.am): Augment lib_SOURCES.
16769
16770 2011-05-23  Bruno Haible  <bruno@clisp.org>
16771
16772         check-version: Move AC_LIBOBJ invocations to module description.
16773         * m4/check-version.m4: Remove file.
16774         * modules/check-version (Files): Remove it.
16775         (configure.ac): Remove gl_CHECK_VERSION call.
16776         (Makefile.am): Augment lib_SOURCES.
16777
16778 2011-05-23  Bruno Haible  <bruno@clisp.org>
16779
16780         chdir-safer: Move AC_LIBOBJ invocations to module description.
16781         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16782         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16783
16784 2011-05-23  Bruno Haible  <bruno@clisp.org>
16785
16786         canonicalize: Move AC_LIBOBJ invocations to module description.
16787         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16788         AC_LIBOBJ invocation.
16789         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16790
16791 2011-05-23  Bruno Haible  <bruno@clisp.org>
16792
16793         canon-host: Move AC_LIBOBJ invocations to module description.
16794         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16795         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16796         instead of gl_CANON_HOST.
16797         (Makefile.am): Augment lib_SOURCES.
16798
16799 2011-05-23  Bruno Haible  <bruno@clisp.org>
16800
16801         backupfile: Move AC_LIBOBJ invocations to module description.
16802         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16803         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16804
16805 2011-05-23  Bruno Haible  <bruno@clisp.org>
16806
16807         argmatch: Move AC_LIBOBJ invocations to module description.
16808         * m4/argmatch.m4: Remove file.
16809         * modules/argmatch (Files): Remove it.
16810         (configure.ac): Remove gl_ARGMATCH call.
16811         (Makefile.am): Augment lib_SOURCES.
16812
16813 2011-05-23  Bruno Haible  <bruno@clisp.org>
16814
16815         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16816         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16817         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16818
16819 2011-05-23  Bruno Haible  <bruno@clisp.org>
16820
16821         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16822         * m4/arcfour.m4: Remove file.
16823         * modules/crypto/arcfour (Files): Remove it.
16824         (configure.ac): Remove gl_ARCFOUR call.
16825         (Makefile.am): Augment lib_SOURCES.
16826
16827 2011-05-22  Bruno Haible  <bruno@clisp.org>
16828
16829         write: Move AC_LIBOBJ invocations to module description.
16830         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16831         * modules/write (configure.ac): ... to here.
16832
16833 2011-05-22  Bruno Haible  <bruno@clisp.org>
16834
16835         wmemset: Move AC_LIBOBJ invocations to module description.
16836         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16837         here...
16838         * modules/wmemset (configure.ac): ... to here.
16839
16840 2011-05-22  Bruno Haible  <bruno@clisp.org>
16841
16842         wmemmove: Move AC_LIBOBJ invocations to module description.
16843         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16844         here...
16845         * modules/wmemmove (configure.ac): ... to here.
16846
16847 2011-05-22  Bruno Haible  <bruno@clisp.org>
16848
16849         wmemcpy: Move AC_LIBOBJ invocations to module description.
16850         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16851         here...
16852         * modules/wmemcpy (configure.ac): ... to here.
16853
16854 2011-05-22  Bruno Haible  <bruno@clisp.org>
16855
16856         wmemcmp: Move AC_LIBOBJ invocations to module description.
16857         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16858         here...
16859         * modules/wmemcmp (configure.ac): ... to here.
16860
16861 2011-05-22  Bruno Haible  <bruno@clisp.org>
16862
16863         wmemchr: Move AC_LIBOBJ invocations to module description.
16864         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16865         here...
16866         * modules/wmemchr (configure.ac): ... to here.
16867
16868 2011-05-22  Bruno Haible  <bruno@clisp.org>
16869
16870         wcswidth: Move AC_LIBOBJ invocations to module description.
16871         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16872         here...
16873         * modules/wcswidth (configure.ac): ... to here.
16874
16875 2011-05-22  Bruno Haible  <bruno@clisp.org>
16876
16877         wcwidth: Respect rules for use of AC_LIBOBJ.
16878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16879         invocation from here...
16880         * modules/wcwidth (configure.ac): ... to here.
16881         (Depends-on): Update conditions.
16882
16883 2011-05-22  Bruno Haible  <bruno@clisp.org>
16884
16885         wctype: Move AC_LIBOBJ invocations to module description.
16886         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16887         invocation from here...
16888         * modules/wctype (configure.ac): ... to here.
16889         (Depends-on): Update conditions.
16890
16891 2011-05-22  Bruno Haible  <bruno@clisp.org>
16892
16893         wctrans: Move AC_LIBOBJ invocations to module description.
16894         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16895         invocation from here...
16896         * modules/wctrans (configure.ac): ... to here.
16897
16898 2011-05-22  Bruno Haible  <bruno@clisp.org>
16899
16900         wctomb: Move AC_LIBOBJ invocations to module description.
16901         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16902         invocations from here...
16903         * modules/wctomb (configure.ac): ... to here.
16904
16905 2011-05-22  Bruno Haible  <bruno@clisp.org>
16906
16907         wctob: Move AC_LIBOBJ invocations to module description.
16908         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16909         gl_PREREQ_WCTOB invocations from here...
16910         * modules/wctob (configure.ac): ... to here.
16911         (Depends-on): Update conditions.
16912
16913 2011-05-22  Bruno Haible  <bruno@clisp.org>
16914
16915         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16916         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16917         here...
16918         * modules/wcsxfrm (configure.ac): ... to here.
16919
16920 2011-05-22  Bruno Haible  <bruno@clisp.org>
16921
16922         wcstok: Move AC_LIBOBJ invocations to module description.
16923         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16924         * modules/wcstok (configure.ac): ... to here.
16925
16926 2011-05-22  Bruno Haible  <bruno@clisp.org>
16927
16928         wcsstr: Move AC_LIBOBJ invocations to module description.
16929         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16930         * modules/wcsstr (configure.ac): ... to here.
16931
16932 2011-05-22  Bruno Haible  <bruno@clisp.org>
16933
16934         wcsspn: Move AC_LIBOBJ invocations to module description.
16935         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16936         * modules/wcsspn (configure.ac): ... to here.
16937
16938 2011-05-22  Bruno Haible  <bruno@clisp.org>
16939
16940         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16941         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16942         gl_PREREQ_WCSRTOMBS invocations from here...
16943         * modules/wcsrtombs (configure.ac): ... to here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         wcsrchr: Move AC_LIBOBJ invocations to module description.
16948         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16949         here...
16950         * modules/wcsrchr (configure.ac): ... to here.
16951
16952 2011-05-22  Bruno Haible  <bruno@clisp.org>
16953
16954         wcspbrk: Move AC_LIBOBJ invocations to module description.
16955         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16956         here...
16957         * modules/wcspbrk (configure.ac): ... to here.
16958
16959 2011-05-22  Bruno Haible  <bruno@clisp.org>
16960
16961         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16962         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16963         gl_PREREQ_WCSNRTOMBS invocations from here...
16964         * modules/wcsnrtombs (configure.ac): ... to here.
16965
16966 2011-05-22  Bruno Haible  <bruno@clisp.org>
16967
16968         wcsnlen: Move AC_LIBOBJ invocations to module description.
16969         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16970         here...
16971         * modules/wcsnlen (configure.ac): ... to here.
16972
16973 2011-05-22  Bruno Haible  <bruno@clisp.org>
16974
16975         wcsncpy: Move AC_LIBOBJ invocations to module description.
16976         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16977         here...
16978         * modules/wcsncpy (configure.ac): ... to here.
16979
16980 2011-05-22  Bruno Haible  <bruno@clisp.org>
16981
16982         wcsncmp: Move AC_LIBOBJ invocations to module description.
16983         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16984         here...
16985         * modules/wcsncmp (configure.ac): ... to here.
16986
16987 2011-05-22  Bruno Haible  <bruno@clisp.org>
16988
16989         wcsncat: Move AC_LIBOBJ invocations to module description.
16990         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16991         here...
16992         * modules/wcsncat (configure.ac): ... to here.
16993
16994 2011-05-22  Bruno Haible  <bruno@clisp.org>
16995
16996         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16997         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16998         from here...
16999         * modules/wcsncasecmp (configure.ac): ... to here.
17000
17001 2011-05-22  Bruno Haible  <bruno@clisp.org>
17002
17003         wcslen: Move AC_LIBOBJ invocations to module description.
17004         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17005         * modules/wcslen (configure.ac): ... to here.
17006
17007 2011-05-22  Bruno Haible  <bruno@clisp.org>
17008
17009         wcsdup: Move AC_LIBOBJ invocations to module description.
17010         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17011         * modules/wcsdup (configure.ac): ... to here.
17012
17013 2011-05-22  Bruno Haible  <bruno@clisp.org>
17014
17015         wcscspn: Move AC_LIBOBJ invocations to module description.
17016         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17017         here...
17018         * modules/wcscspn (configure.ac): ... to here.
17019
17020 2011-05-22  Bruno Haible  <bruno@clisp.org>
17021
17022         wcscpy: Move AC_LIBOBJ invocations to module description.
17023         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17024         * modules/wcscpy (configure.ac): ... to here.
17025
17026 2011-05-22  Bruno Haible  <bruno@clisp.org>
17027
17028         wcscoll: Move AC_LIBOBJ invocations to module description.
17029         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17030         here...
17031         * modules/wcscoll (configure.ac): ... to here.
17032
17033 2011-05-22  Bruno Haible  <bruno@clisp.org>
17034
17035         wcscmp: Move AC_LIBOBJ invocations to module description.
17036         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17037         * modules/wcscmp (configure.ac): ... to here.
17038
17039 2011-05-22  Bruno Haible  <bruno@clisp.org>
17040
17041         wcschr: Move AC_LIBOBJ invocations to module description.
17042         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17043         * modules/wcschr (configure.ac): ... to here.
17044
17045 2011-05-22  Bruno Haible  <bruno@clisp.org>
17046
17047         wcscat: Move AC_LIBOBJ invocations to module description.
17048         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17049         * modules/wcscat (configure.ac): ... to here.
17050
17051 2011-05-22  Bruno Haible  <bruno@clisp.org>
17052
17053         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17054         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17055         here...
17056         * modules/wcscasecmp (configure.ac): ... to here.
17057
17058 2011-05-22  Bruno Haible  <bruno@clisp.org>
17059
17060         wcrtomb: Move AC_LIBOBJ invocations to module description.
17061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17062         invocations from here...
17063         * modules/wcrtomb (configure.ac): ... to here.
17064
17065 2011-05-22  Bruno Haible  <bruno@clisp.org>
17066
17067         wcpncpy: Move AC_LIBOBJ invocations to module description.
17068         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17069         here...
17070         * modules/wcpncpy (configure.ac): ... to here.
17071
17072 2011-05-22  Bruno Haible  <bruno@clisp.org>
17073
17074         wcpcpy: Move AC_LIBOBJ invocations to module description.
17075         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17076         * modules/wcpcpy (configure.ac): ... to here.
17077
17078 2011-05-22  Bruno Haible  <bruno@clisp.org>
17079
17080         waitpid: Move AC_LIBOBJ invocations to module description.
17081         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17082         invocation from here...
17083         * modules/waitpid (configure.ac): ... to here.
17084
17085 2011-05-22  Bruno Haible  <bruno@clisp.org>
17086
17087         utimensat: Move AC_LIBOBJ invocations to module description.
17088         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17089         here...
17090         * modules/utimensat (configure.ac): ... to here.
17091
17092 2011-05-22  Bruno Haible  <bruno@clisp.org>
17093
17094         usleep: Move AC_LIBOBJ invocations to module description.
17095         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17096         here...
17097         * modules/usleep (configure.ac): ... to here.
17098
17099 2011-05-22  Bruno Haible  <bruno@clisp.org>
17100
17101         unlockpt: Move AC_LIBOBJ invocations to module description.
17102         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17103         gl_PREREQ_UNLOCKPT invocations from here...
17104         * modules/unlockpt (configure.ac): ... to here.
17105
17106 2011-05-22  Bruno Haible  <bruno@clisp.org>
17107
17108         unlink: Respect rules for use of AC_LIBOBJ.
17109         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17110         * modules/unlink (configure.ac): ... to here.
17111
17112 2011-05-22  Bruno Haible  <bruno@clisp.org>
17113
17114         uname: Move AC_LIBOBJ invocations to module description.
17115         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17117         here...
17118         * modules/uname (configure.ac): ... to here.
17119
17120 2011-05-22  Bruno Haible  <bruno@clisp.org>
17121
17122         ttyname_r: Move AC_LIBOBJ invocations to module description.
17123         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17124         gl_PREREQ_TTYNAME_R invocations from here...
17125         * modules/ttyname_r (configure.ac): ... to here.
17126
17127 2011-05-22  Bruno Haible  <bruno@clisp.org>
17128
17129         tsearch: Move AC_LIBOBJ invocations to module description.
17130         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17131         invocations from here...
17132         * modules/tsearch (configure.ac): ... to here.
17133
17134 2011-05-22  Bruno Haible  <bruno@clisp.org>
17135
17136         towctrans: Move AC_LIBOBJ invocations to module description.
17137         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17138         AC_LIBOBJ invocation from here...
17139         * modules/towctrans (configure.ac): ... to here.
17140
17141 2011-05-22  Bruno Haible  <bruno@clisp.org>
17142
17143         tmpfile: Move AC_LIBOBJ invocations to module description.
17144         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17145         invocations from here...
17146         * modules/tmpfile (configure.ac): ... to here.
17147
17148 2011-05-22  Bruno Haible  <bruno@clisp.org>
17149
17150         times: Move AC_LIBOBJ invocations to module description.
17151         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17152         * modules/times (configure.ac): ... to here.
17153
17154 2011-05-22  Bruno Haible  <bruno@clisp.org>
17155
17156         time_r: Move AC_LIBOBJ invocations to module description.
17157         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17158         invocations from here...
17159         * modules/time_r (configure.ac): ... to here.
17160
17161 2011-05-22  Bruno Haible  <bruno@clisp.org>
17162
17163         timegm: Move AC_LIBOBJ invocations to module description.
17164         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17165         invocations from here...
17166         * modules/timegm (configure.ac): ... to here.
17167
17168 2011-05-22  Bruno Haible  <bruno@clisp.org>
17169
17170         tcgetsid: Move AC_LIBOBJ invocations to module description.
17171         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17172         and gl_PREREQ_TCGETSID invocations from here...
17173         * modules/tcgetsid (configure.ac): ... to here.
17174         (Depends-on): Update conditions.
17175
17176 2011-05-22  Bruno Haible  <bruno@clisp.org>
17177
17178         symlinkat: Move AC_LIBOBJ invocations to module description.
17179         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17180         here...
17181         * modules/symlinkat (configure.ac): ... to here.
17182
17183 2011-05-22  Bruno Haible  <bruno@clisp.org>
17184
17185         symlink: Move AC_LIBOBJ invocations to module description.
17186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17187         here...
17188         * modules/symlink (configure.ac): ... to here.
17189
17190 2011-05-22  Bruno Haible  <bruno@clisp.org>
17191
17192         strverscmp: Move AC_LIBOBJ invocations to module description.
17193         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17195         from here...
17196         * modules/strverscmp (configure.ac): ... to here.
17197
17198 2011-05-22  Bruno Haible  <bruno@clisp.org>
17199
17200         strtok_r: Move AC_LIBOBJ invocations to module description.
17201         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17202         and gl_PREREQ_STRTOK_R invocations from here...
17203         * modules/strtok_r (configure.ac): ... to here.
17204         (Depends-on): Update conditions.
17205
17206 2011-05-22  Bruno Haible  <bruno@clisp.org>
17207
17208         strtoumax: Move AC_LIBOBJ invocations to module description.
17209         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17211         from here...
17212         * modules/strtoumax (configure.ac): ... to here.
17213
17214 2011-05-22  Bruno Haible  <bruno@clisp.org>
17215
17216         strtoimax: Move AC_LIBOBJ invocations to module description.
17217         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17219         from here...
17220         * modules/strtoimax (configure.ac): ... to here.
17221
17222 2011-05-22  Bruno Haible  <bruno@clisp.org>
17223
17224         strtoull: Move AC_LIBOBJ invocations to module description.
17225         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17227         from here...
17228         * modules/strtoull (configure.ac): ... to here.
17229
17230 2011-05-22  Bruno Haible  <bruno@clisp.org>
17231
17232         strtoll: Move AC_LIBOBJ invocations to module description.
17233         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17235         here...
17236         * modules/strtoll (configure.ac): ... to here.
17237
17238 2011-05-22  Bruno Haible  <bruno@clisp.org>
17239
17240         strtoul: Move AC_LIBOBJ invocations to module description.
17241         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17242         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17243         * modules/strtoul (configure.ac): ... to here.
17244
17245 2011-05-22  Bruno Haible  <bruno@clisp.org>
17246
17247         strtol: Move AC_LIBOBJ invocations to module description.
17248         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17249         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17250         * modules/strtol (configure.ac): ... to here.
17251
17252 2011-05-22  Bruno Haible  <bruno@clisp.org>
17253
17254         strtod: Move AC_LIBOBJ invocations to module description.
17255         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17256         invocations from here...
17257         * modules/strtod (configure.ac): ... to here.
17258
17259 2011-05-22  Bruno Haible  <bruno@clisp.org>
17260
17261         strstr*: Move AC_LIBOBJ invocations to module description.
17262         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17263         invocations from here...
17264         * modules/strstr-simple (configure.ac): ... to here.
17265         * modules/strstr (configure.ac): ... and here.
17266
17267 2011-05-22  Bruno Haible  <bruno@clisp.org>
17268
17269         strsignal: Move AC_LIBOBJ invocations to module description.
17270         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17271         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17272         * modules/strsignal (configure.ac): ... to here.
17273         (Depends-on): Update conditions.
17274
17275 2011-05-22  Bruno Haible  <bruno@clisp.org>
17276
17277         strsep: Move AC_LIBOBJ invocations to module description.
17278         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17280         here...
17281         * modules/strsep (configure.ac): ... to here.
17282
17283 2011-05-22  Bruno Haible  <bruno@clisp.org>
17284
17285         strptime: Move AC_LIBOBJ invocations to module description.
17286         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17287         gl_PREREQ_STRPTIME invocations from here...
17288         * modules/strptime (configure.ac): ... to here.
17289
17290 2011-05-22  Bruno Haible  <bruno@clisp.org>
17291
17292         strpbrk: Move AC_LIBOBJ invocations to module description.
17293         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17295         here...
17296         * modules/strpbrk (configure.ac): ... to here.
17297
17298 2011-05-22  Bruno Haible  <bruno@clisp.org>
17299
17300         strnlen: Move AC_LIBOBJ invocations to module description.
17301         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17302         invocations from here...
17303         * modules/strnlen (configure.ac): ... to here.
17304
17305 2011-05-22  Bruno Haible  <bruno@clisp.org>
17306
17307         strndup: Move AC_LIBOBJ invocations to module description.
17308         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17309         invocations from here...
17310         * modules/strndup (configure.ac): ... to here.
17311         (Depends-on): Update conditions.
17312
17313 2011-05-22  Bruno Haible  <bruno@clisp.org>
17314
17315         strncat: Move AC_LIBOBJ invocations to module description.
17316         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17317         invocations from here...
17318         * modules/strncat (configure.ac): ... to here.
17319
17320 2011-05-22  Bruno Haible  <bruno@clisp.org>
17321
17322         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17323         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17324         invocations from here...
17325         * modules/strdup (configure.ac): ... to here.
17326         * modules/strdup-posix (configure.ac): ... and here.
17327
17328 2011-05-22  Bruno Haible  <bruno@clisp.org>
17329
17330         strcspn: Move AC_LIBOBJ invocations to module description.
17331         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17333         here...
17334         * modules/strcspn (configure.ac): ... to here.
17335
17336 2011-05-22  Bruno Haible  <bruno@clisp.org>
17337
17338         strchrnul: Move AC_LIBOBJ invocations to module description.
17339         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17340         gl_PREREQ_STRCHRNUL invocations from here...
17341         * modules/strchrnul (configure.ac): ... to here.
17342
17343 2011-05-22  Bruno Haible  <bruno@clisp.org>
17344
17345         strcasestr*: Move AC_LIBOBJ invocations to module description.
17346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17347         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17348         * modules/strcasestr-simple (configure.ac): ... to here.
17349         * modules/strcasestr (configure.ac): ... and here.
17350
17351 2011-05-22  Bruno Haible  <bruno@clisp.org>
17352
17353         strcase: Move AC_LIBOBJ invocations to module description.
17354         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17355         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17356         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17357         gl_PREREQ_STRNCASECMP invocations from here...
17358         * modules/strcase (configure.ac): ... to here.
17359
17360 2011-05-22  Bruno Haible  <bruno@clisp.org>
17361
17362         stpncpy: Move AC_LIBOBJ invocations to module description.
17363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17364         here...
17365         * modules/stpncpy (configure.ac): ... to here.
17366
17367 2011-05-22  Bruno Haible  <bruno@clisp.org>
17368
17369         stpcpy: Move AC_LIBOBJ invocations to module description.
17370         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17372         here...
17373         * modules/stpcpy (configure.ac): ... to here.
17374
17375 2011-05-21  Bruno Haible  <bruno@clisp.org>
17376
17377         stat: Move AC_LIBOBJ invocations to module description.
17378         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17379         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17380         here...
17381         * modules/stat (configure.ac): ... to here.
17382
17383 2011-05-21  Bruno Haible  <bruno@clisp.org>
17384
17385         sleep: Move AC_LIBOBJ invocations to module description.
17386         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17387         * modules/sleep (configure.ac): ... to here.
17388
17389 2011-05-21  Bruno Haible  <bruno@clisp.org>
17390
17391         signbit: Move AC_LIBOBJ invocations to module description.
17392         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17393         * modules/signbit (configure.ac): ... to here.
17394
17395 2011-05-21  Bruno Haible  <bruno@clisp.org>
17396
17397         sigprocmask: Move AC_LIBOBJ invocations to module description.
17398         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17399         gl_PREREQ_SIGPROMASK invocations from here...
17400         * modules/sigprocmask (configure.ac): ... to here.
17401
17402 2011-05-21  Bruno Haible  <bruno@clisp.org>
17403
17404         sigaction: Move AC_LIBOBJ invocations to module description.
17405         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17406         gl_PREREQ_SIGACTION invocations from here...
17407         * modules/sigaction (configure.ac): ... to here.
17408
17409 2011-05-21  Bruno Haible  <bruno@clisp.org>
17410
17411         sig2str: Move AC_LIBOBJ invocations to module description.
17412         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17414         here...
17415         * modules/sig2str (configure.ac): ... to here.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         setlocale: Move AC_LIBOBJ invocations to module description.
17420         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17421         gl_PREREQ_SETLOCALE invocations from here...
17422         * modules/setlocale (configure.ac): ... to here.
17423
17424 2011-05-21  Bruno Haible  <bruno@clisp.org>
17425
17426         unsetenv: Move AC_LIBOBJ invocations to module description.
17427         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17428         and gl_PREREQ_UNSETENV invocations from here...
17429         * modules/unsetenv (configure.ac): ... to here.
17430         (Depends-on): Update.
17431
17432 2011-05-21  Bruno Haible  <bruno@clisp.org>
17433
17434         setenv: Move AC_LIBOBJ invocations to module description.
17435         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17436         here...
17437         * modules/setenv (configure.ac): ... to here.
17438
17439 2011-05-21  Bruno Haible  <bruno@clisp.org>
17440
17441         selinux-h: Move AC_LIBOBJ invocations to module description.
17442         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17443         AC_LIBOBJ invocation from here...
17444         * modules/selinux-h (configure.ac): ... to here.
17445
17446 2011-05-21  Bruno Haible  <bruno@clisp.org>
17447
17448         select: Respect rules for use of AC_LIBOBJ.
17449         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17450         here...
17451         * modules/select (configure.ac): ... to here.
17452
17453 2011-05-21  Bruno Haible  <bruno@clisp.org>
17454
17455         scandir: Move AC_LIBOBJ invocations to module description.
17456         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17457         invocations from here...
17458         * modules/scandir (configure.ac): ... to here.
17459
17460 2011-05-21  Bruno Haible  <bruno@clisp.org>
17461
17462         rpmatch: Move AC_LIBOBJ invocations to module description.
17463         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17464         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17465         here...
17466         * modules/rpmatch (configure.ac): ... to here.
17467
17468 2011-05-21  Bruno Haible  <bruno@clisp.org>
17469
17470         rmdir: Respect rules for use of AC_LIBOBJ.
17471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17472         * modules/rmdir (configure.ac): ... to here.
17473
17474 2011-05-21  Bruno Haible  <bruno@clisp.org>
17475
17476         renameat: Move AC_LIBOBJ invocations to module description.
17477         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17478         here...
17479         * modules/renameat (configure.ac): ... to here.
17480
17481 2011-05-21  Bruno Haible  <bruno@clisp.org>
17482
17483         rename: Respect rules for use of AC_LIBOBJ.
17484         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17485         here...
17486         * modules/rename (configure.ac): ... to here.
17487
17488 2011-05-21  Bruno Haible  <bruno@clisp.org>
17489
17490         remove: Move AC_LIBOBJ invocations to module description.
17491         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17492         here...
17493         * modules/remove (configure.ac): ... to here.
17494
17495 2011-05-21  Bruno Haible  <bruno@clisp.org>
17496
17497         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17498         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17499         macro.
17500         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17501         * modules/relocatable-lib (configure.ac): ... to here.
17502         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17503         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17508         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17509         here...
17510         * modules/relocatable-prog (configure.ac): ... to here.
17511
17512 2011-05-21  Bruno Haible  <bruno@clisp.org>
17513
17514         regex: Move AC_LIBOBJ invocations to module description.
17515         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17516         invocations from here...
17517         * modules/regex (configure.ac): ... to here.
17518
17519 2011-05-21  Bruno Haible  <bruno@clisp.org>
17520
17521         realloc-*: Move AC_LIBOBJ invocations to module description.
17522         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17523         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17524         AC_LIBOBJ invocations from here...
17525         * modules/realloc-gnu (configure.ac): ... to here.
17526         * modules/realloc-posix (configure.ac): ... and here.
17527
17528 2011-05-21  Bruno Haible  <bruno@clisp.org>
17529
17530         readutmp: Move AC_LIBOBJ invocations to module description.
17531         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17532         * modules/readutmp (configure.ac): ... to here.
17533
17534 2011-05-21  Bruno Haible  <bruno@clisp.org>
17535
17536         readlinkat: Move AC_LIBOBJ invocations to module description.
17537         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17538         here...
17539         * modules/readlinkat (configure.ac): ... to here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         readlink: Move AC_LIBOBJ invocations to module description.
17544         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17545         gl_PREREQ_READLINK invocations from here...
17546         * modules/readlink (configure.ac): ... to here.
17547
17548 2011-05-21  Bruno Haible  <bruno@clisp.org>
17549
17550         readline: Move AC_LIBOBJ invocations to module description.
17551         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17552         gl_PREREQ_READLINE invocations from here...
17553         * modules/readline (configure.ac): ... to here.
17554
17555 2011-05-21  Bruno Haible  <bruno@clisp.org>
17556
17557         read: Move AC_LIBOBJ invocations to module description.
17558         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17559         * modules/read (configure.ac): ... to here.
17560
17561 2011-05-21  Bruno Haible  <bruno@clisp.org>
17562
17563         rawmemchr: Move AC_LIBOBJ invocations to module description.
17564         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17566         from here...
17567         * modules/rawmemchr (configure.ac): ... to here.
17568
17569 2011-05-21  Bruno Haible  <bruno@clisp.org>
17570
17571         random_r: Move AC_LIBOBJ invocations to module description.
17572         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17573         gl_PREREQ_RANDOM_R invocations from here...
17574         * modules/random_r (configure.ac): ... to here.
17575
17576 2011-05-21  Bruno Haible  <bruno@clisp.org>
17577
17578         pwrite: Move AC_LIBOBJ invocations to module description.
17579         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17580         * modules/pwrite (configure.ac): ... to here.
17581
17582 2011-05-21  Bruno Haible  <bruno@clisp.org>
17583
17584         putenv: Move AC_LIBOBJ invocations to module description.
17585         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17586         * modules/putenv (configure.ac): ... to here.
17587
17588 2011-05-21  Bruno Haible  <bruno@clisp.org>
17589
17590         login_tty: Move AC_LIBOBJ invocations to module description.
17591         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17592         * modules/login_tty (configure.ac): ... to here.
17593
17594 2011-05-21  Bruno Haible  <bruno@clisp.org>
17595
17596         openpty: Move AC_LIBOBJ invocations to module description.
17597         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17598         * modules/openpty (configure.ac): ... to here.
17599
17600 2011-05-21  Bruno Haible  <bruno@clisp.org>
17601
17602         forkpty: Move AC_LIBOBJ invocations to module description.
17603         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17604         * modules/forkpty (configure.ac): ... to here.
17605
17606 2011-05-21  Bruno Haible  <bruno@clisp.org>
17607
17608         ptsname: Move AC_LIBOBJ invocations to module description.
17609         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17610         invocations from here...
17611         * modules/ptsname (configure.ac): ... to here.
17612
17613 2011-05-21  Bruno Haible  <bruno@clisp.org>
17614
17615         pread: Move AC_LIBOBJ invocations to module description.
17616         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17617         * modules/pread (configure.ac): ... to here.
17618
17619 2011-05-21  Bruno Haible  <bruno@clisp.org>
17620
17621         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17622         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17623         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17624         * modules/posix_spawn (configure.ac): ... to here.
17625         * modules/posix_spawnp (configure.ac): ... and here.
17626
17627 2011-05-21  Bruno Haible  <bruno@clisp.org>
17628
17629         popen: Move AC_LIBOBJ invocations to module description.
17630         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17631         invocations from here...
17632         * modules/popen (configure.ac): ... to here.
17633
17634 2011-05-21  Bruno Haible  <bruno@clisp.org>
17635
17636         poll: Move AC_LIBOBJ invocations to module description.
17637         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17638         invocations from here...
17639         * modules/poll (configure.ac): ... to here.
17640
17641 2011-05-21  Bruno Haible  <bruno@clisp.org>
17642
17643         pipe-posix: Move AC_LIBOBJ invocations to module description.
17644         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17645         * modules/pipe-posix (configure.ac): ... to here.
17646
17647 2011-05-21  Bruno Haible  <bruno@clisp.org>
17648
17649         openat: Respect rules for use of AC_LIBOBJ.
17650         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17651         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17652         * modules/openat (configure.ac): ... to here.
17653
17654 2011-05-21  Bruno Haible  <bruno@clisp.org>
17655
17656         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17657         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17658         invocation from here...
17659         * modules/obstack-printf (configure.ac): ... to here.
17660         * modules/obstack-printf-posix (configure.ac): ... and here.
17661
17662 2011-05-21  Bruno Haible  <bruno@clisp.org>
17663
17664         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17665         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17666         from here...
17667         * modules/nl_langinfo (configure.ac): ... to here.
17668
17669 2011-05-21  Bruno Haible  <bruno@clisp.org>
17670
17671         nanosleep: Move AC_LIBOBJ invocations to module description.
17672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17673         gl_PREREQ_NANOSLEEP invocations from here...
17674         * modules/nanosleep (configure.ac): ... to here.
17675
17676 2011-05-21  Bruno Haible  <bruno@clisp.org>
17677
17678         mountlist: Move AC_LIBOBJ invocations to module description.
17679         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17680         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17681         * modules/mountlist (configure.ac): ... to here.
17682
17683 2011-05-21  Bruno Haible  <bruno@clisp.org>
17684
17685         mktime: Respect rules for use of AC_LIBOBJ.
17686         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17687         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17688         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17689         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17690         * modules/mktime (configure.ac): ... to here.
17691         * modules/mktime-internal (configure.ac): ... and here.
17692         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17693
17694 2011-05-21  Bruno Haible  <bruno@clisp.org>
17695
17696         mkstemps: Move AC_LIBOBJ invocations to module description.
17697         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17698         here...
17699         * modules/mkstemps (configure.ac): ... to here.
17700
17701 2011-05-21  Bruno Haible  <bruno@clisp.org>
17702
17703         mkstemp: Move AC_LIBOBJ invocations to module description.
17704         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17705         gl_PREREQ_MKSTEMP invocations from here...
17706         * modules/mkstemp (configure.ac): ... to here.
17707
17708 2011-05-21  Bruno Haible  <bruno@clisp.org>
17709
17710         mkostemps: Move AC_LIBOBJ invocations to module description.
17711         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17712         here...
17713         * modules/mkostemps (configure.ac): ... to here.
17714
17715 2011-05-21  Bruno Haible  <bruno@clisp.org>
17716
17717         mkostemp: Move AC_LIBOBJ invocations to module description.
17718         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17719         gl_PREREQ_MKOSTEMP invocations from here...
17720         * modules/mkostemp (configure.ac): ... to here.
17721
17722 2011-05-21  Bruno Haible  <bruno@clisp.org>
17723
17724         mknod: Move AC_LIBOBJ invocations to module description.
17725         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17726         * modules/mknod (configure.ac): ... to here.
17727
17728 2011-05-21  Bruno Haible  <bruno@clisp.org>
17729
17730         mkfifoat: Move AC_LIBOBJ invocations to module description.
17731         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17732         here...
17733         * modules/mkfifoat (configure.ac): ... to here.
17734
17735 2011-05-21  Bruno Haible  <bruno@clisp.org>
17736
17737         mkfifo: Respect rules for use of AC_LIBOBJ.
17738         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17739         here...
17740         * modules/mkfifo (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         mkdtemp: Move AC_LIBOBJ invocations to module description.
17745         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17746         invocations from here...
17747         * modules/mkdtemp (configure.ac): ... to here.
17748
17749 2011-05-21  Bruno Haible  <bruno@clisp.org>
17750
17751         mkdir: Move AC_LIBOBJ invocations to module description.
17752         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17753         * modules/mkdir (configure.ac): ... to here.
17754
17755 2011-05-21  Bruno Haible  <bruno@clisp.org>
17756
17757         memset: Move AC_LIBOBJ invocations to module description.
17758         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17760         here...
17761         * modules/memset (configure.ac): ... to here.
17762
17763 2011-05-21  Bruno Haible  <bruno@clisp.org>
17764
17765         memrchr: Move AC_LIBOBJ invocations to module description.
17766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17768         here...
17769         * modules/memrchr (configure.ac): ... to here.
17770
17771 2011-05-21  Bruno Haible  <bruno@clisp.org>
17772
17773         mempcpy: Move AC_LIBOBJ invocations to module description.
17774         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17776         here...
17777         * modules/mempcpy (configure.ac): ... to here.
17778
17779 2011-05-21  Bruno Haible  <bruno@clisp.org>
17780
17781         memmove: Move AC_LIBOBJ invocations to module description.
17782         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17784         here...
17785         * modules/memmove (configure.ac): ... to here.
17786
17787 2011-05-21  Bruno Haible  <bruno@clisp.org>
17788
17789         memmem*: Move AC_LIBOBJ invocations to module description.
17790         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17791         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17792         here...
17793         (gl_FUNC_MEMMEM): ... and here...
17794         * modules/memmem-simple (configure.ac): ... to here.
17795         * modules/memmem (configure.ac): ... and here.
17796
17797 2011-05-21  Bruno Haible  <bruno@clisp.org>
17798
17799         memcpy: Move AC_LIBOBJ invocations to module description.
17800         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17802         here...
17803         * modules/memcpy (configure.ac): ... to here.
17804
17805 2011-05-21  Bruno Haible  <bruno@clisp.org>
17806
17807         memcmp: Simplify autoconf macro.
17808         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17809         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17810         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17811
17812 2011-05-21  Bruno Haible  <bruno@clisp.org>
17813
17814         memcmp: Move AC_LIBOBJ invocations to module description.
17815         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17816         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17817         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17818         * modules/memcmp (configure.ac): ... to here.
17819         (Depends-on): Update conditions.
17820
17821 2011-05-21  Bruno Haible  <bruno@clisp.org>
17822
17823         memchr: Respect rules for use of AC_LIBOBJ.
17824         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17825         invocations from here...
17826         * modules/memchr (configure.ac): ... to here.
17827
17828 2011-05-21  Bruno Haible  <bruno@clisp.org>
17829
17830         mbtowc: Move AC_LIBOBJ invocations to module description.
17831         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17832         invocations from here...
17833         * modules/mbtowc (configure.ac): ... to here.
17834
17835 2011-05-21  Bruno Haible  <bruno@clisp.org>
17836
17837         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17838         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17839         gl_PREREQ_MBSRTOWCS invocations from here...
17840         * modules/mbsrtowcs (configure.ac): ... to here.
17841
17842 2011-05-21  Bruno Haible  <bruno@clisp.org>
17843
17844         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17845         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17846         gl_PREREQ_MBSNRTOWCS invocations from here...
17847         * modules/mbsnrtowcs (configure.ac): ... to here.
17848
17849 2011-05-21  Bruno Haible  <bruno@clisp.org>
17850
17851         mbsinit: Move AC_LIBOBJ invocations to module description.
17852         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17853         invocations from here...
17854         * modules/mbsinit (configure.ac): ... to here.
17855
17856 2011-05-21  Bruno Haible  <bruno@clisp.org>
17857
17858         mbrlen: Move AC_LIBOBJ invocations to module description.
17859         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17860         invocations from here...
17861         * modules/mbrlen (configure.ac): ... to here.
17862
17863 2011-05-21  Bruno Haible  <bruno@clisp.org>
17864
17865         mbrtowc: Respect rules for use of AC_LIBOBJ.
17866         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17867         invocations from here...
17868         * modules/mbrtowc (configure.ac): ... to here.
17869
17870 2011-05-21  Bruno Haible  <bruno@clisp.org>
17871
17872         malloc-*: Move AC_LIBOBJ invocations to module description.
17873         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17874         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17875         AC_LIBOBJ invocations from here...
17876         * modules/malloc-gnu (configure.ac): ... to here.
17877         * modules/malloc-posix (configure.ac): ... and here.
17878
17879 2011-05-21  Bruno Haible  <bruno@clisp.org>
17880
17881         lstat, openat: Respect rules for use of AC_LIBOBJ.
17882         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17883         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17884         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17885         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17886         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17887         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17888         here.
17889         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17890
17891 2011-05-21  Bruno Haible  <bruno@clisp.org>
17892
17893         lseek: Move AC_LIBOBJ invocations to module description.
17894         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17895         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17896         * modules/lseek (configure.ac): ... to here.
17897
17898 2011-05-21  Bruno Haible  <bruno@clisp.org>
17899
17900         linkat: Move AC_LIBOBJ invocations to module description.
17901         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17902         here...
17903         * modules/linkat (configure.ac): ... to here.
17904
17905 2011-05-21  Bruno Haible  <bruno@clisp.org>
17906
17907         link: Respect rules for use of AC_LIBOBJ.
17908         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17909         * modules/link (configure.ac): ... to here.
17910
17911 2011-05-21  Bruno Haible  <bruno@clisp.org>
17912
17913         lchown: Move AC_LIBOBJ invocations to module description.
17914         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17915         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17916         * modules/lchown (configure.ac): ... to here.
17917
17918 2011-05-21  Bruno Haible  <bruno@clisp.org>
17919
17920         iswctype: Move AC_LIBOBJ invocations to module description.
17921         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17922         here...
17923         * modules/iswctype (configure.ac): ... to here.
17924
17925 2011-05-21  Bruno Haible  <bruno@clisp.org>
17926
17927         iswblank: Move AC_LIBOBJ invocations to module description.
17928         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17929         here...
17930         * modules/iswblank (configure.ac): ... to here.
17931
17932 2011-05-21  Bruno Haible  <bruno@clisp.org>
17933
17934         atanl: Move AC_LIBOBJ invocations to module description.
17935         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17936         * modules/atanl (configure.ac): ... to here.
17937
17938 2011-05-21  Bruno Haible  <bruno@clisp.org>
17939
17940         acosl: Move AC_LIBOBJ invocations to module description.
17941         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17942         * modules/acosl (configure.ac): ... to here.
17943
17944 2011-05-21  Bruno Haible  <bruno@clisp.org>
17945
17946         asinl: Respect rules for use of AC_LIBOBJ.
17947         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17948         * modules/asinl (configure.ac): ... to here.
17949
17950 2011-05-21  Bruno Haible  <bruno@clisp.org>
17951
17952         tanl: Move AC_LIBOBJ invocations to module description.
17953         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17954         * modules/tanl (configure.ac): ... to here.
17955
17956 2011-05-21  Bruno Haible  <bruno@clisp.org>
17957
17958         cosl: Move AC_LIBOBJ invocations to module description.
17959         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17960         * modules/cosl (configure.ac): ... to here.
17961
17962 2011-05-21  Bruno Haible  <bruno@clisp.org>
17963
17964         sinl: Move AC_LIBOBJ invocations to module description.
17965         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17966         * modules/sinl (configure.ac): ... to here.
17967
17968 2011-05-21  Bruno Haible  <bruno@clisp.org>
17969
17970         logl: Move AC_LIBOBJ invocations to module description.
17971         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17972         * modules/logl (configure.ac): ... to here.
17973
17974 2011-05-21  Bruno Haible  <bruno@clisp.org>
17975
17976         expl: Move AC_LIBOBJ invocations to module description.
17977         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17978         * modules/expl (configure.ac): ... to here.
17979
17980 2011-05-21  Bruno Haible  <bruno@clisp.org>
17981
17982         roundl: Move AC_LIBOBJ invocations to module description.
17983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17984         * modules/roundl (configure.ac): ... to here.
17985
17986 2011-05-21  Bruno Haible  <bruno@clisp.org>
17987
17988         round: Move AC_LIBOBJ invocations to module description.
17989         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17990         * modules/round (configure.ac): ... to here.
17991
17992 2011-05-21  Bruno Haible  <bruno@clisp.org>
17993
17994         roundf: Move AC_LIBOBJ invocations to module description.
17995         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17996         * modules/roundf (configure.ac): ... to here.
17997
17998 2011-05-21  Bruno Haible  <bruno@clisp.org>
17999
18000         truncl: Move AC_LIBOBJ invocations to module description.
18001         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18002         * modules/truncl (configure.ac): ... to here.
18003
18004 2011-05-21  Bruno Haible  <bruno@clisp.org>
18005
18006         trunc: Move AC_LIBOBJ invocations to module description.
18007         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18008         * modules/trunc (configure.ac): ... to here.
18009
18010 2011-05-21  Bruno Haible  <bruno@clisp.org>
18011
18012         truncf: Move AC_LIBOBJ invocations to module description.
18013         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18014         * modules/truncf (configure.ac): ... to here.
18015
18016 2011-05-21  Bruno Haible  <bruno@clisp.org>
18017
18018         ceill: Move AC_LIBOBJ invocations to module description.
18019         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18020         * modules/ceill (configure.ac): ... to here.
18021
18022 2011-05-21  Bruno Haible  <bruno@clisp.org>
18023
18024         ceil: Move AC_LIBOBJ invocations to module description.
18025         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18026         * modules/ceil (configure.ac): ... to here.
18027
18028 2011-05-21  Bruno Haible  <bruno@clisp.org>
18029
18030         ceilf: Move AC_LIBOBJ invocations to module description.
18031         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18032         * modules/ceilf (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         floorl: Respect rules for use of AC_LIBOBJ.
18037         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18038         * modules/floorl (configure.ac): ... to here.
18039
18040 2011-05-21  Bruno Haible  <bruno@clisp.org>
18041
18042         floor: Respect rules for use of AC_LIBOBJ.
18043         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18044         * modules/floor (configure.ac): ... to here.
18045
18046 2011-05-21  Bruno Haible  <bruno@clisp.org>
18047
18048         floorf: Move AC_LIBOBJ invocations to module description.
18049         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18050         * modules/floorf (configure.ac): ... to here.
18051
18052 2011-05-20  Bruno Haible  <bruno@clisp.org>
18053
18054         sqrtl: Respect rules for use of AC_LIBOBJ.
18055         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18056         * modules/sqrtl (configure.ac): ... to here.
18057
18058 2011-05-20  Bruno Haible  <bruno@clisp.org>
18059
18060         ldexpl: Respect rules for use of AC_LIBOBJ.
18061         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18062         * modules/ldexpl (configure.ac): ... to here.
18063
18064 2011-05-20  Bruno Haible  <bruno@clisp.org>
18065
18066         frexpl*: Respect rules for use of AC_LIBOBJ.
18067         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18068         invocation from here...
18069         * modules/frexpl (configure.ac): ... to here.
18070         * modules/frexpl-nolibm (configure.ac): ... and here.
18071
18072 2011-05-20  Bruno Haible  <bruno@clisp.org>
18073
18074         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18075         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18076         invocation from here...
18077         * modules/frexp (configure.ac): ... to here.
18078         * modules/frexp-nolibm (configure.ac): ... and here.
18079
18080 2011-05-20  Bruno Haible  <bruno@clisp.org>
18081
18082         isnan: Respect rules for use of AC_LIBOBJ.
18083         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18084         invocations here.
18085         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18086         REPLACE_ISNAN.
18087         * modules/isnand (configure.ac): Likewise.
18088         * modules/isnanl (configure.ac): Likewise.
18089
18090 2011-05-20  Bruno Haible  <bruno@clisp.org>
18091
18092         isnanl*: Respect rules for use of AC_LIBOBJ.
18093         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18094         invocation from here...
18095         * modules/isnanl (configure.ac): ... to here.
18096         * modules/isnanl-nolibm (configure.ac): ... and here.
18097
18098 2011-05-20  Bruno Haible  <bruno@clisp.org>
18099
18100         isnand*: Move AC_LIBOBJ invocations to module description.
18101         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18102         invocation from here...
18103         * modules/isnand (configure.ac): ... to here.
18104         * modules/isnand-nolibm (configure.ac): ... and here.
18105
18106 2011-05-20  Bruno Haible  <bruno@clisp.org>
18107
18108         isnanf*: Move AC_LIBOBJ invocations to module description.
18109         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18110         invocation from here...
18111         * modules/isnanf (configure.ac): ... to here.
18112         * modules/isnanf-nolibm (configure.ac): ... and here.
18113
18114 2011-05-20  Bruno Haible  <bruno@clisp.org>
18115
18116         isnan*: Separate the AC_LIBOBJ invocations.
18117         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18118         AC_LIBOBJ invocation.
18119         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18120         here.
18121         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18122         AC_LIBOBJ invocation.
18123         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18124         here.
18125         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18126         AC_LIBOBJ invocation.
18127         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18128         here.
18129         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18130
18131 2011-05-08  Bruno Haible  <bruno@clisp.org>
18132
18133         isinf: Move AC_LIBOBJ invocations to module description.
18134         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18135         * modules/isinf (configure.ac): ... to here.
18136
18137 2011-05-08  Bruno Haible  <bruno@clisp.org>
18138
18139         isfinite: Move AC_LIBOBJ invocations to module description.
18140         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18141         * modules/isfinite (configure.ac): ... to here.
18142
18143 2011-05-08  Bruno Haible  <bruno@clisp.org>
18144
18145         isblank: Move AC_LIBOBJ invocations to module description.
18146         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18147         here...
18148         * modules/isblank (configure.ac): ... to here.
18149
18150 2011-05-08  Bruno Haible  <bruno@clisp.org>
18151
18152         isapipe: Move AC_LIBOBJ invocations to module description.
18153         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18154         gl_PREREQ_ISAPIPE invocations from here...
18155         * modules/isapipe (configure.ac): ... to here.
18156         (Depends-on): Update condition.
18157
18158 2011-05-08  Bruno Haible  <bruno@clisp.org>
18159
18160         ioctl: Move AC_LIBOBJ invocations to module description.
18161         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18162         invocations from here...
18163         * modules/ioctl (configure.ac): ... to here.
18164         (Depends-on): Update condition.
18165
18166 2011-05-08  Bruno Haible  <bruno@clisp.org>
18167
18168         imaxdiv: Move AC_LIBOBJ invocations to module description.
18169         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18170         invocations from here...
18171         * modules/imaxdiv (configure.ac): ... to here.
18172
18173 2011-05-08  Bruno Haible  <bruno@clisp.org>
18174
18175         imaxabs: Move AC_LIBOBJ invocations to module description.
18176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18177         invocations from here...
18178         * modules/imaxabs (configure.ac): ... to here.
18179
18180 2011-05-08  Bruno Haible  <bruno@clisp.org>
18181
18182         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18184         AC_LIBOBJ invocations from here...
18185         * modules/getaddrinfo (configure.ac): ... to here.
18186         (Depends-on): Add conditions.
18187
18188 2011-05-08  Bruno Haible  <bruno@clisp.org>
18189
18190         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18191         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18192         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18193         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18194         (gl_PREREQ_INET_PTON): ... from here.
18195         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18196         gl_PREREQ_INET_PTON here.
18197         (Depends-on): Update condition.
18198
18199 2011-05-08  Bruno Haible  <bruno@clisp.org>
18200
18201         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18202         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18203         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18204         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18205         (gl_PREREQ_INET_NTOP): ... from here.
18206         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18207         gl_PREREQ_INET_NTOP here.
18208         (Depends-on): Update condition.
18209
18210 2011-05-08  Bruno Haible  <bruno@clisp.org>
18211
18212         iconv_open: Move AC_LIBOBJ invocations to module description.
18213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18214         AC_LIBOBJ invocations from here...
18215         * modules/iconv_open (configure.ac): ... to here.
18216
18217 2011-05-08  Bruno Haible  <bruno@clisp.org>
18218
18219         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18220         If module 'iconv_open' is among the main modules and module
18221         'iconv_open-utf' is among the tests dependencies, then
18222         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18223         return the special iconv_t values. Therefore iconv() and iconv_close()
18224         must support these special iconv_t values, already in lib, not only in
18225         tests.
18226         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18227         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18228         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18229         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18230         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18231         (Depends-on): Add the dependencies of iconv_open-utf.
18232         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18233         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18234         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18235
18236 2011-05-08  Bruno Haible  <bruno@clisp.org>
18237
18238         group-member: Move AC_LIBOBJ invocations to module description.
18239         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18240         gl_PREREQ_GROUP_MEMBER invocations from here...
18241         * modules/group-member (configure.ac): ... to here.
18242
18243 2011-05-08  Bruno Haible  <bruno@clisp.org>
18244
18245         grantpt: Move AC_LIBOBJ invocations to module description.
18246         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18247         invocations from here...
18248         * modules/grantpt (configure.ac): ... to here.
18249
18250 2011-05-08  Bruno Haible  <bruno@clisp.org>
18251
18252         glob: Move AC_LIBOBJ invocations to module description.
18253         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18254         from here...
18255         * modules/glob (configure.ac): ... to here.
18256
18257 2011-05-08  Bruno Haible  <bruno@clisp.org>
18258
18259         getusershell: Move AC_LIBOBJ invocations to module description.
18260         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18261         Move AC_LIBOBJ invocation from here...
18262         * modules/getusershell (configure.ac): ... to here.
18263         (Depends-on): Update condition.
18264
18265 2011-05-08  Bruno Haible  <bruno@clisp.org>
18266
18267         gettimeofday: Move AC_LIBOBJ invocations to module description.
18268         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18269         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18270         gl_PREREQ_GETTIMEOFDAY invocations from here...
18271         * modules/gettimeofday (configure.ac): ... to here.
18272
18273 2011-05-08  Bruno Haible  <bruno@clisp.org>
18274
18275         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18276         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18277         just gl_FUNC_TZSET.
18278         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18279         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18281         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18282
18283 2011-05-08  Bruno Haible  <bruno@clisp.org>
18284
18285         getsubopt: Move AC_LIBOBJ invocations to module description.
18286         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18287         gl_PREREQ_GETSUBOPT invocations from here...
18288         * modules/getsubopt (configure.ac): ... to here.
18289
18290 2011-05-08  Bruno Haible  <bruno@clisp.org>
18291
18292         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18293         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18294         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18295         * modules/getpass-gnu (configure.ac): ... to here.
18296
18297 2011-05-08  Bruno Haible  <bruno@clisp.org>
18298
18299         getpass: Move AC_LIBOBJ invocations to module description.
18300         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18301         gl_PREREQ_GETPASS invocations from here...
18302         * modules/getpass (configure.ac): ... to here.
18303
18304 2011-05-08  Bruno Haible  <bruno@clisp.org>
18305
18306         getpagesize: Move AC_LIBOBJ invocations to module description.
18307         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18308         from here...
18309         * modules/getpagesize (configure.ac): ... to here.
18310
18311 2011-05-08  Bruno Haible  <bruno@clisp.org>
18312
18313         getopt: Move AC_LIBOBJ invocations to module description.
18314         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18315         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18316         invocations from here...
18317         * modules/getopt-gnu (configure.ac): ... to here.
18318         * modules/getopt-posix (configure.ac): ... and here.
18319         (Depends-on): Update condition.
18320
18321 2011-05-08  Bruno Haible  <bruno@clisp.org>
18322
18323         getopt, argp: Respect rules for use of AC_LIBOBJ.
18324         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18325         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18326         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18327         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18328
18329 2011-05-08  Bruno Haible  <bruno@clisp.org>
18330
18331         getlogin_r: Move AC_LIBOBJ invocations to module description.
18332         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18333         gl_PREREQ_GETLOGIN_R invocations from here...
18334         * modules/getlogin_r (configure.ac): ... to here.
18335
18336 2011-05-08  Bruno Haible  <bruno@clisp.org>
18337
18338         getlogin: Move AC_LIBOBJ invocations to module description.
18339         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18340         here...
18341         * modules/getlogin (configure.ac): ... to here.
18342
18343 2011-05-08  Bruno Haible  <bruno@clisp.org>
18344
18345         getloadavg: Move AC_LIBOBJ invocations to module description.
18346         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18347         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18348         * modules/getloadavg (configure.ac): ... to here.
18349
18350 2011-05-08  Bruno Haible  <bruno@clisp.org>
18351
18352         gethrxtime: Move AC_LIBOBJ invocations to module description.
18353         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18354         LIB_GETHRXTIME from here...
18355         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18356         invocations from here...
18357         * modules/gethrxtime (configure.ac): ... to here.
18358
18359 2011-05-08  Bruno Haible  <bruno@clisp.org>
18360
18361         gethostname: Move AC_LIBOBJ invocations to module description.
18362         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18363         gl_PREREQ_GETHOSTNAME invocations from here...
18364         * modules/gethostname (configure.ac): ... to here.
18365
18366 2011-05-08  Bruno Haible  <bruno@clisp.org>
18367
18368         getgroups: Move AC_LIBOBJ invocations to module description.
18369         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18370         here...
18371         * modules/getgroups (configure.ac): ... to here.
18372
18373 2011-05-08  Bruno Haible  <bruno@clisp.org>
18374
18375         getdtablesize: Move AC_LIBOBJ invocations to module description.
18376         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18377         invocation from here...
18378         * modules/getdtablesize (configure.ac): ... to here.
18379
18380 2011-05-08  Bruno Haible  <bruno@clisp.org>
18381
18382         getdomainname: Move AC_LIBOBJ invocations to module description.
18383         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18384         gl_PREREQ_GETDOMAINNAME invocations from here...
18385         * modules/getdomainname (configure.ac): ... to here.
18386
18387 2011-05-08  Bruno Haible  <bruno@clisp.org>
18388
18389         getline: Move AC_LIBOBJ invocations to module description.
18390         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18391         invocations from here...
18392         * modules/getline (configure.ac): ... to here.
18393
18394 2011-05-08  Bruno Haible  <bruno@clisp.org>
18395
18396         getline: Simplify.
18397         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18398         It's already handled through the module dependency.
18399
18400 2011-05-08  Bruno Haible  <bruno@clisp.org>
18401
18402         getdelim: Move AC_LIBOBJ invocations to module description.
18403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18404         and gl_PREREQ_GETDELIM invocations from here...
18405         * modules/getdelim (configure.ac): ... to here.
18406         (Depends-on): Fix condition.
18407
18408 2011-05-08  Bruno Haible  <bruno@clisp.org>
18409
18410         getcwd: Move AC_LIBOBJ invocations to module description.
18411         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18412         invocations from here...
18413         * modules/getcwd (configure.ac): ... to here.
18414
18415 2011-05-08  Bruno Haible  <bruno@clisp.org>
18416
18417         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18418         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18419         here...
18420         * modules/getcwd-lgpl (configure.ac): ... to here.
18421
18422 2011-05-07  Bruno Haible  <bruno@clisp.org>
18423
18424         crypto/gc: Move AC_LIBOBJ invocations to module description.
18425         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18426         * modules/crypto/gc (configure.ac): ... to here.
18427
18428 2011-05-07  Bruno Haible  <bruno@clisp.org>
18429
18430         fwriting: Move AC_LIBOBJ invocations to module description.
18431         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18432         here...
18433         * modules/fwriting (configure.ac): ... to here.
18434
18435 2011-05-07  Bruno Haible  <bruno@clisp.org>
18436
18437         fwritable: Move AC_LIBOBJ invocations to module description.
18438         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18439         here...
18440         * modules/fwritable (configure.ac): ... to here.
18441
18442 2011-05-07  Bruno Haible  <bruno@clisp.org>
18443
18444         futimens: Move AC_LIBOBJ invocations to module description.
18445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18446         here...
18447         * modules/futimens (configure.ac): ... to here.
18448
18449 2011-05-07  Bruno Haible  <bruno@clisp.org>
18450
18451         ftruncate: Move AC_LIBOBJ invocations to module description.
18452         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18453         gl_PREREQ_FTRUNCATE invocations from here...
18454         * modules/ftruncate (configure.ac): ... to here.
18455
18456 2011-05-07  Bruno Haible  <bruno@clisp.org>
18457
18458         fsync: Move AC_LIBOBJ invocations to module description.
18459         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18460         invocations from here...
18461         * modules/fsync (configure.ac): ... to here.
18462
18463 2011-05-07  Bruno Haible  <bruno@clisp.org>
18464
18465         fsusage: Move AC_LIBOBJ invocations to module description.
18466         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18467         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18468         * modules/fsusage (configure.ac): ... to here.
18469
18470 2011-05-07  Bruno Haible  <bruno@clisp.org>
18471
18472         freopen: Move AC_LIBOBJ invocations to module description.
18473         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18474         invocations from here...
18475         * modules/freopen (configure.ac): ... to here.
18476
18477 2011-05-07  Bruno Haible  <bruno@clisp.org>
18478
18479         free: Move AC_LIBOBJ invocations to module description.
18480         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18481         invocations from here...
18482         * modules/free (configure.ac): ... to here.
18483
18484 2011-05-07  Bruno Haible  <bruno@clisp.org>
18485
18486         freadable: Move AC_LIBOBJ invocations to module description.
18487         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18488         here...
18489         * modules/freadable (configure.ac): ... to here.
18490
18491 2011-05-07  Bruno Haible  <bruno@clisp.org>
18492
18493         fpurge: Move AC_LIBOBJ invocations to module description.
18494         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18495         invocations from here...
18496         * modules/fpurge (configure.ac): ... to here.
18497
18498 2011-05-07  Bruno Haible  <bruno@clisp.org>
18499
18500         fpending: Move AC_LIBOBJ invocations to module description.
18501         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18502         gl_FUNC_FPENDING.
18503         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18504         invocations from here...
18505         * modules/fpending (configure.ac): ... to here.
18506
18507 2011-05-07  Bruno Haible  <bruno@clisp.org>
18508
18509         fopen: Move AC_LIBOBJ invocations to module description.
18510         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18511         invocations from here...
18512         * modules/fopen (configure.ac): ... to here.
18513
18514 2011-05-07  Bruno Haible  <bruno@clisp.org>
18515
18516         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18517         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18518         gl_FUNC_FNMATCH_POSIX.
18519         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18520         invocations from here...
18521         * modules/fnmatch (configure.ac): ... to here.
18522         * modules/fnmatch-gnu (configure.ac): ... and here.
18523
18524 2011-05-07  Bruno Haible  <bruno@clisp.org>
18525
18526         flock: Move AC_LIBOBJ invocations to module description.
18527         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18528         invocations from here...
18529         * modules/flock (configure.ac): ... to here.
18530
18531 2011-05-07  Bruno Haible  <bruno@clisp.org>
18532
18533         fileblocks: Move AC_LIBOBJ invocations to module description.
18534         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18535         gl_PREREQ_FILEBLOCKS invocations from here...
18536         * modules/fileblocks (configure.ac): ... to here.
18537
18538 2011-05-06  Bruno Haible  <bruno@clisp.org>
18539
18540         fflush: Move AC_LIBOBJ invocations to module description.
18541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18542         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18543         invocations from here...
18544         * modules/fflush (configure.ac): ... to here.
18545
18546 2011-05-06  Bruno Haible  <bruno@clisp.org>
18547
18548         fdopendir: Move AC_LIBOBJ invocations to module description.
18549         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18550         here...
18551         * modules/fdopendir (configure.ac): ... to here.
18552         (Depends-on): Improve conditions.
18553
18554 2011-05-06  Bruno Haible  <bruno@clisp.org>
18555
18556         _Exit: Move AC_LIBOBJ invocations to module description.
18557         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18558         invocations from here...
18559         * modules/_Exit (configure.ac): ... to here.
18560
18561 2011-05-21  Bruno Haible  <bruno@clisp.org>
18562
18563         euidaccess: Respect rules for use of AC_LIBOBJ.
18564         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18566         from here...
18567         * modules/euidaccess (configure.ac): ... to here.
18568
18569 2011-05-06  Bruno Haible  <bruno@clisp.org>
18570
18571         error: Move AC_LIBOBJ invocations to module description.
18572         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18573         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18574         invocations from here...
18575         * modules/error (configure.ac): ... to here.
18576
18577 2011-05-06  Bruno Haible  <bruno@clisp.org>
18578
18579         duplocale: Move AC_LIBOBJ invocations to module description.
18580         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18581         gl_PREREQ_DUPLOCALE invocations from here...
18582         * modules/duplocale (configure.ac): ... to here.
18583
18584 2011-05-05  Bruno Haible  <bruno@clisp.org>
18585
18586         dirfd: Move AC_LIBOBJ invocations to module description.
18587         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18588         gl_FUNC_DIRFD.
18589         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18590         here...
18591         * modules/dirfd (configure.ac): ... to here.
18592         (Depends-on): Fix condition.
18593
18594 2011-05-05  Bruno Haible  <bruno@clisp.org>
18595
18596         chown: Respect rules for use of AC_LIBOBJ.
18597         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18598         * modules/chown (configure.ac): ... to here.
18599
18600 2011-05-05  Bruno Haible  <bruno@clisp.org>
18601
18602         chdir-long: Move AC_LIBOBJ invocations to module description.
18603         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18604         gl_PREREQ_CHDIR_LONG invocations from here...
18605         * modules/chdir-long (configure.ac): ... to here.
18606
18607 2011-05-05  Bruno Haible  <bruno@clisp.org>
18608
18609         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18610         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18611         from here...
18612         * modules/canonicalize-lgpl (configure.ac): ... to here.
18613
18614 2011-05-05  Bruno Haible  <bruno@clisp.org>
18615
18616         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18617         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18618         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18619         REPLACE_CALLOC.
18620         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18621         * modules/calloc-gnu (configure.ac): Likewise.
18622
18623 2011-05-05  Bruno Haible  <bruno@clisp.org>
18624
18625         btowc: Move AC_LIBOBJ invocations to module description.
18626         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18627         invocations from here...
18628         * modules/btowc (configure.ac): ... to here.
18629
18630 2011-05-21  Bruno Haible  <bruno@clisp.org>
18631
18632         atexit: Move AC_LIBOBJ invocations to module description.
18633         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18634         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18635         here...
18636         * modules/atexit (configure.ac): ... to here.
18637
18638 2011-05-05  Bruno Haible  <bruno@clisp.org>
18639
18640         atoll: Move AC_LIBOBJ invocations to module description.
18641         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18642         invocations from here...
18643         * modules/atoll (configure.ac): ... to here.
18644
18645 2011-05-05  Bruno Haible  <bruno@clisp.org>
18646
18647         argz: Move AC_LIBOBJ invocations to module description.
18648         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18649         * modules/argz (configure.ac): ... to here.
18650
18651 2011-05-05  Bruno Haible  <bruno@clisp.org>
18652
18653         alphasort: Move AC_LIBOBJ invocations to module description.
18654         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18655         gl_PREREQ_ALPHASORT invocations from here...
18656         * modules/alphasort (configure.ac): ... to here.
18657
18658 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         verify: new macro verify_expr; verify_true deprecated
18661         * NEWS: Mention this.
18662         * doc/verify.texi (Compile-time Assertions): Document this.
18663         * lib/verify.h (verify_true): Deprecate.
18664         (verify_expr): New macro.
18665         * tests/test-verify.c (function): Test verify_expr.
18666
18667 2011-06-14  Jim Meyering  <meyering@redhat.com>
18668
18669         init.sh: give more portable redirection-related advice in a comment
18670         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18671         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18672         for lots of discussion.  Stefano Lattarini suggested the solution
18673         of putting "9>&2" after the command.  Reported by Bruno Haible.
18674
18675 2011-06-13  Bruno Haible  <bruno@clisp.org>
18676
18677         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18678         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18679         'none'.
18680
18681 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18682
18683         ftoastr: use strtof only if HAVE_STRTOF
18684         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18686         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18687         * modules/ftoastr (configure.ac): Check for strtof.
18688
18689 2011-06-13  Bruno Haible  <bruno@clisp.org>
18690
18691         gnulib-tool: Addendum to 2011-06-08 commit.
18692         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18693         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18694
18695 2011-06-13  Bruno Haible  <bruno@clisp.org>
18696
18697         fseeko: Provide a non-inline replacement of fseek().
18698         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18699         * modules/fseeko (Depends-on): Add fseek.
18700         * modules/fseek (License): Change to LGPLv2+.
18701
18702 2011-06-13  Bruno Haible  <bruno@clisp.org>
18703
18704         ftello: Provide a non-inline replacement of ftell().
18705         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18706         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18707         not have ftello() (such as on mingw).
18708         * modules/ftello (Depends-on): Add ftell.
18709         * modules/ftell (License): Change to LGPLv2+.
18710
18711 2011-05-07  Bruno Haible  <bruno@clisp.org>
18712
18713         ftell: Move AC_LIBOBJ invocations to module description.
18714         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18715         * modules/ftell (configure.ac): ... to here.
18716
18717 2011-05-07  Bruno Haible  <bruno@clisp.org>
18718
18719         ftello: Respect rules for use of AC_LIBOBJ.
18720         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18721         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18722         here...
18723         * modules/ftello (configure.ac): ... to here.
18724
18725 2011-05-07  Bruno Haible  <bruno@clisp.org>
18726
18727         fseeko: Simplify.
18728         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18729         (gl_FUNC_FSEEKO): Inline it here.
18730
18731 2011-05-07  Bruno Haible  <bruno@clisp.org>
18732
18733         fseek: Move AC_LIBOBJ invocations to module description.
18734         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18735         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18736         * modules/fseek (configure.ac): ... to here.
18737
18738 2011-05-07  Bruno Haible  <bruno@clisp.org>
18739
18740         fseek: Respect rules for use of AC_LIBOBJ.
18741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18742         here...
18743         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18744
18745 2011-05-07  Bruno Haible  <bruno@clisp.org>
18746
18747         fseeko: Respect rules for use of AC_LIBOBJ.
18748         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18749         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18750         here...
18751         * modules/fseeko (configure.ac): ... to here.
18752
18753 2011-06-13  Bruno Haible  <bruno@clisp.org>
18754
18755         gnulib-tool: Allow comments in the 'Depends-on' section.
18756         * doc/gnulib.texi (Module description): Mention comment syntax in the
18757         Depends-on section.
18758         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18759
18760 2011-06-13  Bruno Haible  <bruno@clisp.org>
18761
18762         file-set.h: guard __attibute__ use, now that it's not always defined
18763         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18764         versions that support it.  This fixes a coreutils build failure with
18765         the vendor cc on HP-UX 11.31.
18766
18767 2011-06-12  Bruno Haible  <bruno@clisp.org>
18768
18769         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18770         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18771         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18772         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18773         (acl, aclsort): New declarations.
18774         (aclv_nontrivial): New declaration.
18775         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18776         (file_has_acl): Read also the second kind of HP-UX ACLs.
18777         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18778         kind of HP-UX ACLs if the first kind fails.
18779         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18780         second kind of HP-UX ACLs.
18781         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18782         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18783         agree.
18784         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18785         hpuxjfs.
18786         Handle hpuxjfs.
18787         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18788         hpuxjfs.
18789         Handle hpuxjfs.
18790         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18791         (func_test_same_acls): Use both lsacl and getacl.
18792         Handle hpuxjfs.
18793         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18794         (func_test_same_acls): Use both lsacl and getacl.
18795         Handle hpuxjfs.
18796
18797 2011-06-12  Bruno Haible  <bruno@clisp.org>
18798
18799         acl: Complete the 2010-08-10 fix.
18800         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18801         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18802         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18803         explicitly.
18804         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18805         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18806
18807 2011-06-12  Bruno Haible  <bruno@clisp.org>
18808
18809         spawn-pipe tests: Comments.
18810         * tests/test-spawn-pipe-child.c (main): Update comment.
18811         Reported by James Youngman <jay@gnu.org>.
18812
18813 2011-06-11  James Youngman  <jay@gnu.org>
18814
18815         New module 'stat-size'.
18816         * modules/stat-size: New module.  Provides macros for accessing
18817         file size information in instances of struct stat.  Depends on the
18818         fileblocks module because it calls st_blocks.
18819         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18820         * doc/gnulib.texi: Include stat-size.texi.
18821         * doc/stat-size.texi: Documentation for this module.
18822         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18823         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18824         AC_STRUCT_ST_BLOCKS.
18825
18826 2011-06-09  Bruno Haible  <bruno@clisp.org>
18827
18828         thread: Support pthreads-win32.
18829         * lib/glthread/thread.h (gl_thread_self): Define differently on
18830         pthreads-win32.
18831         (gl_null_thread): New declaration.
18832         (gl_thread_self_pointer): New macro.
18833         * lib/glthread/thread.c (gl_null_thread): New constant.
18834         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18835         gl_thread_self.
18836         * tests/test-tls.c: Likewise.
18837         Suggested by Paul Eggert. Reported by Eric Blake.
18838
18839 2011-06-09  Bruno Haible  <bruno@clisp.org>
18840
18841         thread: Fix confusion between NULL and 0.
18842         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18843         Reported by Paul Eggert.
18844
18845 2011-06-09  Bruno Haible  <bruno@clisp.org>
18846
18847         spawn-pipe tests: Avoid test failure on HP-UX 11.
18848         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18849         is closed.
18850
18851 2011-06-09  Bruno Haible  <bruno@clisp.org>
18852
18853         acl tests: Fix compilation error on HP-UX 11.
18854         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18855
18856 2011-06-09  Bruno Haible  <bruno@clisp.org>
18857
18858         rmdir: Avoid test failure on HP-UX 10.20.
18859         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18860         EEXIST.
18861
18862 2011-06-08  Eric Blake  <eblake@redhat.com>
18863
18864         perror: fix test on mingw
18865         * modules/perror-tests (Depends-on): Add dup2.
18866
18867         strerror_r-posix: fix on MacOS
18868         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18870         logic bug.
18871         * lib/strerror_r.c (strerror_r): Fix the bug.
18872         * lib/strerror.c (strerror): Likewise.
18873         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18874         problem.
18875         * doc/posix-functions/strerror.texi (strerror): Likewise.
18876         * doc/posix-functions/perror.texi (perror): Likewise.
18877         * tests/test-strerror.c (main): Enhance test.
18878         * tests/test-strerror_r.c (main): Likewise.
18879
18880 2011-06-08  Bruno Haible  <bruno@clisp.org>
18881
18882         gnulib-tool: Better isolation between different gnulib-tool invocations.
18883         * gnulib-tool: New option --witness-c-macro.
18884         (witness_c_macro): New variable.
18885         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18886         AM_CPPFLAGS define it as a C macro.
18887         (func_emit_tests_Makefile_am): Likewise.
18888         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18889         read it from there.
18890         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18891         m4_define, not AC_DEFUN.
18892         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18893         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18894         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18895         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18896         s|...|...|, to substitute the values of the GNULIB_* module indicator
18897         variables.
18898         * modules/dirent (Makefile.am): Likewise.
18899         * modules/fcntl-h (Makefile.am): Likewise.
18900         * modules/iconv-h (Makefile.am): Likewise.
18901         * modules/langinfo (Makefile.am): Likewise.
18902         * modules/locale (Makefile.am): Likewise.
18903         * modules/math (Makefile.am): Likewise.
18904         * modules/netdb (Makefile.am): Likewise.
18905         * modules/poll-h (Makefile.am): Likewise.
18906         * modules/pty (Makefile.am): Likewise.
18907         * modules/search (Makefile.am): Likewise.
18908         * modules/signal (Makefile.am): Likewise.
18909         * modules/spawn (Makefile.am): Likewise.
18910         * modules/stdio (Makefile.am): Likewise.
18911         * modules/stdlib (Makefile.am): Likewise.
18912         * modules/string (Makefile.am): Likewise.
18913         * modules/sys_ioctl (Makefile.am): Likewise.
18914         * modules/sys_select (Makefile.am): Likewise.
18915         * modules/sys_socket (Makefile.am): Likewise.
18916         * modules/sys_stat (Makefile.am): Likewise.
18917         * modules/sys_times (Makefile.am): Likewise.
18918         * modules/sys_utsname (Makefile.am): Likewise.
18919         * modules/sys_wait (Makefile.am): Likewise.
18920         * modules/termios (Makefile.am): Likewise.
18921         * modules/time (Makefile.am): Likewise.
18922         * modules/unistd (Makefile.am): Likewise.
18923         * modules/wchar (Makefile.am): Likewise.
18924
18925 2011-06-08  Eric Blake  <eblake@redhat.com>
18926
18927         strerror: simplify replacement
18928         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18929         * modules/strerror (configure.ac): No prereqs needed here...
18930         * modules/strerror-override (configure.ac): ...but this needs it.
18931         (Files): Add file for needed prereq macro.
18932
18933 2011-06-08  Bruno Haible  <bruno@clisp.org>
18934
18935         strerror_r-posix: Tweaks.
18936         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18937         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18938         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18939         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18940         (gl_FUNC_STRERROR_R): ... to here.
18941         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18942
18943 2011-06-07  Eric Blake  <eblake@redhat.com>
18944
18945         perror: document fixed bugs
18946         * doc/posix-functions/perror.texi (perror): Document recent
18947         patches.
18948
18949 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18950
18951         stat-time: get_stat_birthtime failure is better-defined
18952         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18953         return a timestamp whose tv_sec and tv_nsec values are both -1.
18954         Previously, the spec said only that the tv_nsec value was negative.
18955         This upward-compatible change simplifies GNU tar a bit.
18956
18957 2011-06-07  Eric Blake  <eblake@redhat.com>
18958
18959         strerror_r-posix: work around cygwin 1.7.9
18960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18961         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18962         bug without replacing strerror_r.
18963         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18964         strerror_r is buggy, but without requiring strerror_r compilation.
18965         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18966
18967         test-perror: relax test to ignore cygwin bug
18968         * tests/test-perror2.c (main): Relax test on requiring detection
18969         of stream errors, and use unbuffered stream.
18970         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18971         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18972         * doc/posix-functions/fputc.texi (fputc): Likewise.
18973         * doc/posix-functions/fputs.texi (fputs): Likewise.
18974         * doc/posix-functions/fputws.texi (fputws): Likewise.
18975         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18976         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18977         * doc/posix-functions/getopt.texi (getopt): Likewise.
18978         * doc/posix-functions/perror.texi (perror): Likewise.
18979         * doc/posix-functions/printf.texi (printf): Likewise.
18980         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18981         * doc/posix-functions/psignal.texi (psignal): Likewise.
18982         * doc/posix-functions/putc.texi (putc): Likewise.
18983         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18984         Likewise.
18985         * doc/posix-functions/putchar.texi (putchar): Likewise.
18986         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18987         Likewise.
18988         * doc/posix-functions/puts.texi (puts): Likewise.
18989         * doc/posix-functions/putwc.texi (putwc): Likewise.
18990         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18991         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18992         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18993         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18994         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18995         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18996         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18997         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18998
18999 2011-05-22  Bruno Haible  <bruno@clisp.org>
19000
19001         strerror: Move AC_LIBOBJ invocations to module description.
19002         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19003         gl_PREREQ_STRERROR invocations from here...
19004         * modules/strerror (configure.ac): ... to here.
19005
19006 2011-05-21  Bruno Haible  <bruno@clisp.org>
19007
19008         perror: Use common idiom.
19009         * modules/perror (configure.ac): Reorder statements.
19010
19011 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19012
19013         tests: fix usage message in 'mktempd_'
19014         * tests/init.sh (mktempd_): In the usage message, use literal
19015         'mktempd_', not '$ME' (which is even undefined), as the name of
19016         the subroutine.
19017
19018 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19019
19020         tests init: new function 'fatal_', for hard errors
19021         Before this patch, the only way offered by tests/init.sh to
19022         properly signal a hard error was the `framework_failure_'
19023         function.  But the error message issued by that function,
19024         as its name would suggest, refers to a set-up failure in the
19025         testsuite, while hard errors can obviously also be due to
19026         other reasons.  The best way to fix this inconsistency is to
19027         introduce a new function with a more general error message.
19028         * tests/init.sh (fatal_): New function.
19029
19030 2011-06-06  Eric Blake  <eblake@redhat.com>
19031
19032         canonicalize-lgpl: use common idiom
19033         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19034         over newer POSIX -Rf.
19035         Reported by Bruno Haible.
19036
19037         canonicalize-lgpl: work around AIX realpath bug
19038         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19039         * doc/posix-functions/realpath.texi (realpath): Document it.
19040         Reported by Bruno Haible.
19041
19042         strerror: work around FreeBSD bug
19043         * lib/strerror.c (strerror): Special case 0.
19044         Reported by Bruno Haible.
19045
19046         strerror-override: avoid bloating errno module
19047         * modules/errno (Files, configure.ac): Move replacement strings...
19048         * modules/strerror-override: ...to new module.
19049         * modules/strerror (Depends-on): Add strerror-override.
19050         * modules/strerror_r-posix (Depends-on): Likewise.
19051         * MODULES.html.sh: Document new module.
19052         Reported by Bruno Haible.
19053
19054 2011-06-06  Bruno Haible  <bruno@clisp.org>
19055
19056         spawn-pipe tests: Rename program.
19057         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19058         * tests/test-spawn-pipe-child.c: Update comment.
19059         * tests/test-spawn-pipe.sh: Update.
19060         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19061
19062         spawn-pipe tests: Link the child program only against libc.
19063         * tests/test-spawn-pipe-child.c: New file, extracted from
19064         tests/test-spawn-pipe.c.
19065         (main): Expect only one argument.
19066         (is_open): New function, copied from tests/test-pipe.c.
19067         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19068         (child_main): Remove function.
19069         (test_pipe): Pass only one argument to the child program.
19070         (main): Remove child process code. Expect the child program's name as
19071         first argument.
19072         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19073         argument.
19074         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19075         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19076         test-spawn-pipe-child against no libraries.
19077
19078 2011-06-06  Bruno Haible  <bruno@clisp.org>
19079
19080         careadlinkat: Avoid mismatch between ssize_t and int.
19081         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19082         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19083
19084 2011-06-06  Jim Meyering  <meyering@redhat.com>
19085
19086         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19087         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19088         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19089
19090 2011-06-05  Bruno Haible  <bruno@clisp.org>
19091
19092         ansi-c++-opt: Interoperability with libtool.
19093         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19094         set the variable to "no", not to ":".
19095         * NEWS: Mention the change.
19096
19097 2011-06-05  Bruno Haible  <bruno@clisp.org>
19098
19099         acl: Fix test failure on AIX 7.
19100         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19101         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19102
19103 2011-06-05  Bruno Haible  <bruno@clisp.org>
19104
19105         pipe-filter-ii: Fix test failure on AIX and IRIX.
19106         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19107         with EAGAIN, retry with a smaller buffer size.
19108
19109 2011-06-05  Bruno Haible  <bruno@clisp.org>
19110
19111         localename: Fix link dependencies.
19112         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19113         * modules/localename-tests (Makefile.am): Link test-localename with
19114         $(LIBTHREAD).
19115
19116 2011-06-05  Bruno Haible  <bruno@clisp.org>
19117
19118         error: Avoid gcc warning.
19119         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19120
19121 2011-06-05  Bruno Haible  <bruno@clisp.org>
19122
19123         unsetenv: Avoid gcc warning.
19124         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19125
19126 2011-06-05  Bruno Haible  <bruno@clisp.org>
19127
19128         setenv: Avoid gcc warning.
19129         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19130
19131 2011-06-05  Bruno Haible  <bruno@clisp.org>
19132
19133         sys_select: Ensure memset is declared also on AIX 7.
19134         * lib/sys_select.in.h: Include <string.h> also on AIX.
19135         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19136         self-contained also on AIX 7.1.
19137
19138 2011-06-04  Jim Meyering  <meyering@redhat.com>
19139
19140         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19141         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19142         function name, "error".
19143         (_gl_translatable_diag_func_re): New configurable variable.
19144
19145 2011-06-04  Bruno Haible  <bruno@clisp.org>
19146
19147         getopt: Avoid gcc warning.
19148         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19149
19150 2011-06-04  Bruno Haible  <bruno@clisp.org>
19151
19152         strerror_r: Fix comments.
19153         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19154         commit.
19155
19156 2011-06-04  Bruno Haible  <bruno@clisp.org>
19157
19158         perror: Fix compilation error.
19159         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19160         Undefine fprintf, not sprintf.
19161         * modules/perror (Depends-on): Remove intprops, verify.
19162
19163 2011-06-04  Bruno Haible  <bruno@clisp.org>
19164
19165         setlocale: Enable replacement on Cygwin 1.5.
19166         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19167         Cygwin 1.5.x.
19168         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19169         LC_CTYPE category also exists on Cygwin 1.5.x.
19170
19171 2011-06-04  Bruno Haible  <bruno@clisp.org>
19172
19173         strerror-override: Don't disable symbol renamings.
19174         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19175         * lib/strerror-override.c: Include config.h.
19176         (strerror_override): Don't undefine.
19177
19178 2011-06-03  Bruno Haible  <bruno@clisp.org>
19179
19180         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19181         * lib/localename.h: Update copyright header.
19182         * lib/localename.c: Likewise.
19183         * lib/relocatable.h: Likewise.
19184         * lib/relocatable.c: Likewise.
19185
19186 2011-06-02  Bruno Haible  <bruno@clisp.org>
19187
19188         doc: Fix a module name.
19189         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19190
19191 2011-06-02  Bruno Haible  <bruno@clisp.org>
19192
19193         pipe2: Remove dependency on 'nonblocking' module.
19194         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19195         O_NONBLOCK is defined by gnulib.
19196         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19197         is zero.
19198         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19199         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19200         defined by gnulib.
19201         (get_nonblocking_flag): New function.
19202         (main): Test O_NONBLOCK flag only if it is nonzero.
19203         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19204
19205 2011-06-03  Jim Meyering  <meyering@redhat.com>
19206
19207         maint: three new prohibit-header-without-use rules
19208         Prohibit use of cloexec.h, posixver.h, same.h without use.
19209         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19210         (sc_prohibit_posixver_without_use): Likewise.
19211         (sc_prohibit_same_without_use): Likewise.
19212
19213 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         allocator: 'die' routine is now given requested size
19216         * lib/allocator.h (struct allocator.die): New size arg.
19217         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19218         If the actual problem is an ssize_t limitation, not a size_t or
19219         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19220
19221 2011-06-01  Eric Blake  <eblake@redhat.com>
19222
19223         strerror: drop strerror_r dependency
19224         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19225         * lib/strerror-override.c (strerror_override): ...to new file.
19226         * lib/strerror-override.h: Add prototype.
19227         * lib/strerror-impl.h: Delete.
19228         * lib/strerror.c (strerror): New implementation.
19229         * modules/errno (Files): Add new files.
19230         (configure.ac): Compile new file as appropriate.
19231         * modules/strerror (Files): Drop unused file.
19232         (Depends-on): Drop strerror_r-posix.
19233         * MODULES.html.sh: Document strerror_r-posix.
19234         Requested by Sam Steingold.
19235
19236         perror: call strerror_r directly
19237         * modules/perror (Files): Drop strerror-impl.h.
19238         * lib/perror.c (perror): Use our own stack buffer, rather than
19239         calling a wrapper that uses static storage.
19240         * doc/posix-functions/perror.texi (perror): Document a limitation
19241         of our replacement.
19242
19243         strerror_r: fix includes for FreeBSD
19244         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19245         since we use abort on some platforms.
19246         Reported by Matthias Bolte.
19247
19248 2011-05-31  Bruno Haible  <bruno@clisp.org>
19249
19250         Fix link errors in tests: openat-die uses gettext-h.
19251         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19252         against $(LIBINTL).
19253         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19254         against $(LIBINTL).
19255         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19256         $(LIBINTL).
19257         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19258         against $(LIBINTL).
19259         * modules/linkat-tests (Makefile.am): Link test-linkat against
19260         $(LIBINTL).
19261         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19262         $(LIBINTL).
19263         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19264         against $(LIBINTL).
19265         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19266         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19267         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19268         $(LIBINTL).
19269         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19270         $(LIBINTL).
19271         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19272         $(LIBINTL).
19273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19274
19275 2011-05-31  Bruno Haible  <bruno@clisp.org>
19276
19277         Fix link errors in tests: wait-process uses gettext-h.
19278         * modules/nonblocking-pipe-tests (Makefile.am): Set
19279         test_nonblocking_pipe_main_LDADD.
19280         * modules/nonblocking-socket-tests (Makefile.am): Link
19281         test-nonblocking-socket-main against $(LIBINTL).
19282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19283
19284 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19285
19286         assert-h: work around 'verify' incompatibility
19287         * lib/verify.h: Use @...@ directives, not ifdef.
19288         * modules/assert-h (assert.h): Implement the directives.
19289         (assert.h): Substitute the symbol-prefix more consistently.
19290
19291 2011-05-29  Jim Meyering  <meyering@redhat.com>
19292
19293         trim: remove three superfluous assignments
19294         * lib/trim.c (trim2): Remove three superfluous assignments
19295         and correct brace positioning.
19296
19297 2011-05-29  Bruno Haible  <bruno@clisp.org>
19298
19299         wctype-h: Avoid namespace pollution on Solaris 2.6.
19300         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19301         identifiers.
19302         * doc/posix-headers/wctype.texi: Mention the problem.
19303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19304
19305 2011-05-28  Jim Meyering  <meyering@redhat.com>
19306
19307         parse-datetime.y: accommodate -Wstrict-overflow
19308         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19309         placate -Wstrict-overflow.
19310
19311         trim: avoid a warning from -O2 -Wstrict-overflow
19312         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19313
19314 2011-05-29  Bruno Haible  <bruno@clisp.org>
19315
19316         gnulib-tool: Fix bug in yesterday's commit.
19317         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19318         twice.
19319
19320 2011-05-29  Bruno Haible  <bruno@clisp.org>
19321
19322         Allow multiple gnulib generated include files to be combined.
19323         * gnulib-tool (func_compute_include_guard_prefix): New function.
19324         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19325         ${gl_include_guard_prefix} references.
19326         (func_import, func_create_testdir): Invoke
19327         func_compute_include_guard_prefix.
19328         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19329         * lib/ctype.in.h: Likewise.
19330         * lib/dirent.in.h: Likewise.
19331         * lib/errno.in.h: Likewise.
19332         * lib/fcntl.in.h: Likewise.
19333         * lib/float.in.h: Likewise.
19334         * lib/getopt.in.h: Likewise.
19335         * lib/iconv.in.h: Likewise.
19336         * lib/langinfo.in.h: Likewise.
19337         * lib/locale.in.h: Likewise.
19338         * lib/math.in.h: Likewise.
19339         * lib/netdb.in.h: Likewise.
19340         * lib/netinet_in.in.h: Likewise.
19341         * lib/poll.in.h: Likewise.
19342         * lib/pthread.in.h: Likewise.
19343         * lib/pty.in.h: Likewise.
19344         * lib/sched.in.h: Likewise.
19345         * lib/se-selinux.in.h: Likewise.
19346         * lib/search.in.h: Likewise.
19347         * lib/signal.in.h: Likewise.
19348         * lib/spawn.in.h: Likewise.
19349         * lib/stdarg.in.h: Likewise.
19350         * lib/stddef.in.h: Likewise.
19351         * lib/stdint.in.h: Likewise.
19352         * lib/stdio.in.h: Likewise.
19353         * lib/stdlib.in.h: Likewise.
19354         * lib/string.in.h: Likewise.
19355         * lib/strings.in.h: Likewise.
19356         * lib/sys_file.in.h: Likewise.
19357         * lib/sys_ioctl.in.h: Likewise.
19358         * lib/sys_select.in.h: Likewise.
19359         * lib/sys_socket.in.h: Likewise.
19360         * lib/sys_stat.in.h: Likewise.
19361         * lib/sys_time.in.h: Likewise.
19362         * lib/sys_times.in.h: Likewise.
19363         * lib/sys_uio.in.h: Likewise.
19364         * lib/sys_utsname.in.h: Likewise.
19365         * lib/sys_wait.in.h: Likewise.
19366         * lib/sysexits.in.h: Likewise.
19367         * lib/termios.in.h: Likewise.
19368         * lib/time.in.h: Likewise.
19369         * lib/unistd.in.h: Likewise.
19370         * lib/wchar.in.h: Likewise.
19371         * lib/wctype.in.h: Likewise.
19372         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19373         * modules/ctype (Makefile.am): Likewise.
19374         * modules/dirent (Makefile.am): Likewise.
19375         * modules/errno (Makefile.am): Likewise.
19376         * modules/fcntl-h (Makefile.am): Likewise.
19377         * modules/float (Makefile.am): Likewise.
19378         * modules/getopt-posix (Makefile.am): Likewise.
19379         * modules/iconv-h (Makefile.am): Likewise.
19380         * modules/langinfo (Makefile.am): Likewise.
19381         * modules/locale (Makefile.am): Likewise.
19382         * modules/math (Makefile.am): Likewise.
19383         * modules/netdb (Makefile.am): Likewise.
19384         * modules/netinet_in (Makefile.am): Likewise.
19385         * modules/poll-h (Makefile.am): Likewise.
19386         * modules/pthread (Makefile.am): Likewise.
19387         * modules/pty (Makefile.am): Likewise.
19388         * modules/sched (Makefile.am): Likewise.
19389         * modules/search (Makefile.am): Likewise.
19390         * modules/selinux-h (Makefile.am): Likewise.
19391         * modules/signal (Makefile.am): Likewise.
19392         * modules/spawn (Makefile.am): Likewise.
19393         * modules/stdarg (Makefile.am): Likewise.
19394         * modules/stddef (Makefile.am): Likewise.
19395         * modules/stdint (Makefile.am): Likewise.
19396         * modules/stdio (Makefile.am): Likewise.
19397         * modules/stdlib (Makefile.am): Likewise.
19398         * modules/string (Makefile.am): Likewise.
19399         * modules/strings (Makefile.am): Likewise.
19400         * modules/sys_file (Makefile.am): Likewise.
19401         * modules/sys_ioctl (Makefile.am): Likewise.
19402         * modules/sys_select (Makefile.am): Likewise.
19403         * modules/sys_socket (Makefile.am): Likewise.
19404         * modules/sys_stat (Makefile.am): Likewise.
19405         * modules/sys_time (Makefile.am): Likewise.
19406         * modules/sys_times (Makefile.am): Likewise.
19407         * modules/sys_uio (Makefile.am): Likewise.
19408         * modules/sys_utsname (Makefile.am): Likewise.
19409         * modules/sys_wait (Makefile.am): Likewise.
19410         * modules/sysexits (Makefile.am): Likewise.
19411         * modules/termios (Makefile.am): Likewise.
19412         * modules/time (Makefile.am): Likewise.
19413         * modules/unistd (Makefile.am): Likewise.
19414         * modules/wchar (Makefile.am): Likewise.
19415         * modules/wctype-h (Makefile.am): Likewise.
19416         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19417
19418 2011-05-29  Bruno Haible  <bruno@clisp.org>
19419
19420         assert-h: Allow multiple gnulib generated replacements to coexist.
19421         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19422
19423 2011-05-29  Bruno Haible  <bruno@clisp.org>
19424
19425         argp: Allow coexistence with strerror_r-posix module.
19426         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19427         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19428         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19429         not the glibc signature.
19430
19431 2011-05-28  Bruno Haible  <bruno@clisp.org>
19432
19433         gnulib-tool: Alternative structure of testdirs, similar to --import.
19434         * gnulib-tool: New option --single-configure.
19435         (func_usage): Document it.
19436         (single_configure): New variable.
19437         (func_modules_transitive_closure_separately,
19438         func_modules_transitive_closure_separately,
19439         func_determine_use_libtests, func_modules_add_dummy_separately,
19440         func_modules_to_filelist_separately): New functions, extracted from
19441         func_import.
19442         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19443         (func_import): Use the new functions.
19444         (func_create_testdir): Set final_modules. Handle $single_configure =
19445         true case.
19446
19447 2011-05-28  Bruno Haible  <bruno@clisp.org>
19448
19449         getloadavg: Remove an unreliable safety check.
19450         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19451         getloadavg.c is in place.
19452         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19453         Reported by Sam Steingold <sds@gnu.org>.
19454
19455 2011-05-28  Bruno Haible  <bruno@clisp.org>
19456
19457         doc: Cleanup yet another file produced by texinfo.tex.
19458         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19459
19460 2011-05-28  Bruno Haible  <bruno@clisp.org>
19461
19462         Finish the conditional dependencies mechanism.
19463         * gnulib-tool: New option --no-conditional-dependencies.
19464         (func_usage): Document it. Don't mark --conditional-dependencies as
19465         experimental.
19466         (cond_dependencies): The possible values can now be true, false, empty.
19467         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19468         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19469         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19470
19471 2011-05-28  Bruno Haible  <bruno@clisp.org>
19472
19473         doc: Use a recent texinfo.tex.
19474         * doc/Makefile (tex_opts): New variable.
19475         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19476
19477 2011-05-28  Jim Meyering  <meyering@redhat.com>
19478
19479         intprops.h: adjust comment to match code change
19480         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19481         only once, it *may* have side effects.  Also fix an unrelated typo.
19482         (_GL_INT_SIGNED): Likewise.
19483
19484 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19485
19486         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19487
19488 2011-05-26  Bruno Haible  <bruno@clisp.org>
19489
19490         mbsrchr: Avoid collision with system function on Interix.
19491         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19492         Reported by Markus Duft <mduft@gentoo.org>.
19493
19494 2011-05-15  James Youngman  <jay@gnu.org>
19495
19496         getopt: for ambiguous options, enumerate the possibilities.
19497         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19498         the ambiguous options when an ambiguous prefix is given. This was
19499         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19500         glibc change was
19501         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19502
19503 2011-05-25  Eric Blake  <eblake@redhat.com>
19504
19505         getcwd: work around mingw bug
19506         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19507         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19508         Reported by Matthias Bolte.
19509
19510 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         test-intprops: disable -Wtype-limits diagnostics
19513         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19514         diagnostics.  Otherwise, the integer overflow macros generate many
19515         diagnostics.  Reported by Jim Meyering in
19516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19517
19518         intprops: shorten, to pacify gcc -Woverlength-strings
19519         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19520         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19521         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19522         likely to run afoul of C compiler limits for string constant lengths.
19523         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19524
19525 2011-05-24  Eric Blake  <eblake@redhat.com>
19526
19527         docs: document recently fixed glibc printf bug
19528         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19529         * doc/posix-functions/printf.texi (printf): Likewise.
19530         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19531         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19532
19533         closein-tests: convert to init.sh
19534         * modules/closein-tests (Files): Add init.sh
19535         * tests/test-closein.sh Use it.
19536
19537         yesno-tests: convert to init.sh
19538         * modules/yesno-tests (Files): Add init.sh.
19539         * tests/test-yesno.sh: Use it.
19540
19541         atexit-tests: ensure reliable exit status
19542         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19543         Reported by Bruno Haible.
19544
19545 2011-05-24  Bruno Haible  <bruno@clisp.org>
19546
19547         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19548         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19549         gl_PREREQ_STRERROR_R invocations from here...
19550         * modules/strerror_r-posix (configure.ac): ... to here.
19551
19552 2011-05-24  Eric Blake  <eblake@redhat.com>
19553
19554         strerror_r: fix missing header
19555         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19556
19557         strerror_r: fix AIX test failures
19558         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19559         ERANGE failure.
19560
19561         strerror_r: fix Solaris test failures
19562         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19563         failures.
19564         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19565
19566         strerror_r: enforce POSIX recommendations
19567         * lib/strerror_r.c (safe_copy): New helper method.
19568         (strerror_r): Guarantee a non-empty string.
19569         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19570         recent POSIX rulings and to match our strerror guarantees.
19571         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19572
19573 2011-05-24  Jim Meyering  <meyering@redhat.com>
19574
19575         test-perror2.c: avoid warning about unused variable
19576         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19577
19578 2011-05-24  Eric Blake  <eblake@redhat.com>
19579
19580         perror: avoid spurious test failure on HP-UX
19581         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19582
19583         tests: fix logic bug in init.sh
19584         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19585         shell.
19586
19587 2011-05-24  Jim Meyering  <meyering@redhat.com>
19588
19589         utimensat: do not reference an out-of-scope buffer
19590         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19591         declared in an inner scope, yet "times" would be dereferenced outside
19592         the scope in which "ts" was valid.
19593         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19594         of ts[2] "out/up", so that the use of aliased "times" (via
19595         "times = ts;") does not end up referencing an out-of-scope "ts"
19596
19597         opendir-safer.c: don't clobber errno; don't close negative FD
19598         * lib/opendir-safer.c (opendir_safer):
19599         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19600         file descriptor, and more importantly, don't clobber the
19601         offending errno value with EINVAL.  Before, upon failure
19602         of dup_safer, we would pass the negative file descriptor to
19603         fdopendir, which would clobber errno.
19604
19605 2011-05-23  Bruno Haible  <bruno@clisp.org>
19606
19607         idcache: Fix module description.
19608         * modules/idcache (Include): Set to "idcache.h".
19609
19610 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19611
19612         gnulib-tool: fix portability problem with MacOS sed
19613         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19614         before the "}".  Problem reported by Leo in
19615         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19616         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19617         sed_extract_condition1, sed_extract_condition2.
19618
19619 2011-05-23  Bruno Haible  <bruno@clisp.org>
19620
19621         hash: Simplify autoconf macro.
19622         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19623
19624 2011-05-23  Bruno Haible  <bruno@clisp.org>
19625
19626         getugroups: Fix module description.
19627         * modules/getugroups (Include): Set to "getugroups.h".
19628
19629 2011-05-23  Bruno Haible  <bruno@clisp.org>
19630
19631         linkat: Simplify autoconf macro.
19632         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19633
19634 2011-05-23  Bruno Haible  <bruno@clisp.org>
19635             Eric Blake  <eblake@redhat.com>
19636
19637         linkat, renameat: Update dependencies.
19638         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19639         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19640         symlinkat.
19641
19642 2011-05-23  Jim Meyering  <meyering@redhat.com>
19643
19644         maint.mk: more tight_scope improvements
19645         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19646         (_gl_TS_headers): Define only in if-0'd block.
19647         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19648         sometimes we must *not* use it.  Adjust uses accordingly.
19649         (sc_tight_scope): Use much simpler grep-based test to determine
19650         whether we skip this rule.
19651
19652         maint.mk: generalize/improve the tight-scope rule
19653         * top/maint.mk: Emit a warning when the test is skipped.
19654         (_gl_TS_dir): Add $(srcdir)/ prefix.
19655         (_gl_TS_function_match): Simplify, rather than trying
19656         to enumerate common types.  Otherwise, it would fail to match an
19657         "extern unsigned char const *" declaration in idutils.
19658         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19659         a way to support use of that type of macro.
19660         (_gl_TS_var_match): Simplify regexp.
19661         (_gl_TS_obj_files): New configurable variable.
19662         (_gl_TS_headers): Likewise.
19663
19664 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19665
19666         verify: fix bug when gnulib <assert.h> is also included
19667         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19668         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19669         Perhaps there's a better way, but this fixes the immediate problem.
19670         Problem reported by Bruno Haible in
19671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19672
19673 2011-05-22  Bruno Haible  <bruno@clisp.org>
19674
19675         xgetcwd: Simplify autoconf macro.
19676         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19677
19678 2011-05-22  Bruno Haible  <bruno@clisp.org>
19679
19680         New module 'mktime-internal'.
19681         * modules/mktime-internal: New file.
19682         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19683         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19684         mktime_internal as a C macro if libc has __mktime_internal.
19685         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19686         conditions.
19687         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19688
19689 2011-05-22  Bruno Haible  <bruno@clisp.org>
19690
19691         timegm: Correct mktime replacement statements.
19692         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19693         defining mktime as a C macro. This completes a 2009-07-28 commit.
19694
19695 2011-05-22  Bruno Haible  <bruno@clisp.org>
19696
19697         timegm: Simplify autoconf macro.
19698         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19699
19700 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19701
19702         clock-time: change to LGPLv2+.
19703         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19704         BSD-like but we have no mark for that; this is good enough for now.
19705
19706 2011-05-21  Bruno Haible  <bruno@clisp.org>
19707
19708         strerror_r: Fix comments.
19709         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19710
19711 2011-05-21  Bruno Haible  <bruno@clisp.org>
19712
19713         relocatable-prog-wrapper: Fix possible link error.
19714         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19715         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19716         (gl_FUNC_SETENV): ... to here.
19717         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19718         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19719
19720 2011-05-21  Bruno Haible  <bruno@clisp.org>
19721
19722         relocatable-prog-wrapper: Assume strerror() exists.
19723         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19724         m4/strerror.m4.
19725         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19726         * lib/relocwrapper.c: Remove mention of strerror module.
19727         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19728         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19729         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19730         C macro.
19731
19732 2011-05-21  Bruno Haible  <bruno@clisp.org>
19733
19734         select: Simplify replacement idiom.
19735         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19736         Win32 platforms.
19737         * lib/sys_select.in.h (select): Simplify accordingly.
19738         * modules/select (Depends-on): Likewise.
19739
19740 2011-05-21  Bruno Haible  <bruno@clisp.org>
19741
19742         mkdir-p: Simplify autoconf macro.
19743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19744         gl_FUNC_LCHOWN.
19745
19746 2011-05-21  Eric Blake  <eblake@redhat.com>
19747
19748         strerror_r: avoid clobbering strerror on cygwin
19749         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19750         fall back instead to sys_errlist.
19751         * modules/strerror (configure.ac): Add witness.
19752         * tests/test-strerror_r.c (main): Enhance test.
19753         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19754         * tests/test-perror2.c (main): Free memory before exit.
19755
19756 2011-05-21  Bruno Haible  <bruno@clisp.org>
19757
19758         mkdtemp: Use gnulib naming conventions.
19759         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19760         * modules/mkdtemp (configure.ac): Update.
19761
19762 2011-05-20  Eric Blake  <eblake@redhat.com>
19763
19764         strerror_r: avoid corrupting errno on Solaris
19765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19766         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19767
19768         strerror_r: avoid compiler warning
19769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19770
19771         strerror_r: simplify AIX code
19772         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19773
19774         test-perror: avoid spurious failure on FreeBSD
19775         * modules/perror-tests (Depends-on): Add strerror, now that
19776         strerror_r no longer pulls it in.
19777
19778 2011-05-20  Bruno Haible  <bruno@clisp.org>
19779
19780         strerror_r-posix: Remove unused dependencies.
19781         * modules/strerror_r-posix (Depends-on): Remove strerror.
19782         Reported by Eric Blake.
19783
19784 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19785
19786         intprops: remove assumption about A|B representation
19787         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19788         is a valid integer if both A and B are.  Although this is true for
19789         all known practical hosts, the C standard doesn't guarantee it,
19790         and the code need not assume it.  Also, this change may work around
19791         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19793
19794 2011-05-20  Eric Blake  <eblake@redhat.com>
19795
19796         perror: work around FreeBSD bug
19797         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19798         is broken.  Move AC_LIBOBJ...
19799         * modules/perror (configure.ac): Here.
19800         * doc/posix-functions/perror.texi (perror): Document this.
19801         * tests/test-perror2.c (main): Enhance test.
19802
19803         test-perror: check for strerror interactions
19804         * tests/macros.h (STREQ): Add macro.
19805         * modules/perror-tests (Files): Add second test.
19806         * tests/test-perror2.c (main): New file.
19807         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19808
19809         test-perror: rewrite to use init script
19810         * modules/perror-tests (Files): Add init.sh.
19811         * tests/test-perror.sh: Use temporary directory.
19812
19813 2011-05-20  Jim Meyering  <meyering@redhat.com>
19814
19815         maint: replace misused "a" with "an"
19816         * doc/intprops.texi: "a integer"
19817         * doc/regex.texi: "a explanation"
19818         * lib/alignof.h: "a object"
19819         * lib/argmatch.h: "a explanation"
19820         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19821         * lib/stdint.in.h: "a integer"
19822         * lib/userspec.c: "a owner"
19823         * doc/gnulib.texi: Fix "a idea", and reword.
19824
19825 2011-05-19  Jim Meyering  <meyering@redhat.com>
19826
19827         maint: correct misuse of "a" and "an"
19828         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19829         * lib/argp-help.c: "an docum...": s/an/a/
19830         * lib/argp-parse.c: "An vector": s/An/A/
19831         * lib/execute.c: "an native": s/an/a/
19832         * lib/spawn-pipe.c: Likewise.
19833         * lib/gc.h: "an Gc_rc": s/an/a/
19834         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19835         * lib/fts.c: "an stat.st_dev": s/an/a/
19836
19837 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19838
19839         intprops-tests: work around HP-UX 11.23 cc bug with constants
19840         * tests/test-intprops.c (VERIFY): New macro.
19841         (main): Use it, instead of verify, to work around the compiler bug; see
19842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19843
19844         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19845         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19846         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19847         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19848         (_GL_REMAINDER_OVERFLOW): Use it.
19849
19850         intprops-tests: revert unsigned part of previous change
19851         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19852         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19853         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19855
19856 2011-05-19  Bruno Haible  <bruno@clisp.org>
19857
19858         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19859         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19860         strerror_r() returned without filling the buffer.
19861         Reported by Eric Blake.
19862
19863 2011-05-19  Eric Blake  <eblake@redhat.com>
19864
19865         strerror_r: guarantee unchanged errno
19866         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19867         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19868         failure.
19869         * tests/test-strerror_r.c (main): Enhance test.
19870
19871 2011-05-19  Bruno Haible  <bruno@clisp.org>
19872
19873         strerror_r: Reorder #if blocks.
19874         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19875         for consistency with the previous commit.
19876
19877 2011-05-19  Bruno Haible  <bruno@clisp.org>
19878
19879         perror: Avoid clobbering the strerror buffer when possible.
19880         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19881         * lib/strerror.c: Include it.
19882         * modules/strerror (Files): Add lib/strerror-impl.h.
19883         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19884         (my_strerror): New function, defined through lib/strerror-impl.h.
19885         (perror): Use it instead of strerror.
19886         * modules/perror (Files): Add lib/strerror-impl.h.
19887         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19888
19889 2011-05-19  Eric Blake  <eblake@redhat.com>
19890
19891         strerror_r: fix on newer cygwin
19892         * lib/strerror_r.c (strerror_r): Cygwin now has
19893         __xpg_strerror_r, use it.
19894
19895 2011-05-19  Bruno Haible  <bruno@clisp.org>
19896
19897         strerror_r: Avoid clobbering the strerror buffer when possible.
19898         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19899         (sys_nerr, sys_errlist): New declarations.
19900         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19901         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19902         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19903
19904 2011-05-19  Bruno Haible  <bruno@clisp.org>
19905
19906         strerror_r: Fix test failure on mingw.
19907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19908         EXTEND_STRERROR_R.
19909         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19910         macros from errno.in.h instead.
19911
19912 2011-05-19  Eric Blake  <eblake@redhat.com>
19913
19914         strerror: relax test for Solaris
19915         * tests/test-strerror.c (main): Permit Solaris behavior.
19916         * tests/test-strerror_r.c (main): Likewise.
19917
19918         strerror: enforce POSIX ruling on strerror(0)
19919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19921         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19922         * doc/posix-functions/strerror.texi (strerror): Document it.
19923         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19924         * tests/test-strerror.c (main): Strengthen test.
19925         * tests/test-strerror_r.c (main): Likewise.
19926
19927 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         intprop-tests: port to older and more-pedantic compilers
19930         * modules/intprops-tests (Files): Add tests/macros.h.
19931         * tests/test-intprops.c: Include macros.h.
19932         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19933         it's no longer documented to expand to an integer constant expression.
19934         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19935         argument is floating point, as it's no longer documented to expand
19936         to an integer constant expression in that case.
19937         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19938         compiler bugs reported by Bruno Haible.  See
19939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19940         (U0, U1): New constants, to work around the same bugs.  Also,
19941         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19942
19943         intprops: work around C compiler bugs
19944         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19945         bug in Sun C 5.11 2010/08/13 and other compilers; see
19946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19947
19948         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19949         * doc/intprops.texi (Integer Type Determination): Fix
19950         documentation for TYPE_IS_INTEGER: it returns an constant
19951         expression, not an integer constant expression.  Fix doc for
19952         TYPE_SIGNED: it returns an integer constant expression only if its
19953         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19954         hardly worth documented that way....)
19955
19956 2011-05-18  Bruno Haible  <bruno@clisp.org>
19957
19958         strerror_r: Avoid clobbering the strerror buffer when possible.
19959         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19960         Handle gnulib defined errno values here. When strerror() returns NULL
19961         or an empty string, return EINVAL.
19962         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19963         gnulib defined errno values here.
19964         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19965
19966 2011-05-18  Eric Blake  <eblake@redhat.com>
19967
19968         fnmatch: avoid compiler warning
19969         * lib/fnmatch_loop.c (FCT): Use correct type.
19970         Reported by Matthias Bolte.
19971
19972 2011-05-13  Jim Meyering  <meyering@redhat.com>
19973
19974         maint.mk: three new prohibit_<HDR>_without_use rules
19975         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19976         (sc_prohibit_stdio-safer_without_use): Likewise.
19977         (sc_prohibit_xfreopen_without_use): Likewise.
19978
19979 2011-05-17  Jim Meyering  <meyering@redhat.com>
19980
19981         announce-gen: fail if the NEWS delta is empty
19982         If there's nothing noteworthy in NEWS, then either you forgot
19983         or you shouldn't be releasing.
19984         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19985
19986 2011-05-17  Pádraig Brady <P@draigBrady.com>
19987
19988         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19989         reserved symbols starting with double underscore from the check.
19990
19991 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19992
19993         intprops: add doc
19994         * doc/intprops.texi: New file, documenting intprops.
19995         * doc/gnulib.texi (Particular Modules): Include it.
19996
19997         verify: add doc to gnulib manual and fix example
19998         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19999         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20000         (Compile-time Assertions): Fix example so it can't overflow.
20001
20002 2011-05-17  Jim Meyering  <meyering@redhat.com>
20003
20004         warnings.m4: don't usurp save_CPPFLAGS variable name
20005         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20006
20007         doc: fix typo
20008         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20009
20010 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20011             Bruno Haible  <bruno@clisp.org>
20012
20013         doc: Tweak recent change.
20014         * README (Portability guidelines): Tweak new text.
20015         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20016         Interix 6.1.
20017
20018 2011-05-16  Eric Blake  <eblake@redhat.com>
20019
20020         inttypes: avoid autoconf warning
20021         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20022         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20023
20024 2011-05-16  Sam Steingold <sds@gnu.org>
20025         and Eric Blake  <eblake@redhat.com>
20026
20027         vc-list-files: accept multiple directory operands
20028         * build-aux/vc-list-files: Iterate over all remaining operands.
20029
20030 2011-05-16  Bruno Haible  <bruno@clisp.org>
20031
20032         Fix confusion regarding deprecated modules.
20033         * modules/calloc (Status, Notice): Mark module as deprecated, not
20034         obsolete.
20035         * modules/fnmatch-posix (Status, Notice): Likewise.
20036         * modules/getdate (Status, Notice): Likewise.
20037         * modules/getopt (Status, Notice): Likewise.
20038         * modules/malloc (Status, Notice): Likewise.
20039         * modules/pipe (Status, Notice): Likewise.
20040         * modules/realloc (Status, Notice): Likewise.
20041         * modules/rename-dest-slash (Status, Notice): Likewise.
20042         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20043         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20044         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20045         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20046         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20047
20048 2011-05-16  Bruno Haible  <bruno@clisp.org>
20049
20050         doc: List the target platforms.
20051         * doc/gnulib-intro.texi (Target Platforms): New section.
20052         * doc/gnulib.texi (Introduction): Update menu.
20053         * README (Portability guidelines): Refer to the new section. Update
20054         statement about oldest supported environment. Remove rationale why
20055         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20056         unportable C89 function.
20057         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20058         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20059
20060 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20063
20064 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20065
20066         intprops-tests: new module
20067         * modules/intprops-tests, tests/test-intprops.c: New files.
20068
20069         intprops: add safe, portable integer overflow checking
20070         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20071         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20072         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20073         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20074         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20075         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20076         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20077         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20078         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20079         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20080         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20081
20082 2011-05-12  James Youngman  <jay@gnu.org>
20083
20084         Add a test for glibc's Bugzilla bug #12378.
20085         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20086         doesn't allow the literal matching of a lone "[" (which is
20087         required by POSIX).
20088         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20089
20090 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20091
20092         Sync glibc change fixing Bugzilla bug #12378.
20093         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20094         beginning and fall back to matching as normal character if the
20095         string ends before the matching ']' is found.  This is what POSIX
20096         requires.
20097
20098 2011-05-13  Eric Blake  <eblake@redhat.com>
20099
20100         getcwd-lgpl: relax test for FreeBSD
20101         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20102         issue.
20103         * tests/test-getcwd-lgpl.c (main): Relax test.
20104         Reported by Matthias Bolte.
20105
20106 2011-05-11  Eric Blake  <eblake@redhat.com>
20107
20108         test-fflush: silence compiler warning
20109         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20110
20111 2011-05-11  Bruno Haible  <bruno@clisp.org>
20112
20113         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20115         * modules/canonicalize (Depends-on): Add 'nocrash'.
20116         * modules/canonicalize-lgpl (Depends-on): Likewise.
20117         * doc/posix-functions/realpath.texi: Update platforms list.
20118         Reported by Ryan Schmidt <ryandesign@macports.org>.
20119
20120 2011-05-11  Bruno Haible  <bruno@clisp.org>
20121
20122         group-member: Declare function in <unistd.h>.
20123         * lib/unistd.in.h (group_member): New declaration.
20124         * lib/group-member.h: Remove file.
20125         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20126         * tests/test-unistd-c++.cc: Check signature of group_member.
20127         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20128         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20129         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20130         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20131         HAVE_GROUP_MEMBER.
20132         * modules/group-member (Files): Remove lib/group-member.h.
20133         (Depends-on): Add unistd. Specify conditions.
20134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20135         (Include): Change to <unistd.h>.
20136         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20137         HAVE_GROUP_MEMBER.
20138         * NEWS: Mention the change.
20139         * lib/euidaccess.c: Don't include group-member.h.
20140
20141 2011-05-11  Bruno Haible  <bruno@clisp.org>
20142
20143         group-member: Document module.
20144         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20145         module.
20146
20147 2011-05-11  Bruno Haible  <bruno@clisp.org>
20148
20149         fclose: Fix mistake earlier today.
20150         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20151
20152 2011-05-11  Eric Blake  <eblake@redhat.com>
20153
20154         fclose: preserve fflush errors
20155         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20156         Reported by Jim Meyering.
20157
20158         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20159         * build-aux/bootstrap (check_versions): When no specific version
20160         is required, merely check that the app produces an exit status
20161         that indicates its existence.
20162
20163         maint.mk: drop redundant check
20164         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20165         the same but better.
20166
20167 2011-05-11  Bruno Haible  <bruno@clisp.org>
20168
20169         fclose: Fix possible link error.
20170         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20171         unregister_shadow_fd. Improve comments.
20172         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20173         Eric Blake.
20174
20175 2011-05-11  Jim Meyering  <meyering@redhat.com>
20176
20177         maint.mk: improve "can not" detection and generalize rule name
20178         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20179         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20180         Use the same technique as in sc_prohibit_doubled_word, so that
20181         we recognize "can not" also when the words are separated by a newline.
20182         Suggested by Eric Blake.
20183         (perl_filename_lineno_text_): Define.  Factored out of...
20184         (prohibit_doubled_word_): ...here.  Use the new definition.
20185         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20186         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20187         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20188
20189 2011-05-10  Eric Blake  <eblake@redhat.com>
20190
20191         fclose: avoid double close race when possible
20192         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20193         all but WINDOWS_SOCKETS.
20194
20195 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20196
20197         openat: correct new comment
20198         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20199
20200 2011-05-10  Jim Meyering  <meyering@redhat.com>
20201
20202         openat: add comments
20203         * lib/openat-proc.c (openat_proc_name): Add comments,
20204         mostly from Eric Blake.
20205
20206 2011-05-09  Eric Blake  <eblake@redhat.com>
20207
20208         openat: reduce syscalls in first probe of /proc
20209         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20210         be a directory.  Simplify the probe for .. bugs.
20211         * modules/openat (Depends-on): Drop same-inode.
20212         Reported by Bastien ROUCARIES.
20213
20214 2011-05-09  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: change semantics/name of tight_scope variables
20217         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20218         Rename variables to align with semantics that make them more useful.
20219
20220         maint.mk: tweak new rule's name not to impinge
20221         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20222         (sc_tight_scope): Use new rule name rather than $@-0.
20223
20224         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20225         * top/maint.mk (sc_tight_scope): New rule.
20226         (sc_tight_scope-0): New rule, ifdef'd out.
20227         (_gl_TS_dir): Default.
20228         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20229         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20230
20231 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20232
20233         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20234         Haible <bruno@clisp.org>.
20235
20236 2011-05-08  Bruno Haible  <bruno@clisp.org>
20237
20238         Comments.
20239         * m4/isnanf.m4: Add comment.
20240         * m4/isnanl.m4: Likewise.
20241
20242 2011-05-08  Bruno Haible  <bruno@clisp.org>
20243
20244         glob: Remove obsolete macro.
20245         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20246
20247 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20248
20249         intprops: Sun C 5.11 supports __typeof__
20250         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20251         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20252         which is new.
20253         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20254
20255         intprops: switch to usual gnulib indenting and naming
20256         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20257         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20258
20259         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20260
20261 2011-05-08  Jim Meyering  <meyering@redhat.com>
20262
20263         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20264         * top/maint.mk (release-prep): Use make's --no-print-directory
20265         option when generating the announcement.  This eliminates the
20266         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20267         generated announcement template.
20268
20269 2011-05-08  Bruno Haible  <bruno@clisp.org>
20270
20271         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20272         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20273         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20274
20275 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20276
20277         ignore-value, verify: Omit include files from lib_SOURCES.
20278         * modules/ignore-value, modules/verify (Makefile.am):
20279         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20280         that leads Automake to duplicate use of am__objects_... variables
20281         in Makefile.in.  See
20282         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20283
20284 2011-05-07  Bruno Haible  <bruno@clisp.org>
20285
20286         fclose: Simplify autoconf macro.
20287         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20288         defined.
20289
20290 2011-05-07  Bruno Haible  <bruno@clisp.org>
20291
20292         canonicalize-lgpl: Fix autoconf macro ordering bug.
20293         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20294         gl_STDLIB_H_DEFAULTS.
20295
20296 2011-05-06  Eric Blake  <eblake@redhat.com>
20297
20298         maintainer-makefile: make sc_po_check easier to tune
20299         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20300         to probe for strings, such as an alternate location for gnulib.
20301
20302         fclose: guarantee behavior on seekable stdin
20303         * modules/fclose (Depends-on): Add fflush.
20304         * doc/posix-functions/fclose.texi (fclose): Document this.
20305         * tests/test-fclose.c (main): Make test for this unconditional.
20306
20307 2011-05-06  Bruno Haible  <bruno@clisp.org>
20308
20309         fflush, fpurge: Relicense under LGPLv2+.
20310         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20311         * modules/fpurge (License): Likewise.
20312         With permission from Eric Blake and Jim Meyering.
20313         Suggested by Eric Blake.
20314
20315 2011-05-06  Karl Berry  <karl@gnu.org>
20316
20317         * MODULES.html.sh (func_all_modules): remove exit.
20318
20319 2011-05-06  Jim Meyering  <meyering@redhat.com>
20320
20321         maint.mk: use info-gnu@ as the default only for a stable release
20322         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20323         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20324         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20325         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20326
20327 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20328
20329         assert-h: new module, which supports C1X-style static_assert
20330         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20331         * lib/verify.h: Revamp so that this can be copied into assert.h,
20332         while retaining the ability to use it standalone as before.
20333         Rename private identifiers so as not to encroach on the
20334         standard C namespace, since this is now used by assert.h.
20335         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20336         the old verify_true.
20337         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20338         the old verify_true.  Use _GL_VERIFY_TYPE.
20339         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20340         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20341         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20342         defined when this file is copied into the replacement assert.h.
20343         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20344         and _Static_assert is not built in.
20345         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20346         defined, and use the new macros mentioned above.
20347         * doc/posix-headers/assert.texi: Document this.
20348
20349 2011-05-05  Bruno Haible  <bruno@clisp.org>
20350
20351         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20352         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20353         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20354         gl_REPLACE_FCLOSE here.
20355         * modules/fflush (Depends-on): Remove fclose.
20356         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20357         combination with module 'fclose'.
20358
20359 2011-05-05  Bruno Haible  <bruno@clisp.org>
20360
20361         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20362         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20363         gl_FUNC_FFLUSH.
20364         (gl_FUNC_FFLUSH): Use it.
20365         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20366         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20367         gl_REPLACE_FSEEKO here.
20368
20369 2011-05-05  Bruno Haible  <bruno@clisp.org>
20370
20371         tzset: Relicense under LGPL.
20372         * modules/tzset (License): Change to LGPL.
20373         No agreement needed; it's a no-op.
20374
20375         strtoimax, strtoumax: Relicense under LGPL.
20376         * modules/strtoimax (License): Change to LGPL.
20377         * modules/strtoumax (License): Likewise.
20378         With permission from Jim Meyering, Paul Eggert:
20379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20381
20382         getgroups: Relicense under LGPL.
20383         * modules/getgroups (License): Change to LGPL.
20384         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20388
20389         nanosleep: Relicense under LGPL.
20390         * modules/nanosleep (License): Change to LGPL.
20391         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20392         Haible:
20393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20397
20398         futimens: Relicense under LGPL.
20399         * modules/futimens (License): Change to LGPL.
20400         With permission from Eric Blake:
20401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20402
20403         fflush: Relicense under LGPL.
20404         * modules/fflush (License): Change to LGPL.
20405         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20409
20410         tmpfile: Relicense under LGPL.
20411         * modules/tmpfile (License): Change to LGPL.
20412         With permission from Ben Pfaff:
20413         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20414
20415         isfinite: Relicense under LGPL.
20416         * modules/isfinite (License): Change to LGPL.
20417         With permission from Ben Pfaff, Bruno Haible:
20418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20420
20421         acosl..tanl: Relicense under LGPL.
20422         * modules/acosl (License): Change to LGPL.
20423         * modules/asinl (License): Likewise.
20424         * modules/atanl (License): Likewise.
20425         * modules/cosl (License): Likewise.
20426         * modules/expl (License): Likewise.
20427         * modules/logl (License): Likewise.
20428         * modules/sinl (License): Likewise.
20429         * modules/sqrtl (License): Likewise.
20430         * modules/tanl (License): Likewise.
20431         Source code originally from glibc and Paolo Bonzini. Agreements:
20432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20434
20435 2011-05-05  Bruno Haible  <bruno@clisp.org>
20436
20437         signal: Define sighandler_t.
20438         * lib/signal.in.h (sighandler_t): New type.
20439         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20440         whether sighandler_t is defined.
20441         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20442         * modules/signal (Depends-on): Add extensions.
20443         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20444         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20445         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20446
20447 2011-05-05  Eric Blake  <eblake@redhat.com>
20448
20449         maint: remove useless REPLACE_*_H macros
20450         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20451         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20452         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20453         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20454         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20455         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20456         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20457         * m4/btowc.m4: Update callers.
20458         * m4/dirfd.m4: Likewise.
20459         * m4/duplocale.m4: Likewise.
20460         * m4/fchdir.m4: Likewise.
20461         * m4/fdopendir.m4: Likewise.
20462         * m4/inet_ntop.m4: Likewise.
20463         * m4/inet_pton.m4: Likewise.
20464         * m4/ioctl.m4: Likewise.
20465         * m4/mbrlen.m4: Likewise.
20466         * m4/mbrtowc.m4: Likewise.
20467         * m4/mbsinit.m4: Likewise.
20468         * m4/mbsnrtowcs.m4: Likewise.
20469         * m4/mbsrtowcs.m4: Likewise.
20470         * m4/poll.m4: Likewise.
20471         * m4/setlocale.m4: Likewise.
20472         * m4/wcrtomb.m4: Likewise.
20473         * m4/wcsnrtombs.m4: Likewise.
20474         * m4/wcsrtombs.m4: Likewise.
20475         * m4/wctob.m4: Likewise.
20476         * m4/wcwidth.m4: Likewise.
20477         * modules/posix_spawn: Likewise.
20478         * modules/posix_spawn_file_actions_addclose: Likewise.
20479         * modules/posix_spawn_file_actions_adddup2: Likewise.
20480         * modules/posix_spawn_file_actions_addopen: Likewise.
20481         * modules/posix_spawn_file_actions_destroy: Likewise.
20482         * modules/posix_spawn_file_actions_init: Likewise.
20483         * modules/posix_spawnattr_destroy: Likewise.
20484         * modules/posix_spawnattr_getflags: Likewise.
20485         * modules/posix_spawnattr_getpgroup: Likewise.
20486         * modules/posix_spawnattr_getschedparam: Likewise.
20487         * modules/posix_spawnattr_getschedpolicy: Likewise.
20488         * modules/posix_spawnattr_getsigdefault: Likewise.
20489         * modules/posix_spawnattr_getsigmask: Likewise.
20490         * modules/posix_spawnattr_init: Likewise.
20491         * modules/posix_spawnattr_setflags: Likewise.
20492         * modules/posix_spawnattr_setpgroup: Likewise.
20493         * modules/posix_spawnattr_setschedparam: Likewise.
20494         * modules/posix_spawnattr_setschedpolicy: Likewise.
20495         * modules/posix_spawnattr_setsigdefault: Likewise.
20496         * modules/posix_spawnattr_setsigmask: Likewise.
20497         * modules/posix_spawnp: Likewise.
20498
20499 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20500
20501         Add option to do-release-commit-and-tag to specify branch.
20502         * build-aux/do-release-commit-and-tag: Add --branch.
20503
20504 2011-05-03  Bruno Haible  <bruno@clisp.org>
20505
20506         Avoid unnecessary compilation units, through conditional dependencies.
20507         * modules/accept (Depends-on): Add conditions to the dependencies.
20508         * modules/acosl (Depends-on): Likewise.
20509         * modules/argz (Depends-on): Likewise.
20510         * modules/asinl (Depends-on): Likewise.
20511         * modules/atanl (Depends-on): Likewise.
20512         * modules/atoll (Depends-on): Likewise.
20513         * modules/bind (Depends-on): Likewise.
20514         * modules/btowc (Depends-on): Likewise.
20515         * modules/canonicalize-lgpl (Depends-on): Likewise.
20516         * modules/ceil (Depends-on): Likewise.
20517         * modules/ceilf (Depends-on): Likewise.
20518         * modules/ceill (Depends-on): Likewise.
20519         * modules/chdir-long (Depends-on): Likewise.
20520         * modules/chown (Depends-on): Likewise.
20521         * modules/close (Depends-on): Likewise.
20522         * modules/connect (Depends-on): Likewise.
20523         * modules/cosl (Depends-on): Likewise.
20524         * modules/dirfd (Depends-on): Likewise.
20525         * modules/dprintf (Depends-on): Likewise.
20526         * modules/dprintf-posix (Depends-on): Likewise.
20527         * modules/error (Depends-on): Likewise.
20528         * modules/euidaccess (Depends-on): Likewise.
20529         * modules/expl (Depends-on): Likewise.
20530         * modules/faccessat (Depends-on): Likewise.
20531         * modules/fchdir (Depends-on): Likewise.
20532         * modules/fclose (Depends-on): Likewise.
20533         * modules/fcntl (Depends-on): Likewise.
20534         * modules/fdopendir (Depends-on): Likewise.
20535         * modules/fflush (Depends-on): Likewise.
20536         * modules/floor (Depends-on): Likewise.
20537         * modules/floorf (Depends-on): Likewise.
20538         * modules/floorl (Depends-on): Likewise.
20539         * modules/fnmatch (Depends-on): Likewise.
20540         * modules/fopen (Depends-on): Likewise.
20541         * modules/fprintf-posix (Depends-on): Likewise.
20542         * modules/frexp (Depends-on): Likewise.
20543         * modules/frexp-nolibm (Depends-on): Likewise.
20544         * modules/frexpl (Depends-on): Likewise.
20545         * modules/frexpl-nolibm (Depends-on): Likewise.
20546         * modules/fseek (Depends-on): Likewise.
20547         * modules/fsusage (Depends-on): Likewise.
20548         * modules/ftell (Depends-on): Likewise.
20549         * modules/ftello (Depends-on): Likewise.
20550         * modules/futimens (Depends-on): Likewise.
20551         * modules/getcwd (Depends-on): Likewise.
20552         * modules/getcwd-lgpl (Depends-on): Likewise.
20553         * modules/getdelim (Depends-on): Likewise.
20554         * modules/getdomainname (Depends-on): Likewise.
20555         * modules/getgroups (Depends-on): Likewise.
20556         * modules/gethostname (Depends-on): Likewise.
20557         * modules/getline (Depends-on): Likewise.
20558         * modules/getlogin_r (Depends-on): Likewise.
20559         * modules/getopt-posix (Depends-on): Likewise.
20560         * modules/getpeername (Depends-on): Likewise.
20561         * modules/getsockname (Depends-on): Likewise.
20562         * modules/getsockopt (Depends-on): Likewise.
20563         * modules/getsubopt (Depends-on): Likewise.
20564         * modules/getusershell (Depends-on): Likewise.
20565         * modules/glob (Depends-on): Likewise.
20566         * modules/grantpt (Depends-on): Likewise.
20567         * modules/iconv_open (Depends-on): Likewise.
20568         * modules/iconv_open-utf (Depends-on): Likewise.
20569         * modules/inet_ntop (Depends-on): Likewise.
20570         * modules/inet_pton (Depends-on): Likewise.
20571         * modules/ioctl (Depends-on): Likewise.
20572         * modules/isapipe (Depends-on): Likewise.
20573         * modules/isfinite (Depends-on): Likewise.
20574         * modules/isinf (Depends-on): Likewise.
20575         * modules/lchown (Depends-on): Likewise.
20576         * modules/ldexpl (Depends-on): Likewise.
20577         * modules/link (Depends-on): Likewise.
20578         * modules/linkat (Depends-on): Likewise.
20579         * modules/listen (Depends-on): Likewise.
20580         * modules/logl (Depends-on): Likewise.
20581         * modules/lstat (Depends-on): Likewise.
20582         * modules/mbrlen (Depends-on): Likewise.
20583         * modules/mbrtowc (Depends-on): Likewise.
20584         * modules/mbsinit (Depends-on): Likewise.
20585         * modules/mbsnrtowcs (Depends-on): Likewise.
20586         * modules/mbsrtowcs (Depends-on): Likewise.
20587         * modules/mbtowc (Depends-on): Likewise.
20588         * modules/memcmp (Depends-on): Likewise.
20589         * modules/mkdir (Depends-on): Likewise.
20590         * modules/mkdtemp (Depends-on): Likewise.
20591         * modules/mkfifo (Depends-on): Likewise.
20592         * modules/mkfifoat (Depends-on): Likewise.
20593         * modules/mknod (Depends-on): Likewise.
20594         * modules/mkostemp (Depends-on): Likewise.
20595         * modules/mkostemps (Depends-on): Likewise.
20596         * modules/mkstemp (Depends-on): Likewise.
20597         * modules/mkstemps (Depends-on): Likewise.
20598         * modules/mktime (Depends-on): Likewise.
20599         * modules/nanosleep (Depends-on): Likewise.
20600         * modules/open (Depends-on): Likewise.
20601         * modules/openat (Depends-on): Likewise.
20602         * modules/perror (Depends-on): Likewise.
20603         * modules/poll (Depends-on): Likewise.
20604         * modules/popen (Depends-on): Likewise.
20605         * modules/posix_spawn (Depends-on): Likewise.
20606         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20607         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20608         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20609         * modules/posix_spawnp (Depends-on): Likewise.
20610         * modules/pread (Depends-on): Likewise.
20611         * modules/printf-posix (Depends-on): Likewise.
20612         * modules/ptsname (Depends-on): Likewise.
20613         * modules/putenv (Depends-on): Likewise.
20614         * modules/pwrite (Depends-on): Likewise.
20615         * modules/readline (Depends-on): Likewise.
20616         * modules/readlink (Depends-on): Likewise.
20617         * modules/readlinkat (Depends-on): Likewise.
20618         * modules/recv (Depends-on): Likewise.
20619         * modules/recvfrom (Depends-on): Likewise.
20620         * modules/regex (Depends-on): Likewise.
20621         * modules/remove (Depends-on): Likewise.
20622         * modules/rename (Depends-on): Likewise.
20623         * modules/renameat (Depends-on): Likewise.
20624         * modules/rmdir (Depends-on): Likewise.
20625         * modules/round (Depends-on): Likewise.
20626         * modules/roundf (Depends-on): Likewise.
20627         * modules/roundl (Depends-on): Likewise.
20628         * modules/rpmatch (Depends-on): Likewise.
20629         * modules/select (Depends-on): Likewise.
20630         * modules/send (Depends-on): Likewise.
20631         * modules/sendto (Depends-on): Likewise.
20632         * modules/setenv (Depends-on): Likewise.
20633         * modules/setlocale (Depends-on): Likewise.
20634         * modules/setsockopt (Depends-on): Likewise.
20635         * modules/shutdown (Depends-on): Likewise.
20636         * modules/sigaction (Depends-on): Likewise.
20637         * modules/signbit (Depends-on): Likewise.
20638         * modules/sigprocmask (Depends-on): Likewise.
20639         * modules/sinl (Depends-on): Likewise.
20640         * modules/sleep (Depends-on): Likewise.
20641         * modules/snprintf (Depends-on): Likewise.
20642         * modules/snprintf-posix (Depends-on): Likewise.
20643         * modules/socket (Depends-on): Likewise.
20644         * modules/sprintf-posix (Depends-on): Likewise.
20645         * modules/sqrtl (Depends-on): Likewise.
20646         * modules/stat (Depends-on): Likewise.
20647         * modules/strchrnul (Depends-on): Likewise.
20648         * modules/strdup-posix (Depends-on): Likewise.
20649         * modules/strerror (Depends-on): Likewise.
20650         * modules/strerror_r-posix (Depends-on): Likewise.
20651         * modules/strndup (Depends-on): Likewise.
20652         * modules/strnlen (Depends-on): Likewise.
20653         * modules/strptime (Depends-on): Likewise.
20654         * modules/strsep (Depends-on): Likewise.
20655         * modules/strsignal (Depends-on): Likewise.
20656         * modules/strstr-simple (Depends-on): Likewise.
20657         * modules/strtod (Depends-on): Likewise.
20658         * modules/strtoimax (Depends-on): Likewise.
20659         * modules/strtok_r (Depends-on): Likewise.
20660         * modules/strtoumax (Depends-on): Likewise.
20661         * modules/symlink (Depends-on): Likewise.
20662         * modules/symlinkat (Depends-on): Likewise.
20663         * modules/tanl (Depends-on): Likewise.
20664         * modules/tcgetsid (Depends-on): Likewise.
20665         * modules/tmpfile (Depends-on): Likewise.
20666         * modules/trunc (Depends-on): Likewise.
20667         * modules/truncf (Depends-on): Likewise.
20668         * modules/truncl (Depends-on): Likewise.
20669         * modules/uname (Depends-on): Likewise.
20670         * modules/unlink (Depends-on): Likewise.
20671         * modules/unlockpt (Depends-on): Likewise.
20672         * modules/unsetenv (Depends-on): Likewise.
20673         * modules/usleep (Depends-on): Likewise.
20674         * modules/utimensat (Depends-on): Likewise.
20675         * modules/vasprintf (Depends-on): Likewise.
20676         * modules/vdprintf (Depends-on): Likewise.
20677         * modules/vdprintf-posix (Depends-on): Likewise.
20678         * modules/vfprintf-posix (Depends-on): Likewise.
20679         * modules/vprintf-posix (Depends-on): Likewise.
20680         * modules/vsnprintf (Depends-on): Likewise.
20681         * modules/vsnprintf-posix (Depends-on): Likewise.
20682         * modules/vsprintf-posix (Depends-on): Likewise.
20683         * modules/wcrtomb (Depends-on): Likewise.
20684         * modules/wcscasecmp (Depends-on): Likewise.
20685         * modules/wcscspn (Depends-on): Likewise.
20686         * modules/wcsdup (Depends-on): Likewise.
20687         * modules/wcsncasecmp (Depends-on): Likewise.
20688         * modules/wcsnrtombs (Depends-on): Likewise.
20689         * modules/wcspbrk (Depends-on): Likewise.
20690         * modules/wcsrtombs (Depends-on): Likewise.
20691         * modules/wcsspn (Depends-on): Likewise.
20692         * modules/wcsstr (Depends-on): Likewise.
20693         * modules/wcstok (Depends-on): Likewise.
20694         * modules/wcswidth (Depends-on): Likewise.
20695         * modules/wctob (Depends-on): Likewise.
20696         * modules/wctomb (Depends-on): Likewise.
20697         * modules/wctype (Depends-on): Likewise.
20698         * modules/wcwidth (Depends-on): Likewise.
20699         * modules/write (Depends-on): Likewise.
20700
20701 2011-05-03  Bruno Haible  <bruno@clisp.org>
20702
20703         Support for conditional dependencies.
20704         * doc/gnulib.texi (Module description): Document the syntax of
20705         conditional dependencies.
20706         * gnulib-tool: New option --conditional-dependencies.
20707         (func_usage): Document it.
20708         (cond_dependencies): New variable.
20709         (func_get_automake_snippet_conditional,
20710         func_get_automake_snippet_unconditional): New functions, extracted from
20711         func_get_automake_snippet.
20712         (func_get_automake_snippet): Use them.
20713         (sed_first_32_chars): New variable.
20714         (func_module_shellfunc_name): New function.
20715         (func_module_shellvar_name): New function.
20716         (func_module_conditional_name): New function.
20717         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20718         func_cond_module_condition): New functions.
20719         (func_modules_transitive_closure): Add support for conditional
20720         dependencies.
20721         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20722         conditional automake snippet in an automake conditional.
20723         (func_emit_autoconf_snippets): Emit shell functions that contain the
20724         code for conditional modules.
20725         (func_import, func_create_testdir): Update specification.
20726
20727 2011-05-03  Eric Blake  <eblake@redhat.com>
20728
20729         test-getaddrinfo: report error information
20730         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20731
20732 2011-05-03  Jim Meyering  <meyering@redhat.com>
20733
20734         bootstrap: avoid build failure when $GZIP is set
20735         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20736         program name.  If defined at all, it is supposed to list gzip options.
20737         Reported by Alan Curry in http://debbugs.gnu.org/8609
20738
20739 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20740
20741         readme-release: new module with release instructions
20742         * modules/readme-release: New module.
20743         * top/README-release: New file, from coreutils, grep, diffutils.
20744         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20745
20746 2011-05-02  Eric Blake  <eblake@redhat.com>
20747
20748         fflush: also replace fclose when fixing fflush
20749         * modules/fflush (Depends-on): Add fclose.
20750         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20751         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20752         memstreams with no backing fd.
20753         * doc/posix-functions/fclose.texi (fclose): Document the use of
20754         fflush module to fix the bug.
20755         * tests/test-fclose.c (main): Relax test when fclose is used in
20756         isolation.
20757
20758         fclose: add some tests
20759         * modules/fclose-tests: New test module.
20760         * tests/test-fclose.c: New file.
20761         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20762
20763         fclose: reduced dependencies
20764         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20765         simpler lseek.
20766         * lib/fclose.c (rpl_fclose): Likewise.
20767         Reported by Simon Josefsson.
20768
20769         exit: drop remaining clients
20770         * modules/argmatch (Depends-on): Replace exit with stdlib.
20771         * modules/copy-file (Depends-on): Likewise.
20772         * modules/execute (Depends-on): Likewise.
20773         * modules/exitfail (Depends-on): Likewise.
20774         * modules/obstack (Depends-on): Likewise.
20775         * modules/pagealign_alloc (Depends-on): Likewise.
20776         * modules/pipe-filter-gi (Depends-on): Likewise.
20777         * modules/pipe-filter-ii (Depends-on): Likewise.
20778         * modules/savewd (Depends-on): Likewise.
20779         * modules/spawn-pipe (Depends-on): Likewise.
20780         * modules/wait-process (Depends-on): Likewise.
20781         * modules/xsetenv (Depends-on): Likewise.
20782         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20783         * modules/git-merge-changelog (Depends-on): Likewise.
20784         * modules/long-options (Depends-on): Likewise.
20785         * modules/pt_chown (Depends-on): Likewise.
20786         * modules/sysexits (Depends-on): Likewise.
20787
20788         freading: relax license from LGPLv3+ to LGPLv2+
20789         * modules/freading (License): Relax LGPL version.
20790
20791 2011-05-02  Bruno Haible  <bruno@clisp.org>
20792
20793         fchdir: Remove unused dependencies.
20794         * modules/fchdir (Depends-on): Remove include_next.
20795
20796 2011-05-02  Bruno Haible  <bruno@clisp.org>
20797
20798         gnulib-tool: Refactor.
20799         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20800         from func_emit_autoconf_snippets.
20801         (func_emit_autoconf_snippets): Use it.
20802
20803 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20804
20805         * NEWS: Document removal of 'exit'.
20806         * modules/exit: Remove file.
20807
20808 2011-05-01  Bruno Haible  <bruno@clisp.org>
20809
20810         Update DEPENDENCIES.
20811         * DEPENDENCIES (gettext): Recommend the newest release.
20812         Reported by Simon Josefsson.
20813
20814 2011-05-01  Bruno Haible  <bruno@clisp.org>
20815
20816         gnulib-tool: Reduce code duplication.
20817         * gnulib-tool (func_emit_autoconf_snippets): New function.
20818         (func_import, func_create_testdir): Use it.
20819
20820 2011-04-30  Eric Blake  <eblake@redhat.com>
20821
20822         fclose: don't fail on non-seekable input stream
20823         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20824         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20825         since fflush is allowed to fail in that case.
20826
20827 2011-04-30  Bruno Haible  <bruno@clisp.org>
20828
20829         dup3: cleanup
20830         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20831
20832 2011-04-30  Bruno Haible  <bruno@clisp.org>
20833
20834         netdb: Make it work in C++ mode.
20835         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20836         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20837         module.
20838         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20839         gl_MODULE_INDICATOR_FOR_TESTS.
20840         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20841         * modules/netdb-c++-tests: New file.
20842         * tests/test-netdb-c++.cc: New file.
20843
20844 2011-04-30  Bruno Haible  <bruno@clisp.org>
20845
20846         New modules 'vfscanf', 'vscanf'.
20847         * modules/vfscanf: New file.
20848         * modules/vscanf: New file.
20849         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20850         here.
20851         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20852         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20853
20854 2011-04-30  Bruno Haible  <bruno@clisp.org>
20855
20856         passfd: Add comments.
20857         * lib/passfd.c: Add comments about platforms.
20858
20859 2011-04-30  Bruno Haible  <bruno@clisp.org>
20860
20861         sys_uio: Make <sys/uio.h> self-contained.
20862         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20863         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20864
20865 2011-04-30  Bruno Haible  <bruno@clisp.org>
20866
20867         sys_socket: Ensure 'struct iovec' definition.
20868         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20869         <sys/socket.h>.
20870         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20871
20872 2011-04-30  Bruno Haible  <bruno@clisp.org>
20873
20874         sys_uio: Protect definition of 'struct iovec'.
20875         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20876         it as a C struct.
20877
20878 2011-04-30  Bruno Haible  <bruno@clisp.org>
20879
20880         manywarnings: fix indentation
20881         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20882
20883 2011-04-30  Pádraig Brady <P@draigBrady.com>
20884
20885         manywarnings: add -Wno-missing-field-initializers if needed.
20886         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20887         option if it's needed to allow initialization with { 0, }
20888
20889 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20890
20891         announce-gen: cosmetic improvement
20892         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20893
20894 2011-04-29  Jim Meyering  <meyering@redhat.com>
20895
20896         vc-list-files: indent with spaces, not TABs
20897         * build-aux/vc-list-files: Convert leading TABs to spaces,
20898         to match the style of most other files in gnulib.
20899
20900         announce-gen: indent with spaces, not TABs
20901         * build-aux/announce-gen: Convert all TABs to spaces, to match
20902         the style of most other files in gnulib.
20903
20904 2011-04-29  Eric Blake  <eblake@redhat.com>
20905
20906         quotearg: avoid uninitialized variable use
20907         * lib/quotearg.c (quoting_options_from_style): Initialize
20908         remaining fields, and ensure that custom styles are only used via
20909         quoting_options rather than quoting_style.
20910
20911 2011-04-29  Jim Meyering  <meyering@redhat.com>
20912
20913         maint.mk: remove unused VC-tag variable
20914         * top/maint.mk (VC-tag): Remove unused variable.
20915
20916 2011-04-29  Bruno Haible  <bruno@clisp.org>
20917
20918         netdb: fix gai_strerror replacements
20919         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20920         * modules/netdb: Substitute it.
20921
20922 2011-04-29  Jim Meyering  <meyering@redhat.com>
20923
20924         test-getcwd.c: avoid new set-but-not-used warning
20925         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20926         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20927         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20928         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20929
20930         test-hash.c: avoid a new shadowing warning
20931         * tests/test-hash.c (main): Don't shadow "dup".
20932
20933 2011-04-28  Eric Blake  <eblake@redhat.com>
20934
20935         getaddrinfo: fix gai_strerror signature
20936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20937         and work around mingw with UNICODE defined.
20938         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20939         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20940         * modules/netdb (Makefile.am): Substitute it.
20941         * lib/netdb.in.h (gai_strerror): Declare replacement.
20942         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20943         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20944         the fix.
20945
20946         getsockopt: avoid compiler warning
20947         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20948         Reported by Matthias Bolte.
20949
20950         tests: drop unused link dependency
20951         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20952         * modules/dirent-safer-tests (Makefile.am): Likewise.
20953         * modules/fdopendir-tests (Makefile.am): Likewise.
20954         * modules/mkfifoat-tests (Makefile.am): Likewise.
20955         * modules/openat-safer-tests (Makefile.am): Likewise.
20956         * modules/openat-tests (Makefile.am): Likewise.
20957         * modules/readlinkat-tests (Makefile.am): Likewise.
20958         * modules/symlinkat-tests (Makefile.am): Likewise.
20959         * modules/linkat-tests (Makefile.am): Likewise.
20960         (Depends-on): Switch to filenamecat-lgpl.
20961         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20962         LIBINTL.
20963         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20964         * tests/test-linkat.c (main): Don't require xalloc.
20965
20966         hash, mgetgroups: drop xalloc dependency
20967         * lib/hash.c (includes): Adjust includes.
20968         * lib/mgetgroups.c (includes): Likewise.
20969         (xgetgroups): Move...
20970         * lib/xgetgroups.c: ...to new file.
20971         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20972         * modules/xgetgroups: New file, split from...
20973         * modules/mgetgroups: ...here.
20974         (Depends-on): Add xalloc-oversized.
20975         * modules/hash (Depends-on): Likewise.
20976         * modules/hash-tests (Depends-on): Drop xalloc.
20977         (test_hash_LDADD): Drop unused library.
20978         * tests/test-hash.c (main): Break xalloc dependency.
20979         (includes): Drop unused include.
20980
20981         xalloc-oversized: new module
20982         * modules/xalloc-oversized: New module.
20983         * modules/xalloc (Depends-on): Add it.
20984         * lib/xalloc.h (xalloc_oversized): Move...
20985         * lib/xalloc-oversized.h: ...into new file.
20986
20987         utimecmp: drop dependency on xmalloc
20988         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20989         due to memory pressure.
20990         * modules/utimecmp (Depends-on): Drop xalloc.
20991
20992 2011-04-27  Eric Blake  <eblake@redhat.com>
20993
20994         getcwd: fix mingw bugs
20995         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20996         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20997         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20998
20999 2011-04-27  Bruno Haible  <bruno@clisp.org>
21000
21001         mkstemps: Ensure declaration on MacOS X 10.5.
21002         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21003         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21004         MacOS X.
21005
21006 2011-04-27  Bruno Haible  <bruno@clisp.org>
21007
21008         mkstemp: More documentation.
21009         * doc/posix-functions/mkstemp.texi: Document header file problem on
21010         MacOS X.
21011
21012 2011-04-27  Bruno Haible  <bruno@clisp.org>
21013
21014         mkstemp: Tweak configure message when cross-compiling.
21015         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21016         result as a guess.
21017
21018 2011-04-27  Bruno Haible  <bruno@clisp.org>
21019
21020         clean-temp: Clarify what it does.
21021         * lib/clean-temp.h: Add more comments.
21022         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21023         module.
21024         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21025         * doc/glibc-functions/mkstemps.texi: Likewise.
21026         * doc/glibc-functions/mkostemps.texi: Likewise.
21027
21028 2011-04-27  Eric Blake  <eblake@redhat.com>
21029
21030         fchdir: avoid extra chdir and fix test
21031         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21032         getcwd-lgpl.
21033         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21034         have to be canonical.
21035         (canonicalize_file_name): Drop unused macro.
21036         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21037
21038         filenamecat-lgpl: fix licence
21039         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21040         when it was first created.
21041
21042         linkat, renameat: add missing dependency
21043         * modules/linkat (Depends-on): Require getcwd-lgpl.
21044         * modules/renameat (Depends-on): Likewise.
21045
21046         tests: reduce dependencies
21047         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21048         * tests/test-renameat.c (main): Likewise.
21049         * modules/linkat-tests (Depends-on): Relax dependency.
21050         * modules/renameat-tests (Depends-on): Likewise.
21051         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21052         dependency explicit.
21053
21054         save-cwd: reduce default dependency
21055         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21056         * lib/save-cwd.c: Update comments.
21057         * NEWS: Document the semantic change.
21058
21059         getcwd: enhance tests
21060         * tests/test-getcwd-lgpl.c: New file, taken from...
21061         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21062         repeat long path stress tests from m4 probe.
21063         * modules/getcwd-lgpl-tests: New module.
21064         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21065         * m4/getcwd-abort-bug.m4: Update comment.
21066         * m4/getcwd-path-max.m4: Likewise.
21067
21068         getcwd-lgpl: new module
21069         * modules/getcwd-lgpl: New module.
21070         * lib/getcwd-lgpl.c: New file.
21071         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21072         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21073         * modules/getcwd (configure.ac): Set C witness.
21074         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21075
21076         getcwd: tweak comments
21077         * m4/getcwd-abort-bug.m4: Fix comments.
21078         * m4/getcwd-path-max.m4: Likewise.
21079         * m4/getcwd.m4: Likewise.
21080
21081 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21082         and Eric Blake  <eblake@redhat.com>
21083
21084         mkstemp: replace if system version uses wrong permissions
21085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21086         read/write mode bits set in file created by mkstemp.
21087         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21088
21089 2011-04-27  Eric Blake  <eblake@redhat.com>
21090
21091         passfd: avoid compiler warning
21092         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21093         Reported by Laine Stump.
21094
21095 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21096
21097         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21098         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21099
21100 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21101         and Eric Blake  <eblake@redhat.com>
21102
21103         mkstemp: mention clean-temp module
21104         * lib/mkstemp.c: Add comment.
21105         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21106
21107 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21108
21109         inttypes: also provide default values for 32-bit tests
21110         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21111         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21112
21113 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21114
21115         strtoumax: remove dependency on strtoimax
21116         This is like the strtoull change of yesterday.
21117         * modules/strtoumax (Files): Add lib/strtoimax.c.
21118         (Depends-on): Remove strtoimax and add verify.
21119
21120         inttypes-incomplete: new module
21121         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21122         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21123         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21124         of gl_INTTYPES_H.
21125         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21126         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21127         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21128         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21129         * modules/strtoumax, modules/xstrtol (Depends-on):
21130         Depend on inttypes-incomplete, not inttypes.
21131         * modules/inttypes-incomplete: New module, containing the contents
21132         of the old modules/inttypes module, except that the Files: section
21133         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21134         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21135         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21136         (Depends-on): Depend only on inttypes-incomplete.
21137         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21138
21139         inttypes: omit now-redundant strtoimax and strtoumax work
21140         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21141         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21142
21143         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21144         This supports apps that need pointers to strtoimax and strtoumax,
21145         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21146         nonexistent functions.  See
21147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21148         et seq.
21149         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21150         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21151         a macro.
21152         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21153
21154 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21155
21156         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21157
21158 2011-04-25  Bruno Haible  <bruno@clisp.org>
21159
21160         strtol, strtoul: Mark modules as obsolete.
21161         * modules/strtol (Status, Notice): New sections.
21162         * modules/strtoul (Status, Notice): New sections.
21163
21164 2011-04-25  Bruno Haible  <bruno@clisp.org>
21165
21166         strtod: Remove check for strtod, unless supporting old platforms.
21167         * modules/strtod-obsolete: New file.
21168         * m4/strtod-obsolete.m4: New file.
21169         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21170         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21171         * modules/strtod (Depends-on): Add strtod-obsolete.
21172         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21173
21174 2011-04-25  Bruno Haible  <bruno@clisp.org>
21175
21176         strcase: Make module obsolete.
21177         * modules/strcase (Status, Notice): New sections.
21178
21179 2011-04-25  Bruno Haible  <bruno@clisp.org>
21180
21181         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21182         * modules/dup2-obsolete: New file.
21183         * m4/dup2-obsolete.m4: New file.
21184         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21185         gl_FUNC_DUP2_OBSOLETE is not also defined.
21186         * modules/dup2 (Depends-on): Add dup2-obsolete.
21187         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21188
21189 2011-04-25  Bruno Haible  <bruno@clisp.org>
21190
21191         strnlen: Avoid memchr related link error on old obsolete platforms.
21192         * modules/memchr-obsolete: New file.
21193         * m4/memchr-obsolete.m4: New file.
21194         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21195         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21196         * modules/memchr (Depends-on): Add memchr-obsolete.
21197         * modules/strnlen (Depends-on): Likewise.
21198         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21199
21200 2011-04-25  Jim Meyering  <meyering@redhat.com>
21201
21202         maint.mk: makefile_at_at_check extend and clean up
21203         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21204         in addition to */Makefile.am.
21205         Exempt legitimate uses of @VAR@ notation, e.g.,
21206         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21207         Remove obsolete coreutils-specific comment.
21208         Prompted by discussion here:
21209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21210
21211 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         strtoul: remove dependency on strtol
21214         This is so that 'configure' need not check for strtol merely because
21215         the application needs strtoul.
21216         * modules/strtoul (Files): Add lib/strtol.c.
21217         (Depends-on): Remove strtol.
21218
21219         strtoull: remove dependency on strtoul
21220         This is like the strtoll change.
21221         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21222         (Depends-on): Remove strtoul.
21223
21224         strtoll: remove dependency on strtol
21225         This is so that 'configure' need not check for strtol merely because
21226         the application needs strtoll.
21227         * modules/strtoll (Files): Add lib/strtol.c.
21228         (Depends-on): Remove strtol.
21229
21230 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21231
21232         inttypes: Move some configure check to module 'imaxdiv'.
21233         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21234         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21235         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21236
21237 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21238
21239         inttypes: Move some configure check to module 'imaxabs'.
21240         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21241         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21242         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21243
21244 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21245
21246         inttypes: Remove configure tests that are not needed since 2009-12-31.
21247         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21248         gl_cv_header_working_inttypes_h.
21249
21250 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21251
21252         * modules/strnlen (Depends-on): Remove memchr.
21253         The strnlen implementation doesn't need the memchr module's fixes; see
21254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21255
21256         strtol: remove dependency on wchar
21257         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21258         * modules/strtol (Depends-on): Remove wchar.
21259
21260 2011-04-21  Eric Blake  <eblake@redhat.com>
21261
21262         passfd: fix test regression on Linux
21263         * modules/passfd-tests (configure.ac): Correct socketpair check.
21264
21265         passfd: speed up configure and drop unused code
21266         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21267         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21268         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21269         Instead of probing at configure for unix_scm_rights_bsd44_way,
21270         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21271         check to a struct member probe.
21272         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21273         (sendfd, recvfd): Update preprocessor checks.
21274         * modules/passfd (Files): Reflect rename, and drop unused file.
21275         (Depends-on): Drop unused dependency.
21276
21277         passfd: allow compilation on mingw
21278         * modules/sys_socket (Depends-on): Add sys_uio.
21279         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21280         iovec and a minimal struct msghdr.
21281         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21282         * tests/test-sys_socket.c (main): Enhance test.
21283         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21284         guaranteed to provide what we need.
21285         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21286         * modules/passfd-tests (Depends-on): Add sys_wait.
21287         * tests/test-passfd.c (main): Skip test on mingw, for now.
21288         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21289         partial 'struct msghdr' implementation.
21290
21291         sys_uio: new module
21292         * modules/sys_uio: New module.
21293         * modules/sys_uio-tests: Likewise.
21294         * lib/sys_uio.in.h: New file.
21295         * m4/sys_uio_h.m4: Likewise.
21296         * tests/test-sys_uio.c: Likewise.
21297         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21298         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21299
21300 2011-04-20  Jim Meyering  <meyering@redhat.com>
21301
21302         useless-if-before-free: avoid false-positive
21303         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21304         disjunct so that it too requires a terminating ";".  Without that,
21305         this script would identify as useless one statement from gcc that
21306         was not:
21307           if (aligned_ptr)
21308             free (((void **) aligned_ptr) [-1]);
21309
21310 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21311
21312         doc: update users.txt.
21313         * users.txt: Add barcode.
21314
21315 2011-04-19  Bruno Haible  <bruno@clisp.org>
21316
21317         ioctl: Remove link dependency on native Windows.
21318         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21319         (gl_close_fn, gl_ioctl_fn): New types.
21320         (struct fd_hook): Renamed from struct close_hook. Change type of
21321         private_close_fn field. Add private_ioctl_fn field.
21322         (close_hook_fn): Add parameter for primary close method.
21323         (execute_close_hooks, execute_all_close_hooks): Likewise.
21324         (ioctl_hook_fn): New type.
21325         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21326         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21327         argument.
21328         (unregister_fd_hook): Renamed from unregister_close_hook.
21329         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21330         Don't include <unistd.h>.
21331         (close): Remove undef.
21332         (anchor): Update.
21333         (execute_close_hooks): Add argument for primary close method.
21334         (execute_all_close_hooks): Likewise.
21335         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21336         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21337         argument. Allow each argument to be NULL.
21338         (unregister_fd_hook): Renamed from unregister_close_hook.
21339         * lib/close.c (rpl_close): Pass 'close' function pointer to
21340         execute_all_close_hooks.
21341         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21342         (primary_ioctl): New function.
21343         (ioctl): Don't call ioctlsocket here. Instead, call
21344         execute_all_ioctl_hooks.
21345         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21346         close method.
21347         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21348         (fd_sockets_hook): Renamed from close_sockets_hook.
21349         (gl_sockets_startup, gl_sockets_cleanup): Update.
21350         * modules/fd-hook: Renamed from modules/close-hook. Update.
21351         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21352         * modules/sockets (Depends-on): Likewise.
21353         * modules/ioctl (Depends-on): Add fd-hook.
21354         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21355         GNULIB_SOCKET.
21356
21357 2011-04-19  Bruno Haible  <bruno@clisp.org>
21358
21359         Move the support of O_NONBLOCK in open() to the 'open' module.
21360         * modules/nonblocking (Depends-on): Remove 'open'.
21361         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21362         gl_cv_have_open_O_NONBLOCK.
21363         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21364         O_NONBLOCK support.
21365         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21366
21367 2011-04-17  Bruno Haible  <bruno@clisp.org>
21368
21369         pipe2: Simplify code.
21370         * lib/pipe2.c (pipe2): Reduce code duplication.
21371
21372 2011-04-17  Bruno Haible  <bruno@clisp.org>
21373
21374         nonblocking: Add comment.
21375         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21376
21377 2011-04-17  Bruno Haible  <bruno@clisp.org>
21378
21379         nonblocking: Add tests for sockets.
21380         * tests/test-nonblocking-socket.sh: New file.
21381         * tests/test-nonblocking-socket-main.c: New file.
21382         * tests/test-nonblocking-socket-child.c: New file.
21383         * tests/test-nonblocking-socket.h: New file.
21384         * tests/socket-server.h: New file.
21385         * tests/socket-client.h: New file.
21386         * modules/nonblocking-socket-tests: New file.
21387         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21388
21389 2011-04-17  Bruno Haible  <bruno@clisp.org>
21390
21391         nonblocking: Add tests for pipes.
21392         * tests/test-nonblocking-pipe.sh: New file.
21393         * tests/test-nonblocking-pipe-main.c: New file.
21394         * tests/test-nonblocking-pipe-child.c: New file.
21395         * tests/test-nonblocking-pipe.h: New file.
21396         * tests/test-nonblocking-writer.h: New file.
21397         * tests/test-nonblocking-reader.h: New file.
21398         * tests/test-nonblocking-misc.h: New file.
21399         * modules/nonblocking-pipe-tests: New file.
21400         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21401
21402 2011-04-16  Bruno Haible  <bruno@clisp.org>
21403
21404         gettext: Clarify the needed programmer actions.
21405         * modules/gettext (Notice): New field.
21406         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21407
21408 2011-04-16  Bruno Haible  <bruno@clisp.org>
21409
21410         strchrnul: Tweak last commit.
21411         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21412         bug.
21413         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21414         as in _GL_FUNCDECL_SYS.
21415         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21416         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21417
21418 2011-04-15  Eric Blake  <eblake@redhat.com>
21419
21420         strchrnul: work around cygwin bug
21421         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21422         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21424         * modules/string (Makefile.am): Substitute it.
21425         * lib/string.in.h (strchrnul): Use it.
21426
21427 2011-04-15  Bruno Haible  <bruno@clisp.org>
21428
21429         Don't require lib/stdio-write.c when only module 'stdio' is used.
21430         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21431         invocation.
21432         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21433
21434 2011-04-14  Bruno Haible  <bruno@clisp.org>
21435
21436         Support non-blocking pipe I/O in read() on native Windows.
21437         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21438         (read): New declaration.
21439         * lib/read.c: New file.
21440         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21441         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21442         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21443         vscanf): New declarations.
21444         * lib/stdio-read.c: New file.
21445         * m4/read.m4: New file.
21446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21447         REPLACE_READ.
21448         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21449         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21450         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21451         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21452         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21453         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21454         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21455         * modules/read: New file.
21456         * modules/nonblocking (Files): Add lib/stdio-read.c.
21457         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21458         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21459         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21460         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21461         * modules/pread (Depends-on): Add read.
21462         * modules/safe-read (Depends-on): Likewise.
21463         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21464         gets, scanf, vfscanf, vscanf): Verify signatures.
21465         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21466         problem with non-blocking pipes.
21467         * doc/posix-functions/fgetc.texi: Likewise.
21468         * doc/posix-functions/fgets.texi: Likewise.
21469         * doc/posix-functions/fread.texi: Likewise.
21470         * doc/posix-functions/fscanf.texi: Likewise.
21471         * doc/posix-functions/getc.texi: Likewise.
21472         * doc/posix-functions/getchar.texi: Likewise.
21473         * doc/posix-functions/gets.texi: Likewise.
21474         * doc/posix-functions/scanf.texi: Likewise.
21475         * doc/posix-functions/vfscanf.texi: Likewise.
21476         * doc/posix-functions/vscanf.texi: Likewise.
21477
21478 2011-04-14  Bruno Haible  <bruno@clisp.org>
21479
21480         Support non-blocking pipe I/O in write() on native Windows.
21481         * lib/write.c (rpl_write): Split a write request that failed merely
21482         because the byte count was larger than the pipe buffer's size.
21483         * doc/posix-functions/write.texi: Mention the problem with large byte
21484         counts.
21485
21486 2011-04-14  Bruno Haible  <bruno@clisp.org>
21487
21488         wchar: Ensure that wchar_t gets defined on uClibc.
21489         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21490         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21491
21492 2011-04-13  Bruno Haible  <bruno@clisp.org>
21493
21494         safe-write, full-read: Avoid unnecessary compilation units.
21495         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21496         (Depends-on): Remove safe-read. Add ssize_t.
21497         * modules/full-read (Files): Add lib/full-write.c.
21498         (Depends-on): Add full-write.
21499
21500 2011-04-13  Bruno Haible  <bruno@clisp.org>
21501
21502         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21503         * modules/pwrite (Depends-on): Add 'write'.
21504
21505 2011-04-13  Bruno Haible  <bruno@clisp.org>
21506
21507         Support non-blocking pipe I/O in write() on native Windows.
21508         * lib/unistd.in.h (write): Enable replacement also if
21509         GNULIB_UNISTD_H_NONBLOCKING is 1.
21510         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21511         (rpl_write): When failing to write on a non-blocking pipe, change
21512         errno from ENOSPC to EAGAIN.
21513         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21514         putchar, puts, vfprintf, vprintf): Enable replacement also if
21515         GNULIB_STDIO_H_NONBLOCKING is 1.
21516         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21517         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21518         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21519         CALL_WITH_SIGPIPE_EMULATION.
21520         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21521         * m4/nonblocking.m4: New file.
21522         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21523         for non-blocking I/O support.
21524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21525         GNULIB_UNISTD_H_NONBLOCKING.
21526         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21527         required for non-blocking I/O support.
21528         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21529         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21530         lib/stdio-write.c, m4/asm-underscore.m4.
21531         (Depends-on): Add stdio, unistd.
21532         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21533         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21534         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21535         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21536         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21537         problem with non-blocking pipes.
21538         * doc/posix-functions/fputc.texi: Likewise.
21539         * doc/posix-functions/fputs.texi: Likewise.
21540         * doc/posix-functions/fwrite.texi: Likewise.
21541         * doc/posix-functions/printf.texi: Likewise.
21542         * doc/posix-functions/putc.texi: Likewise.
21543         * doc/posix-functions/putchar.texi: Likewise.
21544         * doc/posix-functions/puts.texi: Likewise.
21545         * doc/posix-functions/vfprintf.texi: Likewise.
21546         * doc/posix-functions/vprintf.texi: Likewise.
21547         * doc/posix-functions/write.texi: Likewise.
21548
21549 2011-04-10  Jim Meyering  <meyering@redhat.com>
21550
21551         maint.mk: prohibit doubled words
21552         Detect them also when they're separated by a newline.
21553         There are 3 ways to customize it:
21554           - disable the test on a per file basis, as usual with rules using
21555             $(VC_LIST_EXCEPT)
21556           - replace the default doubled-word-selecting regexp (affects all files)
21557           - ignore a particular file-vs-doubled-word match
21558         I nearly used that last one to ignore the "is is" match in
21559         coreutils' NEWS file, since the text was "ls -is is ..."
21560         To do that, I would have added this line to cfg.mk:
21561           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21562         but it would have ignored any "is is" match in NEWS.
21563         Low probability, but still...
21564         Instead, I changed the text, slightly:
21565           -  ls -is is now consistent with ls -lis in ignoring values returned
21566           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21567         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21568         (prohibit_doubled_word_): Define.
21569         (sc_prohibit_doubled_word): New rule.
21570         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21571
21572 2011-04-10  Jim Meyering  <meyering@redhat.com>
21573
21574         maint: fix doubled-word typo in comment
21575         * m4/gethostname.m4: s/is is/it is/
21576         * m4/getdomainname.m4: Likewise.
21577
21578 2011-04-10  Jim Meyering  <meyering@redhat.com>
21579
21580         maint: remove doubled word: s/it it/it/
21581         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21582
21583 2011-04-10  Jim Meyering  <meyering@redhat.com>
21584
21585         maint.mk: remove useless semicolon and backslash
21586         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21587         semicolon and backslash.
21588
21589 2011-04-10  Bruno Haible  <bruno@clisp.org>
21590
21591         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21592         * modules/stdint-tests (Depends-on): Add wchar.
21593
21594 2011-04-10  Jim Meyering  <meyering@redhat.com>
21595
21596         maint: remove doubled words in comments, e.g., s/a a/a/
21597         * lib/strptime.c (day_of_the_week): s/the the/the/
21598         * tests/test-chown.h (test_chown): s/a a/a/
21599
21600         test-chown.h: correct a cast
21601         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21602         when the destination is a stat.st_gid.
21603
21604 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21605
21606         getaddrinfo: Fix test for sa_len member.
21607         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21608         include <sys/types.h> before <sys/socket.h>.
21609
21610 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21611
21612         maint: change "can not" to "cannot"
21613         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21614         boundaries.
21615
21616 2011-04-09  Jim Meyering  <meyering@redhat.com>
21617
21618         maint: change "a a" to "a"
21619         * tests/test-lchown.h (test_lchown): s/a a/a/
21620
21621         maint.mk: prohibit \<the the\>
21622         * top/maint.mk (sc_prohibit_the_the): New rule.
21623
21624         maint: fix "the the" in comment
21625         * lib/count-one-bits.h: s/the the/the/
21626
21627         maint: change "can not" to "cannot"
21628         But do not change the occurrences in maintain.texi or in
21629         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21630         * doc/gnulib-tool.texi: s/can not/cannot/
21631         * doc/posix-functions/accept.texi (accept): Likewise.
21632         * doc/posix-functions/socket.texi (socket): Likewise.
21633         * lib/mbrtowc.c: Likewise.
21634
21635         maint.mk: prohibit use of "can not"
21636         * top/maint.mk (sc_prohibit_can_not): New rule.
21637         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21638
21639 2011-04-09  Bruno Haible  <bruno@clisp.org>
21640
21641         careadlinkat: Guard against misuse of careadlinkatcwd.
21642         * lib/careadlinkat.c: Include <stdlib.h>.
21643         (careadlinkatcwd): Check that the fd argument is as expected.
21644
21645 2011-04-09  Bruno Haible  <bruno@clisp.org>
21646
21647         careadlinkat: Use common coding style.
21648         * lib/careadlinkat.c: Move gnulib includes after system includes.
21649
21650 2011-04-09  Bruno Haible  <bruno@clisp.org>
21651
21652         careadlinkat: Clarify specification.
21653         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21654         (careadlinkatcwd): Add comment.
21655         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21656
21657 2011-04-09  Bruno Haible  <bruno@clisp.org>
21658
21659         areadlinkat: Avoid link error on many platforms.
21660         * modules/areadlinkat (Depends-on): Add areadlink.
21661
21662 2011-04-09  Bruno Haible  <bruno@clisp.org>
21663
21664         allocator, careadlinkat: Fix double-inclusion guard.
21665         * lib/allocator.h: Fix double-inclusion guard.
21666         * lib/careadlinkat.h: Likewise.
21667
21668 2011-04-09  Bruno Haible  <bruno@clisp.org>
21669
21670         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21671         * lib/relocwrapper.c: Update dependencies hierarchy.
21672         * build-aux/install-reloc: Update list of files to be compiled.
21673         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21674         lib/allocator.[hc].
21675
21676 2011-04-08  Eric Blake  <eblake@redhat.com>
21677
21678         strftime: silence gnulib-tool warning
21679         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21680
21681 2011-04-08  Bruno Haible  <bruno@clisp.org>
21682
21683         verify: Fix syntax error with GCC 4.6 in C++ mode.
21684         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21685         (HAVE_STATIC_ASSERT): New macro.
21686         (verify_true, verify): Use 'static_assert' if it is supported and
21687         '_Static_assert' is not supported.
21688
21689 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         allocator: New module.
21692         * modules/allocator, lib/allocator.c: New files.
21693         * lib/allocator.h (stdlib_allocator): New decl.
21694         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21695         Remove.  Do not include <stdlib.h>.
21696         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21697         * modules/careadlinkat (Files): Remove lib/allocator.h.
21698         (Depends-on): Add allocator.
21699
21700         stdlib: let modules use system malloc, realloc
21701         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21702         if !_GL_USE_STDLIB_ALLOC.
21703         (malloc, realloc): Limit this change to a smaller scope.
21704
21705         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21706         (malloc, realloc): Don't #undef; no longer needed.
21707         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21708         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21709         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21710         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21711         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21712         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21713         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21714         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21715
21716         careadlinkat: rename members to avoid problem
21717         * lib/allocator.h (struct allocator): Rename members from
21718         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21719         and realloc are #define'd.  Reported by Eric Blake in
21720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21721         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21722
21723 2011-04-08  Eric Blake  <eblake@redhat.com>
21724
21725         nonblocking: reduce dependency
21726         * tests/test-nonblocking.c: Only test sockets when in use.
21727         * modules/nonblocking-tests (Depends-on): Drop socket.
21728         (Makefile.am): Link even if sockets are not present.
21729         * modules/pipe2-tests (Makefile.am): Likewise.
21730         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21731
21732         pipe2: fix O_NONBLOCK support on mingw
21733         * modules/pipe2 (Depends-on): Add nonblocking.
21734         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21735         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21736         * tests/test-nonblocking.c (main): Likewise.
21737         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21738
21739         fcntl-h: fix O_ACCMODE on cygwin
21740         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21741         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21742
21743         pipe-filter: drop O_NONBLOCK workarounds
21744         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21745         * modules/pipe-filter-ii (Depends-on): Likewise.
21746         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21747
21748         nonblocking: provide O_NONBLOCK for mingw
21749         * modules/nonblocking (Depends-on): Add open.
21750         (configure.ac): Set new witness macro.
21751         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21752         * modules/fcntl-h (Makefile.am): Substitute it.
21753         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21754         nonblocking module is in use.
21755         * lib/nonblocking.c: Adjust portability test.
21756         * lib/open.c (open): Don't let native open see gnulib flag.
21757         * tests/test-fcntl-h.c (main): Enhance test.
21758         * tests/test-open.h (test_open): Likewise.
21759         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21760
21761         careadlinkat: fix compilation error on mingw
21762         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21763         within struct allocator.
21764
21765 2011-04-06  Eric Blake  <eblake@redhat.com>
21766
21767         binary-io: relicense under LGPLv2+
21768         * modules/binary-io (License): Relax to LGPLv2+.
21769         Requested for libvirt, and required by pipe2.
21770
21771 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21772
21773         verify: use _Static_assert if available
21774         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21775         (verify_true, verify): Use it if available.  This generates better
21776         diagnostics with GCC 4.6.0 and later.
21777
21778 2011-04-05  Bruno Haible  <bruno@clisp.org>
21779
21780         Remove leftover generated .h files after config.status changed.
21781
21782         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21783         GL_GENERATE_ALLOCA_H.
21784         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21785         GL_GENERATE_ALLOCA_H evaluates to false.
21786
21787         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21788         GL_GENERATE_ARGZ_H.
21789         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21790         evaluates to false.
21791
21792         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21793         GL_GENERATE_BYTESWAP_H.
21794         * modules/byteswap (Makefile.am): Remove byteswap.h if
21795         GL_GENERATE_BYTESWAP_H evaluates to false.
21796
21797         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21798         GL_GENERATE_ERRNO_H.
21799         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21800         evaluates to false.
21801
21802         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21803         GL_GENERATE_FLOAT_H.
21804         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21805         evaluates to false.
21806
21807         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21808         GL_GENERATE_FNMATCH_H.
21809         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21810         GL_GENERATE_FNMATCH_H evaluates to false.
21811
21812         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21813         GL_GENERATE_GLOB_H.
21814         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21815         evaluates to false.
21816
21817         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21818         automake conditional GL_GENERATE_ICONV_H.
21819         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21820         evaluates to false.
21821
21822         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21823         GL_GENERATE_NETINET_IN_H.
21824         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21825         GL_GENERATE_NETINET_IN_H evaluates to false.
21826
21827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21828         conditional GL_GENERATE_PTHREAD_H.
21829         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21830         * modules/pthread (Makefile.am): Remove pthread.h if
21831         GL_GENERATE_PTHREAD_H evaluates to false.
21832
21833         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21834         GL_GENERATE_SCHED_H.
21835         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21836         evaluates to false.
21837
21838         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21839         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21840         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21841         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21842
21843         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21844         GL_GENERATE_STDARG_H.
21845         * modules/stdarg (Makefile.am): Remove stdarg.h if
21846         GL_GENERATE_STDARG_H evaluates to false.
21847
21848         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21849         GL_GENERATE_STDBOOL_H.
21850         * modules/stdbool (Makefile.am): Remove stdbool.h if
21851         GL_GENERATE_STDBOOL_H evaluates to false.
21852
21853         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21854         conditional GL_GENERATE_STDDEF_H.
21855         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21856         * modules/stddef (Makefile.am): Remove stddef.h if
21857         GL_GENERATE_STDDEF_H evaluates to false.
21858
21859         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21860         GL_GENERATE_STDINT_H.
21861         * modules/stdint (Makefile.am): Remove stdint.h if
21862         GL_GENERATE_STDINT_H evaluates to false.
21863
21864         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21865         GL_GENERATE_SYSEXITS_H.
21866         * modules/sysexits (Makefile.am): Remove sysexits.h if
21867         GL_GENERATE_SYSEXITS_H evaluates to false.
21868
21869         Reported by Karl Berry and Ralf Wildenhues.
21870
21871 2011-04-05  Bruno Haible  <bruno@clisp.org>
21872
21873         Ensure to rebuild generated .h files when config.status has changed.
21874         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21875         config.status.
21876         * modules/ctype (Makefile.am): Likewise.
21877         * modules/dirent (Makefile.am): Likewise.
21878         * modules/errno (Makefile.am): Likewise.
21879         * modules/fcntl-h (Makefile.am): Likewise.
21880         * modules/float (Makefile.am): Likewise.
21881         * modules/getopt-posix (Makefile.am): Likewise.
21882         * modules/glob (Makefile.am): Likewise.
21883         * modules/iconv-h (Makefile.am): Likewise.
21884         * modules/inttypes (Makefile.am): Likewise.
21885         * modules/langinfo (Makefile.am): Likewise.
21886         * modules/locale (Makefile.am): Likewise.
21887         * modules/math (Makefile.am): Likewise.
21888         * modules/netdb (Makefile.am): Likewise.
21889         * modules/netinet_in (Makefile.am): Likewise.
21890         * modules/poll-h (Makefile.am): Likewise.
21891         * modules/pthread (Makefile.am): Likewise.
21892         * modules/pty (Makefile.am): Likewise.
21893         * modules/sched (Makefile.am): Likewise.
21894         * modules/search (Makefile.am): Likewise.
21895         * modules/selinux-h (Makefile.am): Likewise.
21896         * modules/signal (Makefile.am): Likewise.
21897         * modules/spawn (Makefile.am): Likewise.
21898         * modules/stdarg (Makefile.am): Likewise.
21899         * modules/stdbool (Makefile.am): Likewise.
21900         * modules/stddef (Makefile.am): Likewise.
21901         * modules/stdint (Makefile.am): Likewise.
21902         * modules/stdio (Makefile.am): Likewise.
21903         * modules/stdlib (Makefile.am): Likewise.
21904         * modules/string (Makefile.am): Likewise.
21905         * modules/strings (Makefile.am): Likewise.
21906         * modules/sys_file (Makefile.am): Likewise.
21907         * modules/sys_ioctl (Makefile.am): Likewise.
21908         * modules/sys_select (Makefile.am): Likewise.
21909         * modules/sys_socket (Makefile.am): Likewise.
21910         * modules/sys_stat (Makefile.am): Likewise.
21911         * modules/sys_time (Makefile.am): Likewise.
21912         * modules/sys_times (Makefile.am): Likewise.
21913         * modules/sys_utsname (Makefile.am): Likewise.
21914         * modules/sys_wait (Makefile.am): Likewise.
21915         * modules/sysexits (Makefile.am): Likewise.
21916         * modules/termios (Makefile.am): Likewise.
21917         * modules/time (Makefile.am): Likewise.
21918         * modules/unistd (Makefile.am): Likewise.
21919         * modules/wchar (Makefile.am): Likewise.
21920         * modules/wctype-h (Makefile.am): Likewise.
21921         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21922
21923 2011-04-05  Bruno Haible  <bruno@clisp.org>
21924
21925         pipe2: Relicense under LGPLv2+.
21926         * modules/pipe2 (License): Change to LGPLv2+.
21927         Requested by Eric Blake, for libvirt.
21928
21929 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21930
21931         bootstrap: compute gnulib_extra_files after updating build_aux
21932         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21933         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21934
21935 2011-04-05  Eric Blake  <eblake@redhat.com>
21936
21937         bootstrap: preserve git whitelist item sorting
21938         * build-aux/bootstrap (sort_patterns): New function.
21939         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21940
21941 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21942
21943         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21944         sc_space_tab check.
21945
21946 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21947
21948         areadlink, areadlinkat: rewrite in terms of careadlinkat
21949         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21950         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21951         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21952         (malloc, realloc): Remove #undefs.
21953         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21954         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21955         readlink, ssize_t, stdint, unistd.
21956         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21957         areadlink, stdint.
21958
21959         careadlinkat: new module
21960         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21961         * modules/careadlinkat: New files, written by me with
21962         a review and feedback from Ben Pfaff in
21963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21964
21965 2011-04-01  Bruno Haible  <bruno@clisp.org>
21966
21967         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21968         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21969         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21970         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21971         Reported by Bruce Korb <bruce.korb@gmail.com>.
21972
21973 2011-04-01  Bruno Haible  <bruno@clisp.org>
21974
21975         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21976         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21977         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21978         * modules/wcpcpy (Depends-on): Add extensions.
21979         * modules/wcpncpy (Depends-on): Likewise.
21980         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21981         systems.
21982         * doc/posix-functions/wcpncpy.texi: Likewise.
21983         * doc/posix-functions/wcwidth.texi: Likewise.
21984
21985 2011-03-31  Eric Blake  <eblake@redhat.com>
21986
21987         nonblocking: fix mingw test failures
21988         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21989         non-blocking flag on regular file.
21990         (get_nonblocking_flag): Set errno on invalid fd.
21991         * tests/test-nonblocking.c (main): Avoid test failure on
21992         directories if fchdir is not active.
21993         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21994
21995 2011-03-31  Bruno Haible  <bruno@clisp.org>
21996
21997         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21998         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21999         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22000         Reported by Simon Josefsson <simon@josefsson.org>.
22001
22002 2011-03-31  Bruno Haible  <bruno@clisp.org>
22003         and Eric Blake  <eblake@redhat.com>
22004
22005         nonblocking: new module
22006         * modules/nonblocking: New module.
22007         * modules/nonblocking-tests: Likewise.
22008         * lib/nonblocking.h: New file.
22009         * lib/nonblocking.c: Likewise.
22010         * tests/test-nonblocking.c: New test.
22011         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22012
22013 2011-03-30  Bruno Haible  <bruno@clisp.org>
22014
22015         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22016         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22017         instead of 'printf' format for GCC >= 4.4.
22018         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22019         (fprintf, printf, vfprintf, vprintf): Declare with
22020         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22021         the system's vfprintf() function.
22022         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22023
22024 2011-03-30  Eric Blake  <eblake@redhat.com>
22025
22026         passfd: fix scoping bug
22027         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22028         before sendmsg/recvmsg.
22029
22030         passfd: standardize coding conventions
22031         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22032         can be learned at compile time.
22033         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22034         ifdefs.
22035         (sendfd, recvfd): Follow gnulib code conventions.
22036
22037         passfd: fix incorrect sendmsg arguments
22038         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22039         incorrect msg_controllen value.
22040         * modules/passfd-tests (Depends-on): Check for alarm.
22041         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22042         Reported by Bastien ROUCARIES.
22043
22044 2011-03-30  Bruno Haible  <bruno@clisp.org>
22045
22046         c-strcasestr: Relicense under LGPLv2+.
22047         * modules/c-strcasestr (License): Change to LGPLv2+.
22048         Requested by Eric Blake, for libvirt.
22049
22050 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22051
22052         * users.txt: Add libidn2.  Fix libtasn1 link.
22053
22054 2011-03-30  Jim Meyering  <meyering@redhat.com>
22055
22056         tests: readlink* ("",... fails with EINVAL on newer kernels
22057         readlink and readlinkat have typically failed with ENOENT for
22058         the invalid, empty file name,  "".  However, with the advent
22059         of linux-2.6.39, they fail with EINVAL.
22060         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22061         when operating on the empty file name.
22062         * tests/test-readlink.h (test_readlink): Likewise.
22063
22064 2011-03-29  Bruno Haible  <bruno@clisp.org>
22065
22066         Relicense some modules under LGPLv2+, for libidn2.
22067         * modules/array-mergesort (License): Change to LGPLv2+.
22068         * modules/c-strcaseeq (License): Likewise.
22069         * modules/striconveh (License): Likewise.
22070         * modules/striconveha (License): Likewise.
22071         * modules/uniconv/base (License): Likewise.
22072         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22073         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22074         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22075         * modules/unictype/base (License): Likewise.
22076         * modules/unictype/bidiclass-of (License): Likewise.
22077         * modules/unictype/category-M (License): Likewise.
22078         * modules/unictype/category-none (License): Likewise.
22079         * modules/unictype/category-of (License): Likewise.
22080         * modules/unictype/category-test (License): Likewise.
22081         * modules/unictype/category-test-withtable (License): Likewise.
22082         * modules/unictype/combining-class (License): Likewise.
22083         * modules/unictype/joiningtype-of (License): Likewise.
22084         * modules/unictype/scripts (License): Likewise.
22085         * modules/uninorm/base (License): Likewise.
22086         * modules/uninorm/canonical-decomposition (License): Likewise.
22087         * modules/uninorm/composition (License): Likewise.
22088         * modules/uninorm/decompose-internal (License): Likewise.
22089         * modules/uninorm/decomposition-table (License): Likewise.
22090         * modules/uninorm/nfc (License): Likewise.
22091         * modules/uninorm/nfd (License): Likewise.
22092         * modules/uninorm/u32-normalize (License): Likewise.
22093         * modules/unistr/base (License): Likewise.
22094         * modules/unistr/u32-cpy (License): Likewise.
22095         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22096         * modules/unistr/u32-to-u8 (License): Likewise.
22097         * modules/unistr/u32-uctomb (License): Likewise.
22098         * modules/unistr/u8-check (License): Likewise.
22099         * modules/unistr/u8-mblen (License): Likewise.
22100         * modules/unistr/u8-mbtouc (License): Likewise.
22101         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22102         * modules/unistr/u8-mbtoucr (License): Likewise.
22103         * modules/unistr/u8-prev (License): Likewise.
22104         * modules/unistr/u8-strlen (License): Likewise.
22105         * modules/unistr/u8-to-u32 (License): Likewise.
22106         * modules/unistr/u8-uctomb (License): Likewise.
22107         * modules/unitypes (License): Likewise.
22108         Requested by Simon Josefsson.
22109
22110 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22111
22112         lib-symbol-visibility: Add a notice.
22113         * modules/lib-symbol-visibility (Notice): New field.
22114
22115 2011-03-29  Bruno Haible  <bruno@clisp.org>
22116
22117         getaddrinfo: Doc fix.
22118         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22119         section "fixed in Gnulib".
22120
22121 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22122
22123         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22124         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22125
22126 2011-03-26  Bruno Haible  <bruno@clisp.org>
22127
22128         unictype/property-byname: Reduce the number of load-time relocations.
22129         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22130         (UC_PROPERTY_INDEX_*): New enumeration values.
22131         (uc_property_byname): Convert an index from the lookup table to an
22132         uc_property_t.
22133         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22134         values.
22135
22136 2011-03-26  Bruno Haible  <bruno@clisp.org>
22137
22138         unictype/property-byname: Allow omitted word separators and aliases.
22139         * lib/unictype/pr_byname.gperf: Add property names without word
22140         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22141         for 'space'.
22142
22143 2011-03-26  Bruno Haible  <bruno@clisp.org>
22144
22145         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22146         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22147         also hyphens to space.
22148         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22149         without spaces.
22150         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22151
22152 2011-03-26  Bruno Haible  <bruno@clisp.org>
22153
22154         unictype/joiningtype-byname: Recognize long names as well.
22155         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22156         a long name.
22157         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22158         unictype/joiningtype_byname.h.
22159         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22160         * lib/unictype/joiningtype_byname.gperf: New file.
22161         * modules/unictype/joiningtype-byname (Files): Add
22162         lib/unictype/joiningtype_byname.gperf.
22163         (Depends-on): Add gperf.
22164         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22165         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22166         long names.
22167
22168         Tests for module 'unictype/joiningtype-longname'.
22169         * modules/unictype/joiningtype-longname-tests: New file.
22170         * tests/unictype/test-joiningtype_longname.c: New file.
22171
22172         New module 'unictype/joiningtype-longname'.
22173         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22174         * lib/unictype/joiningtype_longname.c: New file.
22175         * modules/unictype/joiningtype-longname: New file.
22176         * modules/unictype/joiningtype-all (Depends-on): Add
22177         unictype/joiningtype-longname.
22178
22179 2011-03-26  Bruno Haible  <bruno@clisp.org>
22180
22181         unictype/bidiclass-byname: Recognize long names as well.
22182         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22183         name.
22184         * lib/unictype/bidi_byname.c: Include <string.h>,
22185         unictype/bidi_byname.h.
22186         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22187         * lib/unictype/bidi_byname.gperf: New file.
22188         * modules/unictype/bidiclass-byname (Files): Add
22189         lib/unictype/bidi_byname.gperf.
22190         (Depends-on): Add gperf.
22191         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22192         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22193         long names.
22194
22195         Tests for module 'unictype/bidiclass-longname'.
22196         * modules/unictype/bidiclass-longname-tests: New file.
22197         * tests/unictype/test-bidi_longname.c: New file.
22198
22199         New module 'unictype/bidiclass-longname'.
22200         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22201         * lib/unictype/bidi_longname.c: New file.
22202         * modules/unictype/bidiclass-longname: New file.
22203         * modules/unictype/bidiclass-all (Depends-on): Add
22204         unictype/bidiclass-longname.
22205
22206 2011-03-26  Bruno Haible  <bruno@clisp.org>
22207
22208         unictype/bidi*: Rename modules.
22209         * modules/unictype/bidiclass-all: Renamed from
22210         modules/unictype/bidicategory-all.
22211         * modules/unictype/bidiclass-name: Renamed from
22212         modules/unictype/bidiclass-name.
22213         (Description): Update.
22214         * modules/unictype/bidiclass-name-tests: Renamed from
22215         modules/unictype/bidicategory-name-tests.
22216         * modules/unictype/bidiclass-byname: Renamed from
22217         modules/unictype/bidicategory-byname.
22218         (Description): Update.
22219         * modules/unictype/bidiclass-byname-tests: Renamed from
22220         modules/unictype/bidicategory-byname-tests.
22221         * modules/unictype/bidiclass-of: Renamed from
22222         modules/unictype/bidicategory-of.
22223         (Description): Update.
22224         * modules/unictype/bidiclass-of-tests: Renamed from
22225         modules/unictype/bidicategory-of-tests.
22226         * modules/unictype/bidiclass-test: Renamed from
22227         modules/unictype/bidicategory-test.
22228         (Description): Update.
22229         * modules/unictype/bidiclass-test-tests: Renamed from
22230         modules/unictype/bidicategory-test-tests.
22231         * modules/unictype/bidicategory-all: New file, a simple redirection.
22232         * modules/unictype/bidicategory-name: Likewise.
22233         * modules/unictype/bidicategory-byname: Likewise.
22234         * modules/unictype/bidicategory-of: Likewise.
22235         * modules/unictype/bidicategory-test: Likewise.
22236         * modules/unictype/property-bidi-* (Dependencies): Update.
22237         * lib/unictype/bidi_*.c: Update comment.
22238
22239 2011-03-26  Bruno Haible  <bruno@clisp.org>
22240
22241         unictype/bidi*: Rename functions, part 2.
22242         * modules/unictype/bidicategory-name (configure.ac): Update required
22243         libunistring version.
22244         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22245
22246 2011-03-25  Bruno Haible  <bruno@clisp.org>
22247
22248         New module 'unictype/combining-class-all'.
22249         * modules/unictype/combining-class-all: New file.
22250
22251         Tests for module 'unictype/combining-class-byname'.
22252         * modules/unictype/combining-class-byname-tests: New file.
22253         * tests/unictype/test-combiningclass_byname.c: New file.
22254
22255         New module 'unictype/combining-class-byname'.
22256         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22257         * lib/unictype/combiningclass_byname.c: New file.
22258         * lib/unictype/combiningclass_byname.gperf: New file.
22259         * modules/unictype/combining-class-byname: New file.
22260
22261         Tests for module 'unictype/combining-class-longname'.
22262         * modules/unictype/combining-class-longname-tests: New file.
22263         * tests/unictype/test-combiningclass_longname.c: New file.
22264
22265         New module 'unictype/combining-class-longname'.
22266         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22267         * lib/unictype/combiningclass_longname.c: New file.
22268         * modules/unictype/combining-class-longname: New file.
22269
22270         Tests for module 'unictype/combining-class-name'.
22271         * modules/unictype/combining-class-name-tests: New file.
22272         * tests/unictype/test-combiningclass_name.c: New file.
22273
22274         New module 'unictype/combining-class-name'.
22275         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22276         * lib/unictype/combiningclass_name.c: New file.
22277         * modules/unictype/combining-class-name: New file.
22278
22279 2011-03-25  Bruno Haible  <bruno@clisp.org>
22280
22281         unictype/combining-class: Rename source files.
22282         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22283         of unictype/combining.h.
22284         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22285         Update.
22286         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22287         * modules/unictype/combining-class (Description): Fix.
22288         (Files, Makefile.am): Update.
22289         * tests/unictype/test-combiningclass.c: Renamed from
22290         tests/unictype/test-combining.c.
22291         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22292
22293 2011-03-25  Bruno Haible  <bruno@clisp.org>
22294
22295         unictype: Update list of canonical combining classes.
22296         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22297
22298 2011-03-25  Bruno Haible  <bruno@clisp.org>
22299
22300         unictype/category-byname: Recognize long names as well.
22301         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22302         a long name.
22303         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22304         unictype/categ_byname.h.
22305         (UC_CATEGORY_INDEX_*): New enumeration values.
22306         (uc_general_category_byname): Use uc_general_category_lookup and
22307         convert from index to value.
22308         * lib/unictype/categ_byname.gperf: New file.
22309         * modules/unictype/category-byname (Files): Add
22310         lib/unictype/categ_byname.gperf.
22311         (Depends-on): Add gperf.
22312         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22313         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22314         long names.
22315
22316         Tests for module 'unictype/category-longname'.
22317         * modules/unictype/category-longname-tests: New file.
22318         * tests/unictype/test-categ_longname.c: New file.
22319
22320         New module 'unictype/category-longname'.
22321         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22322         * lib/unictype/categ_longname.c: New file.
22323         * modules/unictype/category-longname: New file.
22324         * modules/unictype/category-all (Depends-on): Add it.
22325
22326 2011-03-25  Bruno Haible  <bruno@clisp.org>
22327
22328         Tests for module 'unictype/category-LC'.
22329         * modules/unictype/category-LC-tests: New file.
22330         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22331
22332         New module 'unictype/category-LC'.
22333         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22334         (UC_CATEGORY_LC): New declaration.
22335         (UC_CASED_LETTER): New macro.
22336         * lib/gen-uni-tables.c (is_category_LC): New function.
22337         (output_categories): Also handle category LC.
22338         (UC_CATEGORY_MASK_LC): New enumeration value.
22339         (general_category_byname): Also handle category LC.
22340         * lib/unictype/categ_LC.c: New file.
22341         * lib/unictype/categ_LC.h: New file, automatically generated.
22342         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22343         category LC.
22344         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22345         * modules/unictype/category-LC: New file.
22346         * modules/unictype/category-byname (Depends-on): Add
22347         unictype/category-LC.
22348         * modules/unictype/category-all (Depends-on): Likewise.
22349
22350 2011-03-25  Eric Blake  <eblake@redhat.com>
22351
22352         xmalloc: revert yesterday's regression
22353         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22354         realloc's underlying behavior (allowing allocation of zero-size
22355         objects, especially if malloc-gnu is also in use).
22356
22357 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22358
22359         maint.mk: add missing version to VC-tag
22360         * top/maint.mk: git tag was missing actual tag name; add it.
22361
22362         valgrind: do leak checking, and exit with code 1 on error (not 0)
22363         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22364         to VALGRIND.
22365
22366 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22367
22368         posix-modules: say what it does.
22369         * posix-modules: Add a line to the --help output saying what it does.
22370
22371 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22372
22373         xmalloc: Do not leak if underlying realloc is C99 compatible.
22374         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22375         This avoids a leak on C99-based systems.  See
22376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22377
22378 2011-03-24  Eric Blake  <eblake@redhat.com>
22379
22380         realloc: document portability problem
22381         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22382         passing 0 size to realloc.
22383
22384 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22385
22386         doc: update users.txt
22387         * users.txt: Add cvsps, tmpwatch
22388
22389 2011-03-23  Matt Rice  <ratmice@gmail.com>
22390
22391         doc: update users.txt
22392         * users.txt: Add gdb.
22393
22394 2011-03-23  Jim Meyering  <meyering@redhat.com>
22395
22396         doc: update users.txt
22397         Looking through matches up to the following URL (there are still
22398         several more pages), I found several projects that use gnulib:
22399         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22400         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22401         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22402
22403 2011-03-22  Bruno Haible  <bruno@clisp.org>
22404
22405         unictype/bidi*: Rename functions.
22406         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22407         uc_bidi_class, uc_is_bidi_class): New declarations.
22408         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22409         uc_bidi_category_byname.
22410         (uc_bidi_category_byname): New function.
22411         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22412         u_bidi_category_name.
22413         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22414         (uc_bidi_category_name): New function.
22415         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22416         uc_bidi_category.
22417         (uc_bidi_category): New function.
22418         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22419         uc_is_bidi_category. Invoke uc_bidi_class.
22420         (uc_is_bidi_category): New function.
22421         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22422         instead of uc_bidi_category_byname.
22423         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22424         instead of uc_bidi_category_name.
22425         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22426         uc_bidi_category.
22427         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22428         instead of uc_is_bidi_category.
22429
22430 2011-03-21  Bruno Haible  <bruno@clisp.org>
22431
22432         New module 'unictype/joininggroup-all'.
22433         * modules/unictype/joininggroup-all: New file.
22434
22435         Tests for module 'unictype/joininggroup-of'.
22436         * modules/unictype/joininggroup-of-tests: New file.
22437         * tests/unictype/test-joininggroup_of.c: New file.
22438         * tests/unictype/test-joininggroup_of.h: New file, automatically
22439         generated by gen-uni-tables.
22440
22441         New module 'unictype/joininggroup-of'.
22442         * modules/unictype/joininggroup-of: New file.
22443         * lib/unictype/joininggroup_of.c: New file.
22444         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22445         gen-uni-tables.
22446
22447         Tests for module 'unictype/joininggroup-byname'.
22448         * modules/unictype/joininggroup-byname-tests: New file.
22449         * tests/unictype/test-joininggroup_byname.c: New file.
22450
22451         New module 'unictype/joininggroup-byname'.
22452         * modules/unictype/joininggroup-byname: New file.
22453         * lib/unictype/joininggroup_byname.c: New file.
22454         * lib/unictype/joininggroup_byname.gperf: New file.
22455
22456         Tests for module 'unictype/joininggroup-name'.
22457         * modules/unictype/joininggroup-name-tests: New file.
22458         * tests/unictype/test-joininggroup_name.c: New file.
22459
22460         New module 'unictype/joininggroup-name'.
22461         * modules/unictype/joininggroup-name: New file.
22462         * lib/unictype/joininggroup_name.c: New file.
22463         * lib/unictype/joininggroup_name.h: New file.
22464
22465         New module 'unictype/joiningtype-all'.
22466         * modules/unictype/joiningtype-all: New file.
22467
22468         Tests for module 'unictype/joiningtype-of'.
22469         * modules/unictype/joiningtype-of-tests: New file.
22470         * tests/unictype/test-joiningtype_of.c: New file.
22471         * tests/unictype/test-joiningtype_of.h: New file, automatically
22472         generated by gen-uni-tables.
22473
22474         New module 'unictype/joiningtype-of'.
22475         * modules/unictype/joiningtype-of: New file.
22476         * lib/unictype/joiningtype_of.c: New file.
22477         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22478         gen-uni-tables.
22479
22480         Tests for module 'unictype/joiningtype-byname'.
22481         * modules/unictype/joiningtype-byname-tests: New file.
22482         * tests/unictype/test-joiningtype_byname.c: New file.
22483
22484         New module 'unictype/joiningtype-byname'.
22485         * modules/unictype/joiningtype-byname: New file.
22486         * lib/unictype/joiningtype_byname.c: New file.
22487
22488         Tests for module 'unictype/joiningtype-name'.
22489         * modules/unictype/joiningtype-name-tests: New file.
22490         * tests/unictype/test-joiningtype_name.c: New file.
22491
22492         New module 'unictype/joiningtype-name'.
22493         * modules/unictype/joiningtype-name: New file.
22494         * lib/unictype/joiningtype_name.c: New file.
22495
22496         unictype: Add support for Arabic shaping properties.
22497         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22498         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22499         declarations.
22500         (UC_JOINING_GROUP_*): New enumeration values.
22501         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22502         declarations.
22503         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22504         (unicode_joining_type): New variable.
22505         (UC_JOINING_GROUP_*): New enumeration values.
22506         (unicode_joining_group): New variable.
22507         (fill_arabicshaping, joining_type_as_c_identifier,
22508         output_joining_type_test, output_joining_type,
22509         joining_group_as_c_identifier, output_joining_group_test,
22510         output_joining_group): New functions.
22511         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22512         fill_arabicshaping and output_joining_type_test, output_joining_type,
22513         output_joining_group_test, output_joining_group.
22514         Reported by Simon Josefsson.
22515
22516 2011-03-21  Jim Meyering  <meyering@redhat.com>
22517
22518         strftime: fix a bug in yesterday's change
22519         * lib/strftime.c (add): Accommodate width's initial value of -1.
22520         Otherwise, nstrftime would copy uninitialized data into
22521         the result buffer.
22522
22523 2011-03-21  Jim Meyering  <meyering@redhat.com>
22524
22525         tests: add strftime-tests module
22526         * tests/test-strftime.c: New file.
22527         * modules/strftime-tests: New module.
22528
22529 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22530
22531         strftime: don't assume a byte count fits in 'int'
22532         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22533         found this problem by static analysis, using gcc -Wstrict-overflow
22534         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22535         on an integer overflow having undefined behavior, but it turns out
22536         that the argument is a size, which might not fit in 'int' anyway,
22537
22538 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22539
22540         stdio: don't require ignore_value around fwrite
22541
22542         This patch works around libc bug 11959
22543         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22544         Without this patch, applications must often write
22545         ignore_value (fwrite (...)) even though the ignore_value is
22546         not helpful here.  It's common to write many objects, using
22547         fwrite/printf/etc., and then use ferror to detect output error.
22548
22549         I considered making this patch optional, but decided against it,
22550         because libc is obviously being inconsistent here: there is no
22551         reason libc should insist that user code must inspect fwrite
22552         return's value without also insisting that it inspect printf's,
22553         putchar's, etc.  If user code wants to have a strict style where
22554         all these functions' values are checked (so that ferror need not
22555         be checked), we could add support for that style in a new gnulib
22556         module, but in the meantime it's better to be consistent and to
22557         support common usage.
22558
22559         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22560         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22561         that we are compiling in checking mode, and if not C++, and
22562         if not already wrapping fwrite for some other reason.
22563         (fwrite): #define to rpl_fwrite if the latter is defined.
22564
22565 2011-03-20  Bruno Haible  <bruno@clisp.org>
22566
22567         verror: Fix compilation error introduced on 2011-02-13.
22568         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22569         instead of __attribute__.
22570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22571
22572 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22573             Bruno Haible  <bruno@clisp.org>
22574
22575         socklen: do not depend on sys_socket
22576         While trying to modify Emacs to use gnulib's socklen module,
22577         I discovered a circular dependency: socklen depends on sys_socket
22578         and vice versa.  Emacs can use socklen, but it does not need
22579         sys_socket because it has its own substitute for sys/socket.h.
22580         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22581         gl_TYPE_SOCKLEN_T.
22582         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22583         gl_PREREQ_SYS_H_SOCKET.
22584         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22585         gl_PREREQ_SYS_H_SOCKET.
22586         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22587         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22588         * modules/socklen (Depends-on): Do not depend on sys_socket.
22589         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22590
22591 2011-03-20  Jim Meyering  <meyering@redhat.com>
22592
22593         maint.mk: sort file names *after* new transformation
22594         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22595         prefix would have led to an unwarranted failure in GNU parted.
22596         Sort after that transformation.
22597
22598 2011-03-19  Jim Meyering  <meyering@redhat.com>
22599
22600         maint.mk: fix po-file syntax-check rule
22601         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22602         Patch by Bruno Haible.
22603
22604 2011-03-19  Bruno Haible  <bruno@clisp.org>
22605
22606         socklen: Update comment.
22607         * m4/socklen.m4: Update comment about platforms.
22608
22609 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22610             Bruno Haible  <bruno@clisp.org>
22611
22612         inet_ntop, inet_pton: Simplify.
22613         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22614         documented to provide socklen_t and we already depend on sys_socket.
22615         * modules/inet_pton (Depends-on): Likewise.
22616         * lib/arpa_inet.in.h: Adjust comment.
22617
22618 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22619             Bruno Haible  <bruno@clisp.org>
22620
22621         netdb: Simplify.
22622         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22623         documented to provide socklen_t and we already depend on sys_socket.
22624         * lib/netdb.in.h: Adjust comment.
22625
22626 2011-03-19  Bruno Haible  <bruno@clisp.org>
22627
22628         sys_socket, netdb: Document problem with socklen_t.
22629         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22630         platforms.
22631         * doc/posix-headers/netdb.texi: Likewise.
22632
22633 2011-03-18  Eric Blake  <eblake@redhat.com>
22634
22635         maint.mk: let po check work in VPATH build
22636         * top/maint.mk (po_file): Allow cfg.mk override.
22637         (sc_po_check): Allow VPATH use.
22638         Reported by Jiri Denemark.
22639
22640 2011-03-16  Jim Meyering  <meyering@redhat.com>
22641
22642         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22643         Before, you would have had to create one .x-sc_ file per rule in order
22644         to exempt offending files.  Now, you may instead use a Make variable --
22645         usually defined in cfg.mk -- whose name identifies the affected rule.
22646         * top/maint.mk (_sc_excl): Define.
22647         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22648         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22649
22650 2011-03-13  Bruno Haible  <bruno@clisp.org>
22651
22652         ignore-value tests: Avoid warnings.
22653         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22654         empty for gcc < 3.4.
22655
22656 2011-03-13  Bruno Haible  <bruno@clisp.org>
22657
22658         passfd: Fix link error on Solaris.
22659         * modules/passfd (Description): Correct.
22660         (Depends-on): Add socketlib.
22661         (Link): New section.
22662         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22663
22664 2011-03-13  Bruno Haible  <bruno@clisp.org>
22665
22666         passfd: Fix link error on AIX 5.2.
22667         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22668
22669 2011-03-13  Bruno Haible  <bruno@clisp.org>
22670
22671         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22672         * lib/sys_socket.in.h: Include <stddef.h>.
22673         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22674         CMSG_FIRSTHDR. Remove unused variable.
22675
22676 2011-03-13  Bruno Haible  <bruno@clisp.org>
22677
22678         passfd: Fix compilation error on OpenBSD.
22679         * lib/passfd.c: Include <sys/uio.h>.
22680
22681 2011-03-13  Bruno Haible  <bruno@clisp.org>
22682
22683         passfd test: Fix warnings.
22684         * tests/test-passfd.c: Include <sys/wait.h>.
22685         (main): Fix typo.
22686
22687 2011-03-13  Bruno Haible  <bruno@clisp.org>
22688
22689         passfd module, part 4, tweaks.
22690         * tests/test-passfd.c: Reorder includes.
22691         (main): Fix perror and printf calls.
22692
22693 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22694
22695         passfd module, part 4.
22696         * modules/passfd-tests: New file.
22697         * tests/test-passfd.c: New file.
22698
22699 2011-03-13  Jim Meyering  <meyering@redhat.com>
22700
22701         Makefile: rely on GNU make; derive syntax-check rule names
22702         Rather than requiring that each sc_ rule be listed as a dependent
22703         of "check", use features of GNU make to derive the list.
22704         * Makefile (syntax-check-rules): Define.
22705         (check): Depend on the new variable, not the hard-coded list.
22706
22707 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22708             Bruno Haible  <bruno@clisp.org>
22709
22710         passfd module, part 3.
22711         * lib/passfd.h (recvfd): Add a flags argument.
22712         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22713         (recvfd): Add a flags argument.
22714         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22715         exists.
22716         * modules/passfd (Depends-on): Add cloexec.
22717         Suggested by Eric Blake.
22718
22719 2011-03-13  Bruno Haible  <bruno@clisp.org>
22720
22721         passfd module, part 2, tweaks.
22722         * modules/passfd (Files): Reorder.
22723         (Depends-on): Remove errno.
22724         (Include): Remove <sys/socket.h>, <sys/un.h>.
22725         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22726         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22727         specification header. Include <sys/socket.h> always. Don't include
22728         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22729         (sendfd): Clarify that it sets errno when it fails.
22730         (recvfd): Fix specification.
22731
22732 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22733
22734         passfd module, part 2.
22735         * modules/passfd: New file.
22736         * lib/passfd.h: New file.
22737         * lib/passfd.c: New file.
22738
22739 2011-03-12  Bruno Haible  <bruno@clisp.org>
22740
22741         wcswidth, mbswidth: Avoid integer overflow.
22742         * lib/wcswidth.c: Include <limits.h>.
22743         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22744         * lib/mbswidth.c: Include <limits.h>.
22745         (mbsnwidth): Avoid 'int' overflow.
22746         Reported by Jim Meyering.
22747
22748 2011-03-12  Bruno Haible  <bruno@clisp.org>
22749
22750         futimens, utimensat: Avoid endless recursion on Solaris 10.
22751         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22752         Solaris.
22753         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22754         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22755
22756 2011-03-11  Jim Meyering  <meyering@redhat.com>
22757
22758         maint.mk: relax a regexp to accommodate other formatting styles
22759         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22760         between "ngettext" and the following "(".
22761
22762 2011-03-11  Pádraig Brady <P@draigBrady.com>
22763
22764         maint.mk: suppress a false positive warning
22765         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22766         diagnostics are marked with ngettext.
22767
22768 2011-03-10  Eric Blake  <eblake@redhat.com>
22769
22770         wchar: add explicit dependencies, for Tru64
22771         * modules/mbmemcasecoll (Depends-on): Add wchar.
22772         * modules/mbtowc (Depends-on): Likewise.
22773         * modules/vasnprintf (Depends-on): Likewise.
22774         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22775         * modules/wctomb (Depends-on): Likewise.
22776         Reported by Peter O'Gorman.
22777
22778 2011-03-08  Bruno Haible  <bruno@clisp.org>
22779
22780         passfd module, part 1, tweaks.
22781         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22782         Improve indentation. Improve AC_MSG_CHECKING messages.
22783         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22784         gl_SOCKET_FAMILIES.
22785
22786 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22787
22788         passfd module, part 1.
22789         * m4/afunix.m4: New file.
22790         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22791         sockets.
22792
22793 2011-03-08  Bruno Haible  <bruno@clisp.org>
22794
22795         regex-quote: New API.
22796         * lib/regex-quote.h: Include <stdbool.h>.
22797         (struct regex_quote_spec): New type.
22798         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22799         New declarations.
22800         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22801         'const struct regex_quote_spec *' argument.
22802         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22803         (pcre_special): New constant.
22804         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22805         New functions.
22806         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22807         'const struct regex_quote_spec *' argument.
22808         * modules/regex-quote (Depends-on): Add stdbool.
22809         * tests/test-regex-quote.c (check): Update for new API. Add test for
22810         anchored results.
22811         * NEWS: Mention the API change.
22812         Reported by Reuben Thomas and Eric Blake.
22813
22814 2011-03-06  Bruno Haible  <bruno@clisp.org>
22815
22816         regex-quote: Fix creation of POSIX extended regular expressions.
22817         * lib/regex-quote.c (ere_special): Add grouping and alternation
22818         operators.
22819
22820 2011-03-05  Bruno Haible  <bruno@clisp.org>
22821
22822         doc: Improve doc regarding autopoint vs. gnulib.
22823         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22824         disable autopoint while running autoreconf.
22825         Suggested by Ralf Wildenhues.
22826
22827 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22828
22829         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22830         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22831
22832 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22833
22834         parse-duration: remove xalloc.h dependency
22835         * lib/parse-duration.c (parse_period): handle NULL return from
22836         strdup instead of calling xstrdup().
22837         * modules/parse-duration: remove "xalloc" dependency
22838
22839 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22840
22841         bootstrap: honor m4_base when running aclocal
22842         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22843
22844 2011-03-02  Jim Meyering  <meyering@redhat.com>
22845
22846         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22847         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22848         on request from Matt Booth.
22849
22850 2011-03-01  Eric Blake  <eblake@redhat.com>
22851
22852         test-link: work on Hurd
22853         * tests/test-link.h (test_link): Hurd rejects linking directories
22854         with EISDIR instead of the POSIX-mandated EPERM.
22855
22856 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22857
22858         stdio: simplify by moving files to printf-posix, sigpipe
22859         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22860         since this symbol is needed only if printf is replaced.
22861         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22862         Require gl_ASM_SYMBOL_PREFIX.
22863         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22864         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22865         (Depends-on): Add 'raise'.
22866         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22867         * modules/stdio (Files): Remove lib/stdio-write.c,
22868         m4/asm-underscore.m4.
22869         (Depends-on): Remove 'raise'.
22870
22871         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22872         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22873         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22874         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22875
22876 2011-02-28  Bruno Haible  <bruno@clisp.org>
22877
22878         localcharset: Assume ANSI C behaviour of free().
22879         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22880         calling free().
22881         Suggested by Simon Josefsson <simon@josefsson.org>.
22882
22883 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22884             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22885             Bruno Haible  <bruno@clisp.org>  (tiny change)
22886
22887         On Cygwin, use /proc file system instead of win32 API.
22888         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22889         Win32 file names.
22890         (DllMain): Simplify by removing Cygwin specific code.
22891         (find_shared_library_fullname): Use Linux specific implementation also
22892         for Cygwin.
22893         (get_shared_library_fullname): Update accordingly.
22894         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22895         Win32 file names.
22896         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22897         Cygwin specific code.
22898
22899 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22900             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22901
22902         Fix OpenMP flag detection for various Fortran compilers.
22903         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22904         OpenMP-conditional compilation construct, to force compile
22905         failure with missing OpenMP flag.
22906         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22907
22908 2011-02-25  Eric Blake  <eblake@redhat.com>
22909
22910         strstr: expand test coverage
22911         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22912         compilation.
22913         * tests/test-memmem.c (main): Duplicate tests.
22914         * tests/test-strcasestr.c (main): Likewise.
22915         * tests/test-c-strcasestr.c (main): Likewise.
22916
22917 2011-02-25  Jim Meyering  <meyering@redhat.com>
22918
22919         maint.mk: detect missing-NL-at-EOF, too
22920         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22921         it also detects when a file lacks a newline at EOF.
22922         (require_exactly_one_NL_at_EOF_): Renamed from
22923         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22924         since people may well have .x-sc_... file names tied to the
22925         existing name.  Suggested by Eric Blake.
22926
22927 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         dirname: move m4/dos.m4 functionality into lib/dosname.h
22930
22931         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22932         extracts symbols from it, puts them into config.h; but it's much
22933         easier to use the symbols directly.  filename.h already does this,
22934         but it disagrees with dos.m4 in some respects.  This patch
22935         introduces a different include file dosname.h that packages up
22936         dos.m4, and then later we can work on merging filename.h and
22937         dosname.h.  Applications that need only the easy-to-configure
22938         symbols should consider including dosname.h rather than dirname.h.
22939         * NEWS: Mention incompatible changes.
22940         * m4/dos.m4: Remove.
22941         * lib/dosname.h, modules/dosname: New files.
22942         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22943         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22944         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22945         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22946         Include dosname.h, not dirname.h.
22947         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22948         Include dosname.h, for definitions of symbols like ISSLASH
22949         that used to be in config.h.
22950         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22952         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22953         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22954         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22955         * modules/rmdir (Files): Likewise.
22956         * modules/stat (Files): Likewise.
22957         * modules/unlink (Files): Likewise.
22958         * modules/dirname-lgpl (Depends-on): Add dosname.
22959         * modules/lstat (Depends-on): Likewise.
22960         * modules/openat (Depends-on): Likewise.
22961         * modules/rmdir (Depends-on): Likewise.
22962         * modules/savewd (Depends-on): Likewise.
22963         * modules/stat (Depends-on): Likewise.
22964         * modules/unlink (Depends-on): Likewise.
22965         * modules/openat (Depends-on): Remove dirname-lgpl.
22966         * modules/savewd (Depends-on): Likewise.
22967         * tests/test-dirname.c: Do not use removed symbols like
22968         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22969         the remaining symbols, e.g., ISSLASH ('\\').
22970
22971 2011-02-25  Eric Blake  <eblake@redhat.com>
22972
22973         strstr: revert patches that introduced bug and pessimization
22974         * lib/str-two-way.h: Add another reference.
22975         (two_way_short_needle, two_way_long_needle): Revert changes from
22976         2011-02-24; they pessimize search speed.
22977         (critical_factorization): Partially revert changes from
22978         2010-06-22; they violate the requirement that the left half of the
22979         needle be smaller than the period of the needle.
22980
22981 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         filenamecat: remove unnecessary dependency on dirname-lgpl
22984         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22985         is no direct dependency, just an indirect one via filenamecat-lgpl.
22986
22987         remove: remove unnecessary use of m4/dos.m4
22988         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22989         * modules/remove (FILES): Remove m4/dos.m4.
22990
22991         * lib/openat-proc.c: Don't include dirname.h; not needed.
22992
22993         backupfile: remove unnecessary use of m4/dos.m4
22994         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22995         of its symbols are used by the backupfile code.  backupfile.c does
22996         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22997         for the rare case of programs that want all their backup file
22998         names to live within 8+3 limits, and dos.m4 doesn't address that.
22999         * modules/backupfile (Files): Remove m4/dos.m4.
23000
23001 2011-02-24  Jim Meyering  <meyering@redhat.com>
23002
23003         strstr: fix a bug whereby strstr would mistakenly return NULL
23004         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23005         in period calculation.
23006         (two_way_long_needle): Likewise.
23007         The original problem was reported by Mike Stump in
23008         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23009         Ralf Wildenhues provided the short needle and haystack.
23010         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23011         Add a more involved test to trigger the bug in two_way_long_needle.
23012
23013 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23014
23015         gnulib-tool: remove use of bold display in help screen
23016         * gnulib-tool (func_usage): Do not use bold display anymore in the
23017         help screen.  That was just meant to be a temporary emphasis for a
23018         backward-incompatible change.
23019
23020 2011-02-23  Bruno Haible  <bruno@clisp.org>
23021
23022         Fix misindentation of preprocessor directives.
23023         * lib/argp-namefrob.h: Reindent preprocessor directives.
23024         * lib/getopt_int.h (struct _getopt_data): Likewise.
23025         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23026         * lib/vasnprintf.c (decode_long_double): Likewise.
23027         * tests/test-argmatch.c: Insert blank lines, for clarity.
23028         * tests/test-exclude.c: Likewise.
23029
23030 2011-02-22  Bruno Haible  <bruno@clisp.org>
23031
23032         ioctl: Fix for MacOS X in 64-bit mode.
23033         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23034         value.
23035         Suggested by Eric Blake.
23036         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23037
23038 2011-02-22  Jim Meyering  <meyering@redhat.com>
23039
23040         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23041         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23042         in lib/.
23043
23044 2011-02-22  Eric Blake  <eblake@redhat.com>
23045
23046         maint: avoid any CDPATH issue
23047         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23048
23049         maint: adjust cpp indentation for my modules, as well
23050         * Makefile (sc_cpp_indent_check): Add my name.
23051         * lib/fbufmode.c: Filter through cppi.
23052         * lib/fpurge.c: Likewise.
23053         * lib/freadable.c: Likewise.
23054         * lib/freading.c: Likewise.
23055         * lib/fwritable.c: Likewise.
23056         * lib/fwriting.c: Likewise.
23057         * lib/sigaction.c: Likewise.
23058
23059 2011-02-22  Jim Meyering  <meyering@redhat.com>
23060
23061         maint: adjust cpp indentation to reflect nesting depth
23062         I.e., in a block of code that begins with an unnested "#if",
23063         put one space between the "#" in column 1 and following token.
23064         For example,
23065         -#include <sys/vfs.h>
23066         +# include <sys/vfs.h>
23067         Do this only in .c files that are part of a module I maintain.
23068         * lib/linkat.c: Filter through cppi.
23069         * lib/nanosleep.c: Likewise.
23070         * lib/openat.c: Likewise.
23071         * lib/openat-die.c: Likewise.
23072         * lib/dup3.c: Likewise.
23073         * lib/fchownat.c: Likewise.
23074         * lib/flock.c: Likewise.
23075         * lib/fsync.c: Likewise.
23076         * lib/fts.c: Likewise.
23077         * lib/getpass.c: Likewise.
23078         * lib/gettimeofday.c: Likewise.
23079         * lib/userspec.c: Likewise.
23080         * Makefile (sc_cpp_indent_check): New rule, to check this.
23081
23082 2011-02-22  Bruno Haible  <bruno@clisp.org>
23083
23084         New module 'wctomb'.
23085         * lib/stdlib.in.h (wctomb): New declaration.
23086         * lib/wctomb.c: New file.
23087         * lib/wctomb-impl.h: New file.
23088         * m4/wctomb.m4: New file.
23089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23090         REPLACE_WCTOMB.
23091         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23092         REPLACE_WCTOMB.
23093         * modules/wctomb: New file.
23094         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23095         * doc/posix-functions/wctomb.texi: Mention the new module.
23096         * modules/wctob (Depends-on): Add wctomb.
23097
23098 2011-02-22  Bruno Haible  <bruno@clisp.org>
23099
23100         New module 'mbtowc'.
23101         * lib/stdlib.in.h (mbtowc): New declaration.
23102         * lib/mbtowc.c: New file.
23103         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23104         * m4/mbtowc.m4: New file.
23105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23106         REPLACE_MBTOWC.
23107         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23108         REPLACE_MBTOWC.
23109         * modules/mbtowc: New file.
23110         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23111         * doc/posix-functions/mbtowc.texi: Mention the new module.
23112         * modules/btowc (Depends-on): Add mbtowc.
23113
23114 2011-02-22  Bruno Haible  <bruno@clisp.org>
23115
23116         wcrtomb: Add more tests for native Windows platforms.
23117         * tests/test-wcrtomb-w32-1.sh: New file.
23118         * tests/test-wcrtomb-w32-2.sh: New file.
23119         * tests/test-wcrtomb-w32-3.sh: New file.
23120         * tests/test-wcrtomb-w32-4.sh: New file.
23121         * tests/test-wcrtomb-w32-5.sh: New file.
23122         * tests/test-wcrtomb-w32.c: New file.
23123         * modules/wcrtomb-tests (Files): Add them.
23124         (Makefile.am): Arrange to run these tests.
23125         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23126         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23127
23128 2011-02-20  Bruno Haible  <bruno@clisp.org>
23129
23130         wcrtomb: Enhance test.
23131         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23132
23133 2011-02-20  Bruno Haible  <bruno@clisp.org>
23134
23135         mbrtowc: Tiny optimization.
23136         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23137
23138 2011-02-20  Jim Meyering  <meyering@redhat.com>
23139
23140         test-exclude.c: remove unmatched #endif
23141         * tests/test-exclude.c: Remove stray #endif, left over from
23142         the change of a week ago.
23143
23144 2011-02-19  Jim Meyering  <meyering@redhat.com>
23145
23146         git-version-gen: skip "-dirty" check when appropriate
23147         * build-aux/git-version-gen: Don't run any git commands when the
23148         version string comes from .tarball-version.  Prior to this, we
23149         would run git update-index --refresh even from a just-unpacked
23150         tarball directory, and that could affect a .git/ directory in a
23151         parent of the build directory.  Reported by Mike Frysinger.
23152
23153 2011-02-19  Bruno Haible  <bruno@clisp.org>
23154
23155         unictype/property-byname: Reduce the size of the 'data' segment.
23156         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23157
23158 2011-02-19  Bruno Haible  <bruno@clisp.org>
23159
23160         unictype/scripts: Reduce the size of the 'data' segment.
23161         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23162         '%pic'.
23163         * lib/unictype/scripts_byname.gperf: Regenerated.
23164
23165 2011-02-19  Bruno Haible  <bruno@clisp.org>
23166
23167         stdint: Update documentation.
23168         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23169
23170 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         stdint: omit redundant check for wchar.h
23173         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23174         always tests whether wchar.h exists, so remove the now-redundant test.
23175
23176 2011-02-18  Bruno Haible  <bruno@clisp.org>
23177
23178         stdint: Cut dependency to module 'wchar'.
23179         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23180         include the necessary prerequisites.
23181         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23182         * modules/stdint (Depends-on): Remove wchar.
23183         (Makefile.am): Substitute HAVE_WCHAR_H.
23184         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23185
23186 2011-02-18  Eric Blake  <eblake@redhat.com>
23187
23188         longlong: skip, rather than fail, on cross-compilation
23189         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23190         when cross-compiling; regression from 2011-02-16.
23191
23192 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23193
23194         * NEWS: Mention 2011-02-08 change to stdlib.
23195
23196 2011-02-17  Bruno Haible  <bruno@clisp.org>
23197
23198         getloadavg: Add comments about platforms.
23199         * m4/getloadavg.m4: Add comment.
23200         * lib/getloadavg.c: Likewise.
23201
23202 2011-02-17  Bruno Haible  <bruno@clisp.org>
23203
23204         getloadavg: Fix link error on Solaris 2.6.
23205         * modules/getloadavg (Link): New section.
23206         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23207         linking test-getloadavg.
23208         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23209         getloadavg.
23210
23211 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23212
23213         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23214         It was 'int', but this doesn't match the IRIX 6.5 manual.
23215         Suggested by Bruno Haible in
23216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23217
23218 2011-02-17  Bruno Haible  <bruno@clisp.org>
23219
23220         havelib: Fix comments.
23221         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23222         change.
23223
23224 2011-02-17  Bruno Haible  <bruno@clisp.org>
23225
23226         havelib: Update config.rpath.
23227         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23228
23229 2011-02-17  Bruno Haible  <bruno@clisp.org>
23230
23231         getloadavg test: Add some plausibility checks.
23232         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23233         is improbable.
23234
23235 2011-02-16  Eric Blake  <eblake@redhat.com>
23236
23237         maintainer-makefile: make syntax-check a no-op from tarballs
23238         * top/maint.mk (no-vc-detected): New rule.
23239         (local-checks-available): Use it to avoid hanging if someone tries
23240         'make syntax-check' from a tarball.  Also append to any non-syntax
23241         checks already defined in cfg.mk.
23242
23243 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23244
23245         longlong: tune, particularly for common case of c99
23246
23247         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23248         or running anything if c99, or if unsigned long long int does not
23249         work.  In either case, we know the answer without further tests.
23250         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23251         it at most once, and use its results for both long long int and
23252         unsigned long long int.  This is more likely to be efficient in
23253         the common case where the program wants to check for both long
23254         long int and unsigned long long int.
23255         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23256         since the answer is already known.
23257
23258 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23259
23260         getloadavg: set errno
23261         * lib/getloadavg.c: Set errno when returning -1.  If no other
23262         error number looks appropriate, set it to ENOSYS if the getloadavg
23263         looks like it can't possibly ever work, ENOTSUP otherwise.
23264         Suggested by Bruno Haible in
23265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23266
23267         getloadavg: trim unused parts and speed up 'configure'
23268         * NEWS: Document this.
23269         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23270         always compiled if getloadavg is absent.
23271         Move test code to ...
23272         * tests/test-getloadavg.c: New file, containing previous
23273         contents of test from lib/getloadavg.c.  It also contains
23274         suggestions by Bruno Haible in
23275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23276         * modules/getloadavg-tests: New file.
23277         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23278         Do tests in the same order as they're needed for getloadavg.c.
23279         Omit setgid-related tests that generate symbols KMEM_GROUP,
23280         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23281         Do only the tests that are needed to see whether the system has
23282         getloadavg, moving the other tests into ...
23283         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23284         NLIST_NAME_UNION; nobody should be using it.  Do not define
23285         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23286         relevant, as the user of this module shouldn't care how getloadavg
23287         is implemented.
23288
23289         getloadavg: omit unused var
23290         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23291
23292 2011-02-15  Jim Meyering  <meyering@redhat.com>
23293
23294         doc: update users.txt
23295         * users.txt: Update iwhd's URL.
23296
23297 2011-02-13  Bruno Haible  <bruno@clisp.org>
23298
23299         Consistent macro naming for macros that use GCC __attribute__.
23300         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23301         _ATTRIBUTE_NONNULL_.
23302         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23303         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23304         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23305         ATTRIBUTE_DEPRECATED.
23306         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23307         ATTRIBUTE_NORETURN.
23308         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23309         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23310         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23311         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23312         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23313         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23314         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23315         ATTRIBUTE_SENTINEL.
23316         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23317         ATTRIBUTE_RETURN_CHECK.
23318         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23319         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23320         ATTRIBUTE_NORETURN.
23321         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23322         Reported by Paul Eggert.
23323
23324 2011-02-13  Bruno Haible  <bruno@clisp.org>
23325
23326         Don't interfere with a program's definition of __attribute__.
23327         * lib/argp.h (__attribute__): Remove definition.
23328         (_GL_ATTRIBUTE_FORMAT): New macro.
23329         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23330         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23331         (_GL_ATTRIBUTE_FORMAT): New macro.
23332         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23333         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23334         GCC 3 or newer.
23335         * lib/error.h (__attribute__): Remove definition.
23336         (_GL_ATTRIBUTE_FORMAT): New macro.
23337         (error, error_at_line): Use it.
23338         * lib/hash.h (__attribute__): Remove definition.
23339         (ATTRIBUTE_WUR): Update definition. Define always.
23340         * lib/openat.h (__attribute__): Remove definition.
23341         (ATTRIBUTE_NORETURN): Update definition. Define always.
23342         * lib/sigpipe-die.h (__attribute__): Remove definition.
23343         (ATTRIBUTE_NORETURN): Update definition. Define always.
23344         * lib/vasnprintf.h (__attribute__): Remove definition.
23345         (_GL_ATTRIBUTE_FORMAT): New macro.
23346         (asnprintf, vasnprintf): Use it.
23347         * lib/xalloc.h (__attribute__): Remove definition.
23348         (ATTRIBUTE_NORETURN): Update definition. Define always.
23349         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23350         * lib/xmemdup0.h (__attribute__): Remove definition.
23351         (ATTRIBUTE_NORETURN): Update definition. Define always.
23352         * lib/xprintf.h (__attribute__): Remove definition.
23353         (_GL_ATTRIBUTE_FORMAT): New macro.
23354         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23355         * lib/xstrtol.h (__attribute__): Remove definition.
23356         (ATTRIBUTE_NORETURN): Update definition. Define always.
23357         * lib/xvasprintf.h (__attribute__): Remove definition.
23358         (_GL_ATTRIBUTE_FORMAT): New macro.
23359         (xasprintf, xvasprintf): Use it.
23360         * tests/test-argmatch.c (__attribute__): Remove definition.
23361         (ATTRIBUTE_NORETURN): Update definition. Define always.
23362         * tests/test-exclude.c (__attribute__): Remove definition.
23363         (ATTRIBUTE_NORETURN): Update definition. Define always.
23364         Reported by Paul Eggert.
23365
23366 2011-02-13  Bruno Haible  <bruno@clisp.org>
23367
23368         mbrtowc: Add more tests for native Windows platforms.
23369         * tests/test-mbrtowc-w32-1.sh: New file.
23370         * tests/test-mbrtowc-w32-2.sh: New file.
23371         * tests/test-mbrtowc-w32-3.sh: New file.
23372         * tests/test-mbrtowc-w32-4.sh: New file.
23373         * tests/test-mbrtowc-w32-5.sh: New file.
23374         * tests/test-mbrtowc-w32.c: New file.
23375         * modules/mbrtowc-tests (Files): Add them.
23376         (Makefile.am): Arrange to run these tests.
23377         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23378         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23379
23380 2011-02-13  Bruno Haible  <bruno@clisp.org>
23381
23382         mbrtowc: Work around native Windows bug.
23383         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23384         guess when no suitable locale for testing was found.
23385         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23386
23387 2011-02-13  Bruno Haible  <bruno@clisp.org>
23388
23389         mbsinit: Work around mingw bug.
23390         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23391         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23392         Windows.
23393         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23394
23395 2011-02-13  Bruno Haible  <bruno@clisp.org>
23396
23397         mbsinit: Don't crash for a NULL argument.
23398         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23399         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23400
23401 2011-02-13  Bruno Haible  <bruno@clisp.org>
23402
23403         Don't interfere with a program's definition of __attribute__.
23404         * lib/stdio.in.h (__attribute__): Remove definition.
23405         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23406         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23407         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23408         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23409         * lib/string.in.h (__attribute__): Remove definition.
23410         Reported by Paul Eggert.
23411
23412 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23413
23414         stdlib: don't get in the way of non-GCC __attribute__
23415         See thread starting at
23416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23417         Revert previous stdlib change, installing the following instead:
23418         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23419         to get in the way of a non-GCC compiler that supports __attribute__.
23420         (_GL_ATTRIBUTE_RETURN): New macro.
23421         (_Exit): Use it instead of __attribute__.
23422
23423 2011-02-12  Bruno Haible  <bruno@clisp.org>
23424
23425         quotearg test: Avoid test failure on mingw.
23426         * tests/test-quotearg.sh: Convert the locale identifier from native
23427         Windows syntax to Unix syntax.
23428
23429 2011-02-12  Bruno Haible  <bruno@clisp.org>
23430
23431         setlocale: Prefer gnulib's override over libintl's override.
23432         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23433         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23434         GNULIB_defined_setlocale is set.
23435
23436 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23437
23438         stdlib: support non-GCC __attribute__
23439
23440         Fix a serious and tricky problem encountered when attempting to
23441         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23442         5.5, but it crashed due to memory corruption on Solaris 10 with
23443         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23444         bits that are otherwise zero.  This tagging is optional inside
23445         Emacs but is preferred and is used when __attribute__ ((__aligned
23446         (8))) works, as it does with both recent-enough GCC and with Sun C
23447         5.11.  However, Sun C 5.11 is not GCC and does not #define
23448         __GNUC__ and __GNUC_MINOR__.
23449
23450         When I added the getloadavg module to Emacs, it brought in
23451         stdlib.in.h, which contained this fragment:
23452
23453            #ifndef __attribute__
23454            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23455            #  define __attribute__(Spec)   /* empty */
23456            # endif
23457            #endif
23458
23459         When files that include <stdlib.h> were compiled with Sun C 5.11,
23460         the above code disabled __attribute__ ((__aligned (8))), which
23461         caused variables to not be properly aligned, which eventually led
23462         to the pointer corruption mentioned above.  (This was a bit hard
23463         to diagnose, unfortunately.)
23464
23465         Several "#define __attribute__(X) /* empty */" code snippets need
23466         to be eradicated from Gnulib to work with non-GCC compilers that
23467         support __attribute__.  The Autoconf way to do this is to test for
23468         each kind of attribute that we want support for, and selectively
23469         enable that in source code.
23470
23471         Fix this problem just for stdlib.h, by adding a test for the
23472         __noreturn__ attribute, and change stdlib.in.h to use that test
23473         when needed.  This technique can be easily generalized to the
23474         other *.in.h files and attributes, and a similar technique can be
23475         used for *.h and *.c files.  This patch is enough to solve the
23476         problem for Emacs + getloadavg, and I thought I'd publish it for
23477         feedback before undertaking further, similar fixes in other
23478         modules.
23479
23480         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23481         because it's not needed for stdlib.h.  It merely substitutes the
23482         value directly into stdlib.h.  We may well need to #define it, or
23483         similar symbols, for other modules, but it's nice to also have an
23484         option to not #define it for applications like Emacs that do not
23485         need it.
23486
23487         * lib/stdlib.in.h (__attribute__): Do not #define.
23488         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23489         be defined only if the _Exit module is also used.
23490         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23492         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23493         platforms.
23494         * modules/_Exit (Files): Add m4/attribute.m4.
23495         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23496         * m4/attribute.m4: New file.
23497
23498 2011-02-12  Bruno Haible  <bruno@clisp.org>
23499
23500         wcsrtombs: Work around bug on native Windows.
23501         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23502         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23503         instead of len.
23504         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23505
23506 2011-02-12  Bruno Haible  <bruno@clisp.org>
23507
23508         mbsrtowcs: Work around bug on native Windows.
23509         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23510         against mingw bug.
23511         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23512
23513 2011-02-12  Bruno Haible  <bruno@clisp.org>
23514
23515         Avoid setlocale bugs in tests.
23516         * modules/btowc (Dependencies): Add setlocale.
23517         * modules/c-strcase (Dependencies): Likewise.
23518         * modules/mbmemcasecmp (Dependencies): Likewise.
23519         * modules/mbmemcasecoll (Dependencies): Likewise.
23520         * modules/mbrtowc (Dependencies): Likewise.
23521         * modules/mbscasecmp (Dependencies): Likewise.
23522         * modules/mbscasestr (Dependencies): Likewise.
23523         * modules/mbschr (Dependencies): Likewise.
23524         * modules/mbscspn (Dependencies): Likewise.
23525         * modules/mbsinit (Dependencies): Likewise.
23526         * modules/mbsncasecmp (Dependencies): Likewise.
23527         * modules/mbsnrtowcs (Dependencies): Likewise.
23528         * modules/mbspbrk (Dependencies): Likewise.
23529         * modules/mbspcasecmp (Dependencies): Likewise.
23530         * modules/mbsrchr (Dependencies): Likewise.
23531         * modules/mbsrtowcs (Dependencies): Likewise.
23532         * modules/mbsspn (Dependencies): Likewise.
23533         * modules/mbsstr (Dependencies): Likewise.
23534         * modules/nl_langinfo (Dependencies): Likewise.
23535         * modules/quotearg (Dependencies): Likewise.
23536         * modules/unicase/locale-language (Dependencies): Likewise.
23537         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23538         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23539         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23540         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23541         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23542         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23543         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23544         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23545         * modules/vasnprintf-posix (Dependencies): Likewise.
23546         * modules/wcrtomb (Dependencies): Likewise.
23547         * modules/wcsnrtombs (Dependencies): Likewise.
23548         * modules/wcsrtombs (Dependencies): Likewise.
23549
23550 2011-02-12  Bruno Haible  <bruno@clisp.org>
23551
23552         setlocale: Workaround native Windows bug.
23553         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23554         succeeds but sets LC_CTYPE to "C", report a failure.
23555         * tests/test-setlocale2.sh: New file.
23556         * tests/test-setlocale2.c: New file.
23557         * modules/setlocale-tests (Files): Add the new files.
23558         (Makefile.am): Enable test-setlocale2.sh test.
23559         * doc/posix-functions/setlocale.texi: Mention workaround.
23560
23561 2011-02-11  Bruno Haible  <bruno@clisp.org>
23562
23563         Tests for module 'setlocale'.
23564         * modules/setlocale-tests: New file.
23565         * tests/test-setlocale1.sh: New file.
23566         * tests/test-setlocale1.c: New file.
23567
23568         New module 'setlocale'.
23569         * lib/locale.in.h (setlocale): New declaration.
23570         * lib/setlocale.c: New file, based on
23571         gettext/gettext-runtime/intl/setlocale.c.
23572         * m4/setlocale.m4: New file.
23573         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23574         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23575         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23576         REPLACE_SETLOCALE.
23577         * modules/setlocale: New file.
23578         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23579         * doc/posix-functions/setlocale.texi: Mention the new module.
23580
23581 2011-02-11  Bruno Haible  <bruno@clisp.org>
23582
23583         Prepare for locale dependent tests on mingw.
23584         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23585         because it has the wrong locale encoding.
23586         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23587         French_France.1252 instead of "fr".
23588         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23589         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23590         because it has the wrong locale encoding.
23591         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23592         native Windows, try Turkish_Turkey.65001.
23593         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23594         Chinese_China.54936.
23595
23596         Prepare for locale dependent tests on mingw.
23597         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23598         differently.
23599         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23600         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23601         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23602         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23603
23604 2011-02-11  Eric Blake  <eblake@redhat.com>
23605
23606         strptime: avoid compiler warnings
23607         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23608         compiler warnings about dead code.
23609         Reported by Daniel P. Berrange.
23610
23611 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23612
23613         doc: update users.txt
23614         * users.txt: Add rcs.
23615
23616 2011-02-10  John W. Eaton  <jwe@gnu.org>
23617
23618         doc: update users.txt
23619         * users.txt: Add octave.
23620
23621 2011-02-10  Jim Meyering  <meyering@redhat.com>
23622
23623         doc: update users.txt
23624         * users.txt: Add iwhd.
23625
23626 2011-02-09  Bruno Haible  <bruno@clisp.org>
23627
23628         gnulib-tool: Make copyright notice adjustment more robust.
23629         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23630         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23631         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23632         License".
23633         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23634
23635 2011-02-06  Bruno Haible  <bruno@clisp.org>
23636
23637         New module 'towctrans'.
23638         * modules/towctrans: New file.
23639         * lib/wctype.in.h (towctrans): New declaration.
23640         * lib/towctrans.c: New file.
23641         * lib/towctrans-impl.h: New file.
23642         * m4/towctrans.m4: New file.
23643         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23644         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23645         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23646         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23647         * doc/posix-functions/towctrans.texi: Mention the new module.
23648
23649 2011-02-06  Bruno Haible  <bruno@clisp.org>
23650
23651         New module 'wctrans'.
23652         * modules/wctrans: New file.
23653         * lib/wctype.in.h (wctrans): New declaration.
23654         * lib/wctrans.c: New file.
23655         * lib/wctrans-impl.h: New file.
23656         * m4/wctrans.m4: New file.
23657         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23658         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23659         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23660         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23661         * doc/posix-functions/wctrans.texi: Mention the new module.
23662
23663 2011-02-06  Bruno Haible  <bruno@clisp.org>
23664
23665         New module 'iswctype'.
23666         * modules/iswctype: New file.
23667         * lib/wctype.in.h (iswctype): New declaration.
23668         * lib/iswctype.c: New file.
23669         * lib/iswctype-impl.h: New file.
23670         * m4/iswctype.m4: New file.
23671         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23672         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23673         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23674         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23675         * doc/posix-functions/iswctype.texi: Mention the new module and the
23676         HP-UX 11.00 problem.
23677
23678 2011-02-06  Bruno Haible  <bruno@clisp.org>
23679
23680         New module 'wctype'.
23681         * modules/wctype: Change to represent the wctype() substitute.
23682         * lib/wctype.in.h (wctype): New declaration.
23683         * lib/wctype.c: New file.
23684         * lib/wctype-impl.h: New file.
23685         * m4/wctype.m4: New file.
23686         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23687         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23688         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23689         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23690         * doc/posix-functions/wctype.texi: Mention the new module and the
23691         HP-UX 11.00 problem.
23692
23693 2011-02-06  Bruno Haible  <bruno@clisp.org>
23694
23695         wctype-h: Ensure wctype_t and wctrans_t are defined.
23696         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23697         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23698         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23699         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23700         HAVE_WCTRANS_T.
23701         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23702
23703 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23704
23705         flock: fix license typo
23706
23707         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23708         omitted.
23709
23710 2011-02-08  Bruno Haible  <bruno@clisp.org>
23711
23712         Split large sed scripts, for HP-UX sed.
23713         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23714         to avoid HP-UX limit of 99 commands, in the near future.
23715         * modules/stdlib (Makefile.am): Likewise.
23716         * modules/unistd (Makefile.am): Likewise.
23717         * modules/wchar (Makefile.am): Likewise.
23718         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23719         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23721
23722 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23723             Bruno Haible  <bruno@clisp.org>
23724
23725         stdlib: improve random_r modularization
23726         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23727         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23728         you also need the random_r module to get this material right.
23729         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23730         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23731         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23732
23733 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23734
23735         stdlib: don't depend on stdint
23736         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23737         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23738         be independent of whether stdint.h is needed.
23739         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23740         here, instead of ...
23741         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23742         struct random_data should be using the random_r module, not just
23743         the stdlib module (which wouldn't make sense: what package needs
23744         just struct random_data without also needing random_r?).
23745         * modules/stdlib (Depends-on): Remove stdint.
23746
23747         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23748         See the thread rooted at
23749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23750         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23751         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23752         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23753         __VMS)); previously it was always included (via fcntl--.h).
23754         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23755         hand; this is good enough for load averages.  Also, do not use
23756         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23757         flags directly if available and don't bother otherwise.  (Packages
23758         that need the extra reliability should use the modules that define
23759         these flags on older platforms that lack them.)
23760         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23761         fcntl-safer.
23762
23763 2011-02-08  Jim Meyering  <meyering@redhat.com>
23764
23765         di-set.h, ino-map.h: add multiple-inclusion guard
23766         Technically, the guard is required only for ino-map.h, due to its
23767         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23768         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23769         * lib/ino-map.h: Likewise.
23770
23771 2011-02-06  Bruno Haible  <bruno@clisp.org>
23772
23773         iswblank: Ensure declaration on glibc systems.
23774         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23775         * modules/iswblank (Dependencies): Add 'extensions'.
23776         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23777
23778 2011-02-06  Bruno Haible  <bruno@clisp.org>
23779
23780         New module 'iswblank'.
23781         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23782         * modules/iswblank: New file.
23783         * modules/wctype-h (Files): Remove lib/iswblank.c.
23784         (Makefile.am): Substitute GNULIB_ISWBLANK.
23785         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23786         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23787         (gl_WCTYPE_H_DEFAULTS): New macro.
23788         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23789         * modules/iswblank-tests: New file.
23790         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23791         * tests/test-wctype-h.c (main): Remove iswblank tests.
23792         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23793         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23794         of 'wctype-h'.
23795         * NEWS: Mention the change.
23796         * modules/mbchar (Depends-on): Add iswblank.
23797
23798 2011-02-08  Bruno Haible  <bruno@clisp.org>
23799
23800         di-set tests: Refactor.
23801         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23802         unnecessary includes.
23803         (ASSERT): Remove macro.
23804         (main): Make C90 compliant by avoiding variable declaration after
23805         statement.
23806         * modules/di-set-tests (Files): Add tests/macros.h.
23807
23808 2011-02-08  Bruno Haible  <bruno@clisp.org>
23809
23810         ino-map tests: Refactor.
23811         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23812         unnecessary includes.
23813         (ASSERT): Remove macro.
23814         (main): Make C90 compliant by avoiding variable declaration after
23815         statement.
23816         * modules/ino-map-tests (Files): Add tests/macros.h.
23817
23818 2011-02-08  Jim Meyering  <meyering@redhat.com>
23819
23820         di-set: add "const" to a cast
23821         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23822         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23823
23824 2011-02-06  Bruno Haible  <bruno@clisp.org>
23825
23826         Rename module 'wctype' to 'wctype-h'.
23827         * modules/wctype-h: Renamed from modules/wctype.
23828         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23829         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23830         (Files, Depends-on, Makefile.am): Update.
23831         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23832         (Files, Makefile.am): Update.
23833         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23834         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23835         * doc/posix-headers/wctype.texi: Update.
23836         * doc/posix-functions/iswalnum.texi: Update.
23837         * doc/posix-functions/iswalpha.texi: Update.
23838         * doc/posix-functions/iswblank.texi: Update.
23839         * doc/posix-functions/iswcntrl.texi: Update.
23840         * doc/posix-functions/iswdigit.texi: Update.
23841         * doc/posix-functions/iswgraph.texi: Update.
23842         * doc/posix-functions/iswlower.texi: Update.
23843         * doc/posix-functions/iswprint.texi: Update.
23844         * doc/posix-functions/iswpunct.texi: Update.
23845         * doc/posix-functions/iswspace.texi: Update.
23846         * doc/posix-functions/iswupper.texi: Update.
23847         * doc/posix-functions/iswxdigit.texi: Update.
23848         * doc/posix-functions/towlower.texi: Update.
23849         * doc/posix-functions/towupper.texi: Update.
23850         * NEWS: Mention the change.
23851         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23852         * modules/mbchar (Dependencies): Likewise.
23853         * modules/mbswidth (Dependencies): Likewise.
23854         * modules/quotearg (Dependencies): Likewise.
23855         * modules/regex (Dependencies): Likewise.
23856         * modules/wcscasecmp (Dependencies): Likewise.
23857         * modules/wcsncasecmp (Dependencies): Likewise.
23858         * modules/wcwidth (Dependencies): Likewise.
23859
23860 2011-02-06  Bruno Haible  <bruno@clisp.org>
23861
23862         New module 'wcswidth'.
23863         * modules/wcswidth: New file.
23864         * lib/wchar.in.h (wcswidth): New declaration.
23865         * lib/wcswidth.c: New file.
23866         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23867         * m4/wcswidth.m4: New file.
23868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23870         REPLACE_WCSWIDTH.
23871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23872         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23873         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23874         * doc/posix-functions/wcswidth.texi: Mention the new module.
23875
23876 2011-02-06  Bruno Haible  <bruno@clisp.org>
23877
23878         New module 'wcstok'.
23879         * modules/wcstok: New file.
23880         * lib/wchar.in.h (wcstok): New declaration.
23881         * lib/wcstok.c: New file.
23882         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23883         * m4/wcstok.m4: New file.
23884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23887         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23888         * doc/posix-functions/wcstok.texi: Mention the new module.
23889
23890 2011-02-06  Bruno Haible  <bruno@clisp.org>
23891
23892         New module 'wcsstr'.
23893         * modules/wcsstr: New file.
23894         * lib/wchar.in.h (wcsstr): New declaration.
23895         * lib/wcsstr.c: New file.
23896         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23897         * m4/wcsstr.m4: New file.
23898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23901         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23902         * doc/posix-functions/wcsstr.texi: Mention the new module.
23903
23904 2011-02-06  Bruno Haible  <bruno@clisp.org>
23905
23906         New module 'wcspbrk'.
23907         * modules/wcspbrk: New file.
23908         * lib/wchar.in.h (wcspbrk): New declaration.
23909         * lib/wcspbrk.c: New file.
23910         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23911         * m4/wcspbrk.m4: New file.
23912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23915         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23916         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23917
23918 2011-02-06  Bruno Haible  <bruno@clisp.org>
23919
23920         New module 'wcsspn'.
23921         * modules/wcsspn: New file.
23922         * lib/wchar.in.h (wcsspn): New declaration.
23923         * lib/wcsspn.c: New file.
23924         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23925         * m4/wcsspn.m4: New file.
23926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23929         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23930         * doc/posix-functions/wcsspn.texi: Mention the new module.
23931
23932 2011-02-06  Bruno Haible  <bruno@clisp.org>
23933
23934         New module 'wcscspn'.
23935         * modules/wcscspn: New file.
23936         * lib/wchar.in.h (wcscspn): New declaration.
23937         * lib/wcscspn.c: New file.
23938         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23939         * m4/wcscspn.m4: New file.
23940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23943         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23944         * doc/posix-functions/wcscspn.texi: Mention the new module.
23945
23946 2011-02-06  Bruno Haible  <bruno@clisp.org>
23947
23948         New module 'wcsrchr'.
23949         * modules/wcsrchr: New file.
23950         * lib/wchar.in.h (wcsrchr): New declaration.
23951         * lib/wcsrchr.c: New file.
23952         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23953         * m4/wcsrchr.m4: New file.
23954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23957         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23958         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23959
23960 2011-02-06  Bruno Haible  <bruno@clisp.org>
23961
23962         New module 'wcschr'.
23963         * modules/wcschr: New file.
23964         * lib/wchar.in.h (wcschr): New declaration.
23965         * lib/wcschr.c: New file.
23966         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23967         * m4/wcschr.m4: New file.
23968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23971         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23972         * doc/posix-functions/wcschr.texi: Mention the new module.
23973
23974 2011-02-06  Bruno Haible  <bruno@clisp.org>
23975
23976         New module 'wcsdup'.
23977         * modules/wcsdup: New file.
23978         * lib/wchar.in.h (wcsdup): New declaration.
23979         * lib/wcsdup.c: New file.
23980         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23981         * m4/wcsdup.m4: New file.
23982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23985         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23986         * doc/posix-functions/wcsdup.texi: Mention the new module.
23987
23988 2011-02-06  Bruno Haible  <bruno@clisp.org>
23989
23990         New module 'wcsxfrm'.
23991         * modules/wcsxfrm: New file.
23992         * lib/wchar.in.h (wcsxfrm): New declaration.
23993         * lib/wcsxfrm.c: New file.
23994         * lib/wcsxfrm-impl.h: New file.
23995         * m4/wcsxfrm.m4: New file.
23996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23999         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24000         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24001
24002 2011-02-06  Bruno Haible  <bruno@clisp.org>
24003
24004         New module 'wcscoll'.
24005         * modules/wcscoll: New file.
24006         * lib/wchar.in.h (wcscoll): New declaration.
24007         * lib/wcscoll.c: New file.
24008         * lib/wcscoll-impl.h: New file.
24009         * m4/wcscoll.m4: New file.
24010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24013         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24014         * doc/posix-functions/wcscoll.texi: Mention the new module.
24015
24016 2011-02-06  Bruno Haible  <bruno@clisp.org>
24017
24018         New module 'wcsncasecmp'.
24019         * modules/wcsncasecmp: New file.
24020         * lib/wchar.in.h (wcsncasecmp): New declaration.
24021         * lib/wcsncasecmp.c: New file.
24022         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24023         * m4/wcsncasecmp.m4: New file.
24024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24027         HAVE_WCSNCASECMP.
24028         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24029         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24030
24031 2011-02-06  Bruno Haible  <bruno@clisp.org>
24032
24033         New module 'wcscasecmp'.
24034         * modules/wcscasecmp: New file.
24035         * lib/wchar.in.h (wcscasecmp): New declaration.
24036         * lib/wcscasecmp.c: New file.
24037         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24038         * m4/wcscasecmp.m4: New file.
24039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24042         HAVE_WCSCASECMP.
24043         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24044         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24045
24046 2011-02-05  Bruno Haible  <bruno@clisp.org>
24047
24048         New module 'wcsncmp'.
24049         * modules/wcsncmp: New file.
24050         * lib/wchar.in.h (wcsncmp): New declaration.
24051         * lib/wcsncmp.c: New file.
24052         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24053         * m4/wcsncmp.m4: New file.
24054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24057         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24058         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24059
24060 2011-02-05  Bruno Haible  <bruno@clisp.org>
24061
24062         New module 'wcscmp'.
24063         * modules/wcscmp: New file.
24064         * lib/wchar.in.h (wcscmp): New declaration.
24065         * lib/wcscmp.c: New file.
24066         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24067         * m4/wcscmp.m4: New file.
24068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24071         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24072         * doc/posix-functions/wcscmp.texi: Mention the new module.
24073
24074 2011-02-05  Bruno Haible  <bruno@clisp.org>
24075
24076         New module 'wcsncat'.
24077         * modules/wcsncat: New file.
24078         * lib/wchar.in.h (wcsncat): New declaration.
24079         * lib/wcsncat.c: New file.
24080         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24081         * m4/wcsncat.m4: New file.
24082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24085         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24086         * doc/posix-functions/wcsncat.texi: Mention the new module.
24087
24088 2011-02-05  Bruno Haible  <bruno@clisp.org>
24089
24090         New module 'wcscat'.
24091         * modules/wcscat: New file.
24092         * lib/wchar.in.h (wcscat): New declaration.
24093         * lib/wcscat.c: New file.
24094         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24095         * m4/wcscat.m4: New file.
24096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24099         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24100         * doc/posix-functions/wcscat.texi: Mention the new module.
24101
24102 2011-02-05  Bruno Haible  <bruno@clisp.org>
24103
24104         New module 'wcpncpy'.
24105         * modules/wcpncpy: New file.
24106         * lib/wchar.in.h (wcpncpy): New declaration.
24107         * lib/wcpncpy.c: New file.
24108         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24109         * m4/wcpncpy.m4: New file.
24110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24112         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24113         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24114         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24115
24116 2011-02-05  Bruno Haible  <bruno@clisp.org>
24117
24118         New module 'wcsncpy'.
24119         * modules/wcsncpy: New file.
24120         * lib/wchar.in.h (wcsncpy): New declaration.
24121         * lib/wcsncpy.c: New file.
24122         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24123         * m4/wcsncpy.m4: New file.
24124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24127         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24128         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24129
24130 2011-02-05  Bruno Haible  <bruno@clisp.org>
24131
24132         New module 'wcpcpy'.
24133         * modules/wcpcpy: New file.
24134         * lib/wchar.in.h (wcpcpy): New declaration.
24135         * lib/wcpcpy.c: New file.
24136         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24137         * m4/wcpcpy.m4: New file.
24138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24140         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24141         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24142         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24143
24144 2011-02-05  Bruno Haible  <bruno@clisp.org>
24145
24146         New module 'wcscpy'.
24147         * modules/wcscpy: New file.
24148         * lib/wchar.in.h (wcscpy): New declaration.
24149         * lib/wcscpy.c: New file.
24150         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24151         * m4/wcscpy.m4: New file.
24152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24155         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24156         * doc/posix-functions/wcscpy.texi: Mention the new module.
24157
24158 2011-02-05  Bruno Haible  <bruno@clisp.org>
24159
24160         New module 'wcsnlen'.
24161         * modules/wcsnlen: New file.
24162         * lib/wchar.in.h (wcsnlen): New declaration.
24163         * lib/wcsnlen.c: New file.
24164         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24165         * m4/wcsnlen.m4: New file.
24166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24169         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24170         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24171
24172 2011-02-05  Bruno Haible  <bruno@clisp.org>
24173
24174         New module 'wcslen'.
24175         * modules/wcslen: New file.
24176         * lib/wchar.in.h (wcslen): New declaration.
24177         * lib/wcslen.c: New file.
24178         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24179         * m4/wcslen.m4: New file.
24180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24183         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24184         * doc/posix-functions/wcslen.texi: Mention the new module.
24185
24186 2011-02-05  Bruno Haible  <bruno@clisp.org>
24187
24188         New module 'wmemset'.
24189         * modules/wmemset: New file.
24190         * lib/wchar.in.h (wmemset): New declaration.
24191         * lib/wmemset.c: New file.
24192         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24193         * m4/wmemset.m4: New file.
24194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24197         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24198         * doc/posix-functions/wmemset.texi: Mention the new module.
24199
24200 2011-02-05  Bruno Haible  <bruno@clisp.org>
24201
24202         New module 'wmemmove'.
24203         * modules/wmemmove: New file.
24204         * lib/wchar.in.h (wmemmove): New declaration.
24205         * lib/wmemmove.c: New file.
24206         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24207         * m4/wmemmove.m4: New file.
24208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24210         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24211         HAVE_WMEMMOVE.
24212         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24213         * doc/posix-functions/wmemmove.texi: Mention the new module.
24214
24215 2011-02-05  Bruno Haible  <bruno@clisp.org>
24216
24217         New module 'wmemcpy'.
24218         * modules/wmemcpy: New file.
24219         * lib/wchar.in.h (wmemcpy): New declaration.
24220         * lib/wmemcpy.c: New file.
24221         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24222         * m4/wmemcpy.m4: New file.
24223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24225         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24226         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24227         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24228
24229 2011-02-05  Bruno Haible  <bruno@clisp.org>
24230
24231         New module 'wmemcmp'.
24232         * modules/wmemcmp: New file.
24233         * lib/wchar.in.h (wmemcmp): New declaration.
24234         * lib/wmemcmp.c: New file.
24235         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24236         * m4/wmemcmp.m4: New file.
24237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24239         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24240         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24241         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24242
24243 2011-02-07  Jim Meyering  <meyering@redhat.com>
24244
24245         di-set, ino-map: new modules, from coreutils
24246         * lib/di-set.c: New file.
24247         * lib/di-set.h: Likewise.
24248         * lib/ino-map.c: Likewise.
24249         * lib/ino-map.h: Likewise.
24250         * modules/di-set: Likewise.
24251         * modules/di-set-tests: Likewise.
24252         * modules/ino-map: Likewise.
24253         * modules/ino-map-tests: Likewise.
24254         * tests/test-di-set.c: Likewise.
24255         * tests/test-ino-map.c: Likewise.
24256
24257 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24258
24259         getloadavg: merge minor changes from Emacs
24260
24261         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24262         (getloadavg): Use memset, not bzero.
24263
24264         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24265         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24266         clash (bug#86).
24267
24268 2010-11-14  Bruno Haible  <bruno@clisp.org>
24269
24270         Allow multiple gnulib generated replacements to coexist.
24271         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24272         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24273         * lib/langinfo.in.h (nl_item): Likewise.
24274         * lib/math.in.h (_NaN, NAN): Likewise.
24275         * lib/netdb.in.h (struct addrinfo): Likewise.
24276         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24277         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24278         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24279         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24280         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24281         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24282         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24283         pthread_mutexattr_init, pthread_mutexattr_settype,
24284         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24285         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24286         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24287         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24288         * lib/sched.in.h (struct sched_param): Likewise.
24289         * lib/se-selinux.in.h (security_class_t, security_context_t,
24290         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24291         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24292         lsetfilecon, fsetfilecon, security_check_context,
24293         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24294         Likewise.
24295         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24296         Likewise.
24297         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24298         _gl_function_taking_int_returning_void_t, union sigval,
24299         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24300         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24301         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24302         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24303         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24304         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24305         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24306         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24307         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24308         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24309         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24310         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24311         socklen_t, rpl_fd_isset): Likewise.
24312         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24313         * lib/sys_time.in.h (struct timeval): Likewise.
24314         * lib/sys_times.in.h (struct tms): Likewise.
24315         * lib/sys_utsname.in.h (struct utsname):
24316         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24317         * lib/unistd.in.h (getpagesize): Likewise.
24318         * lib/wchar.in.h (mbstate_t): Likewise.
24319         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24320         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24321         towlower, towupper): Likewise.
24322         Reported by Sam Steingold <sds@gnu.org>.
24323
24324 2011-02-05  Eric Blake  <eblake@redhat.com>
24325
24326         unsetenv: work around Haiku issues
24327         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24328         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24329
24330 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24331
24332         libposix: avoid calling error() within libposix
24333         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24334         is defined.
24335
24336 2011-02-05  Eric Blake  <eblake@redhat.com>
24337
24338         strerror_r-posix: port to cygwin
24339         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24340         implementation.
24341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24342         * tests/test-strerror_r.c (main): Fix test.
24343         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24344         issue.
24345
24346 2011-02-05  Bruno Haible  <bruno@clisp.org>
24347
24348         New module 'wmemchr'.
24349         * modules/wmemchr: New file.
24350         * lib/wchar.in.h (wmemchr): New declaration.
24351         * lib/wmemchr.c: New file.
24352         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24353         * m4/wmemchr.m4: New file.
24354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24356         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24357         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24358         * doc/posix-functions/wmemchr.texi: Mention the new module.
24359
24360 2011-02-04  Eric Blake  <eblake@redhat.com>
24361
24362         fdopendir: detect FreeBSD bug
24363         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24364         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24365
24366 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24367
24368         stdbool: do not define HAVE_STDBOOL_H
24369         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24370         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24371         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24372         imported from the latest Autoconf git.  It was motivated by Emacs,
24373         which uses gnulib but does not need HAVE_STDBOOL_H.
24374
24375 2011-02-04  Bruno Haible  <bruno@clisp.org>
24376
24377         wcsnrtombs: Prepare for new module wwcsnrtombs.
24378         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24379         * lib/wcsnrtombs.c: Include it.
24380         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24381
24382         wcsrtombs: Prepare for new module wwcsrtombs.
24383         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24384         * lib/wcsrtombs.c: Include it.
24385         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24386
24387         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24388         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24389         * lib/mbsnrtowcs.c: Include it.
24390         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24391
24392         mbsrtowcs: Prepare for new module mbsrtowwcs.
24393         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24394         * lib/mbsrtowcs.c: Include it.
24395         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24396
24397 2011-02-04  Bruno Haible  <bruno@clisp.org>
24398
24399         vasnprintf: Reduce use of malloc for small format strings.
24400         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24401         (arguments): Add room for the first 7 arguments.
24402         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24403         (char_directives, u8_directives, u16_directives, u32_directives): Add
24404         room for the first 7 directives.
24405         * lib/printf-parse.c: Include <string.h>.
24406         (PRINTF_PARSE): Change memory handling code so that it uses the first
24407         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24408         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24409         Reported by Pádraig Brady <P@draigbrady.com>.
24410
24411 2011-01-31  Eric Blake  <eblake@redhat.com>
24412
24413         dup2: work around Haiku bug
24414         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24415         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24416         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24417         * tests/test-dup2.c (main): Enhance test.
24418
24419 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24420
24421         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24422         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24423         declared by eglibc 2.11.2.
24424         * lib/stdio.in.h: Likewise.
24425
24426 2011-01-31  Eric Blake  <eblake@redhat.com>
24427
24428         ignore-value: add missing test dependency
24429         * tests/test-ignore-value.c: Revert previous change; stdio.h
24430         provides off_t.
24431         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24432
24433 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24434
24435         mktime: clarify long_int width checking
24436         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24437         the top level, to make it clearer that the assumption about
24438         long_int width is being checked.  See
24439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24440
24441 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24442
24443         ignore-value: Fix self-test.
24444         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24445
24446 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24447
24448         TYPE_MAXIMUM: avoid theoretically undefined behavior
24449         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24450         negative number, which the C Standard says has undefined behavior.
24451         In practice this is not a problem, but might as well do it by the book.
24452         Reported by Rich Felker and Eric Blake; see
24453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24454         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24455         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24457         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24458         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24459         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24460
24461         mktime: #undef mktime before #defining it
24462         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24463
24464         mktime: systematically normalize tm_isdst comparisons
24465         * lib/mktime.c (isdst_differ): New function.
24466         (__mktime_internal): Use it systematically for all isdst comparisons.
24467         This completes the fix for libc BZ #6723, and removes the need for
24468         normalizing tm_isdst.  See
24469         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24470         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24471
24472         mktime: fix some integer overflow issues and sidestep the rest
24473
24474         This was prompted by a bug report by Benjamin Lindner for MinGW
24475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24476         His bug is due to signed integer overflow (0 - INT_MIN), and I
24477         I scanned through mktime.c looking for other integer overflow
24478         problems, fixing all the bugs I found.
24479
24480         Although the C Standard says the resulting code is still not safe
24481         in the presence of integer overflow, in practice it should be good
24482         enough for all real-world two's-complement implementations, except
24483         for debugging environments that deliberately trap on integer
24484         overflow (e.g., gcc -ftrapv).
24485
24486         * lib/mktime.c (WRAPV): New macro.
24487         (SHR): Also check that long_int and time_t shift right in the
24488         usual way, before using the fast-but-unportable method.
24489         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24490         used.  The code already assumed two's complement, so there's
24491         no need to test for alternatives.  All uses removed.
24492         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24493         the C standard.  Problem reported by Rich Felker in
24494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24495         (twos_complement_arithmetic): Also check long_int and time_t.
24496         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24497         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24498         (__mktime_internal): Avoid integer overflow with unary subtraction
24499         in two instances where -1 - X is an adequate replacement for -X,
24500         since the calculations are approximate.
24501
24502 2011-01-29  Eric Blake  <eblake@redhat.com>
24503
24504         mktime: avoid infinite loop
24505         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24506         type; behavior is still undefined but portable to all known targets.
24507         Reported by Rich Felker.
24508
24509 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24510
24511         rename, unlink, same-inode: Relicense.
24512         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24513         * modules/unlink (License): Likewise.
24514         * modules/same-inode (License): Likewise.
24515
24516 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24517
24518         mktime: avoid problems on NetBSD 5 / i386
24519         * lib/mktime.c (long_int): New type.  This works around a problem
24520         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24521         but time_t is 64 bits, and where I expect the existing code is
24522         wrong in some cases.
24523         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24524         (ydhms_diff): Bring back the compile-time check for wide-enough
24525         year and yday.
24526
24527         mktime: fix misspelling in comment
24528         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24529         This merges all recent glibc changes of importance.
24530
24531 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24532
24533         move-if-change: cope with concurrent mv of identical file.
24534         * build-aux/move-if-change (CMPPROG): Accept environment
24535         variable as an override for `cmp'.
24536         (usage): Document CMPPROG.
24537         Adjust comparison to drop stdout.  Cope with failure of mv if
24538         the target file exists and is identical to the source, for
24539         parallel builds.
24540         Report from H.J. Lu against binutils in PR binutils/12283.
24541
24542 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24543
24544         * users.txt: Mention sharutils.
24545
24546 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24547
24548         * users.txt: Mention OATH Toolkit.
24549
24550 2011-01-27  Bruno Haible  <bruno@clisp.org>
24551
24552         Prepare for supporting FreeBSD 10.
24553         * build-aux/config.libpath: Remove handling of freebsd1*.
24554
24555 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24556
24557         Prepare for supporting FreeBSD 10.
24558         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24559         match FreeBSD 10.0.
24560
24561 2011-01-27  Bruno Haible  <bruno@clisp.org>
24562
24563         vma-iter, get-rusage-as: Add OpenBSD support.
24564         * modules/vma-iter (configure.ac): Test for mquery.
24565         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24566         * lib/vma-iter.c: Include <sys/mman.h>.
24567         (vma_iterate): Add an implementation based on mquery().
24568         * lib/resource-ext.h (get_rusage_as): Update comments.
24569         * lib/get-rusage-as.c: Likewise.
24570         * lib/get-rusage-data.c: Likewise.
24571
24572 2011-01-26  Karl Berry  <karl@gnu.org>
24573
24574         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24575         variables to make it easier to override the makeinfo program used.
24576
24577 2011-01-26  Eric Blake  <eblake@redhat.com>
24578
24579         fcntl: work around Haiku F_DUPFD bugs
24580         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24581         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24582         cloexec bit on duplication.
24583         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24584
24585 2011-01-26  Bruno Haible  <bruno@clisp.org>
24586
24587         Enable memory leak tests on AIX.
24588         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24589         * tests/test-fprintf-posix3.c (main): Likewise.
24590
24591 2011-01-26  Bruno Haible  <bruno@clisp.org>
24592
24593         Tests for module 'get-rusage-data'.
24594         * modules/get-rusage-data-tests: New file.
24595         * tests/test-get-rusage-data.c: New file.
24596
24597         New module 'get-rusage-data'.
24598         * lib/resource-ext.h (get_rusage_data): New declaration.
24599         * lib/get-rusage-data.c: New file.
24600         * modules/get-rusage-data: New file.
24601
24602 2011-01-25  Bruno Haible  <bruno@clisp.org>
24603
24604         get-rusage-as: Allow for easier testing.
24605         * lib/resource-ext.h (get_rusage_as): Add comment.
24606         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24607         (main): New function for interactive testing.
24608
24609 2011-01-25  Bruno Haible  <bruno@clisp.org>
24610
24611         vma-iter: Treat Haiku like BeOS.
24612         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24613         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24614
24615 2011-01-25  Eric Blake  <eblake@redhat.com>
24616
24617         c-stack: fix regression on cygwin when libsigsegv is present
24618         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24619
24620 2011-01-24  Bruno Haible  <bruno@clisp.org>
24621
24622         vma-iter: Avoid empty intervals.
24623         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24624         on an empty interval.
24625
24626 2011-01-24  Jim Meyering  <meyering@redhat.com>
24627
24628         u64: remove unnecessary #include
24629         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24630
24631 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24632
24633         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24634         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24635
24636 2011-01-23  Bruno Haible  <bruno@clisp.org>
24637
24638         New module 'vma-iter'.
24639         * lib/vma-iter.h: New file.
24640         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24641         * modules/vma-iter: New file.
24642         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24643         for get_rusage_as_via_iterator.
24644         (vma_iterate_callback): New function.
24645         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24646         * modules/get-rusage-as (Depends-on): Add vma-iter.
24647
24648 2011-01-23  Bruno Haible  <bruno@clisp.org>
24649
24650         uninorm: Tweak includes.
24651         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24652         Reported by Jim Meyering.
24653
24654 2011-01-23  Bruno Haible  <bruno@clisp.org>
24655
24656         get-rusage-as: Improve on NetBSD.
24657         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24658         /proc, like on FreeBSD.
24659
24660 2011-01-23  Jim Meyering  <meyering@redhat.com>
24661
24662         xreadlink.h: remove unnecessary #include
24663         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24664
24665         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24666         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24667
24668 2011-01-23  Bruno Haible  <bruno@clisp.org>
24669
24670         get-rusage-as: Fix bug.
24671         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24672         original limit when aborting the first loop.
24673
24674 2011-01-23  Bruno Haible  <bruno@clisp.org>
24675
24676         wctype: Ensure valid C syntax.
24677         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24678         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24679
24680 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24681
24682         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24684         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24685         as they are needed only for configure's test case.
24686         This removes two unnecessary symbols from config.h.
24687
24688         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24689         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24691         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24692         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24693         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24694         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24695         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24696         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24697         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24698         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24700         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24702         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24703         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24704         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24705         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24706
24707 2011-01-21  Eric Blake  <eblake@redhat.com>
24708
24709         maintainer-makefile: work with older git for submodule check
24710         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24711         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24712         Reported by Matthias Bolte.
24713
24714         bootstrap: minor portability fixes
24715         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24716         (usage): Omit leading capital and trailing . on help phrases, per
24717         GNU Coding Standards.
24718         (check_versions, top level): Prefix messages with script name.
24719
24720 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24721
24722         bootstrap: support --no-git option
24723         * build-aux/bootstrap: Add --no-git option, to be used when
24724         --gnulib-srcdir points to the exact desired checkout.
24725
24726 2011-01-21  Eric Blake  <eblake@redhat.com>
24727
24728         strerror_r-posix: work with glibc 2.13
24729         * lib/strerror_r.c (strerror_r): Fix return type.
24730
24731 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24732             Bruno Haible  <bruno@clisp.org>
24733
24734         uN_strstr: New unit tests.
24735         * modules/unistr/u8-strstr-tests: New file.
24736         * modules/unistr/u16-strstr-tests: New file.
24737         * modules/unistr/u32-strstr-tests: New file.
24738         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24739         * tests/unistr/test-u8-strstr.c: New file.
24740         * tests/unistr/test-u16-strstr.c: New file.
24741         * tests/unistr/test-u32-strstr.c: New file.
24742
24743 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24744             Bruno Haible  <bruno@clisp.org>
24745
24746         Make uN_strstr functions O(n) worst-case.
24747         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24748         16-bit and 32-bit unit cases, use the unibyte algorithm from
24749         lib/mbsstr.c.
24750         * lib/unistr/u8-strstr.c: Include <string.h>.
24751         (UNIT_IS_UINT8_T): New macro.
24752         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24753         (U_STRLEN, U_STRNLEN): New macros.
24754         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24755         (U_STRLEN, U_STRNLEN): New macros.
24756         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24757         (configure.ac): Update required libunistring version.
24758         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24759         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24760         malloca.
24761         (configure.ac): Update required libunistring version.
24762         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24763         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24764         malloca.
24765         (configure.ac): Update required libunistring version.
24766
24767 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24768             Bruno Haible  <bruno@clisp.org>
24769
24770         Prepare for faster uN_strstr functions.
24771         * lib/str-kmp.h: Support definable UNITs.
24772         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24773         needle_len argument.
24774         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24775         * lib/mbscasestr.c (mbscasestr): Likewise.
24776
24777 2011-01-21  Pádraig Brady <P@draigBrady.com>
24778
24779         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24780         * tests/test-malloca.c (main): Unset the environment variable
24781         to greatly speed up the test.
24782         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24783         * modules/malloca-tests: Depend on unsetenv.
24784
24785 2011-01-21  Pádraig Brady <P@draigBrady.com>
24786
24787         ignore-value: remove stdint dependency
24788         * lib/ignore-value.h: Remove <stdint.h>
24789         * modules/ignore-value: Remove stdint dependency.
24790
24791 2011-01-21  Jim Meyering  <meyering@redhat.com>
24792
24793         maint.mk: adjust variable name to be consistent with other gl_ vars
24794         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24795         to be lower case.
24796
24797 2011-01-20  Jim Meyering  <meyering@redhat.com>
24798
24799         maint.mk: make "check" depend on public-submodule-commit by default
24800         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24801
24802 2011-01-20  Bruno Haible  <bruno@clisp.org>
24803
24804         mbfile, mbiter: Complete change from 2008-12-21.
24805         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24806         * m4/mbiter.m4 (gl_MBITER): Likewise.
24807
24808 2011-01-20  Jim Meyering  <meyering@redhat.com>
24809
24810         init.sh: insert space between each function name and "()"
24811         * tests/init.sh: Make it a little easier to see that a function's
24812         name is "warn_", and not "warn" when looking at the first part of
24813         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24814
24815 2011-01-20  Jim Meyering  <meyering@redhat.com>
24816
24817         mountlist: clean up code formatting
24818         * lib/mountlist.c (read_file_system_list): Split a long line,
24819         correct bracing style, use NULL in place of "(struct statfs *)0",
24820         don't parenthesize return value, add spaces around "=" and after
24821         ";-in-for-stmt".
24822
24823 2011-01-14  Markus Duft <mduft@gentoo.org>
24824
24825         mountlist: add support for Interix
24826         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24827         Apply statvfs to all entries of /dev/fs.
24828         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24829         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24830
24831 2011-01-20  Jim Meyering  <meyering@redhat.com>
24832
24833         maint.mk: improve the public-submodule-commit rule
24834         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24835         to suppress printing of its commands... unless V=1.
24836         Add git submodule's --quiet option to suppress printing of e.g.,
24837         "Entering gnulib" output.
24838         "cd" into $(srcdir) before running git submodule.
24839
24840 2011-01-20  Bruno Haible  <bruno@clisp.org>
24841
24842         include_next: Fix bug introduced on 2011-01-18.
24843         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24844         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24845         ac_cv_header_... variable if the second argument is not 'check'.
24846         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24847         gl_NEXT_HEADERS_INTERNAL.
24848
24849 2011-01-20  Bruno Haible  <bruno@clisp.org>
24850
24851         Allow the user to avoid the GNULIB_TEST_* macros.
24852         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24853         Suggested by Paul Eggert.
24854
24855 2011-01-14  Jim Meyering  <meyering@redhat.com>
24856
24857         bootstrap: avoid failure when there is no .gitmodules file
24858         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24859         has been assigned to, even when its value is the empty string.
24860         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24861         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24862         Reported by John W. Eaton <jwe@gnu.org>.
24863
24864 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24865
24866         assume <ctype.h>, ..., <time.h> exist
24867         For years gnulib has been assuming the existence of the headers
24868         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24869         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24870         them, since they don't appear to be needed.
24871         * README (Portability guidelines): Document this.
24872         * lib/flock.c: Assume <fcntl.h> exists.
24873         * lib/regex_internal.h: Assume <locale.h> exists.
24874         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24876         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24877         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24878         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24879         * m4/regex.m4 (gl_REGEX): Likewise.
24880         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24881         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24882         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24883         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24884         * tests/test-argp.c: Likewise.
24885         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24886
24887         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24888         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24889         AA_APPLE_UNIVERSAL_BUILD.  See
24890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24891         * NEWS: Document this.
24892
24893 2011-01-19  Eric Blake  <eblake@redhat.com>
24894
24895         c-stack: assume stack overflow if SA_SIGINFO unsupported
24896         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24897         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24898         sigaction will work.
24899         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24900         behavior match Linux.
24901         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24902
24903         stdbool-tests: accommodate Haiku
24904         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24905
24906         binary-io: fix O_TEXT on Haiku
24907         * modules/binary-io (Depends-on): Add fcntl-h.
24908         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24909         than blindly undefining O_TEXT.
24910         Reported by Scott McCreary.
24911
24912 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24913
24914         include_next: do not check for standard headers like stddef.h
24915
24916         I found this problem when modifying Emacs to use gnulib.
24917         I noticed that it added HAVE_STDDEF_H to config.h, even though
24918         gnulib always assumes <stddef.h> exists as per README and this
24919         symbol is unnecessary.
24920         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24921         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24922         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24923         faster for headers like stddef.h that are known to exist.
24924         (gl_CHECK_NEXT_HEADERS): Use it.
24925         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24926         rather than gl_CHECK_NEXT_HEADERS.
24927         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24928         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24929
24930 2011-01-18  Eric Blake  <eblake@redhat.com>
24931
24932         ansi-c++-opt: skip C++ dependency style if C++ is unused
24933         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24934         tests when we know C++ compilation is not desired.
24935         Reported by Scott McCreary.
24936
24937 2011-01-18  Bruno Haible  <bruno@clisp.org>
24938
24939         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24940         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24941         (main): Perform test also when getrlimit and setrlimit don't exist or
24942         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24943         limiting the address space size using setrlimit, compare the address
24944         space size before and after the the test.
24945         * tests/test-dprintf-posix2.c: Likewise.
24946         * tests/test-fprintf-posix3.sh: Update skip messages.
24947         * tests/test-dprintf-posix2.sh: Likewise.
24948         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24949         * modules/dprintf-posix-tests (Depends-on): Likewise.
24950         Reported by Bruce Korb <bkorb@gnu.org> and
24951         Gary V. Vaughan <gary@gnu.org>.
24952
24953 2011-01-18  Bruno Haible  <bruno@clisp.org>
24954
24955         get-rusage-as: Improvement for Cygwin.
24956         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24957         areas that are merely reserved.
24958
24959 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24960
24961         strftime: remove dependencies on multibyte modules
24962
24963         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24964         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24965         only if __osf__ is defined, and I suspect OSF doesn't need these
24966         other modules.  If my guess is wrong, we'll need to come up with a
24967         variant of strftime that doesn't need the multibyte modules.
24968
24969         I discovered this problem when attempting modify Emacs to use the
24970         strftime module.  With the previous gnulib, this caused Emacs to
24971         need 31 new files, ranging from lib/config.charset to
24972         m4/wint_t.m4.  This was overkill and I expect would be offputting
24973         to the Emacs maintainers.  After this change, only 6 new files are
24974         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24975         stdbool.m4, and tm_gmtoff.m4.
24976
24977         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24978         Suggested by Bruno Haible in
24979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24980         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24981         and do not check for wchar.h.
24982         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24983         (Depends-on): Remove mbrlen, mbsinit, wchar.
24984
24985 2011-01-18  Bruno Haible  <bruno@clisp.org>
24986
24987         Tests for module 'get-rusage-as'.
24988         * modules/get-rusage-as-tests: New file.
24989         * tests/test-get-rusage-as.c: New file.
24990
24991         New module 'get-rusage-as'.
24992         * modules/get-rusage-as: New file.
24993         * lib/resource-ext.h: New file.
24994         * lib/get-rusage-as.c: New file.
24995
24996 2011-01-17  Eric Blake  <eblake@redhat.com>
24997
24998         sigaction: relax license from LGPLv3+ to LGPLv2+
24999         * modules/sigaction (License): Relax to LGPLv2+.
25000
25001 2011-01-14  Bruno Haible  <bruno@clisp.org>
25002
25003         filemode: Make function declarations usable in C++ mode.
25004         * lib/filemode.h: Enclose function declarations in extern "C" block.
25005         Reported by John W. Eaton <jwe@gnu.org>.
25006
25007 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25008
25009         save-cwd: no longer include "xgetcwd.h"
25010         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25011         This avoids a compilation failure in projects that use save-cwd
25012         without also using the xgetcwd module.
25013
25014 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25015
25016         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25017         This is so that a program like Emacs, which needs only dtoastr,
25018         does not have to bother with distributing and compiling ftoastr
25019         and ldtoastr.
25020         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25021         * modules/dtoastr, modules/ldtoastr: New files.
25022         * modules/ftoastr: Now works just for 'float'.
25023         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25024         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25025         dtoastr.c, ldtoastr.c.
25026
25027 2011-01-11  Jim Meyering  <meyering@redhat.com>
25028
25029         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25030         There is no need to work around the lack of the fchdir function,
25031         since gnulib can now provide a replacement when required.
25032         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25033         * modules/save-cwd (Depends-on): Add fchdir.
25034
25035 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25036
25037         openat, save-cwd: avoid xmalloc
25038
25039         This removes a direct (but undocumented) dependency of openat on
25040         xalloc, along with an indirect dependency via save-cwd.  It also
25041         removes a dependency of save-cwd on xgetcwd, and thereby
25042         indirectly on xalloc.  This change causes the openat substitute
25043         to fall back on save_cwd when memory is tight, and for save_cwd to
25044         fail instead of dying when memory is tight, but that's good enough.
25045         Problem and initial idea for fix reported by Bastien Roucaries in
25046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25047
25048         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25049         xalloc.h (for xmalloc).
25050         (openat_proc_name): Use malloc, not xmalloc.
25051         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25052         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25053
25054         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25055         This avoids heap allocation for file names whose lengths are in
25056         the range 512..1023, with the upper bound increasing to at most
25057         4031 depending on the platform's PATH_MAX.  (We do not want
25058         pathmax.h here as it might supply a non-constant PATH_MAX.)
25059         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25060         Perhaps they should be moved to malloca.h?
25061         (OPENAT_BUFFER_SIZE): Use them.
25062
25063 2011-01-10  Bruno Haible  <bruno@clisp.org>
25064
25065         doc: Update users.txt.
25066         * users.txt: Add recutils.
25067
25068 2011-01-09  Karl Berry  <karl@gnu.org>
25069
25070         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25071
25072         * doc/configmake.texi: New file.
25073         * doc/gnulib.texi: Include it.
25074         * modules/configmake: Move documentation from here.
25075
25076 2011-01-09  Bruno Haible  <bruno@clisp.org>
25077
25078         Update to Unicode 6.0.0.
25079         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25080         (get_lbp): Update for Unicode 6.0.0.
25081         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25082         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25083         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25084         U+11001, U+11038..U+11046. Remove U+06DE.
25085         (uc_width): Fix bounds of planes.
25086         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25087         lib/uniwidth/width.c.
25088         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25089         trailing whitespace removed.
25090         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25091         without comments, but with the original copyright notice.
25092         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25093         * lib/unicase/ignorable.h: Likewise.
25094         * lib/unicase/tocasefold.h: Likewise.
25095         * lib/unicase/tolower.h: Likewise.
25096         * lib/unicase/totitle.h: Likewise.
25097         * lib/unicase/toupper.h: Likewise.
25098         * lib/unictype/bidi_of.h: Likewise.
25099         * lib/unictype/blocks.h: Likewise.
25100         * lib/unictype/categ_C.h: Likewise.
25101         * lib/unictype/categ_Cn.h: Likewise.
25102         * lib/unictype/categ_L.h: Likewise.
25103         * lib/unictype/categ_Ll.h: Likewise.
25104         * lib/unictype/categ_Lm.h: Likewise.
25105         * lib/unictype/categ_Lo.h: Likewise.
25106         * lib/unictype/categ_Lu.h: Likewise.
25107         * lib/unictype/categ_M.h: Likewise.
25108         * lib/unictype/categ_Mc.h: Likewise.
25109         * lib/unictype/categ_Me.h: Likewise.
25110         * lib/unictype/categ_Mn.h: Likewise.
25111         * lib/unictype/categ_N.h: Likewise.
25112         * lib/unictype/categ_Nd.h: Likewise.
25113         * lib/unictype/categ_No.h: Likewise.
25114         * lib/unictype/categ_P.h: Likewise.
25115         * lib/unictype/categ_Po.h: Likewise.
25116         * lib/unictype/categ_S.h: Likewise.
25117         * lib/unictype/categ_Sc.h: Likewise.
25118         * lib/unictype/categ_Sk.h: Likewise.
25119         * lib/unictype/categ_Sm.h: Likewise.
25120         * lib/unictype/categ_So.h: Likewise.
25121         * lib/unictype/categ_of.h: Likewise.
25122         * lib/unictype/combining.h: Likewise.
25123         * lib/unictype/ctype_alnum.h: Likewise.
25124         * lib/unictype/ctype_alpha.h: Likewise.
25125         * lib/unictype/ctype_graph.h: Likewise.
25126         * lib/unictype/ctype_lower.h: Likewise.
25127         * lib/unictype/ctype_print.h: Likewise.
25128         * lib/unictype/ctype_punct.h: Likewise.
25129         * lib/unictype/ctype_upper.h: Likewise.
25130         * lib/unictype/decdigit.h: Likewise.
25131         * lib/unictype/digit.h: Likewise.
25132         * lib/unictype/numeric.h: Likewise.
25133         * lib/unictype/pr_alphabetic.h: Likewise.
25134         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25135         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25136         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25137         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25138         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25139         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25140         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25141         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25142         * lib/unictype/pr_case_ignorable.h: Likewise.
25143         * lib/unictype/pr_cased.h: Likewise.
25144         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25145         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25146         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25147         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25148         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25149         * lib/unictype/pr_combining.h: Likewise.
25150         * lib/unictype/pr_composite.h: Likewise.
25151         * lib/unictype/pr_currency_symbol.h: Likewise.
25152         * lib/unictype/pr_decimal_digit.h: Likewise.
25153         * lib/unictype/pr_deprecated.h: Likewise.
25154         * lib/unictype/pr_format_control.h: Likewise.
25155         * lib/unictype/pr_grapheme_base.h: Likewise.
25156         * lib/unictype/pr_grapheme_extend.h: Likewise.
25157         * lib/unictype/pr_grapheme_link.h: Likewise.
25158         * lib/unictype/pr_id_continue.h: Likewise.
25159         * lib/unictype/pr_id_start.h: Likewise.
25160         * lib/unictype/pr_ideographic.h: Likewise.
25161         * lib/unictype/pr_lowercase.h: Likewise.
25162         * lib/unictype/pr_math.h: Likewise.
25163         * lib/unictype/pr_numeric.h: Likewise.
25164         * lib/unictype/pr_other_alphabetic.h: Likewise.
25165         * lib/unictype/pr_other_id_continue.h: Likewise.
25166         * lib/unictype/pr_other_math.h: Likewise.
25167         * lib/unictype/pr_punctuation.h: Likewise.
25168         * lib/unictype/pr_sentence_terminal.h: Likewise.
25169         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25170         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25171         * lib/unictype/pr_unified_ideograph.h: Likewise.
25172         * lib/unictype/pr_uppercase.h: Likewise.
25173         * lib/unictype/pr_xid_continue.h: Likewise.
25174         * lib/unictype/pr_xid_start.h: Likewise.
25175         * lib/unictype/scripts.h: Likewise.
25176         * lib/unictype/scripts_byname.gperf: Likewise.
25177         * lib/unictype/sy_java_ident.h: Likewise.
25178         * lib/unigbrk/gbrkprop.h: Likewise.
25179         * lib/unilbrk/lbrkprop1.h: Likewise.
25180         * lib/unilbrk/lbrkprop2.h: Likewise.
25181         * lib/uninorm/decomposition-table2.h: Likewise.
25182         * lib/uniwbrk/wbrkprop.h: Likewise.
25183         * tests/unicase/test-cased.c: Likewise.
25184         * tests/unicase/test-ignorable.c: Likewise.
25185         * tests/unicase/test-uc_tolower.c: Likewise.
25186         * tests/unicase/test-uc_totitle.c: Likewise.
25187         * tests/unicase/test-uc_toupper.c: Likewise.
25188         * tests/unictype/test-categ_C.c: Likewise.
25189         * tests/unictype/test-categ_Cn.c: Likewise.
25190         * tests/unictype/test-categ_L.c: Likewise.
25191         * tests/unictype/test-categ_Ll.c: Likewise.
25192         * tests/unictype/test-categ_Lm.c: Likewise.
25193         * tests/unictype/test-categ_Lo.c: Likewise.
25194         * tests/unictype/test-categ_Lu.c: Likewise.
25195         * tests/unictype/test-categ_M.c: Likewise.
25196         * tests/unictype/test-categ_Mc.c: Likewise.
25197         * tests/unictype/test-categ_Me.c: Likewise.
25198         * tests/unictype/test-categ_Mn.c: Likewise.
25199         * tests/unictype/test-categ_N.c: Likewise.
25200         * tests/unictype/test-categ_Nd.c: Likewise.
25201         * tests/unictype/test-categ_No.c: Likewise.
25202         * tests/unictype/test-categ_P.c: Likewise.
25203         * tests/unictype/test-categ_Po.c: Likewise.
25204         * tests/unictype/test-categ_S.c: Likewise.
25205         * tests/unictype/test-categ_Sc.c: Likewise.
25206         * tests/unictype/test-categ_Sk.c: Likewise.
25207         * tests/unictype/test-categ_Sm.c: Likewise.
25208         * tests/unictype/test-categ_So.c: Likewise.
25209         * tests/unictype/test-ctype_alnum.c: Likewise.
25210         * tests/unictype/test-ctype_alpha.c: Likewise.
25211         * tests/unictype/test-ctype_graph.c: Likewise.
25212         * tests/unictype/test-ctype_lower.c: Likewise.
25213         * tests/unictype/test-ctype_print.c: Likewise.
25214         * tests/unictype/test-ctype_punct.c: Likewise.
25215         * tests/unictype/test-ctype_upper.c: Likewise.
25216         * tests/unictype/test-decdigit.h: Likewise.
25217         * tests/unictype/test-digit.h: Likewise.
25218         * tests/unictype/test-numeric.h: Likewise.
25219         * tests/unictype/test-pr_alphabetic.c: Likewise.
25220         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25221         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25222         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25223         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25224         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25225         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25226         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25227         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25228         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25229         * tests/unictype/test-pr_cased.c: Likewise.
25230         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25231         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25232         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25233         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25234         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25235         * tests/unictype/test-pr_combining.c: Likewise.
25236         * tests/unictype/test-pr_composite.c: Likewise.
25237         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25238         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25239         * tests/unictype/test-pr_deprecated.c: Likewise.
25240         * tests/unictype/test-pr_format_control.c: Likewise.
25241         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25242         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25243         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25244         * tests/unictype/test-pr_id_continue.c: Likewise.
25245         * tests/unictype/test-pr_id_start.c: Likewise.
25246         * tests/unictype/test-pr_ideographic.c: Likewise.
25247         * tests/unictype/test-pr_lowercase.c: Likewise.
25248         * tests/unictype/test-pr_math.c: Likewise.
25249         * tests/unictype/test-pr_numeric.c: Likewise.
25250         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25251         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25252         * tests/unictype/test-pr_other_math.c: Likewise.
25253         * tests/unictype/test-pr_punctuation.c: Likewise.
25254         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25255         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25256         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25257         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25258         * tests/unictype/test-pr_uppercase.c: Likewise.
25259         * tests/unictype/test-pr_xid_continue.c: Likewise.
25260         * tests/unictype/test-pr_xid_start.c: Likewise.
25261         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25262         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25263         changes.
25264         * lib/unictype/categ_Cc.h: Likewise.
25265         * lib/unictype/categ_Cf.h: Likewise.
25266         * lib/unictype/categ_Co.h: Likewise.
25267         * lib/unictype/categ_Cs.h: Likewise.
25268         * lib/unictype/categ_Lt.h: Likewise.
25269         * lib/unictype/categ_Nl.h: Likewise.
25270         * lib/unictype/categ_Pc.h: Likewise.
25271         * lib/unictype/categ_Pd.h: Likewise.
25272         * lib/unictype/categ_Pe.h: Likewise.
25273         * lib/unictype/categ_Pf.h: Likewise.
25274         * lib/unictype/categ_Pi.h: Likewise.
25275         * lib/unictype/categ_Ps.h: Likewise.
25276         * lib/unictype/categ_Z.h: Likewise.
25277         * lib/unictype/categ_Zl.h: Likewise.
25278         * lib/unictype/categ_Zp.h: Likewise.
25279         * lib/unictype/categ_Zs.h: Likewise.
25280         * lib/unictype/ctype_blank.h: Likewise.
25281         * lib/unictype/ctype_cntrl.h: Likewise.
25282         * lib/unictype/ctype_digit.h: Likewise.
25283         * lib/unictype/ctype_space.h: Likewise.
25284         * lib/unictype/ctype_xdigit.h: Likewise.
25285         * lib/unictype/mirror.h: Likewise.
25286         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25287         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25288         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25289         * lib/unictype/pr_bidi_control.h: Likewise.
25290         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25291         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25292         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25293         * lib/unictype/pr_bidi_pdf.h: Likewise.
25294         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25295         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25296         * lib/unictype/pr_dash.h: Likewise.
25297         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25298         * lib/unictype/pr_diacritic.h: Likewise.
25299         * lib/unictype/pr_extender.h: Likewise.
25300         * lib/unictype/pr_hex_digit.h: Likewise.
25301         * lib/unictype/pr_hyphen.h: Likewise.
25302         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25303         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25304         * lib/unictype/pr_ignorable_control.h: Likewise.
25305         * lib/unictype/pr_iso_control.h: Likewise.
25306         * lib/unictype/pr_join_control.h: Likewise.
25307         * lib/unictype/pr_left_of_pair.h: Likewise.
25308         * lib/unictype/pr_line_separator.h: Likewise.
25309         * lib/unictype/pr_logical_order_exception.h: Likewise.
25310         * lib/unictype/pr_non_break.h: Likewise.
25311         * lib/unictype/pr_not_a_character.h: Likewise.
25312         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25313         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25314         * lib/unictype/pr_other_id_start.h: Likewise.
25315         * lib/unictype/pr_other_lowercase.h: Likewise.
25316         * lib/unictype/pr_other_uppercase.h: Likewise.
25317         * lib/unictype/pr_paired_punctuation.h: Likewise.
25318         * lib/unictype/pr_paragraph_separator.h: Likewise.
25319         * lib/unictype/pr_pattern_syntax.h: Likewise.
25320         * lib/unictype/pr_pattern_white_space.h: Likewise.
25321         * lib/unictype/pr_private_use.h: Likewise.
25322         * lib/unictype/pr_quotation_mark.h: Likewise.
25323         * lib/unictype/pr_radical.h: Likewise.
25324         * lib/unictype/pr_soft_dotted.h: Likewise.
25325         * lib/unictype/pr_space.h: Likewise.
25326         * lib/unictype/pr_titlecase.h: Likewise.
25327         * lib/unictype/pr_variation_selector.h: Likewise.
25328         * lib/unictype/pr_white_space.h: Likewise.
25329         * lib/unictype/pr_zero_width.h: Likewise.
25330         * lib/unictype/sy_c_ident.h: Likewise.
25331         * lib/unictype/sy_c_whitespace.h: Likewise.
25332         * lib/unictype/sy_java_whitespace.h: Likewise.
25333         * lib/uninorm/composition-table.gperf: Likewise.
25334         * lib/uninorm/decomposition-table1.h: Likewise.
25335         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25336         LB8.
25337         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25338         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25339         * modules/unictype/*: Bump version number of expected libunistring
25340         version.
25341
25342 2011-01-09  Bruno Haible  <bruno@clisp.org>
25343
25344         Update to Unicode 5.2.0.
25345         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25346         trailing whitespace removed.
25347
25348 2011-01-09  Bruno Haible  <bruno@clisp.org>
25349
25350         New Unicode character properties, from Unicode 5.2.0.
25351         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25352         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25353         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25354         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25355         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25356         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25357         uc_is_property_cased, uc_is_property_case_ignorable,
25358         uc_is_property_changes_when_lowercased,
25359         uc_is_property_changes_when_uppercased,
25360         uc_is_property_changes_when_titlecased,
25361         uc_is_property_changes_when_casefolded,
25362         uc_is_property_changes_when_casemapped): New declarations.
25363         * lib/unictype/pr_byname.gperf: Add the new properties.
25364         * modules/unictype/property-byname (Depends-on): Depend on the new
25365         properties modules.
25366         * modules/unictype/property-all (Depends-on): Likewise.
25367         * MODULES.html.sh (Unicode string functions): Add
25368         unictype/property-case-ignorable, unictype/property-cased,
25369         unictype/property-changes-when-casefolded,
25370         unictype/property-changes-when-casemapped,
25371         unictype/property-changes-when-lowercased,
25372         unictype/property-changes-when-titlecased,
25373         unictype/property-changes-when-uppercased.
25374
25375         New module 'unictype/property-changes-when-casemapped'.
25376         * modules/unictype/property-changes-when-casemapped: New file.
25377         * lib/unictype/pr_changes_when_casemapped.c: New file.
25378         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25379         generated by gen-uni-tables.
25380         * modules/unictype/property-changes-when-casemapped-tests: New file.
25381         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25382         automatically generated by gen-uni-tables.
25383
25384         New module 'unictype/property-changes-when-casefolded'.
25385         * modules/unictype/property-changes-when-casefolded: New file.
25386         * lib/unictype/pr_changes_when_casefolded.c: New file.
25387         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25388         generated by gen-uni-tables.
25389         * modules/unictype/property-changes-when-casefolded-tests: New file.
25390         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25391         automatically generated by gen-uni-tables.
25392
25393         New module 'unictype/property-changes-when-titlecased'.
25394         * modules/unictype/property-changes-when-titlecased: New file.
25395         * lib/unictype/pr_changes_when_titlecased.c: New file.
25396         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25397         generated by gen-uni-tables.
25398         * modules/unictype/property-changes-when-titlecased-tests: New file.
25399         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25400         automatically generated by gen-uni-tables.
25401
25402         New module 'unictype/property-changes-when-uppercased'.
25403         * modules/unictype/property-changes-when-uppercased: New file.
25404         * lib/unictype/pr_changes_when_uppercased.c: New file.
25405         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25406         generated by gen-uni-tables.
25407         * modules/unictype/property-changes-when-uppercased-tests: New file.
25408         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25409         automatically generated by gen-uni-tables.
25410
25411         New module 'unictype/property-changes-when-lowercased'.
25412         * modules/unictype/property-changes-when-lowercased: New file.
25413         * lib/unictype/pr_changes_when_lowercased.c: New file.
25414         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25415         generated by gen-uni-tables.
25416         * modules/unictype/property-changes-when-lowercased-tests: New file.
25417         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25418         automatically generated by gen-uni-tables.
25419
25420         New module 'unictype/property-case-ignorable'.
25421         * modules/unictype/property-case-ignorable: New file.
25422         * lib/unictype/pr_case_ignorable.c: New file.
25423         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25424         by gen-uni-tables.
25425         * modules/unictype/property-case-ignorable-tests: New file.
25426         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25427         generated by gen-uni-tables.
25428
25429         New module 'unictype/property-cased'.
25430         * modules/unictype/property-cased: New file.
25431         * lib/unictype/pr_cased.c: New file.
25432         * lib/unictype/pr_cased.h: New file, automatically generated by
25433         gen-uni-tables.
25434         * modules/unictype/property-cased-tests: New file.
25435         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25436         gen-uni-tables.
25437
25438 2011-01-09  Bruno Haible  <bruno@clisp.org>
25439
25440         Update to Unicode 5.2.0.
25441         * lib/gen-uni-tables.c (output_predicate, output_category,
25442         output_combclass, output_bidi_category, output_decimal_digit_test,
25443         output_decimal_digit, output_digit_test, output_digit,
25444         output_numeric_test, output_numeric, output_mirror, output_scripts,
25445         output_scripts_byname, output_blocks, output_ident_category): Fix
25446         comment header.
25447         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25448         get_wbp.
25449         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25450         items.
25451         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25452         Changes_When_Lowercased, Changes_When_Uppercased,
25453         Changes_When_Titlecased, Changes_When_Casefolded,
25454         Changes_When_Casemapped.
25455         (is_property_alphabetic, is_property_default_ignorable_code_point):
25456         Update for Unicode 5.2.0.
25457         (is_property_cased, is_property_case_ignorable,
25458         is_property_changes_when_lowercased,
25459         is_property_changes_when_uppercased,
25460         is_property_changes_when_titlecased,
25461         is_property_changes_when_casefolded,
25462         is_property_changes_when_casemapped): New functions.
25463         (output_properties): Output also the properties cased, case_ignorable,
25464         changes_when_lowercased, changes_when_uppercased,
25465         changes_when_titlecased, changes_when_casefolded,
25466         changes_when_casemapped.
25467         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25468         Unicode TR#11 revision 17 -> 19.
25469         (LBP_CP): New enumeration value.
25470         (LBP_*): Adjust values accordingly.
25471         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25472         TR#14 revision 22 -> 24.
25473         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25474         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25475         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25476         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25477         is_WBP_MIDLETTER.
25478         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25479         the code1 and code2 of each composition rule.
25480         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25481         * lib/unicase/ignorable.h: Likewise.
25482         * lib/unicase/tocasefold.h: Likewise.
25483         * lib/unicase/tolower.h: Likewise.
25484         * lib/unicase/totitle.h: Likewise.
25485         * lib/unicase/toupper.h: Likewise.
25486         * lib/unictype/bidi_of.h: Likewise.
25487         * lib/unictype/blocks.h: Likewise.
25488         * lib/unictype/categ_C.h: Likewise.
25489         * lib/unictype/categ_Cf.h: Likewise.
25490         * lib/unictype/categ_Cn.h: Likewise.
25491         * lib/unictype/categ_L.h: Likewise.
25492         * lib/unictype/categ_Ll.h: Likewise.
25493         * lib/unictype/categ_Lm.h: Likewise.
25494         * lib/unictype/categ_Lo.h: Likewise.
25495         * lib/unictype/categ_Lu.h: Likewise.
25496         * lib/unictype/categ_M.h: Likewise.
25497         * lib/unictype/categ_Mc.h: Likewise.
25498         * lib/unictype/categ_Mn.h: Likewise.
25499         * lib/unictype/categ_N.h: Likewise.
25500         * lib/unictype/categ_Nd.h: Likewise.
25501         * lib/unictype/categ_Nl.h: Likewise.
25502         * lib/unictype/categ_No.h: Likewise.
25503         * lib/unictype/categ_P.h: Likewise.
25504         * lib/unictype/categ_Pd.h: Likewise.
25505         * lib/unictype/categ_Po.h: Likewise.
25506         * lib/unictype/categ_S.h: Likewise.
25507         * lib/unictype/categ_Sc.h: Likewise.
25508         * lib/unictype/categ_So.h: Likewise.
25509         * lib/unictype/categ_of.h: Likewise.
25510         * lib/unictype/combining.h: Likewise.
25511         * lib/unictype/ctype_alnum.h: Likewise.
25512         * lib/unictype/ctype_alpha.h: Likewise.
25513         * lib/unictype/ctype_graph.h: Likewise.
25514         * lib/unictype/ctype_lower.h: Likewise.
25515         * lib/unictype/ctype_print.h: Likewise.
25516         * lib/unictype/ctype_punct.h: Likewise.
25517         * lib/unictype/ctype_upper.h: Likewise.
25518         * lib/unictype/decdigit.h: Likewise.
25519         * lib/unictype/digit.h: Likewise.
25520         * lib/unictype/numeric.h: Likewise.
25521         * lib/unictype/pr_alphabetic.h: Likewise.
25522         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25523         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25524         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25525         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25526         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25527         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25528         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25529         * lib/unictype/pr_combining.h: Likewise.
25530         * lib/unictype/pr_composite.h: Likewise.
25531         * lib/unictype/pr_currency_symbol.h: Likewise.
25532         * lib/unictype/pr_dash.h: Likewise.
25533         * lib/unictype/pr_decimal_digit.h: Likewise.
25534         * lib/unictype/pr_deprecated.h: Likewise.
25535         * lib/unictype/pr_diacritic.h: Likewise.
25536         * lib/unictype/pr_extender.h: Likewise.
25537         * lib/unictype/pr_grapheme_base.h: Likewise.
25538         * lib/unictype/pr_grapheme_extend.h: Likewise.
25539         * lib/unictype/pr_grapheme_link.h: Likewise.
25540         * lib/unictype/pr_id_continue.h: Likewise.
25541         * lib/unictype/pr_id_start.h: Likewise.
25542         * lib/unictype/pr_ideographic.h: Likewise.
25543         * lib/unictype/pr_ignorable_control.h: Likewise.
25544         * lib/unictype/pr_logical_order_exception.h: Likewise.
25545         * lib/unictype/pr_lowercase.h: Likewise.
25546         * lib/unictype/pr_numeric.h: Likewise.
25547         * lib/unictype/pr_other_alphabetic.h: Likewise.
25548         * lib/unictype/pr_punctuation.h: Likewise.
25549         * lib/unictype/pr_sentence_terminal.h: Likewise.
25550         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25551         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25552         * lib/unictype/pr_unified_ideograph.h: Likewise.
25553         * lib/unictype/pr_uppercase.h: Likewise.
25554         * lib/unictype/pr_xid_continue.h: Likewise.
25555         * lib/unictype/pr_xid_start.h: Likewise.
25556         * lib/unictype/pr_zero_width.h: Likewise.
25557         * lib/unictype/scripts.h: Likewise.
25558         * lib/unictype/scripts_byname.gperf: Likewise.
25559         * lib/unictype/sy_java_ident.h: Likewise.
25560         * lib/unigbrk/gbrkprop.h: Likewise.
25561         * lib/unilbrk/lbrkprop1.h: Likewise.
25562         * lib/unilbrk/lbrkprop2.h: Likewise.
25563         * lib/unilbrk/lbrktables.h: Likewise.
25564         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25565         LBP_CP. Implement rule LB30.
25566         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25567         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25568         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25569         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25570         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25571         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25572         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25573         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25574         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25575         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25576         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25577         bits instead of 16 bits in the code1 and code2 of each composition
25578         rule.
25579         (uc_composition): Update for Unicode 5.2.0.
25580         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25581         * lib/uninorm/decomposition-table2.h: Likewise.
25582         * lib/uniwbrk/wbrkprop.h: Likewise.
25583         * tests/unicase/test-cased.c: Likewise.
25584         * tests/unicase/test-ignorable.c: Likewise.
25585         * tests/unicase/test-uc_tolower.c: Likewise.
25586         * tests/unicase/test-uc_totitle.c: Likewise.
25587         * tests/unicase/test-uc_toupper.c: Likewise.
25588         * tests/unictype/test-categ_C.c: Likewise.
25589         * tests/unictype/test-categ_Cf.c: Likewise.
25590         * tests/unictype/test-categ_Cn.c: Likewise.
25591         * tests/unictype/test-categ_L.c: Likewise.
25592         * tests/unictype/test-categ_Ll.c: Likewise.
25593         * tests/unictype/test-categ_Lm.c: Likewise.
25594         * tests/unictype/test-categ_Lo.c: Likewise.
25595         * tests/unictype/test-categ_Lu.c: Likewise.
25596         * tests/unictype/test-categ_M.c: Likewise.
25597         * tests/unictype/test-categ_Mc.c: Likewise.
25598         * tests/unictype/test-categ_Mn.c: Likewise.
25599         * tests/unictype/test-categ_N.c: Likewise.
25600         * tests/unictype/test-categ_Nd.c: Likewise.
25601         * tests/unictype/test-categ_Nl.c: Likewise.
25602         * tests/unictype/test-categ_No.c: Likewise.
25603         * tests/unictype/test-categ_P.c: Likewise.
25604         * tests/unictype/test-categ_Pd.c: Likewise.
25605         * tests/unictype/test-categ_Po.c: Likewise.
25606         * tests/unictype/test-categ_S.c: Likewise.
25607         * tests/unictype/test-categ_Sc.c: Likewise.
25608         * tests/unictype/test-categ_So.c: Likewise.
25609         * tests/unictype/test-ctype_alnum.c: Likewise.
25610         * tests/unictype/test-ctype_alpha.c: Likewise.
25611         * tests/unictype/test-ctype_graph.c: Likewise.
25612         * tests/unictype/test-ctype_lower.c: Likewise.
25613         * tests/unictype/test-ctype_print.c: Likewise.
25614         * tests/unictype/test-ctype_punct.c: Likewise.
25615         * tests/unictype/test-ctype_upper.c: Likewise.
25616         * tests/unictype/test-decdigit.h: Likewise.
25617         * tests/unictype/test-digit.h: Likewise.
25618         * tests/unictype/test-numeric.h: Likewise.
25619         * tests/unictype/test-pr_alphabetic.c: Likewise.
25620         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25621         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25622         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25623         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25624         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25625         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25626         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25627         * tests/unictype/test-pr_combining.c: Likewise.
25628         * tests/unictype/test-pr_composite.c: Likewise.
25629         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25630         * tests/unictype/test-pr_dash.c: Likewise.
25631         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25632         * tests/unictype/test-pr_deprecated.c: Likewise.
25633         * tests/unictype/test-pr_diacritic.c: Likewise.
25634         * tests/unictype/test-pr_extender.c: Likewise.
25635         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25636         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25637         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25638         * tests/unictype/test-pr_id_continue.c: Likewise.
25639         * tests/unictype/test-pr_id_start.c: Likewise.
25640         * tests/unictype/test-pr_ideographic.c: Likewise.
25641         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25642         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25643         * tests/unictype/test-pr_lowercase.c: Likewise.
25644         * tests/unictype/test-pr_numeric.c: Likewise.
25645         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25646         * tests/unictype/test-pr_punctuation.c: Likewise.
25647         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25648         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25649         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25650         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25651         * tests/unictype/test-pr_uppercase.c: Likewise.
25652         * tests/unictype/test-pr_xid_continue.c: Likewise.
25653         * tests/unictype/test-pr_xid_start.c: Likewise.
25654         * tests/unictype/test-pr_zero_width.c: Likewise.
25655         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25656         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25657         changed behaviour: line breaking is now disallowed between a letter
25658         or '=' and '('.
25659         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25660         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25661         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25662         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25663         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25664         lib/uniwidth/width.c.
25665         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25666         without comments, but with the original copyright notice.
25667         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25668         changes.
25669         * lib/unictype/categ_Cc.h: Likewise.
25670         * lib/unictype/categ_Co.h: Likewise.
25671         * lib/unictype/categ_Cs.h: Likewise.
25672         * lib/unictype/categ_Lt.h: Likewise.
25673         * lib/unictype/categ_Me.h: Likewise.
25674         * lib/unictype/categ_Pc.h: Likewise.
25675         * lib/unictype/categ_Pe.h: Likewise.
25676         * lib/unictype/categ_Pf.h: Likewise.
25677         * lib/unictype/categ_Pi.h: Likewise.
25678         * lib/unictype/categ_Ps.h: Likewise.
25679         * lib/unictype/categ_Sk.h: Likewise.
25680         * lib/unictype/categ_Sm.h: Likewise.
25681         * lib/unictype/categ_Z.h: Likewise.
25682         * lib/unictype/categ_Zl.h: Likewise.
25683         * lib/unictype/categ_Zp.h: Likewise.
25684         * lib/unictype/categ_Zs.h: Likewise.
25685         * lib/unictype/ctype_blank.h: Likewise.
25686         * lib/unictype/ctype_cntrl.h: Likewise.
25687         * lib/unictype/ctype_digit.h: Likewise.
25688         * lib/unictype/ctype_space.h: Likewise.
25689         * lib/unictype/ctype_xdigit.h: Likewise.
25690         * lib/unictype/mirror.h: Likewise.
25691         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25692         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25693         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25694         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25695         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25696         * lib/unictype/pr_bidi_control.h: Likewise.
25697         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25698         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25699         * lib/unictype/pr_bidi_pdf.h: Likewise.
25700         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25701         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25702         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25703         * lib/unictype/pr_format_control.h: Likewise.
25704         * lib/unictype/pr_hex_digit.h: Likewise.
25705         * lib/unictype/pr_hyphen.h: Likewise.
25706         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25707         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25708         * lib/unictype/pr_iso_control.h: Likewise.
25709         * lib/unictype/pr_join_control.h: Likewise.
25710         * lib/unictype/pr_left_of_pair.h: Likewise.
25711         * lib/unictype/pr_line_separator.h: Likewise.
25712         * lib/unictype/pr_math.h: Likewise.
25713         * lib/unictype/pr_non_break.h: Likewise.
25714         * lib/unictype/pr_not_a_character.h: Likewise.
25715         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25716         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25717         * lib/unictype/pr_other_id_continue.h: Likewise.
25718         * lib/unictype/pr_other_id_start.h: Likewise.
25719         * lib/unictype/pr_other_lowercase.h: Likewise.
25720         * lib/unictype/pr_other_math.h: Likewise.
25721         * lib/unictype/pr_other_uppercase.h: Likewise.
25722         * lib/unictype/pr_paired_punctuation.h: Likewise.
25723         * lib/unictype/pr_paragraph_separator.h: Likewise.
25724         * lib/unictype/pr_pattern_syntax.h: Likewise.
25725         * lib/unictype/pr_pattern_white_space.h: Likewise.
25726         * lib/unictype/pr_private_use.h: Likewise.
25727         * lib/unictype/pr_quotation_mark.h: Likewise.
25728         * lib/unictype/pr_radical.h: Likewise.
25729         * lib/unictype/pr_soft_dotted.h: Likewise.
25730         * lib/unictype/pr_space.h: Likewise.
25731         * lib/unictype/pr_titlecase.h: Likewise.
25732         * lib/unictype/pr_variation_selector.h: Likewise.
25733         * lib/unictype/pr_white_space.h: Likewise.
25734         * lib/unictype/sy_c_ident.h: Likewise.
25735         * lib/unictype/sy_c_whitespace.h: Likewise.
25736         * lib/unictype/sy_java_whitespace.h: Likewise.
25737         * modules/uni*/*: Bump version number of expected libunistring version.
25738         Reported by Simon Josefsson.
25739
25740 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25741
25742         useless-if-before-free: fix typo in --help and make the internal,
25743         automatic version date update process work once again.
25744         --help output contained a NUL character instead of the
25745         backslash-zero that was intended.  Also, the "must lie within
25746         the first 8 lines" line is on line 9, and hence not getting
25747         automatically updated.
25748         * build-aux/useless-if-before-free: Fix the former by adding a
25749         backslash, and the latter by condensing the three lines of what-it-does
25750         to a single line, leaving one line of slack for the future.
25751
25752 2011-01-09  Bruno Haible  <bruno@clisp.org>
25753
25754         uniwidth/width: Fix width of U+1D173..U+1D17A.
25755         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25756         symbolic_width, output_width_property_test): New functions.
25757         (main): Invoke output_nonspacing_property, output_width_property_test.
25758         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25759         U+1D173..U+1D17A.
25760         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25761         1.
25762         * modules/uniwidth/*: Bump version number of expected libunistring
25763         version.
25764         * modules/unilbrk/*: Likewise.
25765
25766 2011-01-08  Bruno Haible  <bruno@clisp.org>
25767
25768         uninorm tests: Preserve copyright of Unicode data file.
25769         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25770         Mention modifications.
25771
25772 2011-01-08  Bruno Haible  <bruno@clisp.org>
25773
25774         gen-uni-tables: Prepare for Unicode 5.2.0.
25775         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25776         (debug_output_lbp, output_lbp): Update.
25777
25778 2011-01-08  Bruno Haible  <bruno@clisp.org>
25779
25780         unilbrk: Clarify gen-uni-tables.c code.
25781         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25782         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25783         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25784
25785 2011-01-07  Bruno Haible  <bruno@clisp.org>
25786
25787         strtod: Restore errno when successfully parsing Infinity or NaN.
25788         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25789         restore the original errno.
25790
25791 2011-01-07  Bruno Haible  <bruno@clisp.org>
25792
25793         remove test: Avoid failure on HP-UX 11.
25794         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25795
25796 2011-01-07  Bruno Haible  <bruno@clisp.org>
25797
25798         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25799         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25800         error code.
25801
25802 2011-01-07  Pádraig Brady <P@draigBrady.com>
25803
25804         ignore-value: fixup comments, and add Eric Blake
25805         as an author since he rewrote the macros.
25806         * lib/ignore-value.h (ignore_value):  State that
25807         we now support aggregates.  Also specify exactly
25808         when the GCC warn_unused_result feature was added.
25809
25810 2011-01-06  Eric Blake  <eblake@redhat.com>
25811
25812         ignore-value: support aggregate types
25813         * lib/ignore-value.h (ignore_value): Provide separate gcc
25814         definition.
25815         * modules/ignore-value-tests: New test module.
25816         * tests/test-ignore-value.c: New test.
25817
25818         maint.mk: improve sc_prohibit_strcmp regex
25819         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25820         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25821         definition of STRNEQ.
25822
25823         signal: work around Haiku issue with SIGBUS
25824         * lib/siglist.h: Add comment.
25825         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25826         strsignal's favoring of SIGSEGV.
25827         * tests/test-signal.c (main): Avoid test failure.
25828         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25829         Reported by Scott McCreary.
25830
25831         maint.mk: add pre-release check to ensure submodule commits are public
25832         * top/maint.mk (public-submodule-commit): New rule.
25833         (submodule-checks): New variable.
25834         (alpha beta stable): Depend on the variable.
25835
25836 2011-01-05  Pádraig Brady <P@draigBrady.com>
25837         and Jim Meyering  <meyering@redhat.com>
25838
25839         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25840         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25841         (ATTRIBUTE_DEPRECATED): Define.
25842         (_ignore_case): New function.
25843         (ignore_value): New macro, to replace the old function.
25844         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25845         * modules/ignore-value (Depends-on): Add stdint.
25846
25847 2011-01-04  Eric Blake  <eblake@redhat.com>
25848
25849         doc: regenerate INSTALL
25850         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25851         @firstparagraphindent support, now that autoconf dropped it.
25852         (INSTALL_PRELUDE): Reinstate old macro.
25853         * doc/install.texi: Resync from autoconf.
25854         * doc/INSTALL: Reflect recent autoconf update.
25855         * doc/INSTALL.ISO: Likewise.
25856         * doc/INSTALL.UTF-8: Likewise.
25857         Reported by Karl Berry.
25858
25859 2011-01-04  Bruce Korb  <address@hidden>
25860
25861         git-version-gen: avoid a sub-shell
25862         * build-aux/git-version-gen: Redirect stderr in `...` via
25863         "exec 2>...", rather than via an added sub-shell.
25864
25865 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25866
25867         git-version-gen: use (...) rather than sh -c '...'
25868         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25869         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25870
25871 2011-01-03  Jim Meyering  <meyering@redhat.com>
25872
25873         git-version-gen: convert leading TABs to spaces
25874         * build-aux/git-version-gen: Expand leading TABs.
25875
25876         git-version-gen: handle failed "git rev-list"
25877         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25878         from git and proceeding as if it had succeeded but printed no SHA1
25879         checksums, suppress the diagnostic and handle the failure.
25880         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25881
25882         git-version-gen: include command name in one more diagnostic
25883         * build-aux/git-version-gen: When the required .tarball-version file
25884         was missing or unreadable, you might see the diagnostic from "cat",
25885         but no trace of the name of the invoking script.  Now, you still see
25886         the diagnostic from cat, but also get one from "git-version-gen: ".
25887         Inspired by a patch from Bruce Korb.
25888
25889         update-copyright: adjust test to match changed code
25890         * tests/test-update-copyright.sh: Change test's expected output
25891         to match new actual output.
25892
25893 2011-01-02  Bruno Haible  <bruno@clisp.org>
25894
25895         getlogin_r: Avoid test failure on HP-UX 11.
25896         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25897         ERANGE when the second argument is zero.
25898         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25899         portability problem.
25900
25901 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25902
25903         * build-aux/update-copyright: doc Simon's changes
25904
25905 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25906
25907         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25908         environment variable.
25909
25910 2011-01-02  Bruno Haible  <bruno@clisp.org>
25911
25912         unigbrk: Avoid gcc warnings.
25913         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25914         unused variable.
25915         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25916         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25917         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25918         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25919         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25920         Change type of first argument to 'const char *'.
25921         (main): Remove unused variable.
25922         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25923         type of first argument to 'const char *'.
25924         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25925         Likewise.
25926         (main): Change type of variable 's'.
25927         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25928         to 'int'.
25929
25930 2011-01-02  Bruno Haible  <bruno@clisp.org>
25931
25932         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25933         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25934         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25935         bug.
25936         * lib/pwrite.c: Undo 2010-12-31 patch.
25937         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25938
25939 2011-01-02  Bruno Haible  <bruno@clisp.org>
25940
25941         pread: Fix test whether it works.
25942         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25943
25944 2011-01-02  Bruno Haible  <bruno@clisp.org>
25945
25946         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25947         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25948         ends in "6". Don't require a specific month name. Try also the locale
25949         names found on HP-UX 11 and Solaris 7.
25950
25951 2011-01-02  Bruno Haible  <bruno@clisp.org>
25952
25953         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25954         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25955         C linkage.
25956         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25957
25958 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25959
25960         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25961         for consistency, since the "cluster" term is not used elsewhere.
25962         * lib/unigbrk.in.h: Update name.
25963         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25964         * lib/unigbrk/u16-grapheme-next.c: Update name.
25965         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25966         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25967         * lib/unigbrk/u32-grapheme-next.c: Update name.
25968         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25969         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25970         * lib/unigbrk/u8-grapheme-next.c: Update name.
25971         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25972         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25973         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25974         Suggested by Bruno Haible.
25975
25976 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25977
25978         Remove module 'u8-grapheme-len' as too redundant with
25979         'u8-grapheme-next'.
25980         * modules/unigbrk/u8-grapheme-len: Delete file.
25981         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25982         * lib/unigbrk.in.h: Remove prototype for deleted function.
25983         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25984         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25985
25986         Remove module 'u16-grapheme-len' as too redundant with
25987         'u16-grapheme-next'.
25988         * modules/unigbrk/u16-grapheme-len: Delete file.
25989         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25990         * lib/unigbrk.in.h: Remove prototype for deleted function.
25991         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25992         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25993
25994         Remove module 'u32-grapheme-len' as too redundant with
25995         'u32-grapheme-next'.
25996         * modules/unigbrk/u32-grapheme-len: Delete file.
25997         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25998         * lib/unigbrk.in.h: Remove prototype for deleted function.
25999         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26000         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26001
26002         Suggested by Bruno Haible.
26003
26004 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26005
26006         * unigbrk.in.h: Fix typo: "ben" => "been".
26007         Reported by Bruno Haible.
26008
26009 2011-01-01  Jim Meyering  <meyering@redhat.com>
26010
26011         maint: update almost all copyright ranges to include 2011
26012         Run the new "make update-copyright" rule.
26013
26014 2011-01-01  Jim Meyering  <meyering@redhat.com>
26015
26016         maint: update-copyright: exempt doc/INSTALL*
26017         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26018         since they are generated.  Suggested by Bruno Haible.
26019
26020 2011-01-01  Jim Meyering  <meyering@redhat.com>
26021
26022         maint: refine the update-copyright rule
26023         * Makefile (update-copyright): Also exclude any file that includes
26024         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26025         code that merely generates the comment.
26026
26027 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26028
26029         New module 'u8-grapheme-len'.
26030         * modules/unigbrk/u8-grapheme-len: New file.
26031         * modules/unigbrk/u8-grapheme-len-tests: New file.
26032         * lib/unigbrk.in.h: Add prototype for new function.
26033         * lib/unigbrk/u8-grapheme-len.c: New file.
26034         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26035
26036         New module 'u16-grapheme-len'.
26037         * modules/unigbrk/u16-grapheme-len: New file.
26038         * modules/unigbrk/u16-grapheme-len-tests: New file.
26039         * lib/unigbrk.in.h: Add prototype for new function.
26040         * lib/unigbrk/u16-grapheme-len.c: New file.
26041         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26042
26043         New module 'u32-grapheme-len'.
26044         * modules/unigbrk/u32-grapheme-len: New file.
26045         * modules/unigbrk/u32-grapheme-len-tests: New file.
26046         * lib/unigbrk.in.h: Add prototype for new function.
26047         * lib/unigbrk/u32-grapheme-len.c: New file.
26048         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26049
26050         New module 'u8-grapheme-next'.
26051         * modules/unigbrk/u8-grapheme-next: New file.
26052         * modules/unigbrk/u8-grapheme-next-tests: New file.
26053         * lib/unigbrk.in.h: Add prototype for new function.
26054         * lib/unigbrk/u8-grapheme-next.c: New file.
26055         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26056
26057         New module 'u16-grapheme-next'.
26058         * modules/unigbrk/u16-grapheme-next: New file.
26059         * modules/unigbrk/u16-grapheme-next-tests: New file.
26060         * lib/unigbrk.in.h: Add prototype for new function.
26061         * lib/unigbrk/u16-grapheme-next.c: New file.
26062         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26063
26064         New module 'u32-grapheme-next'.
26065         * modules/unigbrk/u32-grapheme-next: New file.
26066         * modules/unigbrk/u32-grapheme-next-tests: New file.
26067         * lib/unigbrk.in.h: Add prototype for new function.
26068         * lib/unigbrk/u32-grapheme-next.c: New file.
26069         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26070
26071         New module 'u8-grapheme-prev'.
26072         * modules/unigbrk/u8-grapheme-prev: New file.
26073         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26074         * lib/unigbrk.in.h: Add prototype for new function.
26075         * lib/unigbrk/u8-grapheme-prev.c: New file.
26076         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26077
26078         New module 'u16-grapheme-prev'.
26079         * modules/unigbrk/u16-grapheme-prev: New file.
26080         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26081         * lib/unigbrk.in.h: Add prototype for new function.
26082         * lib/unigbrk/u16-grapheme-prev.c: New file.
26083         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26084
26085         New module 'u32-grapheme-prev'.
26086         * modules/unigbrk/u32-grapheme-prev: New file.
26087         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26088         * lib/unigbrk.in.h: Add prototype for new function.
26089         * lib/unigbrk/u32-grapheme-prev.c: New file.
26090         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26091
26092         New module 'u8-grapheme-breaks'.
26093         * modules/unigbrk/u8-grapheme-breaks: New file.
26094         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26095         * lib/unigbrk.in.h: Add prototype for new function.
26096         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26097         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26098
26099         New module 'u16-grapheme-breaks'.
26100         * modules/unigbrk/u16-grapheme-breaks: New file.
26101         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26102         * lib/unigbrk.in.h: Add prototype for new function.
26103         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26104         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26105
26106         New module 'u32-grapheme-breaks'.
26107         * modules/unigbrk/u32-grapheme-breaks: New file.
26108         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26109         * lib/unigbrk.in.h: Add prototype for new function.
26110         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26111         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26112
26113         New module 'ulc-grapheme-breaks'.
26114         * modules/unigbrk/ulc-grapheme-breaks: New file.
26115         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26116         * m4/locale-ar.m4: New file.
26117         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26118         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26119         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26120
26121 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26122
26123         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26124         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26125         modified how this file was generated before I initially submitted
26126         the module, but failed to regenerate it.  This meant that several
26127         of the level2 entries were wrong.
26128         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26129         Remove the division-by-2 that is folded into the table now that
26130         gbrkprop.h has been regenerated properly.  Now -1 entries are
26131         handled correctly.
26132
26133         New module 'unigbrk/uc-gbrk-prop-tests'.
26134         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26135         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26136         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26137         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26138
26139 2011-01-01  Bruno Haible  <bruno@clisp.org>
26140
26141         Avoid use of hexadecimal escapes.
26142         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26143         instead of hexadecimal escapes.
26144
26145 2011-01-01  Jim Meyering  <meyering@redhat.com>
26146
26147         maint: new rule to update copyright year ranges
26148         * Makefile (update-copyright): New rule.
26149
26150         maint: indent with TABs in Makefile
26151         * Makefile: Expand leading sequences of spaces to TABs
26152
26153         version-etc: update the copyright year it reports
26154         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26155
26156 2010-12-31  Bruno Haible  <bruno@clisp.org>
26157
26158         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26159         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26160         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26161         zero.
26162
26163 2010-12-31  Bruno Haible  <bruno@clisp.org>
26164
26165         pwrite: Work around HP-UX 11.11 bug.
26166         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26167         works and set REPLACE_PWRITE if not.
26168         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26169         function.
26170         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26171
26172 2010-12-31  Bruno Haible  <bruno@clisp.org>
26173
26174         pread: Work around HP-UX 11 bugs.
26175         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26176         and set REPLACE_PREAD if not.
26177         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26178
26179 2010-12-31  Eric Blake  <eblake@redhat.com>
26180
26181         nl_langinfo: fix YESEXPR on Irix 6.5
26182         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26183         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26184         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26185         it.
26186
26187 2010-12-31  Bruno Haible  <bruno@clisp.org>
26188
26189         iconv: Document HP-UX 11 bug.
26190         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26191
26192 2010-12-31  Bruno Haible  <bruno@clisp.org>
26193
26194         ldexpl: Fix link error on HP-UX 11.
26195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26196         LDEXPL_LIBM, using $ISNANL_LIBM.
26197
26198 2010-12-31  Eric Blake  <eblake@redhat.com>
26199
26200         ftello: avoid compilation failure with SunStudio c89
26201         * lib/ftello.c (ftello): Use lseek, not llseek.
26202
26203         tests: avoid failing coreutils tests on cygwin
26204         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26205         (create_exe_shims_): Return 0 when skipping.
26206
26207 2010-12-31  Bruno Haible  <bruno@clisp.org>
26208
26209         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26210         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26211
26212 2010-12-31  Bruno Haible  <bruno@clisp.org>
26213
26214         waitpid: Fix link error in C++ mode.
26215         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26216
26217 2010-12-31  Bruno Haible  <bruno@clisp.org>
26218
26219         isnan: Use GCC built-ins when possible.
26220         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26221         __builtin_isnan.
26222         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26223         (isnan): Define using GCC built-ins for GCC >= 4.0.
26224
26225 2010-12-31  Bruno Haible  <bruno@clisp.org>
26226
26227         isnand: Fix mistake.
26228         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26229         __builtin_isnand.
26230
26231 2010-12-31  Bruno Haible  <bruno@clisp.org>
26232
26233         open: Avoid C++ error on HP-UX 11.
26234         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26235
26236 2010-12-31  Bruno Haible  <bruno@clisp.org>
26237
26238         time_r: Add missing declarations on HP-UX 11.
26239         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26240         instead of HAVE_LOCALTIME_R.
26241         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26242         HAVE_LOCALTIME_R always.
26243         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26244         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26245         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26246         HAVE_LOCALTIME_R.
26247         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26248         * doc/posix-functions/localtime_r.texi: Likewise.
26249
26250 2010-12-29  Eric Blake  <eblake@redhat.com>
26251
26252         mountlist: tweak previous commit
26253         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26254         Reported by Paul Eggert.
26255
26256         mountlist: fix local drive detection on cygwin
26257         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26258         that works for cygwin.
26259
26260 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26261
26262         ftoastr, snprintf: ftoastr + snprintf module
26263         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26264         since the snprintf module now should be good enough here.
26265         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26266         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26267         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26268         GNULIB_SNPRINTF only for the test directory, and the latter
26269         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26270         seems to suffice by itself.
26271
26272 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26273
26274         alloca: one step towards thread-safety
26275         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26276         need for a static variable.  All callers changed.  This does not
26277         make the alloca replacement thread-safe, but it's one step.
26278
26279         tests: minor indenting change
26280         * tests/init.sh: Sync from coreutils housekeeping patch
26281         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26282         to keep lines within 80 columns.
26283
26284 2010-12-28  Jim Meyering  <meyering@redhat.com>
26285
26286         regex: don't infloop on persistent failing calloc
26287         * lib/regexec.c (build_trtable): Return failure indication upon
26288         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26289         In glibc, this was fixed for version 2.13:
26290         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26291
26292 2010-12-28  Bruno Haible  <bruno@clisp.org>
26293             Paul Eggert <eggert@cs.ucla.edu>
26294
26295         linkat: Make implementation robust against system behaviour variations.
26296         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26297         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26298         way, and to -2 if it needs a generic runtime test.
26299         * lib/linkat.c (solaris_optimized_link_immediate,
26300         solaris_optimized_link_follow): New functions.
26301         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26302         (check_same_link): Use it.
26303
26304 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26305
26306         New module 'unigbrk/base'.
26307         * modules/unigbrk/base: New file.
26308         * lib/unigbrk.in.h: New file.
26309
26310         New module 'unigbrk/uc-gbrk-prop'.
26311         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26312         * modules/unigbrk/uc-gbrk-prop: New file.
26313         * lib/unigbrk/gbrkprop.h: New file.
26314         * lib/unigbrk/uc-gbrk-prop.c: New file.
26315
26316         New module 'unigbrk/uc-is-grapheme-break'.
26317         * modules/unigbrk/uc-is-grapheme-break: New file.
26318         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26319         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26320         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26321         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26322         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26323
26324         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26325
26326 2010-12-27  Bruno Haible  <bruno@clisp.org>
26327
26328         linkat test: Avoid failure on Solaris 11 2010-11.
26329         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26330
26331 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26332
26333         utimens: work around glibc rounding bug on more platforms
26334         * lib/utimens.c (fdutimens): Work around rounding bug even if
26335         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26337
26338 2010-12-27  Bruno Haible  <bruno@clisp.org>
26339
26340         select tests: Improve comments.
26341         * tests/test-select.c (do_select): Add comments.
26342
26343 2010-12-27  Bruno Haible  <bruno@clisp.org>
26344
26345         select tests: Safer way of handling timeout.
26346         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26347         at every invocation.
26348
26349 2010-12-27  Bruno Haible  <bruno@clisp.org>
26350
26351         select tests: Use 'bool' where appropriate.
26352         * tests/test-select.c (connect_to_socket): Change argument type to
26353         'bool'.
26354
26355 2010-12-27  Bruno Haible  <bruno@clisp.org>
26356
26357         select tests: Use existing modules.
26358         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26359         (configure.ac): Don't test for unistd.h.
26360         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26361         declared in <unistd.h>.
26362
26363 2010-12-27  Bruno Haible  <bruno@clisp.org>
26364
26365         mbrtowc: Work around a Solaris 7 bug.
26366         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26367         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26368         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26369         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26370         MBRTOWC_NULL_ARG1_BUG.
26371         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26372         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26373         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26374         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26375
26376 2010-12-27  Jim Meyering  <meyering@redhat.com>
26377
26378         read-file.c: tweak syntax
26379         * lib/read-file.c (fread_file): Remove space after "*" in function
26380         definitions.
26381
26382 2010-12-27  Bruno Haible  <bruno@clisp.org>
26383
26384         times test: Avoid gcc warnings on OSF/1.
26385         * tests/test-times.c (main): Cast printf arguments from clock_t to
26386         'long int'.
26387
26388 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26389
26390         utimens: work around glibc rounding bug on older Linux kernels
26391         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26392         on Linux with a glibc whose utimes might not work, then work
26393         around a longstanding glibc bug involving rounding rather than
26394         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26396
26397 2010-12-26  Bruno Haible  <bruno@clisp.org>
26398
26399         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26400         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26401         _GL_CXXALIAS_SYS.
26402         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26403
26404 2010-12-26  Bruno Haible  <bruno@clisp.org>
26405
26406         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26407         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26408         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26409         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26410         looking for the declaration.
26411         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26412         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26413         problem.
26414         * doc/posix-functions/inet_pton.texi: Likewise.
26415
26416 2010-12-26  Bruno Haible  <bruno@clisp.org>
26417
26418         arpa_inet: Use the common idioms with C++ support.
26419         * lib/arpa_inet.in.h: Include c++defs.h.
26420         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26421         support.
26422         * modules/arpa_inet (Depends-on): Add c++defs.
26423         (Makefile.am): Substitute the contents of c++defs.h.
26424         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26425         * modules/arpa_inet-c++-tests: New file.
26426         * tests/test-arpa_inet-c++.cc: New file.
26427
26428 2010-12-25  Bruno Haible  <bruno@clisp.org>
26429
26430         Fix more C++ link errors on Solaris 8.
26431         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26432         $(LIB_EACCESS).
26433         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26434         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26435         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26436         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26437         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26438
26439 2010-12-25  Bruno Haible  <bruno@clisp.org>
26440
26441         printf-posix: Fix link error when a non-GCC compiler is used.
26442         * lib/stdio.in.h (printf): When not using GCC, override printf
26443         correctly.
26444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26445
26446 2010-12-25  Bruno Haible  <bruno@clisp.org>
26447
26448         strerror_r-posix: Update doc.
26449         * doc/posix-functions/strerror_r.texi: Update doc about the return
26450         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26451
26452 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26453
26454         utimens: simplify the logic of the previous change
26455         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26456         This should not affect whether the test succeeds or fails.
26457
26458         utimens: configure better on hosts with NFS clock skew
26459         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26460         uses the clock of the local host.  It might use the clock of the
26461         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26462         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26463
26464 2010-12-25  Bruno Haible  <bruno@clisp.org>
26465
26466         ptsname test: Avoid failure on Solaris.
26467         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26468         open a pseudo-terminal; don't use BSD-style ptys.
26469         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26470
26471 2010-12-25  Bruno Haible  <bruno@clisp.org>
26472
26473         ptsname: Avoid ERANGE failure on some systems.
26474         * lib/ptsname.c (buffer): Increase size.
26475
26476 2010-12-25  Bruno Haible  <bruno@clisp.org>
26477
26478         rename, renameat: Avoid test failures at NFS mounted locations.
26479         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26480         so that subsequent mkdir calls succeed.
26481
26482 2010-12-25  Bruno Haible  <bruno@clisp.org>
26483
26484         iswblank: Fix C++ link error on Solaris 8.
26485         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26486         _GL_FUNCDECL_SYS.
26487
26488 2010-12-25  Bruno Haible  <bruno@clisp.org>
26489
26490         unistd: Fix C++ link error on Solaris 8.
26491         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26492
26493 2010-12-25  Bruno Haible  <bruno@clisp.org>
26494
26495         readlink doc: Mention an old glibc bug.
26496         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26497
26498 2010-12-25  Bruno Haible  <bruno@clisp.org>
26499
26500         fcntl-h: Fix for use of C++ on glibc systems.
26501         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26502         also on glibc systems in C++ mode.
26503         Reported by Gary V. Vaughan <gary@gnu.org>.
26504
26505 2010-12-25  Bruno Haible  <bruno@clisp.org>
26506
26507         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26508         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26509
26510 2010-12-25  Bruno Haible  <bruno@clisp.org>
26511
26512         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26513         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26514         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26515         test whether truncl works according to ISO C 99 with IEC 60559.
26516         * m4/truncl-ieee.m4: New file.
26517         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26518         m4/signbit.m4.
26519         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26520
26521 2010-12-25  Bruno Haible  <bruno@clisp.org>
26522
26523         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26524         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26525         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26526         test whether ceill works according to ISO C 99 with IEC 60559.
26527         * m4/ceill-ieee.m4: New file.
26528         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26529         m4/signbit.m4.
26530         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26531
26532 2010-12-25  Bruno Haible  <bruno@clisp.org>
26533
26534         Ensure all prerequisites of <wchar.h> are included.
26535         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26536         before <wchar.h>.
26537         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26538         gl_MBRLEN_NUL_RETVAL): Likewise.
26539         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26540         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26541         AC_FUNC_MBRTOWC): Likewise.
26542         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26543         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26545         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26546         Likewise.
26547         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26548         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26549         (gl_WCHAR_H): Improve comments.
26550         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26551
26552 2010-12-25  Bruno Haible  <bruno@clisp.org>
26553
26554         strtok_r: Fix C syntax error in autoconf macro.
26555         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26556         characters in test program.
26557
26558 2010-12-24  Bruno Haible  <bruno@clisp.org>
26559
26560         ceil, trunc, round: Fix gcc warnings.
26561         * lib/ceil.c (MIN): Undefine before redefining.
26562         * lib/trunc.c (MIN): Likewise.
26563         * lib/round.c (MIN): Likewise.
26564         Include <math.h> first.
26565
26566 2010-12-24  Bruno Haible  <bruno@clisp.org>
26567
26568         select tests: Avoid failures on OSF/1 5.1.
26569         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26570         failure of closing the last socket; it may fail with ECONNRESET.
26571
26572 2010-12-24  Eric Blake  <eblake@redhat.com>
26573
26574         stdint: avoid HP-UX 10.20 preprocessor bug
26575         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26576         than #if.
26577         * tests/test-floor2.c (main): Likewise.
26578         Reported by Peter O'Gorman.
26579
26580         pipe: make obsoletion transition easier
26581         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26582         * modules/pipe (Files): Include revived file.
26583         (Include): Drop reference, to mirror getdate's behavior.
26584
26585 2010-12-24  Bruno Haible  <bruno@clisp.org>
26586
26587         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26588         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26589         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26590         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26591
26592 2010-12-24  Bruno Haible  <bruno@clisp.org>
26593
26594         gethostname: Ensure declaration on NonStop Kernel.
26595         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26597
26598 2010-12-24  Bruno Haible  <bruno@clisp.org>
26599
26600         sys_select: Ensure all necessary types on NonStop Kernel.
26601         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26602         include <sys/time.h>.
26603         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26604         NonStop Kernel.
26605         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26606
26607 2010-12-24  Bruno Haible  <bruno@clisp.org>
26608
26609         sys_select: Remove unneeded include.
26610         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26611         have <sys/select.h>.
26612
26613 2010-12-24  Bruno Haible  <bruno@clisp.org>
26614
26615         gethostname: Provide a fallback for HOST_NAME_MAX.
26616         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26617         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26618         instead.
26619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26620
26621 2010-12-24  Bruno Haible  <bruno@clisp.org>
26622
26623         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26624         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26625         (SA_RESTART): Likewise.
26626         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26627
26628 2010-12-24  Bruno Haible  <bruno@clisp.org>
26629
26630         signal: Define NSIG.
26631         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26632         * tests/test-signal.c (nsig): New variable.
26633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26634
26635 2010-12-24  Bruno Haible  <bruno@clisp.org>
26636
26637         rename, renameat: Avoid test failures on OSF/1 5.1.
26638         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26639         alternative error codes.
26640         * tests/test-renameat.c (main): Likewise.
26641
26642 2010-12-24  Bruno Haible  <bruno@clisp.org>
26643
26644         *printf: Detect large precisions bug on Solaris 10/SPARC.
26645         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26646         by Paul Eggert.
26647         * tests/test-snprintf-posix.h (test_function): Add this test code here
26648         too.
26649         * tests/test-sprintf-posix.h (test_function): Likewise.
26650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26651         * tests/test-vasprintf-posix.c (test_function): Likewise.
26652         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26653         around by gnulib.
26654         * doc/posix-functions/printf.texi: Likewise.
26655         * doc/posix-functions/snprintf.texi: Likewise.
26656         * doc/posix-functions/sprintf.texi: Likewise.
26657         * doc/posix-functions/vfprintf.texi: Likewise.
26658         * doc/posix-functions/vprintf.texi: Likewise.
26659         * doc/posix-functions/vsnprintf.texi: Likewise.
26660         * doc/posix-functions/vsprintf.texi: Likewise.
26661         * doc/posix-functions/dprintf.texi: Undo last commit.
26662         * doc/posix-functions/vdprintf.texi: Likewise.
26663
26664 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26665
26666         tests: port test-fdutimensat.c to Solaris 8
26667         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26668         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26669         On Solaris 8, it fails with errno == ENOSYS, because there is no
26670         futimens (so it can't use the fd), and there is no lutimens (so it
26671         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26672
26673         vsnprintf: make more consistent with snprintf; doc fixes
26674
26675         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26676         the byte count return problem was promoted from the snprintf-posix
26677         to the snprintf module.
26678         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26679         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26680         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26681         * tests/test-snprintf.c (main): Check the byte count returned.
26682         * tests/test-vsnprintf.c (main): Likewise.
26683
26684 2010-12-23  Eric Blake  <eblake@redhat.com>
26685
26686         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26687         * modules/sigpipe (License): Relax license.
26688
26689 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26690
26691         doc: document Solaris printf bug with large float precisions
26692         * doc/posix-functions/dprintf.texi (dprintf):
26693         * doc/posix-functions/fprintf.texi (fprintf):
26694         * doc/posix-functions/printf.texi (printf):
26695         * doc/posix-functions/snprintf.texi (snprintf):
26696         * doc/posix-functions/sprintf.texi (sprintf):
26697         * doc/posix-functions/vdprintf.texi (vdprintf):
26698         * doc/posix-functions/vfprintf.texi (vfprintf):
26699         * doc/posix-functions/vprintf.texi (vprintf):
26700         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26701         * doc/posix-functions/vsprintf.texi (vsprintf):
26702         Mention that these functions mishandle large floating point
26703         precisions on Solaris 10.  The same bug is also present in Solaris
26704         8, and I assume earlier.  This causes "cd gnulib-tests; make
26705         check" to fail on Solaris 8 (and I assume, later) when building
26706         the latest coreutils, in test-vasprintf-posix's call to
26707         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26708         the wide flavors (e.g., wprintf) so this patch just updates the
26709         documentation for the narrow ones.
26710
26711         test-posixtm.c: add two tests
26712         * tests/test-posixtm.c: Add two tests, to highlight the
26713         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26714         around this bug; this is merely to document it.
26715
26716 2010-12-22  Bruno Haible  <bruno@clisp.org>
26717
26718         getlogin_r: Work around portability problem on OSF/1.
26719         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26720         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26721         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26722         test for a truncated result.
26723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26724         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26725         * modules/getlogin_r (Depends-on): Add memchr.
26726         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26727
26728 2010-12-22  Bruno Haible  <bruno@clisp.org>
26729
26730         ptsname: Avoid test failure on OSF/1 5.1.
26731         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26732         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26733         (same_slave): New function.
26734         (main): Use it to compare ptsname's result with the expected file name.
26735
26736 2010-12-22  Bruno Haible  <bruno@clisp.org>
26737
26738         Port extended stdio modules to HP NonStop Kernel.
26739         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26740         macros.
26741         * lib/fbufmode.c: Update comments.
26742         * lib/fflush.c: Likewise.
26743         * lib/fpurge.c: Likewise.
26744         * lib/freadable.c: Likewise.
26745         * lib/freadahead.c: Likewise.
26746         * lib/freading.c: Likewise.
26747         * lib/freadptr.c: Likewise.
26748         * lib/freadseek.c: Likewise.
26749         * lib/fseeko.c: Likewise.
26750         * lib/fseterr.c: Likewise.
26751         * lib/fwritable.c: Likewise.
26752         * lib/fwriting.c: Likewise.
26753         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26754
26755 2010-12-22  Bruno Haible  <bruno@clisp.org>
26756
26757         ttyname_r: Work around bug on OSF/1 5.1.
26758         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26759         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26760         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26761         present.
26762         * lib/ttyname_r.c (ttyname_r): Update comments.
26763
26764 2010-12-22  Bruno Haible  <bruno@clisp.org>
26765
26766         round: Implement result sign according to IEEE 754.
26767         * lib/round.c (MIN, MINUS_ZERO): New macros.
26768         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26769         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26770         * tests/test-round-ieee.c (main): Likewise.
26771         * tests/test-roundl-ieee.c (main): Likewise.
26772
26773         trunc: Implement result sign according to IEEE 754.
26774         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26775         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26776         * tests/test-trunc2.c: Include minus-zero.h.
26777         (MINUS_ZERO): New macro.
26778         (trunc_reference): Keep in sync with lib/trunc.c.
26779         * tests/test-truncf2.c: Include minus-zero.h.
26780         (MINUS_ZERO): New macro.
26781         (truncf_reference): Keep in sync with lib/trunc.c.
26782         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26783         * tests/test-trunc-ieee.c (main): Likewise.
26784         * tests/test-truncl-ieee.c (main): Likewise.
26785
26786         ceil: Implement result sign according to IEEE 754.
26787         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26788         (FUNC): Return -0.0 for -1 < x < 0.
26789         * tests/test-ceil2.c: Include minus-zero.h.
26790         (MINUS_ZERO): New macro.
26791         (ceil_reference): Keep in sync with lib/ceil.c.
26792         * tests/test-ceilf2.c: Include minus-zero.h.
26793         (MINUS_ZERO): New macro.
26794         (ceilf_reference): Keep in sync with lib/ceil.c.
26795         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26796         * tests/test-ceil-ieee.c (main): Likewise.
26797         * tests/test-ceill-ieee.c (main): Likewise.
26798
26799         floor: Implement result sign according to IEEE 754.
26800         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26801         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26802         * tests/test-floorf2.c (floorf_reference): Likewise.
26803         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26804         * tests/test-floor-ieee.c (main): Likewise.
26805         * tests/test-floorl-ieee.c (main): Likewise.
26806
26807 2010-12-22  Bruno Haible  <bruno@clisp.org>
26808
26809         getaddrinfo: Update doc.
26810         * doc/posix-functions/gai_strerror.texi: Return type is also different
26811         on AIX and HP-UX.
26812
26813 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26814
26815         getaddrinfo, inet_ntop: Update doc for Solaris.
26816         * doc/posix-functions/gai_strerror.texi: Return type is also an
26817         issue on Solaris 9 and earlier.
26818         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26819         on Solaris 10 and earlier.
26820
26821 2010-12-21  Bruno Haible  <bruno@clisp.org>
26822
26823         New module 'roundl-ieee'.
26824         * modules/roundl-ieee: New file.
26825         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26826         test whether roundl works according to ISO C 99 with IEC 60559.
26827         * m4/roundl-ieee.m4: New file.
26828         * modules/roundl-ieee-tests: New file.
26829         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26830         * tests/test-roundl.c (main): Remove signbit tests.
26831         * modules/roundl-tests (Depends-on): Remove signbit.
26832         * doc/posix-functions/roundl.texi: Mention the new module.
26833
26834 2010-12-21  Bruno Haible  <bruno@clisp.org>
26835
26836         New module 'truncl-ieee'.
26837         * modules/truncl-ieee: New file.
26838         * modules/truncl-ieee-tests: New file.
26839         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26840         * tests/test-truncl.c (main): Remove signbit tests.
26841         * modules/truncl-tests (Depends-on): Remove signbit.
26842         * doc/posix-functions/truncl.texi: Mention the new module.
26843
26844 2010-12-21  Bruno Haible  <bruno@clisp.org>
26845
26846         New module 'ceill-ieee'.
26847         * modules/ceill-ieee: New file.
26848         * modules/ceill-ieee-tests: New file.
26849         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26850         * tests/test-ceill.c (main): Remove signbit tests.
26851         * modules/ceill-tests (Depends-on): Remove signbit.
26852         * doc/posix-functions/ceill.texi: Mention the new module.
26853
26854 2010-12-21  Bruno Haible  <bruno@clisp.org>
26855
26856         New module 'floorl-ieee'.
26857         * modules/floorl-ieee: New file.
26858         * modules/floorl-ieee-tests: New file.
26859         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26860         * tests/test-floorl.c (main): Remove signbit tests.
26861         * modules/floorl-tests (Depends-on): Remove signbit.
26862         * doc/posix-functions/floorl.texi: Mention the new module.
26863
26864 2010-12-21  Bruno Haible  <bruno@clisp.org>
26865
26866         New module 'round-ieee'.
26867         * modules/round-ieee: New file.
26868         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26869         whether round works according to ISO C 99 with IEC 60559.
26870         * m4/round-ieee.m4: New file.
26871         * modules/round-ieee-tests: New file.
26872         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26873         * tests/test-round1.c (main): Remove signbit tests.
26874         * modules/round-tests (Depends-on): Remove 'signbit'.
26875         * doc/posix-functions/round.texi: Mention the new module.
26876
26877 2010-12-21  Bruno Haible  <bruno@clisp.org>
26878
26879         New module 'trunc-ieee'.
26880         * modules/trunc-ieee: New file.
26881         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26882         whether trunc works according to ISO C 99 with IEC 60559.
26883         * m4/trunc-ieee.m4: New file.
26884         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26886         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26887         * modules/trunc-ieee-tests: New file.
26888         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26889         * tests/test-trunc1.c (main): Remove signbit tests.
26890         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26891         * doc/posix-functions/trunc.texi: Mention the new module.
26892
26893 2010-12-21  Bruno Haible  <bruno@clisp.org>
26894
26895         New module 'ceil-ieee'.
26896         * modules/ceil-ieee: New file.
26897         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26898         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26899         ISO C 99 with IEC 60559.
26900         * m4/ceil-ieee.m4: New file.
26901         * modules/ceil (Files): Add lib/ceil.c.
26902         (Depends-on): Add 'float'.
26903         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26904         * lib/math.in.h (ceil): New declaration.
26905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26906         REPLACE_CEIL.
26907         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26908         * modules/ceil-ieee-tests: New file.
26909         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26910         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26911         * doc/posix-functions/ceil.texi: Mention the new module.
26912
26913 2010-12-21  Bruno Haible  <bruno@clisp.org>
26914
26915         New module 'floor-ieee'.
26916         * modules/floor-ieee: New file.
26917         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26918         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26919         ISO C 99 with IEC 60559.
26920         * m4/floor-ieee.m4: New file.
26921         * modules/floor (Files): Add lib/floor.c.
26922         (Depends-on): Add 'float'.
26923         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26924         * lib/math.in.h (floor): New declaration.
26925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26926         REPLACE_FLOOR.
26927         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26928         * modules/floor-ieee-tests: New file.
26929         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26930         * tests/test-math-c++.cc: Check the signature of 'floor'.
26931         * doc/posix-functions/floor.texi: Mention the new module.
26932
26933 2010-12-21  Bruno Haible  <bruno@clisp.org>
26934
26935         New module 'roundf-ieee'.
26936         * modules/roundf-ieee: New file.
26937         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26938         test whether roundf works according to ISO C 99 with IEC 60559.
26939         * m4/roundf-ieee.m4: New file.
26940         * modules/roundf-ieee-tests: New file.
26941         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26942         * tests/test-roundf1.c (main): Remove signbit tests.
26943         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26944         * doc/posix-functions/roundf.texi: Mention the new module.
26945
26946 2010-12-21  Bruno Haible  <bruno@clisp.org>
26947
26948         New module 'truncf-ieee'.
26949         * modules/truncf-ieee: New file.
26950         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26951         test whether truncf works according to ISO C 99 with IEC 60559.
26952         * m4/truncf-ieee.m4: New file.
26953         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26955         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26956         * modules/truncf-ieee-tests: New file.
26957         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26958         * tests/test-truncf1.c (main): Remove signbit tests.
26959         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26960         * doc/posix-functions/truncf.texi: Mention the new module.
26961
26962 2010-12-21  Bruno Haible  <bruno@clisp.org>
26963
26964         New module 'ceilf-ieee'.
26965         * modules/ceilf-ieee: New file.
26966         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26967         test whether ceilf works according to ISO C 99 with IEC 60559.
26968         * m4/ceilf-ieee.m4: New file.
26969         * modules/ceilf-ieee-tests: New file.
26970         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26971         * tests/test-ceilf1.c (main): Remove signbit tests.
26972         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26973         * doc/posix-functions/ceilf.texi: Mention the new module.
26974
26975 2010-12-21  Bruno Haible  <bruno@clisp.org>
26976
26977         New module 'floorf-ieee'.
26978         * modules/floorf-ieee: New file.
26979         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26980         test whether floorf works according to ISO C 99 with IEC 60559.
26981         * m4/floorf-ieee.m4: New file.
26982         * modules/floorf-ieee-tests: New file.
26983         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26984         * tests/test-floorf1.c (main): Remove signbit tests.
26985         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26986         * doc/posix-functions/floorf.texi: Mention the new module.
26987
26988 2010-12-21  Bruno Haible  <bruno@clisp.org>
26989
26990         Support for minus zero in autoconf macros.
26991         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26992         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26993         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26994         * tests/minus-zero.h: Update comments.
26995
26996 2010-12-21  Bruno Haible  <bruno@clisp.org>
26997
26998         Tests for module 'ceil'.
26999         * modules/ceil-tests: New file.
27000         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27001         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27002
27003 2010-12-21  Bruno Haible  <bruno@clisp.org>
27004
27005         Tests for module 'floor'.
27006         * modules/floor-tests: New file.
27007         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27008         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27009
27010 2010-12-21  Bruno Haible  <bruno@clisp.org>
27011
27012         math: Fix indentation.
27013         * lib/math.in.h (floorf): Fix indentation.
27014
27015 2010-12-21  Bruno Haible  <bruno@clisp.org>
27016
27017         Fix cross-compilation guesses on Solaris.
27018         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27019         not match "solaris2.10".
27020         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27021         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27022         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27023
27024 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27025
27026         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27027         This fixes a problem observed with the latest coreutils snapshot
27028         that caused a test to fail on Solaris 8.  src/csplit.c's call
27029         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27030         earlier, instead of returning the number of bytes that would have
27031         been generated; this causes csplit to incorrectly report memory
27032         exhaustion.
27033         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27034         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27035         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27036         comments to match.
27037         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27038         Fix typo in matching older versions of Solaris: "solaris2.10"
27039         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27040         only for guessing while cross-compiling.
27041         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27042
27043 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27044
27045         ftoastr: fix comment again
27046         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27048         Also, simplify example a bit by using flags = 0.
27049
27050 2010-12-20  Bruno Haible  <bruno@clisp.org>
27051
27052         round*, trunc*: Update documentation regarding glibc.
27053         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27054         * doc/posix-functions/round.texi: Likewise.
27055         * doc/posix-functions/roundl.texi: Likewise.
27056         * doc/posix-functions/truncf.texi: Likewise.
27057         * doc/posix-functions/trunc.texi: Likewise.
27058         * doc/posix-functions/truncl.texi: Likewise.
27059
27060 2010-12-20  Bruno Haible  <bruno@clisp.org>
27061
27062         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27063         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27064         * doc/posix-functions/round.texi: Likewise.
27065         * doc/posix-functions/roundl.texi: Likewise.
27066
27067 2010-12-20  Bruno Haible  <bruno@clisp.org>
27068
27069         ttyname_r: Add missing declaration on HP-UX 11.
27070         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27071         HAVE_TTYNAME_R.
27072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27073         declared. Set HAVE_TTYNAME_R always.
27074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27075         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27076         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27077         HAVE_TTYNAME_R.
27078         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27079
27080 2010-12-20  Bruno Haible  <bruno@clisp.org>
27081
27082         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27083         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27084         * doc/posix-functions/getlogin_r.texi: Likewise.
27085         * tests/test-getlogin.c: Include <errno.h>.
27086         (main): Avoid test failure on HP-UX 11.11.
27087         * tests/test-getlogin_r.c (main): Likewise.
27088
27089 2010-12-20  Bruno Haible  <bruno@clisp.org>
27090
27091         getlogin_r: Add missing declaration on HP-UX 11.
27092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27093         declared also when it exists as a function.
27094         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27095
27096 2010-12-20  Bruno Haible  <bruno@clisp.org>
27097
27098         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27099         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27100         through wcrtomb.
27101
27102 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27103
27104         ftoastr: fix comment
27105         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27107
27108 2010-12-19  Bruno Haible  <bruno@clisp.org>
27109
27110         isnan: Ensure it is a macro.
27111         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27112         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27113         Solaris.
27114
27115 2010-12-19  Bruno Haible  <bruno@clisp.org>
27116
27117         ldexpl test: Fix link error on OSF/1 5.1.
27118         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27119
27120 2010-12-19  Bruno Haible  <bruno@clisp.org>
27121
27122         wctype: Make it work in C++ mode on OSF/1 5.1.
27123         * lib/wctype.in.h (iswblank): Declare but not define here.
27124         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27125         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27126         * modules/wctype (Files): Add lib/iswblank.c.
27127
27128 2010-12-19  Bruno Haible  <bruno@clisp.org>
27129
27130         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27131         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27132         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27133
27134 2010-12-19  Bruno Haible  <bruno@clisp.org>
27135
27136         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27138         _POSIX_PII_SOCKET.
27139         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27140         * doc/posix-functions/recvfrom.texi: Likewise.
27141         * doc/posix-functions/send.texi: Likewise.
27142         * doc/posix-functions/sendto.texi: Likewise.
27143
27144 2010-12-19  Bruno Haible  <bruno@clisp.org>
27145
27146         tcgetsid: Add missing declaration on OSF/1 5.1.
27147         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27148         HAVE_TCGETSID.
27149         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27150         Don't set HAVE_TCGETSID.
27151         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27152         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27153         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27154         HAVE_TCGETSID.
27155         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27156
27157 2010-12-19  Bruno Haible  <bruno@clisp.org>
27158
27159         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27160         * lib/stdio.in.h: During the include_next statement, let recursive
27161         includes of this file include only the system header file.
27162
27163 2010-12-19  Bruno Haible  <bruno@clisp.org>
27164
27165         iconv_open: Fix regression from 2010-12-04.
27166         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27167         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27168
27169 2010-12-19  Bruno Haible  <bruno@clisp.org>
27170
27171         stdbool test: Avoid a gcc warning.
27172         * tests/test-stdbool.c (main): Fail if e1 is false.
27173         Reported by Jim Meyering.
27174
27175 2010-12-19  Jim Meyering  <meyering@redhat.com>
27176
27177         setenv: restore to working order
27178         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27179         mistakenly removed.
27180         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27181         HAVE_SETENV.
27182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27183         HAVE_SETENV.
27184
27185 2010-12-19  Bruno Haible  <bruno@clisp.org>
27186
27187         Document some different function declarations on OSF/1 5.1.
27188         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27189         * doc/posix-functions/inet_ntop.texi: Likewise.
27190         * doc/posix-functions/gethostname.texi: Likewise.
27191         * lib/unistd.in.h (gethostname): Update comment.
27192
27193 2010-12-19  Bruno Haible  <bruno@clisp.org>
27194
27195         doc: Mention vasprintf-posix module.
27196         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27197         the 'vasprintf-posix' module.
27198         * doc/glibc-functions/vasprintf.texi: Likewise.
27199
27200 2010-12-19  Bruno Haible  <bruno@clisp.org>
27201
27202         unsetenv: Add missing declaration on OSF/1 5.1.
27203         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27204         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27205         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27207         not HAVE_UNSETENV.
27208         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27209         HAVE_UNSETENV.
27210         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27211
27212 2010-12-19  Bruno Haible  <bruno@clisp.org>
27213
27214         setenv: Add missing declaration on OSF/1 5.1.
27215         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27217         declared. Don't set HAVE_SETENV.
27218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27219         not HAVE_SETENV.
27220         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27221         HAVE_SETENV.
27222         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27223
27224 2010-12-19  Bruno Haible  <bruno@clisp.org>
27225
27226         nl_langinfo tests: Avoid gcc warning.
27227         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27228
27229 2010-12-19  Bruno Haible  <bruno@clisp.org>
27230
27231         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27232         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27233         _GL_CXXALIAS_SYS.
27234
27235 2010-12-19  Bruno Haible  <bruno@clisp.org>
27236
27237         stdbool: Relax test.
27238         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27239         address to 'bool' work in static initializer, for compilers other than
27240         GCC.
27241
27242 2010-12-19  Bruno Haible  <bruno@clisp.org>
27243
27244         ftello: Add missing declaration on OSF/1 5.1.
27245         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27246         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27248         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27249         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27250
27251 2010-12-19  Bruno Haible  <bruno@clisp.org>
27252
27253         fseeko: Add missing declaration on OSF/1 5.1.
27254         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27257         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27258         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27259
27260 2010-12-19  Bruno Haible  <bruno@clisp.org>
27261
27262         fchdir: Add missing declaration on OSF/1 5.1.
27263         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27266         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27267         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27268
27269 2010-12-19  Bruno Haible  <bruno@clisp.org>
27270
27271         relocatable-prog-wrapper: Separate from relocatable-prog.
27272         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27273         uninstall-relocwrapper rule here.
27274         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27275         Reported by Ian Beckwith <ianb@erislabs.net>.
27276
27277 2010-12-19  Bruno Haible  <bruno@clisp.org>
27278
27279         unistr/u8-mbsnlen: Add missing dependency.
27280         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27281         Reported by Ian Beckwith <ianb@erislabs.net>.
27282
27283 2010-12-19  Bruno Haible  <bruno@clisp.org>
27284
27285         iconv: Make it possible again to use this module without 'iconv-h'.
27286         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27287         if it is not defined.
27288         Reported by Ian Beckwith <ianb@erislabs.net>.
27289
27290 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27291
27292         acl: port to Solaris 8 when copying from tmpfs to ufs
27293         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27294         error number.  Problem observed on Solaris 8 with latest
27295         coreutils, with "mv A B", where A is on a tmpfs file system and B
27296         is on a ufs file system.  This caused coreutils' mv/part-symlink
27297         test to fail.
27298
27299         tests: set fail=0 at start
27300         * tests/init.sh (setup_): Move fail=0 initialization here ...
27301         (mktempd_): ... from here, so that tests can rely on fail being
27302         set to 0 initially.  This fixes a problem in coreutils; see:
27303         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27304
27305 2010-12-18  Bruno Haible  <bruno@clisp.org>
27306
27307         memmem-simple: Stylistic changes.
27308         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27309         Fix preprocessor directive indentation.
27310
27311 2010-12-15  Pádraig Brady <P@draigBrady.com>
27312
27313         memmem, memmem-simple: reorganize and expand empty needle check
27314         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27315         functional checks to memmem-simple so that one has a fully functional
27316         memmem by using just this module.
27317         Restrict the performance only check to the memmem module.
27318         Also expand the empty needle check to ensure the correct
27319         pointer is returned, not just a non NULL pointer.
27320         * doc/glibc-functions/memmem.texi: Rearrange the portability
27321         documentation to correlate with the rearranged checks.
27322         Clarify exactly how the memmem and memmem-simple modules
27323         relate to each other.
27324
27325 2010-12-15  Pádraig Brady <P@draigBrady.com>
27326             Bruno Haible  <bruno@clisp.org>
27327
27328         Improve cross-compilation guesses for uClibc.
27329         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27330         that uClibc does not have the glibc bug.
27331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27332         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27333
27334 2010-12-14  Eric Blake  <eblake@redhat.com>
27335
27336         configmake: provide fallbacks for oldest supported autotools
27337         * m4/configmake.m4: New file.
27338         * modules/configmake (Files): Ship it.
27339         (configure.ac): Use it to guarantee fallbacks.
27340
27341 2010-12-13  Pádraig Brady <P@draigBrady.com>
27342
27343         read-file: Improve handling of large files
27344         * lib/read-file.c (fread_file): Minimize realloc()s
27345         for regular files, and better manage sizes around SIZE_MAX.
27346
27347 2010-12-13  Eric Blake  <eblake@redhat.com>
27348
27349         cloexec, fcntl: relax license
27350         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27351         consent from all contributors.
27352         * modules/fcntl (License): Likewise.
27353
27354 2010-12-10  Bruno Haible  <bruno@clisp.org>
27355
27356         Tests for module 'pipe-posix'.
27357         * modules/pipe-posix-tests: New file.
27358         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27359
27360 2010-12-10  Bruno Haible  <bruno@clisp.org>
27361
27362         pipe-posix: Make it work in C++ mode.
27363         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27364         (pipe): Use common idiom, not a macro definition.
27365         * lib/pipe.c: New file.
27366         * m4/pipe.m4: New file.
27367         * modules/pipe-posix (Description): Enhance.
27368         (Files): Add lib/pipe.c, m4/pipe.m4.
27369         (configure.ac): Invoke gl_FUNC_PIPE.
27370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27371         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27372         * tests/test-unistd-c++.cc: Check the signature of pipe.
27373
27374 2010-12-10  Bruno Haible  <bruno@clisp.org>
27375
27376         Rename module 'pipe' to 'spawn-pipe'.
27377         * modules/spawn-pipe: New file, renamed from modules/pipe.
27378         (Files, configure.ac, Makefile.am): Update.
27379         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27380         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27381         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27382         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27383         "spawn-pipe.h" instead of "pipe.h".
27384         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27385         to gl_SPAWN_PIPE.
27386         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27387         (Files, Makefile.am): Update.
27388         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27389         Update.
27390         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27391         Include "spawn-pipe.h" instead of "pipe.h".
27392         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27393         * lib/javacomp.c: Likewise.
27394         * lib/javaversion.c: Likewise.
27395         * lib/pipe-filter-gi.c: Likewise.
27396         * lib/pipe-filter-ii.c: Likewise.
27397         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27398         * modules/javacomp (Depends-on): Likewise.
27399         * modules/javaversion (Depends-on): Likewise.
27400         * modules/pipe-filter-gi (Depends-on): Likewise.
27401         * modules/pipe-filter-ii (Depends-on): Likewise.
27402         * MODULES.html.sh (Executing programs): Update.
27403         * NEWS: Mention the change.
27404
27405 2010-12-10  Eric Blake  <eblake@redhat.com>
27406
27407         pipe-posix: new module
27408         * modules/pipe-posix: New file.
27409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27410         (gl_UNISTD_H): Check for declaration.
27411         * modules/unistd (Makefile.am): Substitute it.
27412         * lib/unistd.in.h (pipe): Provide it for mingw.
27413         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27414         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27415
27416 2010-12-07  Bruno Haible  <bruno@clisp.org>
27417
27418         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27419         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27420         u8_strcmp_gnu.
27421         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27422
27423 2010-12-06  Bruno Haible  <bruno@clisp.org>
27424
27425         Update internal documentation.
27426         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27427
27428 2010-12-04  Bruno Haible  <bruno@clisp.org>
27429
27430         Put more information about failed tests into the test return codes.
27431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27432         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27433         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27435         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27436         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27437         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27438         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27439         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27441         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27442         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27443         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27444         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27445         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27446         returns a bit mask.
27447         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27448         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27449         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27450         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27451         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27452         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27455         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27456         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27457         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27458         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27459         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27461         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27462         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27463         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27464         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27465         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27466         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27468         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27470         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27471         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27472         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27473         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27474         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27475         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27476         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27477         gl_PRINTF_PRECISION): Likewise.
27478         * m4/regex.m4 (gl_REGEX): Likewise.
27479         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27481         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27482         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27483         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27485         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27486         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27487         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27488         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27489         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27490         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27492         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27493         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27494         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27495         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27496         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27498         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27499         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27500         enumerated value.
27501         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27502
27503 2010-12-04  Bruno Haible  <bruno@clisp.org>
27504
27505         Update for Solaris 11 2010-11.
27506         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27507         Express, released in November 2010.
27508
27509 2010-12-04  Bruno Haible  <bruno@clisp.org>
27510
27511         nproc: Relax license.
27512         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27513         and Paul Eggert.
27514         Requested by Ludovic Courtès <ludo@gnu.org>.
27515
27516 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27517
27518         utimecmp: fine-grained src to nearby coarse-grained dest
27519
27520         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27521         and the source is on a file system with higher-resolution time
27522         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27523         not work, and the time stamps are close together, the algorithm to
27524         determine the exact resolution from the read-back mtime was buggy:
27525         it had a "!=" where it should have had an "==".  This bug has been
27526         in the code ever since it was introduced to gnulib.
27527         Problem reported by Dan Jacobson in
27528         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27529
27530 2010-11-30  Bruno Haible  <bruno@clisp.org>
27531
27532         strerror_r-posix: Fix autoconf test.
27533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27534
27535 2010-11-28  Bruno Haible  <bruno@clisp.org>
27536             Paul Eggert  <eggert@cs.ucla.edu>
27537
27538         Tests for module 'getdomainname'.
27539         * modules/getdomainname-tests: New file.
27540         * tests/test-getdomainname.c: New file, based on
27541         tests/test-gethostname.c.
27542
27543 2010-11-28  Bruno Haible  <bruno@clisp.org>
27544             Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         getdomainname: Use the system function when possible.
27547         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27548         (getdomainname): Replace if needed. Provide the declaration if it is
27549         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27550         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27551         (getdomainname): When the system has getdomainname, call the system
27552         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27553         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27554         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27555         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27556         the function if its second argument is of type 'int' or if it is found
27557         in libnsl.
27558         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27559         <sys/systeminfo.h> and sysinfo().
27560         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27562         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27563         HAVE_GETDOMAINNAME.
27564         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27565         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27566         * doc/glibc-functions/getdomainname.texi: Document the problems with
27567         the getdomainname declaration.
27568
27569 2010-11-28  Bruno Haible  <bruno@clisp.org>
27570
27571         sys_socket: Ensure ss_family field on AIX.
27572         * lib/sys_socket.in.h (ss_family): New macro definition.
27573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27574         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27575         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27576         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27577         * modules/sys_socket (Makefile.am): Substitute
27578         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27579         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27580
27581 2010-11-27  Bruno Haible  <bruno@clisp.org>
27582
27583         readline: Improve configure output.
27584         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27585         "checking for readline..." result understandable.
27586
27587 2010-11-27  Bruno Haible  <bruno@clisp.org>
27588
27589         *printf-posix: Detect a bug on Solaris 10/x86.
27590         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27591         for floating-point output.
27592         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27593         directive.
27594         * tests/test-snprintf-posix.h (test_function): Likewise.
27595         * tests/test-sprintf-posix.h (test_function): Likewise.
27596         * tests/test-vasprintf-posix.c (test_function): Likewise.
27597         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27598         * doc/posix-functions/printf.texi: Likewise.
27599         * doc/posix-functions/snprintf.texi: Likewise.
27600         * doc/posix-functions/sprintf.texi: Likewise.
27601         * doc/posix-functions/vfprintf.texi: Likewise.
27602         * doc/posix-functions/vprintf.texi: Likewise.
27603         * doc/posix-functions/vsnprintf.texi: Likewise.
27604         * doc/posix-functions/vsprintf.texi: Likewise.
27605         * doc/glibc-functions/obstack_printf.texi: Likewise.
27606         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27607
27608 2010-11-27  Bruno Haible  <bruno@clisp.org>
27609
27610         Fix link error when module libunistring-optional is in use.
27611         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27612         * modules/striconveha-tests (Makefile.am): Likewise.
27613
27614 2010-11-27  Bruno Haible  <bruno@clisp.org>
27615
27616         regex: Mention link dependencies.
27617         * modules/regex (Link): New section.
27618         * modules/rpmatch (Link): Likewise.
27619         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27620
27621 2010-11-27  Bruno Haible  <bruno@clisp.org>
27622
27623         ftoastr: Fix compilation error on Solaris.
27624         * lib/ftoastr.c: Include <config.h>.
27625
27626 2010-11-27  Bruno Haible  <bruno@clisp.org>
27627
27628         getloadavg: Update documentation.
27629         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27630
27631 2010-11-27  Bruno Haible  <bruno@clisp.org>
27632
27633         sys_socket: Fix test whether the functions are declared.
27634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27635         not <sys/select.h>.
27636
27637 2010-11-27  Bruno Haible  <bruno@clisp.org>
27638
27639         getpass: Make sure to get system declaration on some platforms.
27640         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27641         gl_USE_SYSTEM_EXTENSIONS.
27642         * modules/getpass (Depends-on): Add extensions.
27643
27644 2010-11-26  Bruno Haible  <bruno@clisp.org>
27645
27646         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27647         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27648         'iconv' module is present.
27649         (ICONV_CONST): New macro.
27650         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27651         ICONV_CONST.
27652         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27653         set ICONV_CONST.
27654         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27655         here.
27656         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27657         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27658         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27659         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27660         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27661         present.
27662
27663 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         ftoastr: comment fix
27666         * lib/ftoastr.c: "little" -> "little or no" in comment
27667
27668 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         stdint: port to GCC 4.3 + OSX + Octave
27671         On this platform, stdint.h is buggy and defines int64_t to long
27672         long int.  The replacement defined it to long int, causing
27673         problems with C++ style name mangling.  Instead, trust the system
27674         definition if INT64_MAX is defined, and likewise for the unsigned
27675         variant.   Problem reported by Jarno Rajahalme in
27676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27677         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27678         and don't mess with int64_t and INT64_MAX in this case.
27679         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27680
27681 2010-11-24  Bruno Haible  <bruno@clisp.org>
27682
27683         doc: Corrections regarding MacOS X 10.4 and 10.5.
27684         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27685         MacOS X.
27686         Reported by Simon Josefsson.
27687
27688 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27689
27690         Uninstall ".bin" files installed by relocwrapper.
27691         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27692         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27693         unless it is already there.
27694
27695 2010-11-21  Bruno Haible  <bruno@clisp.org>
27696
27697         Update for NetBSD 5.0.
27698         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27699         NetBSD; the test fails on NetBSD 5.0.
27700         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27701         about NetBSD.
27702
27703 2010-11-21  Bruno Haible  <bruno@clisp.org>
27704
27705         Update for HP-UX 11.23 and HP-UX 11.31.
27706         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27707         HP-UX.
27708
27709 2010-11-21  Bruno Haible  <bruno@clisp.org>
27710
27711         Update for MacOS X 10.5.
27712         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27713         MacOS X; the test fails on MacOS X 10.5.8.
27714         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27715         about MacOS X.
27716
27717 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27718
27719         bootstrap: add bootstrap_sync option.
27720         See discussion at
27721         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27723         * build-aux/bootstrap: Accept --bootstrap-sync to update
27724         bootstrap if it is not identical to the local gnulib's
27725         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27726         enable this by default.  Accept --no-bootstrap-sync to disable
27727         it.
27728
27729 2010-11-20  Bruno Haible  <bruno@clisp.org>
27730
27731         Ensure that <features.h> is included before __GLIBC__ is tested.
27732         * lib/printf-parse.h: Include <features.h>.
27733         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27734         Reported by Mike Frysinger <vapier@gentoo.org>.
27735
27736         Ensure that <features.h> is included before __GLIBC__ is tested.
27737         * lib/wchar.in.h: Include <features.h>.
27738         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27739         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27740         Reported by Mike Frysinger <vapier@gentoo.org>.
27741
27742         Ensure that <features.h> is included before __GLIBC__ is tested.
27743         * lib/arpa_inet.in.h: Include <features.h>.
27744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27745         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27746         Reported by Mike Frysinger <vapier@gentoo.org>.
27747
27748         Ensure that <features.h> is included before __GLIBC__ is tested.
27749         * build-aux/link-warning.h: Include <features.h>.
27750         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27751         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27752         Reported by Mike Frysinger <vapier@gentoo.org>.
27753
27754         Ensure that <features.h> is included before __GLIBC__ is tested.
27755         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27756         Reported by Mike Frysinger <vapier@gentoo.org>.
27757
27758 2010-11-20  Bruno Haible  <bruno@clisp.org>
27759
27760         memmem: Fix autoconf test.
27761         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27762
27763 2010-11-20  Bruno Haible  <bruno@clisp.org>
27764
27765         Port to uClibc.
27766         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27767         * lib/fcntl.in.h: Likewise.
27768         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27769         * lib/mbrtowc.c (mbrtowc): Likewise.
27770         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27771         * lib/strerror_r.c: Likewise.
27772         * lib/unistr/u8-strnlen.c: Likewise.
27773         * lib/vasnprintf.c (decimal_point_char): Likewise.
27774         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27775         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27777         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27778         * tests/test-sigaction.c (handler, main): Likewise.
27779         * lib/freading.h: Treat uClibc like a non-glibc platform.
27780         * lib/freading.c: Likewise.
27781         * lib/gettext.h: Likewise.
27782         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27783         Likewise.
27784         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27785         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27786         * lib/propername.c (proper_name_utf8): Likewise.
27787         * lib/spawn.in.h: Likewise.
27788         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27789         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27790         mem_cd_iconveh_internal): Likewise.
27791         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27792         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27793         strstr, strcasestr): Likewise.
27794         * lib/unicodeio.c (unicode_to_mb): Likewise.
27795         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27796         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27797         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27798         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27799         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27800         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27801         * lib/unistr/u8-stpncpy.c: Likewise.
27802         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27803         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27804         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27805         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27806         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27807         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27808         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27811         Likewise.
27812         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27813         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27817         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27818         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27819         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27820         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27821         * tests/test-striconveha.c (main): Likewise.
27822         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27823         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27824         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27825         * doc/posix-functions/getline.texi: Likewise.
27826         Reported by Mike Frysinger <vapier@gentoo.org>.
27827
27828 2010-11-20  Bruno Haible  <bruno@clisp.org>
27829
27830         nproc: Fix condition.
27831         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27832         HAVE_PTHREAD_AFFINITY_NP.
27833
27834 2010-11-20  Bruno Haible  <bruno@clisp.org>
27835
27836         Fix a comment.
27837         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27838
27839 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27840
27841         ftoastr: don't assume snprintf
27842         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27843         Implement a subset of snprintf here, by using sprintf safely.
27844         * modules/ftoastr (Depends-on): Remove snprintf.
27845
27846 2010-11-19  Jim Meyering  <meyering@redhat.com>
27847
27848         test-rename.h: fix compilation failure
27849         * tests/test-rename.h (test_rename): Add omitted "}".
27850
27851 2010-11-17  Jim Meyering  <meyering@redhat.com>
27852
27853         maint.mk: add a URL discussing the no-@acronym policy
27854         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27855
27856 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         ftoastr: depend on snprintf, improve comments
27859         * lib/ftoastr.c: Also mention Loitsch's draft.
27860         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27861         needed in the current implementation, but it might simplify
27862         speeding up the code later.
27863         * modules/ftoastr: Depend on snprintf; this improves portability.
27864         Suggested by Bruno Haible in the same email.
27865
27866         ftoastr: port to hosts lacking strtof and strtold
27867         Problem reported by Bruno Haible in
27868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27869         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27870         environment and strtold (and presumably strtof) are not available.
27871         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27872         (configure.ac): Require gl_C99_STRTOLD.
27873
27874 2010-11-18  Bruno Haible  <bruno@clisp.org>
27875
27876         c-strtold: Avoid link error on AIX 7.
27877         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27878         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27879         (gl_C_STRTOLD): Test whether strtold_l exists.
27880         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27881
27882 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27883
27884         intprops: new macro INT_BITS_STRLEN_BOUND
27885         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27886         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27887         not exposed.  Also, it uses a slightly tighter bound than before;
27888         though this makes no practical difference, we might as well be as
27889         tight as we easily can.
27890
27891         ftoastr: new module, for lossless conversion of floats to short strings
27892         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27893         * modules/ftoastr: New files.
27894
27895 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27896
27897         bootstrap: port to Solaris sed
27898         * build-aux/bootstrap (get_version): Port to Solaris sed.
27899         See Ralf Wildenhues's note in
27900         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27901
27902 2010-11-14  Jim Meyering  <meyering@redhat.com>
27903
27904         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27905         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27906         and move definition closer to sole use.
27907
27908 2010-11-13  Jim Meyering  <meyering@redhat.com>
27909
27910         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27911         Now we require at least autoconf-2.59, which means the work-around
27912         is no longer needed.
27913         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27915         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27916         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27917         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27918
27919 2010-11-13  Bruno Haible  <bruno@clisp.org>
27920
27921         rename, renameat: Avoid test failures at NFS mounted locations.
27922         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27923         functions.
27924         (test_rename): Use assert_nonexistent.
27925         * tests/test-rename.c: Include <dirent.h>.
27926         * tests/test-renameat.c: Likewise.
27927         Reported by Gary V. Vaughan <gary@gnu.org>.
27928
27929         rename, renameat: Document Linux bug with NFS
27930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27931         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27932         * doc/posix-functions/renameat.texi: Likewise.
27933         Suggested by Eric Blake.
27934
27935 2010-11-13  Bruno Haible  <bruno@clisp.org>
27936
27937         rename test: Add comments.
27938         * tests/test-rename.h (test_rename): Add structure and comments.
27939
27940 2010-11-13  Eric Blake  <eblake@redhat.com>
27941
27942         maintainer-makefile: cover a few more files
27943         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27944         scripts generated within C files, for libvirt.
27945
27946 2010-11-13  Bruno Haible  <bruno@clisp.org>
27947
27948         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27949         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27950         character, return the number of bytes that belong together, not always
27951         1.
27952         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27953         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27954         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27955         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27956         number of bytes of an invalid character.
27957         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27958         (main): Invoke it.
27959         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27960         results.
27961         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27962         malformed byte sequences.
27963         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27964         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27965         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27966         Reported by Ben Pfaff and Paolo Bonzini.
27967
27968 2010-11-13  Bruno Haible  <bruno@clisp.org>
27969
27970         openat: Work around glibc bug with fchownat() and empty file names.
27971         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27972         (gl_FUNC_FCHOWNAT): Invoke it.
27973         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27974         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27975         Reported by Gary V. Vaughan <gary@gnu.org>.
27976
27977 2010-11-13  Bruno Haible  <bruno@clisp.org>
27978
27979         openat: Ensure autoconf macro ordering.
27980         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27981         gl_USE_SYSTEM_EXTENSIONS.
27982         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27983
27984 2010-11-13  Bruno Haible  <bruno@clisp.org>
27985
27986         Update comments.
27987         * lib/unistr/u8-check.c: Update file name in comments.
27988         * lib/unistr/u8-mblen.c: Likewise.
27989         * lib/unistr/u8-prev.c: Likewise.
27990         * lib/unistr/u8-strmblen.c: Likewise.
27991         * lib/unistr/u8-strmbtouc.c: Likewise.
27992
27993 2010-11-13  Jim Meyering  <meyering@redhat.com>
27994
27995         tests: avoid test failure on Solaris 10 due to lack of PATH export
27996         * tests/test-update-copyright.sh: Don't forget to export PATH.
27997
27998         init.sh: ensure that IFS is defined, just in case...
27999         * tests/init.sh (setup_): Ensure that IFS is defined,
28000         so that saving and restoring it works as expected.  This
28001         appears to be useful at least for an old version of dash
28002         from a long time ago (RH 6).  See here for details:
28003         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28004
28005         maint.mk: tighten "test a == b" check
28006         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28007         test to files that contain something like #!/bin/sh.
28008         Without this, coreutils would get two false positives in
28009         the comments of C source files.
28010
28011 2010-11-12  Eric Blake  <eblake@redhat.com>
28012
28013         bootstrap: fix typo in previous attempt
28014         * build-aux/bootstrap (buildreq): Correct the grouping.
28015         Reported by Paul Eggert.
28016
28017         maintainer-makefile: prohibit test x == x
28018         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28019         Based on a report by Matthias Bolte.
28020
28021         bootstrap: allow FreeBSD gzip
28022         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28023         which has no '.' and goes to stderr.
28024         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28025         Reported by Matthias Bolte.
28026
28027         maintainer-makefile: check for i18n setup
28028         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28029         will likely work.
28030
28031 2010-11-12  Bruno Haible  <bruno@clisp.org>
28032
28033         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28034         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28035         * lib/nanosleep.c (nanosleep): Likewise.
28036
28037 2010-11-11  Bruno Haible  <bruno@clisp.org>
28038
28039         fcntl-h: Fix for use of C++ on glibc systems.
28040         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28041         also on glibc systems in C++ mode.
28042         Reported by Gary V. Vaughan <gary@gnu.org>.
28043
28044 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28045
28046         mknod: avoid false failure with dash
28047         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28048
28049 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28050
28051         unlink: Fix "is it should" typo in diagnostic.
28052         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28053         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28054
28055 2010-11-11  Bruno Haible  <bruno@clisp.org>
28056
28057         Tests for module 'strerror_r-posix'.
28058         * modules/strerror_r-posix-tests: New file.
28059         * tests/test-strerror_r.c: New file.
28060         * tests/test-string-c++.cc: Check the signature of strerror_r.
28061
28062         New module 'strerror_r-posix'.
28063         * lib/string.in.h (strerror_r): New declaration.
28064         * lib/strerror_r.c: New file.
28065         * m4/strerror_r.m4: New file.
28066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28067         of strerror_r.
28068         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28069         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28070         * modules/strerror_r-posix: New file.
28071         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28072         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28073         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28074         portability problems.
28075
28076 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28077
28078         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28079         line is also considered for output. Quoted function name in shell
28080         command, so temporary files for functions like MyClass::operator()
28081         are removed correctly without errors.
28082
28083 2010-11-09  Bruno Haible  <bruno@clisp.org>
28084
28085         * doc/posix-functions/strerror.texi: List more failing platforms.
28086
28087         * doc/posix-functions/strerror.texi: Add a comment.
28088
28089 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28090
28091         fdopendir: fix bug on MacOS X when low on file descriptors
28092
28093         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28094         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28095         All callers changed.
28096         (fdopendir): Invoke save_cwd at the top level, not after using
28097         multiple dup() calls to use up file descriptors.  Then retry
28098         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28099         less than the maximum number of open file descriptors, because
28100         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28101         on Mac OS X 10.6.4 for tar 1.24
28102         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28103         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28104         and for tar 1.25
28105         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28106
28107 2010-11-07  Bruno Haible  <bruno@clisp.org>
28108
28109         vasnprintf: Support I flag on glibc systems.
28110         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28111         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28112         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28113         snprintf function.
28114         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28115         glibc systems.
28116         * tests/test-vasnprintf-posix3.c: New file.
28117         * modules/vasnprintf-posix-tests (Files): Add it.
28118         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28119
28120 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28121
28122         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28123         * MODULES.html.sh: For compiler warnings, use name
28124         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28125
28126 2010-11-05  Eric Blake  <eblake@redhat.com>
28127
28128         ceil, floor: avoid spurious failure with icc
28129         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28130         [denormals-as-zero] when optimizing without -mieee-fp option.
28131         * tests/test-floorf2.c (floorf_reference): Likewise.
28132         * tests/test-ceilf1.c (dummy): New function.
28133         (main): Use it to outsmart icc's optimization.
28134         * tests/test-floorf1.c (dummy, main): Likewise.
28135
28136         tests: require working signbit
28137         * modules/ceilf-tests (Depends-on): Add signbit.
28138         * modules/ceill-tests (Depends-on): Likewise.
28139         * modules/floorf-tests (Depends-on): Likewise.
28140         * modules/floorl-tests (Depends-on): Likewise.
28141         * modules/round-tests (Depends-on): Likewise.
28142         * modules/roundf-tests (Depends-on): Likewise.
28143         * modules/roundl-tests (Depends-on): Likewise.
28144         * modules/trunc-tests (Depends-on): Likewise.
28145         * modules/truncf-tests (Depends-on): Likewise.
28146         * modules/truncl-tests (Depends-on): Likewise.
28147
28148         strtod: work around icc bug
28149         * lib/strtod.c (minus_zero): Define to working value.
28150         (strtod): Use it to avoid icc bug.
28151
28152         copysign: enhance tests
28153         * modules/copysign-tests (Files): Add minus-zero.h.
28154         * tests/test-copysign.c (main): Also test zeros.
28155
28156 2010-11-04  Eric Blake  <eblake@redhat.com>
28157
28158         ceil, floor, round, trunc: enhance tests of -0
28159         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28160         * tests/test-ceill.c (main): Likewise.
28161         * tests/test-floorf1.c (main): Likewise.
28162         * tests/test-floorl.c (main): Likewise.
28163         * tests/test-round1.c (main): Likewise.
28164         * tests/test-roundf1.c (main): Likewise.
28165         * tests/test-roundl.c (main): Likewise.
28166         * tests/test-trunc1.c (main): Likewise.
28167         * tests/test-truncf1.c (main): Likewise.
28168         * tests/test-truncl.c (main): Likewise.
28169
28170 2010-11-04  Eric Blake  <eblake@redhat.com>
28171
28172         frexp, tests: work around ICC bug with -zero
28173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28174         works with more compilers.
28175         * tests/minus-zero.h: New file.
28176         * modules/ceilf-tests (Files): Include it.
28177         * modules/ceill-tests (Files): Likewise.
28178         * modules/floorf-tests (Files): Likewise.
28179         * modules/floorl-tests (Files): Likewise.
28180         * modules/frexp-nolibm-tests (Files): Likewise.
28181         * modules/frexp-tests (Files): Likewise.
28182         * modules/frexpl-nolibm-tests (Files): Likewise.
28183         * modules/frexpl-tests (Files): Likewise.
28184         * modules/isnan-tests (Files): Likewise.
28185         * modules/isnand-nolibm-tests (Files): Likewise.
28186         * modules/isnand-tests (Files): Likewise.
28187         * modules/isnanf-nolibm-tests (Files): Likewise.
28188         * modules/isnanf-tests (Files): Likewise.
28189         * modules/isnanl-nolibm-tests (Files): Likewise.
28190         * modules/isnanl-tests (Files): Likewise.
28191         * modules/round-tests (Files): Likewise.
28192         * modules/roundf-tests (Files): Likewise.
28193         * modules/roundl-tests (Files): Likewise.
28194         * modules/ldexpl-tests (Files): Likewise.
28195         * modules/signbit-tests (Files): Likewise.
28196         * modules/snprintf-posix-tests (Files): Likewise.
28197         * modules/sprintf-posix-tests (Files): Likewise.
28198         * modules/strtod-tests (Files): Likewise.
28199         * modules/trunc-tests (Files): Likewise.
28200         * modules/truncf-tests (Files): Likewise.
28201         * modules/truncl-tests (Files): Likewise.
28202         * modules/vsnprintf-posix-tests (Files): Likewise.
28203         * modules/vsprintf-posix-tests (Files): Likewise.
28204         * modules/vasnprintf-posix-tests (Files): Likewise.
28205         * modules/vasprintf-posix-tests (Files): Likewise.
28206         * tests/test-ceilf1.c (main): Use it.
28207         * tests/test-ceill.c (main): Likewise.
28208         * tests/test-floorf1.c (main): Likewise.
28209         * tests/test-floorl.c (main): Likewise.
28210         * tests/test-frexp.c (main): Likewise.
28211         * tests/test-frexpl.c (main): Likewise.
28212         * tests/test-isnan.c (main): Likewise.
28213         * tests/test-isnand.h (main): Likewise.
28214         * tests/test-isnanf.h (main): Likewise.
28215         * tests/test-isnanl.h (main): Likewise.
28216         * tests/test-ldexpl.c (main): Likewise.
28217         * tests/test-round.c (main): Likewise.
28218         * tests/test-roundf.c (main): Likewise.
28219         * tests/test-roundl.c (main): Likewise.
28220         * tests/test-signbit.c (test_signbitf, test_signbitd)
28221         (test_signbitl): Likewise.
28222         * tests/test-snprintf-posix.h (test_function): Likewise.
28223         * tests/test-sprintf-posix.h (test_function): Likewise.
28224         * tests/test-strtod.c (main): Likewise.
28225         * tests/test-trunc1.c (main): Likewise.
28226         * tests/test-truncf1.c (main): Likewise.
28227         * tests/test-truncl.c (main): Likewise.
28228
28229         isnanl: work around icc bug
28230         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28231
28232 2010-11-03  Eric Blake  <eblake@redhat.com>
28233
28234         tests: fix compiler warnings
28235         * tests/test-getopt.h (test_getopt): Fix condition.
28236         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28237         * tests/test-pipe2.c (main): Likewise.
28238         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28239
28240         utimens: fix broken m4 test
28241         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28242
28243 2010-10-28  Bruno Haible  <bruno@clisp.org>
28244
28245         posix_spawn*, getdtablesize: Relax license.
28246         * modules/posix_spawn (License): Change to LGPLv2+.
28247         * modules/posix_spawnp (License): Likewise.
28248         * modules/posix_spawn-internal (License): Likewise.
28249         * modules/posix_spawnattr_init (License): Likewise.
28250         * modules/posix_spawnattr_getflags (License): Likewise.
28251         * modules/posix_spawnattr_setflags (License): Likewise.
28252         * modules/posix_spawnattr_getpgroup (License): Likewise.
28253         * modules/posix_spawnattr_setpgroup (License): Likewise.
28254         * modules/posix_spawnattr_getschedparam (License): Likewise.
28255         * modules/posix_spawnattr_setschedparam (License): Likewise.
28256         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28257         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28258         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28259         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28260         * modules/posix_spawnattr_getsigmask (License): Likewise.
28261         * modules/posix_spawnattr_setsigmask (License): Likewise.
28262         * modules/posix_spawnattr_destroy (License): Likewise.
28263         * modules/posix_spawn_file_actions_init (License): Likewise.
28264         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28265         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28266         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28267         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28268         * modules/getdtablesize (License): Likewise.
28269         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28270
28271 2010-10-26  Bruno Haible  <bruno@clisp.org>
28272
28273         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28274         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28275         Cygwin and mingw.
28276         Suggested by Eric Blake.
28277
28278 2010-10-26  Bruno Haible  <bruno@clisp.org>
28279
28280         stdio: Work around compilation error due to renameat() on Solaris 10.
28281         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28282         * lib/renameat.c: Don't include <unistd.h> here.
28283         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28284         Reported by Paul Eggert and Eric Blake.
28285
28286 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28287
28288         renameat: port to Solaris 10, which declares renameat in unistd.h
28289
28290         * lib/renameat.c: Include unistd.h before stdio.h, because
28291         Solaris 10 declares renameat in unistd.h.  Problem encountered
28292         when building GNU tar 1.24 on Solaris 10.
28293
28294 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28295
28296         fdopendir: fix C89 compilation
28297         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28298         compilers.
28299
28300 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28301
28302         inttostr: simplify by removing unnecessary redundancy
28303         * lib/anytostr.c: Don't include verify.h.
28304         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28305         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28306         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28307         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28308         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28309         Likewise.
28310         * modules/inttostr (Depends-on): Remove 'verify'.
28311
28312 2010-10-23  Bruno Haible  <bruno@clisp.org>
28313
28314         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28315         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28316         Reported by Eric Blake.
28317
28318 2010-10-23  Bruno Haible  <bruno@clisp.org>
28319
28320         Tests: Fix LOCALE_JA on MirBSD 10.
28321         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28322         to an UTF-8 locale.
28323         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28324         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28325         Reported by Eric Blake.
28326
28327 2010-10-21  Bruno Haible  <bruno@clisp.org>
28328
28329         nl_langinfo test: Avoid test failure on NetBSD 5.
28330         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28331         Reported by Eric Blake.
28332
28333 2010-10-21  Eric Blake  <eblake@redhat.com>
28334
28335         c-stack: work around libsigsegv 2.8 bug
28336         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28337         overflow on at least PowerPC64.
28338
28339 2010-10-17  Bruno Haible  <bruno@clisp.org>
28340
28341         userspec: Drop redundant file.
28342         * modules/userspec (Files): Remove lib/inttostr.h.
28343
28344 2010-10-17  Bruno Haible  <bruno@clisp.org>
28345
28346         nl_langinfo tests: Silence some warnings.
28347         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28348         Reported by Jim Meyering.
28349
28350 2010-10-17  Bruno Haible  <bruno@clisp.org>
28351
28352         Make use of GCC's attribute __alloc_size__.
28353         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28354         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28355         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28356         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28357         __alloc_size__.
28358         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28359         Suggested by Jim Meyering.
28360
28361 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28362
28363         bootstrap: anchor .gitignore entries.
28364         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28365         with...
28366         (insert_vc_ignore): ... this new function, which prepends `/' to
28367         all .gitignore entries before passing them to
28368         insert_sorted_if_absent.
28369
28370 2010-10-16  Bruno Haible  <bruno@clisp.org>
28371
28372         nextafter: Fix configure check.
28373         * modules/nextafter (configure.ac): Correct expected prototype.
28374
28375 2010-10-16  Bruno Haible  <bruno@clisp.org>
28376
28377         termios: Update documentation.
28378         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28379
28380 2010-10-16  Bruno Haible  <bruno@clisp.org>
28381
28382         tests: Make them compile with TinyCC.
28383         * tests/test-strstr.c (main): Remove parentheses around array
28384         initializer.
28385
28386 2010-10-15  Eric Blake  <eblake@redhat.com>
28387
28388         ignore-value: make header idempotent
28389         * lib/ignore-value.h: Add double-inclusion guards.
28390         Reported by Stefan Berger.
28391
28392 2010-10-15  Jim Meyering  <meyering@redhat.com>
28393
28394         GNUmakefile: handle "stable" target, not "major"
28395         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28396         lists in maint.mk and announce-gen.  Without this, "make stable"
28397         would fail to ensure that $(VERSION) is up to date.
28398
28399 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28400
28401         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28402         & co.
28403
28404 2010-10-14  Bruno Haible  <bruno@clisp.org>
28405
28406         vasnprintf: Don't set errno to 0.
28407         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28408         block that sets it to 0.
28409         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28410
28411 2010-10-14  Bruno Haible  <bruno@clisp.org>
28412
28413         socketlib: Fix.
28414         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28415         gl_PREREQ_SYS_H_WINSOCK2.
28416         Reported by Ian Beckwith <ianb@erislabs.net>.
28417
28418 2010-10-13  Jim Meyering  <meyering@redhat.com>
28419
28420         test-select-stdin.c: avoid warn_unused_result warnings
28421         * tests/test-select-stdin.c: Include "macros.h".
28422         ASSERT that read and fflush succeed.
28423
28424 2010-10-13  Jim Meyering  <meyering@redhat.com>
28425
28426         git-version-gen: do require git-VC'd files in cwd
28427         * build-aux/git-version-gen: Reject a git version string
28428         if there are no commits associated with the current directory.
28429         This avoids an unlikely false-positive (unrelated dir whose parent
28430         repository also contains a tag matching v*), as pointed out
28431         by Giuseppe Scrivano in
28432         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28433
28434 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28435
28436         argv-iter: omit nonconforming declaration
28437         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28438         enum arg_iter_err declaration, which doesn't conform to C99.
28439         Solaris 10 cc warns about this.
28440
28441 2010-10-13  Eric Blake  <eblake@redhat.com>
28442
28443         termios: fix compilation on mingw
28444         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28445         (gl_TERMIOS_H): Adjust it on mingw.
28446         * modules/termios (Makefile.am): Substitute new key.
28447         * lib/termios.in.h (includes): Make include_next conditional.
28448         * doc/posix-headers/termios.texi (termios.h): Update
28449         documentation.
28450         Reported by Daniel P. Berrange.
28451
28452 2010-10-13  Jim Meyering  <meyering@redhat.com>
28453
28454         git-version-gen: don't require that .git/ be in the current dir
28455         * build-aux/git-version-gen: Adjust this script so that it works
28456         when run from any working directory beneath the top-level .git/-
28457         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28458         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28459
28460         test-select: avoid warn_unused_result warnings
28461         * tests/test-select.c: Include "macros.h".
28462         ASSERT that each call to read, write, and pipe succeeds.
28463         While not technically required, also check each "close".
28464         * modules/select-tests (Files): Add tests/macros.h.
28465
28466         test-symlinkat: remove declaration of unused local
28467         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28468
28469         test-inttostr: avoid shadowing warnings
28470         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28471         and use malloc rather than the stack for the same reason as
28472         mentioned in the comment justifying the other allocation.
28473
28474 2010-10-11  Bruno Haible  <bruno@clisp.org>
28475
28476         stdlib: Allow multiple gnulib generated replacements to coexist.
28477         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28478         Reported by Sam Steingold <sds@gnu.org>.
28479
28480 2010-10-11  Jim Meyering  <meyering@redhat.com>
28481
28482         fix a documentation typo
28483         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28484
28485 2010-10-11  Eric Blake  <eblake@redhat.com>
28486
28487         futimens: work around Solaris 11 bug
28488         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28489         * tests/test-futimens.h (test_futimens): Enhance, rather than
28490         weaken test.
28491         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28492
28493 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28494
28495         Indentation.
28496         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28497         higher-level operators more to the left.
28498
28499 2010-10-11  Jim Meyering  <meyering@redhat.com>
28500
28501         test-futimens: avoid unwarranted test failure on Solaris 5.11
28502         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28503         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28504         because it tries to dereference the NULL name argument.
28505
28506 2010-10-11  Bruno Haible  <bruno@clisp.org>
28507
28508         Indentation.
28509         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28510         indentation.
28511
28512 2010-10-11  Jim Meyering  <meyering@redhat.com>
28513
28514         spawn.in.h: make indentation consistent with parentheses
28515         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28516         Make indentation consistent with parentheses.
28517
28518 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28519
28520         Fix mismatched parens in previous commit
28521         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28522         parens.
28523
28524 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28525
28526         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28527
28528         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28529         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28530         * lib/malloca.c: Include "verify.h".
28531         (verify1): Remove, replacing with a verify call.
28532         * lib/relocwrapper.c (verify1): Likewise.
28533         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28534         Likewise.
28535         * modules/malloca (Depends-on): Add 'verify'.
28536         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28537         * modules/vasnprintf (Depends-on): Add 'verify'.
28538         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28539         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28540         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28541         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28542         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28543         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28544         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28545
28546         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28547
28548         Formerly the style was sometimes 2*X - 1, because the C standard
28549         was wrongly thought to disallow ?: in integral constant expressions.
28550         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28551         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28552         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28553         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28554         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28555         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28556         verify that time_t cannot be floating.
28557
28558 2010-10-08  Eric Blake  <eblake@redhat.com>
28559
28560         time: enforce recent POSIX ruling that time_t is integral
28561         * lib/time.in.h (__time_t_must_be_integral): Detect any
28562         problematic systems, allowing the rest of gnulib to assume POSIX.
28563
28564 2010-10-08  Jim Meyering  <meyering@redhat.com>
28565
28566         fdopendir: fix a bug on systems lacking openat and /proc support
28567         OpenBSD 4.7 is one such system.  The most noticeable effect was
28568         failure of any application making nontrivial use of fts: rm, du,
28569         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28570           ./rm: traversal failed: `a': Bad file descriptor
28571         Debugging that, you see that even though FD 6 was closed just
28572         prior to the opendir call in fd_clone_opendir, its resulting
28573         dir->dd_fd was 8, rather than the expected value of 6:
28574
28575         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28576         93                close (fd);
28577         (gdb) n
28578         94                dir = fd_clone_opendir (dupfd);
28579         (gdb) n
28580         95                saved_errno = errno;
28581         (gdb) p dir->dd_fd
28582         $11 = 8
28583
28584         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28585         The problem is that on OpenBSD, fd_clone_opendir has to resort
28586         to using the old-style save/restore CWD mechanism, due to its
28587         lack of openat/proc support, and *that* would steal the FD (6)
28588         that opendir was supposed to use.
28589
28590         The fix is to squirrel away the desired FD so that save_cwd uses a
28591         different one, and then free the dest FD right before calling opendir.
28592         That guarantees opendir will use the required file descriptor.
28593
28594         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28595
28596 2010-10-08  Bruno Haible  <bruno@clisp.org>
28597
28598         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28599         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28600
28601 2010-10-08  Bruno Haible  <bruno@clisp.org>
28602
28603         nanosleep: Make replacement POSIX compliant.
28604         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28605         is out of range.
28606         Reported by Jim Meyering.
28607
28608 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28609
28610         bootstrap: add hook for altering gnulib.mk, for Bison
28611         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28612         the Bison bootstrapping process can rewrite file names and variables
28613         in this file before later parts of 'bootstrap' use the file.
28614         Bison wants to include lib/gnulib.mk from the top-level makefile,
28615         so it needs the file names in this file to be relative to the top
28616         level, not relative to lib; plus it needs variable names to be
28617         rewritten.
28618         (slurp): Use the new function.
28619
28620         bootstrap: reformat for readability
28621         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28622
28623 2010-10-08  Eric Blake  <eblake@redhat.com>
28624
28625         docs: update cygwin progress
28626         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28627         1.7.7.
28628         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28629         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28630         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28631         * doc/posix-functions/carg.texi (carg): Likewise.
28632         * doc/posix-functions/cargf.texi (cargf): Likewise.
28633         * doc/posix-functions/casin.texi (casin): Likewise.
28634         * doc/posix-functions/casinf.texi (casinf): Likewise.
28635         * doc/posix-functions/casinh.texi (casinh): Likewise.
28636         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28637         * doc/posix-functions/catan.texi (catan): Likewise.
28638         * doc/posix-functions/catanf.texi (catanf): Likewise.
28639         * doc/posix-functions/catanh.texi (catanh): Likewise.
28640         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28641         * doc/posix-functions/ccos.texi (ccos): Likewise.
28642         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28643         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28644         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28645         * doc/posix-functions/cexp.texi (cexp): Likewise.
28646         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28647         * doc/posix-functions/cimag.texi (cimag): Likewise.
28648         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28649         * doc/posix-functions/clog.texi (clog): Likewise.
28650         * doc/posix-functions/clogf.texi (clogf): Likewise.
28651         * doc/posix-functions/conj.texi (conj): Likewise.
28652         * doc/posix-functions/conjf.texi (conjf): Likewise.
28653         * doc/posix-functions/cpow.texi (cpow): Likewise.
28654         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28655         * doc/posix-functions/cproj.texi (cproj): Likewise.
28656         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28657         * doc/posix-functions/creal.texi (creal): Likewise.
28658         * doc/posix-functions/crealf.texi (crealf): Likewise.
28659         * doc/posix-functions/csin.texi (csin): Likewise.
28660         * doc/posix-functions/csinf.texi (csinf): Likewise.
28661         * doc/posix-functions/csinh.texi (csinh): Likewise.
28662         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28663         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28664         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28665         * doc/posix-functions/ctan.texi (ctan): Likewise.
28666         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28667         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28668         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28669         * doc/posix-headers/complex.texi (complex.h): Likewise.
28670
28671 2010-10-07  Jim Meyering  <meyering@redhat.com>
28672
28673         parse-datetime: avoid compilation failure on OpenBSD 4.7
28674         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28675         This works around a compilation failure on OpenBSD 4.7:
28676         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28677
28678 2010-10-07  Eric Blake  <eblake@redhat.com>
28679
28680         docs: update cygwin progress
28681         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28682         1.7.6.
28683         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28684         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28685         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28686         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28687         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28688         Likewise.
28689         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28690         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28691         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28692         Likewise.
28693         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28694         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28695         Likewise.
28696         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28697         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28698         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28699         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28700         Likewise.
28701         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28702         Likewise.
28703         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28704
28705         docs: update parse-datetime history
28706         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28707         documentation of this function's history and alternatives.
28708
28709         cygwin: use more robust version check
28710         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28711         exclude an eventual cygwin 1.9.1.
28712         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28713         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28714         (gl_FUNC_STRCASESTR): Likewise.
28715         Reported by Bruno Haible.
28716
28717 2010-10-06  Bruno Haible  <bruno@clisp.org>
28718
28719         string, sys_select: Avoid #including large headers unless necessary.
28720         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28721         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28722         OSF/1, BeOS, Haiku.
28723         Reported by Jim Meyering.
28724
28725 2010-10-05  Eric Blake  <eblake@redhat.com>
28726
28727         memmem, strstr, strcasestr: fix bug with long periodic needle
28728         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28729         periodic needle having false positive.
28730         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28731         and cygwin 1.7.7.
28732         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28733         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28734         (gl_FUNC_STRCASESTR): Likewise.
28735         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28736         * tests/test-memmem.c (main): Expose the bug.
28737         * tests/test-strcasestr.c (main): Likewise.
28738         * tests/test-strstr.c (main): Likewise.
28739         * tests/test-c-strcasestr.c (main): Likewise.
28740         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28741         * doc/posix-functions/strstr.texi (strstr): Likewise.
28742         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28743         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28744
28745 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28746
28747         parse-datetime: do some more renaming
28748         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28749         parse_datetime, not get_date.  Mention the renaming.
28750         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28751         in comments.
28752         * m4/bison.m4: Likewise.
28753
28754 2010-10-05  Eric Blake  <eblake@redhat.com>
28755
28756         parse-datetime: better name than get_date
28757         * NEWS: Reword the deprecation notice.
28758         * modules/get_date: Rename to modules/parse-datetime.
28759         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28760         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28761         * lib/get_date.y: Rename to lib/parse-datetime.y.
28762         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28763         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28764         * doc/getdate.texi: Provide fallback wrapper.
28765         * lib/getdate.h: Move guts, and wrap...
28766         * lib/parse-datetime.h: ...new file.
28767         * lib/parse-datetime.y (get_date): Rename...
28768         (parse_datetime): ...to this.
28769         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28770         (gl_PARSE_DATETIME): ...to this.
28771         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28772         documentation.
28773         * modules/getdate (Files): Provide fallback docs and header.
28774         (Notice, Depends-on): Update references.
28775         * tests/test-parse-datetime.c: Likewise.
28776         * DEPENDENCIES: Likewise.
28777         * MODULES.html.sh (Date and time <time.h>): Likewise.
28778         * doc/parse-datetime.texi (Date input formats)
28779         (Authors of parse_datetime): Likewise.
28780         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28781         (Include): Likewise.
28782         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28783         * gnulib-tool: Likewise.
28784         * m4/bison.m4 (gl_BISON): Likewise.
28785         Suggested by Bruno Haible.
28786
28787 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28788
28789         more ports to Solaris tr, which needs [] around ranges
28790         * gnulib-tool: Solaris tr needs [] around ranges.
28791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28792         * tests/test-pipe-filter-gi1.c (main): Likewise.
28793         * tests/test-pipe-filter-ii1.c (main): Likewise.
28794
28795 2010-10-05  Eric Blake  <eblake@redhat.com>
28796
28797         bootstrap: fix Solaris regression
28798         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28799         around ranges.
28800         Reported by Pádraig Brady.
28801
28802         bootstrap: work with pkg-config
28803         * build-aux/bootstrap (check_versions): Also transliterate - in
28804         prerequisite name.
28805         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28806         prerequisites that were already found, to avoid confusion.
28807         Reported by Justin Clift.
28808
28809         faccessat: remove unused wrappers
28810         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28811         presence of these wrappers dragged in -lgen on Solaris.
28812         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28813
28814 2010-10-05  Jim Meyering  <meyering@redhat.com>
28815
28816         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28817         * Makefile (sc_pragma_columns): New syntax-check rule.
28818
28819 2010-10-04  Bruno Haible  <bruno@clisp.org>
28820
28821         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28822         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28823         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28824         Reported by Bruce Korb and Eric Blake.
28825
28826 2010-10-04  Bruno Haible  <bruno@clisp.org>
28827
28828         threadlib: Make option --with-libpth-prefix work.
28829         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28830         use $LIBPTH, not just -lpth.
28831
28832 2010-10-04  Bruno Haible  <bruno@clisp.org>
28833
28834         Avoid line length limitation from HP NonStop system header files.
28835         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28836         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28837         * lib/ctype.in.h: Likewise.
28838         * lib/dirent.in.h: Likewise.
28839         * lib/errno.in.h: Likewise.
28840         * lib/fcntl.in.h: Likewise.
28841         * lib/float.in.h: Likewise.
28842         * lib/getopt.in.h: Likewise.
28843         * lib/iconv.in.h: Likewise.
28844         * lib/inttypes.in.h: Likewise.
28845         * lib/langinfo.in.h: Likewise.
28846         * lib/locale.in.h: Likewise.
28847         * lib/math.in.h: Likewise.
28848         * lib/netdb.in.h: Likewise.
28849         * lib/netinet_in.in.h: Likewise.
28850         * lib/poll.in.h: Likewise.
28851         * lib/pthread.in.h: Likewise.
28852         * lib/pty.in.h: Likewise.
28853         * lib/sched.in.h: Likewise.
28854         * lib/se-selinux.in.h: Likewise.
28855         * lib/search.in.h: Likewise.
28856         * lib/signal.in.h: Likewise.
28857         * lib/spawn.in.h: Likewise.
28858         * lib/stdarg.in.h: Likewise.
28859         * lib/stddef.in.h: Likewise.
28860         * lib/stdint.in.h: Likewise.
28861         * lib/stdio.in.h: Likewise.
28862         * lib/stdlib.in.h: Likewise.
28863         * lib/string.in.h: Likewise.
28864         * lib/strings.in.h: Likewise.
28865         * lib/sys_file.in.h: Likewise.
28866         * lib/sys_ioctl.in.h: Likewise.
28867         * lib/sys_select.in.h: Likewise.
28868         * lib/sys_socket.in.h: Likewise.
28869         * lib/sys_stat.in.h: Likewise.
28870         * lib/sys_time.in.h: Likewise.
28871         * lib/sys_times.in.h: Likewise.
28872         * lib/sys_utsname.in.h: Likewise.
28873         * lib/sys_wait.in.h: Likewise.
28874         * lib/sysexits.in.h: Likewise.
28875         * lib/termios.in.h: Likewise.
28876         * lib/time.in.h: Likewise.
28877         * lib/unistd.in.h: Likewise.
28878         * lib/wchar.in.h: Likewise.
28879         * lib/wctype.in.h: Likewise.
28880         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28881         * modules/ctype (Makefile.am): Likewise.
28882         * modules/dirent (Makefile.am): Likewise.
28883         * modules/errno (Makefile.am): Likewise.
28884         * modules/fcntl-h (Makefile.am): Likewise.
28885         * modules/float (Makefile.am): Likewise.
28886         * modules/getopt-posix (Makefile.am): Likewise.
28887         * modules/iconv-h (Makefile.am): Likewise.
28888         * modules/inttypes (Makefile.am): Likewise.
28889         * modules/langinfo (Makefile.am): Likewise.
28890         * modules/locale (Makefile.am): Likewise.
28891         * modules/math (Makefile.am): Likewise.
28892         * modules/netdb (Makefile.am): Likewise.
28893         * modules/netinet_in (Makefile.am): Likewise.
28894         * modules/poll-h (Makefile.am): Likewise.
28895         * modules/pthread (Makefile.am): Likewise.
28896         * modules/pty (Makefile.am): Likewise.
28897         * modules/sched (Makefile.am): Likewise.
28898         * modules/search (Makefile.am): Likewise.
28899         * modules/selinux-h (Makefile.am): Likewise.
28900         * modules/signal (Makefile.am): Likewise.
28901         * modules/spawn (Makefile.am): Likewise.
28902         * modules/stdarg (Makefile.am): Likewise.
28903         * modules/stddef (Makefile.am): Likewise.
28904         * modules/stdint (Makefile.am): Likewise.
28905         * modules/stdio (Makefile.am): Likewise.
28906         * modules/stdlib (Makefile.am): Likewise.
28907         * modules/string (Makefile.am): Likewise.
28908         * modules/strings (Makefile.am): Likewise.
28909         * modules/sys_file (Makefile.am): Likewise.
28910         * modules/sys_ioctl (Makefile.am): Likewise.
28911         * modules/sys_select (Makefile.am): Likewise.
28912         * modules/sys_socket (Makefile.am): Likewise.
28913         * modules/sys_stat (Makefile.am): Likewise.
28914         * modules/sys_time (Makefile.am): Likewise.
28915         * modules/sys_times (Makefile.am): Likewise.
28916         * modules/sys_utsname (Makefile.am): Likewise.
28917         * modules/sys_wait (Makefile.am): Likewise.
28918         * modules/sysexits (Makefile.am): Likewise.
28919         * modules/termios (Makefile.am): Likewise.
28920         * modules/time (Makefile.am): Likewise.
28921         * modules/unistd (Makefile.am): Likewise.
28922         * modules/wchar (Makefile.am): Likewise.
28923         * modules/wctype (Makefile.am): Likewise.
28924
28925 2010-10-04  Bruno Haible  <bruno@clisp.org>
28926
28927         read-file tests: Avoid a test failure on NonStop Kernel.
28928         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28929         a regular file.
28930         Reported by Joachim Schmitz <schmitz@hp.com>.
28931
28932 2010-10-03  Bruno Haible  <bruno@clisp.org>
28933
28934         gnulib-tool: Fixes for --create-testdir with --libtool.
28935         * gnulib-tool (func_get_automake_snippet): Don't augment
28936         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28937         an executable.
28938         (func_create_testdir): Handle module 'alloca' like func_import.
28939         Reported by Bruce Korb <bruce.korb@gmail.com>.
28940
28941 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28942
28943         Avoid some lines longer than 80 characters.
28944         * lib/stdint.in.h: Break long comment lines.
28945         * lib/math.in.h: Likewise.
28946         (_GL_NUM_UINT_WORDS): New macro, for readability.
28947         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28948         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28949         * lib/stdlib.in.h: Likewise.
28950         * lib/spawn.in.h: Likewise.
28951         * lib/sys_socket.in.h: Update an URL.
28952         * lib/sys_stat.in.h: Break long line.
28953
28954 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28955
28956         Improve pmccabe2html.
28957         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28958         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28959         when the sources change. Remove the line in the HTML about "Used
28960         ranges" (which implied that there might be other unused ranges),
28961         rename "Resume" to "Summary" (easier to understand for more users).
28962         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28963         styles, and some unnecessary blank lines.
28964
28965 2010-10-03  Bruno Haible  <bruno@clisp.org>
28966             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28967
28968         acl: Add support for ACLs on NonStop Kernel.
28969         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28970         Check whether the function aclsort() exists.
28971         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28972         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28973         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28974         (acl_nontrivial [HAVE_ACLSORT]: New function.
28975         (file_has_acl): Implement for NonStop Kernel.
28976         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28977         (qset_acl): Implement for NonStop Kernel.
28978         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28979         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28980         (main): Implement for NonStop Kernel.
28981         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28982         Kernel. Handle this flavor.
28983         * tests/test-set-mode-acl.sh: Likewise.
28984         * tests/test-copy-acl.sh: Likewise.
28985         * tests/test-copy-file.sh: Likewise.
28986
28987 2010-10-03  Bruno Haible  <bruno@clisp.org>
28988
28989         Info about ACLs on NonStop Kernel.
28990         * doc/acl-resources.txt: Add info about NonStop Kernel.
28991         References by Joachim Schmitz <schmitz@hp.com>.
28992
28993 2010-10-02  Bruno Haible  <bruno@clisp.org>
28994
28995         Define missing EDQUOT on NonStop Kernel.
28996         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28997         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28998         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28999         missing.
29000         * doc/posix-headers/errno.texi: Mention the NSK bug.
29001         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29002         Reported by Joachim Schmitz <schmitz@hp.com>.
29003
29004 2010-10-02  Bruno Haible  <bruno@clisp.org>
29005
29006         Update doc for POSIX:2008.
29007         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29008         Update URL of POSIX specification.
29009
29010 2010-10-02  Bruno Haible  <bruno@clisp.org>
29011
29012         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29013         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29014         from gnulib, not from Automake.
29015
29016 2010-10-02  Bruno Haible  <bruno@clisp.org>
29017
29018         New module 'system-posix'.
29019         * modules/system-posix: New file.
29020         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29021         module is present.
29022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29023         GNULIB_SYSTEM_POSIX.
29024         * modules/stdlib (Depends-on): Remove sys_wait.
29025         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29026         * doc/posix-functions/system.texi: Mention the new module.
29027         * doc/posix-headers/stdlib.texi: Likewise.
29028         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29029         define test_sys_wait_macros to a no-op.
29030         Reported by Sam Steingold <sds@gnu.org>.
29031
29032 2010-09-30  Bruno Haible  <bruno@clisp.org>
29033
29034         More renaming from 'getdate' to 'get_date'.
29035         * doc/get_date.texi: Renamed from doc/getdate.texi.
29036         * modules/get_date (Files): Update.
29037         * MODULES.html.sh (Date and time <time.h>): Update.
29038         * DEPENDENCIES: Update.
29039         * gnulib-tool: Update comment.
29040         * m4/bison.m4 (gl_BISON): Likewise.
29041         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29042
29043 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29044
29045         bootstrap: support ACLOCAL_FLAGS during aclocal
29046         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29047         can add additional -I dir for third-party .m4 files.
29048
29049 2010-09-30  Eric Blake  <eblake@redhat.com>
29050
29051         bootstrap: use glibtoolize on MacOS
29052         * build-aux/bootstrap (check_versions): Convert libtool into
29053         libtoolize.
29054         (tool search): Move libtool check earlier, and look for
29055         glibtoolize for MacOS.
29056         (gnulib_tool_options): Auto-add --libtool when appropriate.
29057         Reported by Justin Clift.
29058
29059         poll: fix typo that broke test on MacOS
29060         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29061         Reported by Justin Clift.
29062
29063         getdate: rename to get_date
29064         Note: getdate.h is not renamed, to minimize client impact.
29065         * modules/getdate: Mark obsolete.  Move old contents...
29066         * modules/get_date: ...to new module name.
29067         * modules/getdate-tests: Move...
29068         * modules/get_date-tests: ...here.
29069         * m4/getdate.m4: Move...
29070         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29071         * lib/getdate.y: Move...
29072         * lib/get_date.y: ...here.
29073         * tests/test-getdate.c: Move...
29074         * tests/test-get_date.c: ...here.
29075         * doc/posix-functions/getdate.texi (getdate): Update name.
29076         * NEWS: Mention the change.
29077
29078 2010-09-29  Bruno Haible  <bruno@clisp.org>
29079
29080         Separate the module 'waitpid' from the module 'sys_wait'.
29081         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29082         present.
29083         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29084         gl_MODULE_INDICATOR_FOR_TESTS.
29085         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29086         * modules/sys_wait (Depends-on): Remove waitpid.
29087         (Makefile.am): Substitute GNULIB_WAITPID.
29088         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29089         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29090         signature only if the 'waitpid' module is present.
29091         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29092         * NEWS: Mention the change.
29093         * modules/grantpt (Depends-on): Add waitpid.
29094         * modules/wait-process (Depends-on): Likewise.
29095
29096 2010-09-29  Bruno Haible  <bruno@clisp.org>
29097
29098         More tests for module 'sys_wait'.
29099         * modules/sys_wait-c++-tests: New file.
29100         * tests/test-sys_wait-c++.cc: New file.
29101         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29102         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29103
29104 2010-09-29  Bruno Haible  <bruno@clisp.org>
29105
29106         New module 'waitpid'.
29107         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29108         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29109         Don't include <process.h>.
29110         (waitpid): Declare only, using modern idiom.
29111         * m4/waitpid.m4: New file.
29112         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29113         * modules/waitpid: New file.
29114         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29115         (Makefile.am): Update.
29116         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29117
29118 2010-09-28  Bruno Haible  <bruno@clisp.org>
29119
29120         poll: Assume ANSI C.
29121         * lib/poll.c (poll): Use an ANSI C declaration.
29122
29123 2010-09-28  Bruno Haible  <bruno@clisp.org>
29124
29125         poll-h: Create poll.h on all platforms.
29126         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29127         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29128         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29129         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29130         (gl_REPLACE_POLL_H): Don't set POLL_H.
29131         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29132         * modules/poll-h (Depends-on): Add include_next.
29133         (Makefile.am): Create poll.h unconditionally. Substitute also
29134         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29135
29136 2010-09-28  Bruno Haible  <bruno@clisp.org>
29137
29138         Tests for module 'poll-h'.
29139         * modules/poll-h-c++-tests: New file.
29140         * tests/test-poll-h-c++.cc: New file.
29141
29142         Tests for module 'poll-h'.
29143         * modules/poll-h-tests: New file.
29144         * tests/test-poll-h.c: New file.
29145
29146 2010-09-28  Bruno Haible  <bruno@clisp.org>
29147
29148         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29149         * modules/poll-h (Depends-on): Add 'extensions'.
29150
29151 2010-09-28  Bruno Haible  <bruno@clisp.org>
29152
29153         New module 'poll-h'.
29154         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29155         (poll): Use modern idiom.
29156         * modules/poll-h: New file.
29157         * modules/poll (Files): Remove lib/poll.in.h.
29158         (Depends-on): Add poll-h.
29159         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29160         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29161         * m4/poll_h.m4: New file.
29162         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29163         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29164         and invoke gl_REPLACE_POLL_H.
29165         * lib/poll.c: Use common idiom.
29166         * tests/test-poll.c: Likewise.
29167         * doc/posix-headers/poll.texi: Mention the poll-h module.
29168         Suggested by Eric Blake.
29169
29170 2010-09-26  Bruno Haible  <bruno@clisp.org>
29171
29172         sys_wait: Implement WSTOPSIG.
29173         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29174         Reported by Simon Josefsson.
29175
29176 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29177
29178         stdlib, sys_wait: Avoid compilation error on mingw.
29179         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29180
29181 2010-09-26  Bruno Haible  <bruno@clisp.org>
29182
29183         stdlib tests: Avoid code duplication.
29184         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29185         * modules/sys_wait-tests (Files): Likewise.
29186         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29187         * tests/test-stdlib.c: Include test-sys_wait.h.
29188         (main): Invoke test_sys_wait_macros.
29189         * tests/test-sys_wait.c: Include test-sys_wait.h.
29190         (main): Invoke test_sys_wait_macros.
29191
29192 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29193
29194         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29195         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29196         sure Windows sockets are working before calling getaddrinfo.
29197         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29198         * doc/gnulib.texi (Windows sockets): Fix typo.
29199
29200 2010-09-25  Bruno Haible  <bruno@clisp.org>
29201
29202         Tests for module 'regex-quote'.
29203         * modules/regex-quote-tests: New file.
29204         * tests/test-regex-quote.c: New file.
29205
29206         New module 'regex-quote'.
29207         * lib/regex-quote.h: New file.
29208         * lib/regex-quote.c: New file.
29209         * modules/regex-quote: New file.
29210         Suggested by Reuben Thomas <rrt@sc3d.org>.
29211
29212 2010-09-24  Bruno Haible  <bruno@clisp.org>
29213
29214         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29215         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29216
29217 2010-09-23  Bruno Haible  <bruno@clisp.org>
29218
29219         setenv: Relax license.
29220         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29221         Blake.
29222         Requested by Eric Blake.
29223
29224 2010-09-22  Bruno Haible  <bruno@clisp.org>
29225
29226         termios: Relax license.
29227         * modules/termios (License): Change to LGPLv2+.
29228         Requested by Eric Blake.
29229
29230 2010-09-22  Bruno Haible  <bruno@clisp.org>
29231
29232         threadlib: Allow the package to change the default to 'no'.
29233         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29234         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29235         Reported by Paul Eggert.
29236
29237 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29238             Bruno Haible  <bruno@clisp.org>
29239
29240         Fix endless loop in mbmemcasecoll.
29241         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29242         byte.
29243         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29244
29245 2010-09-22  Bruno Haible  <bruno@clisp.org>
29246
29247         Tests for module 'memcoll'.
29248         * modules/memcoll-tests: New file.
29249         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29250
29251         memcoll, xmemcoll: Clarify size vs. length.
29252         * modules/memcoll.c (memcoll0): Clarify specification.
29253         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29254         passed to collate_error.
29255
29256 2010-09-22  Bruno Haible  <bruno@clisp.org>
29257
29258         Tests for module 'memcasecmp'.
29259         * modules/memcasecmp-tests: New file.
29260         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29261
29262 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29263
29264         * lib/pthread.in.h: Add split double-inclusion guard, and include
29265         system <pthread.h> if there is one.  Use @@-style as in other
29266         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29267         pthread.h doesn't.
29268         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29269         (pthread_mutexattr_settype, pthread_mutex_trylock):
29270         New static inline functions, if there's no system <pthread.h>.
29271         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29272         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29273         Approximate with mutexes if the system lacks spinlocks, as in
29274         MacOS.
29275         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29276         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29277         @@-style.  Check for spinlocks separately.
29278         (gl_PTHREAD_DEFAULTS): New macro.
29279         * modules/pthread: Redo to use a more typical style for in.h files.
29280
29281 2010-09-21  Eric Blake  <eblake@redhat.com>
29282
29283         net_if: enhance tests
29284         * tests/test-net_if.c (main): Move signature checks earlier.
29285         Print failures to stderr.
29286         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29287         Document the bug that we do not yet fix.
29288
29289 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29290
29291         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29292         about gnulib, not GSS.
29293
29294 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29295
29296         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29297         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29298         for Emacs.
29299         * build-aux/pmccabe2html: Make Makefile.am example code more
29300         cut-and-paste friendly.
29301
29302 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29303
29304         * tests/test-net_if.c: New file.
29305         * modules/net_if-tests: New file.
29306
29307 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29308
29309         pthread: add pthread_spin_destroy
29310         * lib/pthread.in.h (pthread_spin_destroy): New function.
29311
29312 2010-09-19  Bruno Haible  <bruno@clisp.org>
29313
29314         gnulib-tool: Fix --help output.
29315         * gnulib-tool (func_usage): Fix help message.
29316         Reported by Reuben Thomas <rrt@sc3d.org>.
29317
29318 2010-09-18  Jim Meyering  <meyering@redhat.com>
29319
29320         maint.mk: avoid unexpanded \n in two diagnostics
29321         * top/maint.mk (sc_prohibit_always_true_header_tests):
29322         Don't use a literal \n in a halt=... assignment.  It would not be
29323         expanded, and the two \n bytes would appear in the diagnostic output
29324         rather than the desired newline.  Use halt=$$(printf ... instead.
29325         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29326
29327 2010-09-18  Bruno Haible  <bruno@clisp.org>
29328
29329         netinet_in: Doc tweak.
29330         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29331         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29332
29333 2010-09-18  Jim Meyering  <meyering@redhat.com>
29334
29335         init.sh: correct an outdated comment
29336         * tests/init.sh (create_exe_shims_):  s/function/alias/
29337
29338         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29339         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29340         a file named "*.exe" is removed between the glob expansion and the
29341         processing of that oddly named file.
29342
29343 2010-09-17  Eric Blake  <eblake@redhat.com>
29344
29345         mirbsd: add some more support
29346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29347         in BSD family.
29348         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29349         devices as OpenBSD.
29350         * m4/host-os.m4 (mirbsd): Add MirBSD.
29351
29352         tests: fix unportable assumption on sys/wait.h
29353         * tests/test-sys_wait.c (main): Relax test.
29354         * tests/test-stdlib.c (main): Likewise.
29355
29356         init.sh: accommodate directory with no .exes
29357         * tests/init.sh: Accomodate directory containing only scripts.
29358
29359         tests: avoid compiler warning
29360         * tests/test-stdlib.c (main): Use the variable.
29361
29362         fdutimens, fdutimensat: update signature, again
29363         * lib/utimens.h (gl_futimens): Delete, and move signature...
29364         (fdutimens): ...here.
29365         (fdutimensat): Rearrange signature.
29366         (lutimensat): Rename variable for clarity.
29367         * lib/fdutimensat.c (fdutimensat): Update signature.
29368         * lib/utimens.c (fdutimens): Likewise.
29369         (gl_futimens): Delete.
29370         (utimens, lutimens): Update callers.
29371         * lib/futimens.c (futimens): Likewise.
29372         * tests/test-fdutimensat.c: Likewise.
29373         * tests/test-utimens.c: Likewise.
29374         * tests/test-futimens.h: Update comment.
29375         * NEWS: Mention this.
29376         Suggested by Paul Eggert.
29377
29378 2010-09-17  Bruno Haible  <bruno@clisp.org>
29379
29380         Take over the maintenance of some older macros from Autoconf.
29381         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29382         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29383         GNU Autoconf.
29384         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29385         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29386
29387 2010-09-17  Eric Blake  <eblake@redhat.com>
29388
29389         fdutimensat: drop atflag validation
29390         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29391         with valid fd, to close a race scenario where futimens is
29392         unsupported and FILE was replaced by a symlink.
29393         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29394         accordingly.
29395         Suggested by Paul Eggert.
29396
29397 2010-09-16  Bruno Haible  <bruno@clisp.org>
29398
29399         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29400         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29401
29402 2010-09-16  Bruno Haible  <bruno@clisp.org>
29403
29404         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29405         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29406         login_tty exists.
29407         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29408
29409 2010-09-16  Bruno Haible  <bruno@clisp.org>
29410
29411         login_tty: Make the replacement code work on BSD systems.
29412         * lib/login_tty.c: Include <sys/ioctl.h>.
29413         (login_tty): Use ioctl TIOCSCTTY when available.
29414         * modules/login_tty (Depends-on): Add sys_ioctl.
29415         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29416
29417 2010-09-16  Bruno Haible  <bruno@clisp.org>
29418
29419         login_tty: Stricter unit test.
29420         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29421         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29422         and tcgetsid() after login_tty.
29423         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29424
29425 2010-09-16  Bruno Haible  <bruno@clisp.org>
29426
29427         New module 'tcgetsid'.
29428         * lib/tcgetsid.c: New file.
29429         * m4/tcgetsid.m4: New file.
29430         * modules/tcgetsid: New file.
29431         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29432         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29433         GNULIB_TCGETSID, HAVE_TCGETSID.
29434         * lib/termios.in.h: Include <sys/types.h>.
29435         (tcgetsid): New declaration.
29436         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29437         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29438         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29439         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29440
29441 2010-09-16  Bruno Haible  <bruno@clisp.org>
29442
29443         Tests for module 'termios'.
29444         * modules/termios-c++-tests: New file.
29445         * modules/termios-tests: New file.
29446         * tests/test-termios-c++.cc: New file.
29447         * tests/test-termios.c: New file.
29448
29449         New module 'termios'.
29450         * modules/termios: New file.
29451         * lib/termios.in.h: New file.
29452         * m4/termios_h.m4: New file.
29453         * doc/posix-headers/termios.texi: Mention the new module.
29454
29455 2010-09-16  Eric Blake  <eblake@redhat.com>
29456
29457         fdutimensat: add an atflag parameter
29458         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29459         * lib/utimens.h (fdutimensat): Update prototype.
29460         * tests/test-fdutimensat.c: Adjust test to match.
29461         * NEWS: Document the change.
29462         Suggested by Paul Eggert.
29463
29464 2010-09-16  Bruno Haible  <bruno@clisp.org>
29465
29466         Fix typos in comments.
29467         * lib/striconveh.h: Fix typo in comment.
29468         * lib/login_tty.c (login_tty): Likewise.
29469
29470 2010-09-15  Bruno Haible  <bruno@clisp.org>
29471
29472         stdlib: clarify MirBSD WEXITSTATUS bug
29473         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29474         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29475
29476 2010-09-15  Eric Blake  <eblake@redhat.com>
29477
29478         stdlib: work around MirBSD WEXITSTATUS bug
29479         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29480         * modules/stdlib (Depends-on): Add sys_wait.
29481         * tests/test-sys_wait.c (main): Enhance test.
29482         * tests/test-stdlib.c (main): Likewise.
29483         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29484
29485         docs: mention MacOS issue with WEXITSTATUS(constant)
29486         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29487         issue.
29488         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29489
29490         strnlen: add tests
29491         * modules/strnlen-tests: New file.
29492         * tests/test-strnlen.c: Likewise.
29493
29494 2010-09-14  Bruno Haible  <bruno@clisp.org>
29495
29496         unistr/base: Avoid link errors when module 'libunistring' is also used.
29497         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29498         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29499         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29500         Declare also when HAVE_LIBUNISTRING is set.
29501         Reported by Pádraig Brady <P@draigbrady.com>.
29502
29503 2010-09-14  Eric Blake  <eblake@redhat.com>
29504
29505         test-rawmemchr: make more robust
29506         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29507         (Depends-on, configure.ac): Add needed prerequisites to use it.
29508         * modules/memchr-tests (Files, Depends-on, configure.ac):
29509         Likewise, to avoid implicit reliance on memchr module prereqs.
29510         * tests/test-memchr.c (main): Ensure proper masking.
29511         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29512         reads.
29513
29514         memchr: detect glibc Alpha bug
29515         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29516         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29517         Alpha.
29518         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29519         * tests/test-memchr.c (main): Enhance test.
29520         Reported by Nelson H. F. Beebe.
29521
29522 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29523
29524         fts, getcwd, glob: audit for dirfd returning -1
29525         * lib/fts.c (opendir): Remove #define; no longer used.
29526         (opendirat): New arg PDIR_FD.  All callers changed.
29527         (fts_build, _opendir2): Use new opendirat to avoid the need for
29528         dirfd, or for checking whether dirfd returns a negative value.
29529         Don't use opendir; always use openat followed by fdopendir.
29530         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29531         it.
29532         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29533         returns -1 here.
29534         * modules/fts (Depends-on): Remove dirfd.
29535         * modules/getcwd (Depends-on): Likewise.
29536
29537 2010-09-13  Eric Blake  <eblake@redhat.com>
29538
29539         float: fix broken MirBSD header
29540         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29541         * doc/posix-headers/float.texi (float.h): Document it.
29542
29543 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29544
29545         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29546         * lib/fts.c (opendirat): New arg extra_flags.
29547         (__opendir2): Use it to avoid following symlinks when opening
29548         a directory, if symlinks are not supposed to be followed.  See
29549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29550
29551         fdopendir: preserve argument fd before returning
29552         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29553         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29554         (fdopendir): Use them, arranging for FD to be open to the same
29555         directory that it was when it started.  (It might be temporarily
29556         closed while fdopendir is running, so this not thread- or
29557         signal-safe.)  Be careful to do the right thing even when file
29558         descriptors are scarce and dup fails with errno == EMFILE.  See
29559         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29560
29561 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29562
29563         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29564         * NEWS: Document change.
29565         * m4/regex.m4: Disable test for regoff_t size.
29566
29567 2010-09-13  Jim Meyering  <meyering@redhat.com>
29568
29569         fts: don't operate on an invalid file descriptor after failed dup
29570         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29571         negative file descriptor.
29572
29573 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29574
29575         savedir: add streamsavedir, deprecate fdsavedir
29576         * NEWS: Mention deprecation of fdsavedir.
29577         * lib/savedir.c (streamsavedir): New extern function, whose name
29578         ends in "savedir" to be consistent with the others.  This differs
29579         from savedirstream in that it doesn't close its argument.  The
29580         next version of GNU tar will use this instead of fdsavedir, to
29581         avoid some race conditions and conserve file descriptors.
29582         (savedirstream): Reimplement as a wrapper around streamsavedir.
29583         (fdsavedir): Add a comment deprecating this function.  As far as
29584         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29585         * lib/savedir.h (streamsavedir): New decl.
29586         (fdsavedir): Add a comment deprecating this.
29587
29588 2010-09-10  Bruno Haible  <bruno@clisp.org>
29589
29590         langinfo: Fix last commit.
29591         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29592         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29594
29595 2010-09-10  Bruno Haible  <bruno@clisp.org>
29596
29597         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29598         * lib/progreloc.c (O_EXEC): Define fallback.
29599
29600 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29601
29602         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29603         * NEWS: Document recent changes to fcntl-h.
29604         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29605         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29606         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29607         Similarly for O_SEARCH; this last was already true, but not documented.
29608         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29609         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29610         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29611         Likewise.
29612         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29613         is zero, not whether it is defined.
29614         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29615         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29616         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29617
29618 2010-09-10  Bruno Haible  <bruno@clisp.org>
29619
29620         langinfo, nl_langinfo: Fix for IRIX 5.3.
29621         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29622         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29623         HAVE_LANGINFO_YESEXPR.
29624         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29625         HAVE_LANGINFO_YESEXPR.
29626         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29627         HAVE_LANGINFO_T_FMT_AMPM is 0.
29628         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29629         HAVE_LANGINFO_YESEXPR is 0.
29630         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29631         NOEXPR.
29632         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29633         * doc/posix-functions/nl_langinfo.texi: Likewise.
29634         Reported by Eric Blake.
29635
29636 2010-09-10  Bruno Haible  <bruno@clisp.org>
29637
29638         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29639         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29640         on FreeBSD 8.0 and OpenBSD 4.6.
29641         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29642         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29643         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29644         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29645         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29646         ac_includes_default.
29647         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29648
29649 2010-09-09  Eric Blake  <eblake@redhat.com>
29650
29651         strsignal: work around NetBSD bug
29652         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29653         * lib/string.in.h (includes): Likewise.
29654         * doc/posix-functions/strsignal.texi (strsignal): Document the
29655         bug.
29656         Reported by Nelson H. F. Beebe.
29657
29658         gnulib-tool: work with NetBSD /bin/sh
29659         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29660         (func_get_description, func_get_comment, func_get_status)
29661         (func_get_notice, func_get_applicability, func_get_filelist)
29662         (func_get_dependencies, func_get_autoconf_early_snippet)
29663         (func_get_autoconf_snippet, func_get_automake_snippet)
29664         (func_get_include_directive, func_get_link_directive)
29665         (func_get_license, func_get_maintainer, func_import): Avoid
29666         shell syntax errors from parsing syntax extensions.
29667
29668 2010-09-09  Bruno Haible  <bruno@clisp.org>
29669
29670         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29671         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29672         a reliable way to determine whether the 'alias' command works.
29673
29674 2010-09-08  Jim Meyering  <meyering@redhat.com>
29675
29676         init.sh: penalize a set-x-impaired shell; don't disqualify it
29677         * tests/init.sh: Too many shells corrupt application stderr when
29678         you set -x, so we can't afford to disqualify them, since at least
29679         on Irix-6.5, that would disqualify all bourne shells.
29680         Instead, use a two-pass approach.
29681         On the first pass, try to find a shell that meets the stricter
29682         condition that set -x does not corrupt stderr.
29683         If no shell meets the stricter condition, retest each candidate
29684         shell, but without that extra condition.  Finally, when
29685         VERBOSE=yes is requested and set -x might cause trouble, simply
29686         issue a warning and refrain from enabling debug output.
29687
29688 2010-09-08  Eric Blake  <eblake@redhat.com>
29689
29690         unsetenv: fix OpenBSD bug
29691         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29692         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29693         documentation.
29694         Reported by Jim Meyering.
29695
29696         strtod: work around IRIX 6.5 bug
29697         * lib/strtod.c (strtod): Reparse number on shorter string if
29698         exponent parse was invalid.
29699         * tests/test-strtod.c (main): Add check for "0x1p 2".
29700         Reported by Tom G. Christensen.
29701
29702         getopt: optimize previous patch
29703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29704         empty variable.  Speed up awk script.
29705         Reported by Paolo Bonzini.
29706
29707 2010-09-08  Jim Meyering  <meyering@redhat.com>
29708
29709         test.sh: disqualify shells for which set -x corrupts stderr
29710         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29711         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29712         appear in stderr output.  For example, this command:
29713             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29714         prints "P=1" on those two systems:
29715
29716 2010-09-08  Bruno Haible  <bruno@clisp.org>
29717
29718         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29719         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29720         commands, because some shells ignore redirections when there is an
29721         error in the command lookup.
29722         Reported by Eric Blake.
29723
29724 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29725
29726         * lib/regex.h: Fix a mention of `regex_compile' (should be
29727         `re_compile_pattern').
29728         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29729         (re_set_registers): Correct name of parameter in comment.
29730
29731         * doc/regex.texi: Add documentation for missing syntax flags.
29732         Remove commented-out documentation of defunct syntax option
29733         RE_NO_EMPTY_ALTS.
29734         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29735         Add documentation of re_set_registers.
29736         Document trick to re-use a pattern buffer by setting fastmap manually.
29737         Update documentation of struct re_pattern_buffer per public members.
29738         Uncomment documentation of equivalence class operators and
29739         collating symbol operators, since they are now implemented,
29740         Explain leftmost-longest matching in relation to alternatives.
29741         Tidy documentation of substring matching.
29742         Remove POSIX documentation, which is done better in
29743         glibc, and refer the reader there. Keep BSD API documentation, as
29744         that is not readily available elsewhere.
29745
29746 2010-09-07  Eric Blake  <eblake@redhat.com>
29747
29748         getopt: handle POSIXLY_CORRECT set but not exported
29749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29750         export state of POSIXLY_CORRECT, due to bash set -o posix.
29751         Reported by Dustin J. Mitchell.
29752
29753 2010-09-05  Bruno Haible  <bruno@clisp.org>
29754
29755         gnulib-tool: Highlight the changed options.
29756         * gnulib-tool (func_usage): Display the --import, --add-import,
29757         --remove-import explanations in bold font.
29758
29759 2010-09-06  Karl Berry  <karl@gnu.org>
29760
29761         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29762
29763 2010-09-05  Bruno Haible  <bruno@clisp.org>
29764
29765         uniwidth/width: Update comment.
29766         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29767         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29768
29769 2010-09-05  Bruno Haible  <bruno@clisp.org>
29770
29771         isinf, isnan: Relax license.
29772         * modules/isinf (License): Change from GPL to LGPL, with consent from
29773         Ben Pfaff.
29774         * modules/isnan (License): Likewise.
29775         Requested by Ludovic Courtès.
29776
29777 2010-09-04  Bruno Haible  <bruno@clisp.org>
29778
29779         gnulib-tool: Help migration from --import to --add-import or --update.
29780         * gnulib-tool: Emit a verbose error message when --import is used
29781         without any module name.
29782
29783 2010-09-04  Bruno Haible  <bruno@clisp.org>
29784
29785         Update doc about gnulib-tool.
29786         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29787         'gnulib-tool --update' in more detail.
29788         Reported by Eric Blake.
29789
29790 2010-09-04  Bruno Haible  <bruno@clisp.org>
29791
29792         gnulib-tool: Change --import. New options --add/remove-import.
29793         * gnulib-tool: New options --add-import, --remove-import.
29794         (func_usage): Document them.
29795         (have_associative): Define always.
29796         (func_import): In import mode, don't merge the specified settings with
29797         the cached settings. Implement remove-import mode.
29798         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29799         Explain when to use them versus --import.
29800         (Simple update): Use --add-import instead of --import.
29801         * NEWS: Mention the change.
29802
29803 2010-09-04  Bruno Haible  <bruno@clisp.org>
29804
29805         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29806         separate gnulib.mk.
29807
29808 2010-09-04  Bruno Haible  <bruno@clisp.org>
29809
29810         gnulib-tool: Don't talk about CVS any more.
29811         * gnulib-tool (func_usage, func_import): Write "version control"
29812         instead of CVS.
29813
29814 2010-09-04  Jim Meyering  <meyering@redhat.com>
29815
29816         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29817         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29818         false positives (whose names may be ill-chosen) when searching
29819         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29820         would cause a false-positive.
29821
29822         avoid coreutils "make distcheck" failure
29823         Coreutils tests with an absolute build directory name that contains
29824         a space.  Not quoting this directory name caused a failure.
29825         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29826         * tests/test-vc-list-files-cvs.sh: Likewise.
29827
29828 2010-09-04  Bruno Haible  <bruno@clisp.org>
29829
29830         gnulib-tool: Avoid error when run in a package without Makefile.am.
29831         * gnulib-tool: When collecting the m4dirs in a package that does not
29832         have a Makefile.am, eliminate those directories that contain no
29833         gnulib-cache.m4. Fix expression that counts these directories.
29834
29835 2010-09-04  Bruno Haible  <bruno@clisp.org>
29836
29837         update-copyright test: Improve output when perl is missing or too old.
29838         * tests/test-update-copyright.sh: Move test of Perl version down after
29839         the test whether Perl exists. Provide an explanation relating Perl's
29840         error message to Automake's SKIP: message.
29841
29842 2010-09-04  Bruno Haible  <bruno@clisp.org>
29843
29844         Don't augment PATH in TESTS_ENVIRONMENT.
29845         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29846         set abs_aux_dir instead of augmenting PATH.
29847         * modules/vc-list-files-tests (Makefile.am): Likewise.
29848         * tests/test-update-copyright.sh: Augment PATH here.
29849         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29850         path_prepend_.
29851         * tests/test-vc-list-files-git.sh: Likewise.
29852
29853 2010-09-04  Jim Meyering  <meyering@redhat.com>
29854
29855         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29856         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29857
29858 2010-09-04  Bruno Haible  <bruno@clisp.org>
29859
29860         strdup: Fix compilation error in C++ mode.
29861         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29862         the macro.
29863
29864 2010-09-04  Bruno Haible  <bruno@clisp.org>
29865
29866         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29867         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29868         macro into a function.
29869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29870
29871 2010-09-04  Bruno Haible  <bruno@clisp.org>
29872
29873         Set PATH_SEPARATOR the same way autoconf does.
29874         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29875         the value of PATH_SEPARATOR the same way autoconf-generated configure
29876         scripts do.
29877         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29878         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29879
29880 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29881
29882         Set PATH_SEPARATOR the same way autoconf does.
29883         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29884         the same way autoconf-generated configure scripts do.
29885         * posix-modules: Likewise.
29886
29887 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         hash: fix safe_hasher const typo
29890         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29891         const; otherwise, there is a type error later.
29892
29893 2010-09-02  Jim Meyering  <meyering@redhat.com>
29894
29895         test-update-copyright.sh: require perl 5.8.0
29896         * tests/test-update-copyright.sh: Require 5.8.0,
29897         which Tom G. Christensen has confirmed is adequate,
29898         while 5.6.1 is not.
29899
29900 2010-09-02  Eric Blake  <eblake@redhat.com>
29901
29902         tests: init.sh improvements for re-exec'ing with zsh
29903         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29904         -vx through shell re-exec.
29905         Reported by Tom G. Christensen.
29906
29907         wctype: fix typo in previous commit
29908         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29909         Reported by Ludovic Courtès.
29910
29911 2010-09-02  Jim Meyering  <meyering@redhat.com>
29912
29913         test-update-copyright.sh: skip test if Perl is too old
29914         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29915         Reported by Tom G. Christensen.
29916
29917 2010-09-02  Bruno Haible  <bruno@clisp.org>
29918
29919         wctype: Avoid compilation error on IRIX 6.5.30.
29920         * lib/wctype.in.h (iswblank): Declare with a replacement if
29921         REPLACE_ISWBLANK is set.
29922         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29923         declared. Set REPLACE_ISWBLANK.
29924         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29925         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29926         * doc/posix-headers/wctype.texi: Likewise.
29927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29928
29929 2010-09-01  Bruno Haible  <bruno@clisp.org>
29930
29931         New module 'socketlib'.
29932         * modules/socketlib: New file.
29933         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29934         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29935         * modules/sockets (Depends-on): Add socketlib.
29936         Suggested by Sam Steingold <sds@gnu.org>.
29937
29938 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29939
29940         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29941
29942         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29943         when one needs search access to a directory but not read access.
29944         On systems where it is available, it works in some cases where
29945         O_RDONLY does not, namely on directories that are searchable but
29946         not readable, and which need only to be searchable.  If O_SEARCH
29947         is not available, fall back to the traditional method of using
29948         O_RDONLY.
29949
29950         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29951         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29952         when opening a directory that needs only to be searchable.
29953         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29954         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29955         * lib/openat-proc.c (openat_proc_name): Likewise.
29956         * lib/openat.c (openat_needs_fchdir): Likewise.
29957         * lib/save-cwd.c (save_cwd): Likewise.
29958         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29959
29960 2010-08-28  Bruno Haible  <bruno@clisp.org>
29961
29962         New module 'host-cpu-c-abi'.
29963         * modules/host-cpu-c-abi: New file.
29964         * m4/host-cpu-c-abi.m4: New file, based on part of
29965         clisp/src/m4/general.m4.
29966         Requested by Sam Steingold <sds@gnu.org>.
29967
29968 2010-08-31  Eric Blake  <eblake@redhat.com>
29969         and Jim Meyering  <meyering@redhat.com>
29970
29971         hash: factor, and guard against misbehaving hasher function
29972         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29973         of table->hasher's return value.  Also protect against a hash value
29974         so large that adding it to table->bucket results in a NULL pointer.
29975         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29976         Use it in place of open-coded check-and-abort.
29977
29978 2010-08-30  Bruno Haible  <bruno@clisp.org>
29979
29980         hash: silence spurious clang warning
29981         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29982         Reported by Eric Blake.
29983
29984 2010-08-30  Eric Blake  <eblake@redhat.com>
29985
29986         strstr, memmem, strcasestr: avoid leaked shell message
29987         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29988         FreeBSD.
29989         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29990         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29991
29992         tests: silence clang warning
29993         * tests/test-malloca.c (do_allocation): Avoid dead store.
29994
29995 2010-08-29  Bruno Haible  <bruno@clisp.org>
29996
29997         gettext: Fix recent mistake.
29998         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29999
30000 2010-08-29  Bruno Haible  <bruno@clisp.org>
30001
30002         selinux-h: Offer a --without-selinux option.
30003         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30004         --without-selinux was specified, skip all tests and define
30005         HAVE_SELINUX_SELINUX_H to 0.
30006         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30007         set LIB_SELINUX to empty.
30008         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30009         gl_LIBSELINUX. If --without-selinux was specified, replace
30010         selinux/context.h.
30011         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30012
30013 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30014             Bruno Haible  <bruno@clisp.org>
30015
30016         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30017         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30018         of HAVE_REALLOC.
30019         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30020         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30021         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30022         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30023
30024 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30025             Bruno Haible  <bruno@clisp.org>
30026
30027         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30028         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30029         HAVE_CALLOC.
30030         * lib/xmalloc.c: Update accordingly.
30031         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30032         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30033         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30034
30035 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30036             Bruno Haible  <bruno@clisp.org>
30037
30038         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30039         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30040         HAVE_MALLOC.
30041         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30042         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30043         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30044
30045 2010-08-29  Bruno Haible  <bruno@clisp.org>
30046
30047         Update modules list.
30048         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30049         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30050         (String handling <string.h>): Add astrxfrm.
30051         (File system functions): Add readlinkat.
30052
30053 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30054
30055         Tests for module 'realloc-gnu'.
30056         * modules/realloc-gnu-tests: New file.
30057         * tests/test-realloc-gnu.c: New file.
30058
30059         Tests for module 'calloc-gnu'.
30060         * modules/calloc-gnu-tests: New file.
30061         * tests/test-calloc-gnu.c: New file.
30062
30063         Tests for module 'malloc-gnu'.
30064         * modules/malloc-gnu-tests: New file.
30065         * tests/test-malloc-gnu.c: New file.
30066
30067 2010-08-28  Bruno Haible  <bruno@clisp.org>
30068
30069         Rename module 'realloc' -> 'realloc-gnu'.
30070         * modules/realloc-gnu: New file, copied from modules/realloc.
30071         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30072         obsolete.
30073         * modules/mgetgroups (Depends-on): Update.
30074         * doc/posix-functions/realloc.texi: Update.
30075         * NEWS: Mention the change.
30076
30077         Rename module 'calloc' -> 'calloc-gnu'.
30078         * modules/calloc-gnu: New file, copied from modules/calloc.
30079         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30080         obsolete.
30081         * doc/posix-functions/calloc.texi: Update.
30082         * NEWS: Mention the change.
30083
30084         Rename module 'malloc' -> 'malloc-gnu'.
30085         * modules/malloc-gnu: New file, copied from modules/malloc.
30086         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30087         obsolete.
30088         * modules/argp (Depends-on): Update.
30089         * modules/regex (Depends-on): Update.
30090         * doc/posix-functions/malloc.texi: Update.
30091         * NEWS: Mention the change.
30092
30093 2010-08-28  Eric Blake  <eblake@redhat.com>
30094
30095         pread, pwrite: add missing dependency
30096         * modules/pread (Depends-on): Add extensions.
30097         * modules/pwrite (Depends-on): Likewise.
30098
30099 2010-08-28  Bruno Haible  <bruno@clisp.org>
30100
30101         unistr/u*-strchr: Fix tests dependencies.
30102         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30103         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30104         Reported by Ian Beckwith <ianb@erislabs.net>.
30105
30106 2010-08-28  Bruno Haible  <bruno@clisp.org>
30107
30108         read-file: Don't occupy too much unused memory.
30109         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30110
30111 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30112             Eric Blake  <eblake@redhat.com>
30113             Bruno Haible  <bruno@clisp.org>
30114
30115         read-file: Avoid memory reallocations with regular files.
30116         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30117         (fread_file): With regular files, use the remaining length as the
30118         initial buffer size.  Check against overflow.
30119         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30120         sys_stat.
30121
30122 2010-08-28  Bruno Haible  <bruno@clisp.org>
30123
30124         ftello: Relax license.
30125         * modules/ftello (License): Relax to LGPLv2+.
30126         Reported by Eric Blake.
30127
30128 2010-08-28  Bruno Haible  <bruno@clisp.org>
30129
30130         Avoid relocwrapper link errors due to gnulib replacement functions.
30131         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30132         function.
30133         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30134
30135 2010-08-28  Bruno Haible  <bruno@clisp.org>
30136
30137         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30138         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30139         defined.
30140         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30141         Suggested by Eric Blake.
30142
30143 2010-08-28  Bruno Haible  <bruno@clisp.org>
30144
30145         sys_socket, netdb: Ensure socklen_t gets defined.
30146         * modules/sys_socket (Depends-on): Add socklen.
30147         * modules/netdb (Depends-on): Likewise.
30148         * modules/getaddrinfo (Depends-on): Remove socklen.
30149         * modules/getsockopt (Depends-on): Likewise.
30150         * modules/setsockopt (Depends-on): Likewise.
30151         * tests/test-sys_socket.c: Check that socklen_t is defined.
30152         * tests/test-netdb.c: Likewise.
30153         * m4/socklen.m4: Update comments.
30154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30155
30156 2010-08-27  Eric Blake  <eblake@redhat.com>
30157
30158         login_tty: add missing dependency
30159         * modules/login_tty (Depends-on): Add pty.
30160
30161 2010-08-26  Eric Blake  <eblake@redhat.com>
30162
30163         lib-symbol-versions: fix m4 quoting
30164         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30165         format for AC_LINK_IFELSE.
30166
30167         glob: fix compile test
30168         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30169
30170         btowc: fix missing file
30171         * modules/btowc (Files): Also ship locale-fr.m4.
30172
30173         lseek: fix link test
30174         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30175         AC_LINK_IFELSE.
30176
30177         include_next: silence autoconf 2.68 warning
30178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30179         AC_COMPILE_IFELSE as special.
30180         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30181         autoconf < 2.68.
30182
30183         acl: fix compilation test
30184         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30185         AC_COMPILE_IFELSE.
30186
30187 2010-08-26  Bruno Haible  <bruno@clisp.org>
30188
30189         Modernize AC_TRY_RUN invocations.
30190         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30191         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30192         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30193         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30194         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30195         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30198         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30199         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30200         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30201         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30202         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30203         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30204         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30205         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30206         gl_MBRLEN_NUL_RETVAL): Likewise.
30207         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30208         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30209         Likewise.
30210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30211         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30212         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30213         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30214         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30215         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30216         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30217         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30218         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30219         Likewise.
30220         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30221         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30222         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30223         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30224         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30225         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30226         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30227         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30228         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30230
30231 2010-08-26  Bruno Haible  <bruno@clisp.org>
30232
30233         Modernize AC_TRY_LINK invocations.
30234         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30235         AC_TRY_LINK.
30236         * m4/argp.m4 (gl_ARGP): Likewise.
30237         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30238         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30239         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30240         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30241         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30242         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30243         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30244         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30245         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30246         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30247         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30248         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30249         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30250         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30251         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30252         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30253         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30254         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30255         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30256         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30257         Likewise.
30258         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30259         Likewise.
30260         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30261         Likewise.
30262         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30264         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30265         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30266         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30267         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30268         * m4/servent.m4 (gl_SERVENT): Likewise.
30269         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30270         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30271         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30272         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30273         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30274         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30275         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30277         * modules/tsearch-tests (configure.ac): Likewise.
30278
30279 2010-08-26  Bruno Haible  <bruno@clisp.org>
30280
30281         Modernize AC_TRY_COMPILE invocations.
30282         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30283         AC_TRY_COMPILE.
30284         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30285         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30286         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30287         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30288         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30289         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30290         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30291         * m4/lock.m4 (gl_LOCK): Likewise.
30292         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30293         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30294         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30296         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30297         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30298         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30299         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30300         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30301         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30302         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30303         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30304         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30305         extraneous semicolon.
30306
30307 2010-08-26  Jim Meyering  <meyering@redhat.com>
30308
30309         stat-time: relax license LGPL
30310         * modules/stat-time (License): Change from GPL to LGPL,
30311         with consent from all contributors, for use in libguile.
30312         Requested by Ludovic Courtès.
30313
30314 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30315
30316         poll: return immediately on POLLHUP.
30317         * lib/poll.c (poll): Always set timeout before wait_timeout is
30318         computed.
30319
30320 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30321
30322         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30323         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30324         rmdir ("dir/.//"), unlinkat.
30325
30326 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30327
30328         stdbool: avoid spurious failure with modern xlc
30329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30330
30331 2010-08-24  Bruno Haible  <bruno@clisp.org>
30332
30333         getloadavg: simplify code
30334         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30335         gl_have_func. Update comments.
30336
30337 2010-08-24  Eric Blake  <eblake@redhat.com>
30338
30339         getloadavg: don't define SVR4 on cygwin
30340         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30341         only define SVR4 when -lkvm is required.
30342         Reported by Yaakov Selkowitz.
30343
30344 2010-08-24  Bruno Haible  <bruno@clisp.org>
30345
30346         priv-set: fix comment
30347         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30348
30349 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30350
30351         priv-set: fix comments
30352         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30353         to match code, as suggested by David Bartley in:
30354         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30355
30356 2010-08-23  Eric Blake  <eblake@redhat.com>
30357
30358         stdbool: avoid rejecting clang
30359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30360         * tests/test-stdbool.c: Enable more tests if using the system
30361         <stdbool.h> instead of the gnulib replacement.
30362         (main): Move xlc bug test to a runtime test for all compilers.
30363         Reported by Anders Kaseorg.
30364
30365         argz: fix shell quoting issue
30366         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30367         Reported by Charles Wilson.
30368
30369 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30370             Erik Faye-Lund <kusmabite@gmail.com>
30371
30372         poll, select: handle ERROR_BROKEN_PIPE.
30373         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30374         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30375         * lib/select.c (win32_compute_revents): Do not mark a pipe
30376         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30377
30378 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30379
30380         fts: allow compilation with C++
30381         * lib/fts_.h: Specify extern "C" linkage with C++.
30382
30383 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30384
30385         Fix gnulib-tool sed script de-commentation for AIX sed.
30386         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30387         sed.
30388
30389 2010-08-17  Eric Blake  <eblake@redhat.com>
30390
30391         test-stddef: test for (some) offsetof bugs
30392         * tests/test-stddef.c: Enhance test to ensure correct type of
30393         offsetof.
30394         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30395         that we are not fixing at this time.
30396
30397 2010-08-15  Bruno Haible  <bruno@clisp.org>
30398
30399         stpncpy: Allow stpncpy to be defined as a macro.
30400         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30401         if it's already correctly declared.
30402         * lib/string.in.h (stpncpy): Undefine before redefining.
30403         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30404
30405 2010-08-14  Bruno Haible  <bruno@clisp.org>
30406
30407         Rename module 'memxfrm' to 'amemxfrm'.
30408         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30409         (amemxfrm): Renamed from memxfrm.
30410         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30411         (amemxfrm): Renamed from memxfrm.
30412         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30413         * NEWS: Mention the change.
30414         * MODULES.html.sh (String handling <string.h>): Update.
30415         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30416         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30417         * lib/unicase/u16-casexfrm.c: Likewise.
30418         * lib/unicase/u32-casexfrm.c: Likewise.
30419         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30420         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30421         * lib/uninorm/u16-normxfrm.c: Likewise.
30422         * lib/uninorm/u32-normxfrm.c: Likewise.
30423         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30424         memxfrm.
30425         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30426         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30427         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30428         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30429         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30430         Suggested by Paul Eggert.
30431
30432 2010-08-14  Bruno Haible  <bruno@clisp.org>
30433
30434         Tests for module 'astrxfrm'.
30435         * modules/astrxfrm-tests: New file.
30436         * tests/test-astrxfrm.c: New file.
30437
30438         New module 'astrxfrm'.
30439         * lib/astrxfrm.h: New file.
30440         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30441         * modules/astrxfrm: New file.
30442
30443 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30444
30445         regex: Tweak doc.
30446         * doc/regex.texi (Overview): Don't mention regex.c.
30447         (GNU Regular Expression Compiling): Likewise.
30448         (Match-end-of-line Operator): Mention 'not_eol'.
30449
30450 2010-08-14  Brian Gough  <bjg@gnu.org>
30451             Bruno Haible  <bruno@clisp.org>
30452
30453         git-merge-changelog: add doc relating to use with bzr and hg.
30454         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30455
30456 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30457
30458         pthread: fix pthread.h creation for srcdir != builddir
30459         * modules/pthread (Makefile.am): Fix the rule to work also in a
30460         non-srcdir build.
30461
30462 2010-08-13  Karl Berry  <karl@gnu.org>
30463
30464         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30465         * doc/posix-*/*: force line break before @url of POSIX
30466         specifications.
30467         Suggested by Werner Lemberg.
30468
30469 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30470
30471         strtod: fix const diagnostic
30472         * lib/strtod.c (strtod): Don't assign const char * to char *,
30473         as this elicits a warning from GCC when warnings are enabled.
30474
30475 2010-08-10  Pádraig Brady <P@draigbrady.com>
30476         and Eric Blake  <eblake@redhat.com>
30477
30478         copy-acl: ignore ENOTSUP on HP-UX
30479         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30480         so that it is available for HP-UX.
30481         * lib/copy-acl.c (qcopy_acl): Use it.
30482         Reported by Patrick M. Callahan.
30483
30484 2010-08-10  Eric Blake  <eblake@redhat.com>
30485
30486         open, chown: relax license
30487         * modules/open (License): Change to LGPLv2+, with consent by all
30488         authors, for use in augeas.
30489         * modules/chown (License): Likewise.
30490         * modules/lchown (Likewise): Likewise.
30491         Requested by Adam Stokes.
30492
30493 2010-08-09  Karl Berry  <karl@gnu.org>
30494
30495         * build-aux/ar-lib: new file, import from Automake.
30496         * config/srclist.txt: autocheck for updates.
30497
30498 2010-08-09  Eric Blake  <eblake@redhat.com>
30499
30500         readlinkat: adjust client modules
30501         * modules/areadlinkat (Depends-on): Use readlinkat, not
30502         symlinkat.
30503         * modules/areadlinkat-with-size (Depends-on): Likewise.
30504
30505         mknod: be more vocal about danger of running tests as root
30506         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30507         root, since that is just asking for problems.
30508         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30509
30510         readlinkat: split into its own module
30511         * modules/symlinkat: Split readlinkat...
30512         * modules/readlinkat: ...into separate module.
30513         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30514         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30515         * lib/symlinkat.c (readlinkat): Move...
30516         * lib/readlinkat.c: ...into new file.
30517         * modules/symlinkat-tests: Split readlinkat test...
30518         * modules/readlinkat-tests: ...into separate module.
30519         * tests/test-symlinkat.c: Split...
30520         * tests/test-readlinkat.c: ...into new file.
30521         * NEWS: Document the split.
30522         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30523         * lib/unistd.in.h (readlinkat): Likewise.
30524         Suggested by Bruno Haible.
30525
30526 2010-08-08  Bruno Haible  <bruno@clisp.org>
30527
30528         memxfrm: Speed up.
30529         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30530         that usually only one call to strxfrm is necessary for each string
30531         part.
30532         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30533
30534 2010-08-07  Karl Berry  <karl@gnu.org>
30535
30536         * doc/posix-headers/limits.texi,
30537         * doc/posix-functions/malloc.texi,
30538         * doc/posix-functions/strsignal.texi: missing @item.
30539         * doc/ld-version-script.texi: spurious leading i.
30540         * doc/regex.texi (Interval Operators): no commas inside @var.
30541
30542 2010-08-01  Bruno Haible  <bruno@clisp.org>
30543
30544         Integrate the regex documentation.
30545         * doc/gnulib.texi: Define 'cn' index.
30546         (Regular expressions): New a chapter that includes regex.texi and
30547         regexprops-generic.texi.
30548         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30549         syntax.
30550
30551         Whitespace cleanup.
30552         * doc/regex.texi: Remove trailing spaces.
30553
30554         Add regex documentation.
30555         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30556         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30557         Written by Kathy A. Hargreaves and Karl Berry.
30558
30559 2010-08-01  Bruno Haible  <bruno@clisp.org>
30560
30561         link: Update documentation.
30562         * doc/posix-functions/link.texi: Update regarding Solaris.
30563
30564 2010-07-31  Bruno Haible  <bruno@clisp.org>
30565
30566         Update modules list.
30567         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30568         (String handling <string.h>): Add memcmp2, memxfrm.
30569         (Container data structures): Add xlist, xsublist, xoset.
30570         (Core language properties): Add alignof, unused-parameter.
30571         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30572         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30573         (Unibyte characters <ctype.h>): New section.
30574         (String handling <string.h>): New section.
30575         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30576         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30577         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30578         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30579         tan, tanh, tanl, y0, y1, yn.
30580         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30581         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30582         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30583         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30584         unlockpt, vdprintf, vdprintf-posix.
30585         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30586         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30587         xconcat-filename.
30588         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30589         getdtablesize, pipe2, pipe2-safer.
30590         (Security): New section.
30591         (Networking functions): Add accept4.
30592         (Signal handling): Add sigpipe.
30593         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30594         mbmemcasecoll.
30595         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30596         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30597         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30598         pipe-filter-ii.
30599         (Misc): Add argp-version-etc, login_tty, parse-duration.
30600
30601 2010-07-31  Bruno Haible  <bruno@clisp.org>
30602
30603         Improve doc in MODULES.html.
30604         * modules/linkat (Description): Add the word "function".
30605         * modules/mkfifo (Description): Likewise.
30606         * modules/mknod (Description): Likewise.
30607         * modules/remove (Description): Likewise.
30608         * modules/renameat (Description): Likewise.
30609         * modules/stat (Description): Likewise.
30610         * modules/symlink (Description): Likewise.
30611         * modules/unlink (Description): Likewise.
30612
30613 2010-07-31  Bruno Haible  <bruno@clisp.org>
30614
30615         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30616         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30617         option --enable/disable-c++ instead of --enable/disable-cxx.
30618         * NEWS: Mention the change.
30619
30620 2010-07-31  Bruno Haible  <bruno@clisp.org>
30621
30622         readlink, areadlink: Relax test a bit.
30623         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30624         alternative to ENOTDIR.
30625         * tests/test-areadlink.h (test_areadlink): Likewise.
30626         Reported by Rainer Tammer.
30627
30628 2010-07-31  Bruno Haible  <bruno@clisp.org>
30629
30630         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30631         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30632         character, perform the search using U_STRCHR.
30633         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30634         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30635         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30636         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30637         Suggested by Paolo Bonzini.
30638
30639 2010-07-31  Bruno Haible  <bruno@clisp.org>
30640
30641         unistr/u*-strstr: Fix dependencies.
30642         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30643         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30644         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30645
30646 2010-07-31  Bruno Haible  <bruno@clisp.org>
30647
30648         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30649         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30650         the beginning of the loop.
30651         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30652         cases in 'switch' statement.
30653
30654         unistr/u8-strchr: Fix several bugs.
30655         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30656         the string. When not found, return NULL, not a pointer near the end.
30657
30658         More tests for unistr/u8-strchr.
30659         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30660         that the function does not read past the first occurrence of the byte
30661         being searched.
30662         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30663         * tests/unistr/test-u16-strchr.c (main): New function.
30664         * tests/unistr/test-u32-strchr.c (main): New function.
30665
30666 2010-07-31  Bruno Haible  <bruno@clisp.org>
30667
30668         posix-modules: Ignore backup files of documentation files.
30669         * posix-modules: grep only through files named *.texi.
30670
30671 2010-07-31  Bruno Haible  <bruno@clisp.org>
30672
30673         symlinkat: Fix documentation.
30674         * doc/posix-functions/readlinkat.texi: Fix module name.
30675
30676 2010-07-31  Bruno Haible  <bruno@clisp.org>
30677
30678         fchownat: Replace also when chown has the trailing slash bug.
30679         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30680         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30681         introduced on 2010-04-10.
30682         Reported by Rainer Tammer.
30683
30684 2010-07-31  Bruno Haible  <bruno@clisp.org>
30685
30686         linkat: Work around AIX 7.1 bug.
30687         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30688         whether linkat handles trailing slash correctly. If not, replace linkat
30689         and define LINKAT_TRAILING_SLASH_BUG.
30690         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30691         check whether (fd1,file1) points to a directory if file1 or file2 ends
30692         in a slash. Code taken from lib/link.c.
30693         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30694         Reported by Rainer Tammer.
30695
30696 2010-07-31  Bruno Haible  <bruno@clisp.org>
30697
30698         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30699         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30700         This disables an xlc optimization that was causing wrong test results.
30701         Reported by Rainer Tammer.
30702
30703 2010-07-31  Bruno Haible  <bruno@clisp.org>
30704
30705         iconv: Work around AIX 6.1..7.1 bug.
30706         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30707         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30708         cross-compiling, guess no on all versions of AIX.
30709         Reported by Rainer Tammer.
30710
30711 2010-07-31  Bruno Haible  <bruno@clisp.org>
30712
30713         readlink: Relax test a bit.
30714         * tests/test-readlink.h (test_readlink): Allow different errno value
30715         when readlink is called with a file name that ends in / and refers to
30716         a file.
30717         Suggested by Eric Blake.
30718         Reported by Rainer Tammer.
30719
30720 2010-07-31  Bruno Haible  <bruno@clisp.org>
30721
30722         copysign: Does not require -lm on glibc systems.
30723         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30724         gl_COMMON_DOUBLE_MATHFUNC.
30725         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30726
30727 2010-07-31  Bruno Haible  <bruno@clisp.org>
30728
30729         duplocale: Work around AIX 7.1 bug.
30730         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30731         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30732         * lib/duplocale.c (rpl_duplocale): Update comment.
30733         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30734         Reported by Rainer Tammer.
30735
30736 2010-07-30  Bruno Haible  <bruno@clisp.org>
30737
30738         dirfd: Avoid link error on AIX 7.1.
30739         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30740         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30741         exist, set REPLACE_DIRFD.
30742         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30743         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30744         * doc/posix-functions/dirfd.texi: Update.
30745         Reported by Rainer Tammer.
30746
30747 2010-07-30  Eric Blake  <eblake@redhat.com>
30748
30749         strtod: next round of AIX fixes
30750         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30751         exponent.
30752         * tests/test-strtod.c (main): Enhance tests.
30753         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30754         Reported by Rainer Tammer.
30755
30756         futimens: fix configure check
30757         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30758         Reported by Bruno Haible.
30759
30760 2010-07-30  Bruno Haible  <bruno@clisp.org>
30761
30762         getline: Update regarding AIX.
30763         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30764         Reported by Rainer Tammer.
30765
30766 2010-07-30  Bruno Haible  <bruno@clisp.org>
30767
30768         wcwidth: Drop replacement on AIX 7.
30769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30770         AIX 7.
30771         Reported by Rainer Tammer.
30772
30773 2010-07-30  Bruno Haible  <bruno@clisp.org>
30774
30775         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30776         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30777         a 'char *'.
30778         Reported by Rainer Tammer.
30779
30780 2010-07-30  Bruno Haible  <bruno@clisp.org>
30781
30782         unlink: Update regarding AIX.
30783         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30784         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30785         Reported by Rainer Tammer.
30786
30787 2010-07-30  Bruno Haible  <bruno@clisp.org>
30788
30789         symlink: Update regarding AIX.
30790         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30791         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30792         Reported by Rainer Tammer.
30793
30794 2010-07-30  Bruno Haible  <bruno@clisp.org>
30795
30796         strndup: Update regarding AIX.
30797         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30798         AIX 7.
30799         Reported by Rainer Tammer.
30800
30801 2010-07-30  Bruno Haible  <bruno@clisp.org>
30802
30803         stat: Update regarding AIX.
30804         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30805         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30806         Reported by Rainer Tammer.
30807
30808 2010-07-30  Bruno Haible  <bruno@clisp.org>
30809
30810         truncl: Fix autoconf test.
30811         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30812         whether truncl works.
30813         Reported by Rainer Tammer.
30814
30815 2010-07-30  Bruno Haible  <bruno@clisp.org>
30816
30817         round: Update regarding AIX.
30818         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30819         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30820         Reported by Rainer Tammer.
30821
30822 2010-07-30  Bruno Haible  <bruno@clisp.org>
30823
30824         rename: Update regarding AIX.
30825         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30826         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30827         Reported by Rainer Tammer.
30828
30829 2010-07-30  Bruno Haible  <bruno@clisp.org>
30830
30831         printf.m4: Update regarding AIX.
30832         * m4/printf.m4: Update comments regarding AIX.
30833         Reported by Rainer Tammer.
30834
30835 2010-07-30  Bruno Haible  <bruno@clisp.org>
30836
30837         iconv: Update regarding AIX.
30838         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30839         AIX 7.
30840         Reported by Rainer Tammer.
30841
30842 2010-07-30  Bruno Haible  <bruno@clisp.org>
30843
30844         getopt: Update regarding AIX.
30845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30846         no on AIX.
30847         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30848         Reported by Rainer Tammer.
30849
30850 2010-07-30  Bruno Haible  <bruno@clisp.org>
30851
30852         ldexpl; Update regarding AIX.
30853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30854         on AIX 7.
30855         Reported by Rainer Tammer.
30856
30857 2010-07-30  Bruno Haible  <bruno@clisp.org>
30858
30859         frexpl: Update regarding AIX.
30860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30861         on AIX 7.
30862         Reported by Rainer Tammer.
30863
30864 2010-07-30  Bruno Haible  <bruno@clisp.org>
30865
30866         open, fopen: Update regarding AIX.
30867         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30868         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30869         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30870         * doc/posix-functions/fopen.texi: Likewise.
30871         Reported by Rainer Tammer.
30872
30873 2010-07-30  Bruno Haible  <bruno@clisp.org>
30874
30875         chown: Update doc regarding AIX.
30876         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30877         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30878         Reported by Rainer Tammer.
30879
30880 2010-07-30  Eric Blake  <eblake@redhat.com>
30881
30882         strtod: fix bug in replacement function on AIX
30883         * lib/strtod.c (strtod): Special case broken "0x" parse in
30884         underlying strtod.
30885         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30886         * doc/posix-functions/strtod.texi (strtod): Likewise.
30887         Reported by Rainer Tammer.
30888
30889 2010-07-30  Bruno Haible  <bruno@clisp.org>
30890
30891         mbrlen: Fix cross-compilation guess for AIX.
30892         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30893         guess. Leftover from 2008-12-22.
30894
30895 2010-07-30  Bruno Haible  <bruno@clisp.org>
30896
30897         mbrtowc: Fix cross-compilation guess for AIX.
30898         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30899         guess. Leftover from 2008-12-21.
30900
30901 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30902
30903         init.sh: work around trap limitation of some shells
30904         * tests/init.sh (setup_): Move exit trap outside of shell function.
30905
30906 2010-07-29  Eric Blake  <eblake@redhat.com>
30907
30908         strtod: aid debugging
30909         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30910         understanding why strtod is rejected.
30911
30912 2010-07-28  Bruno Haible  <bruno@clisp.org>
30913
30914         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30915         * lib/unistr/u8-chr.c: Include <string.h>.
30916         * tests/unistr/test-u8-chr.c: Likewise.
30917         * tests/unistr/test-u16-chr.c: Likewise.
30918         * tests/unistr/test-u32-chr.c: Likewise.
30919         * tests/unistr/test-u8-strchr.c: Likewise.
30920         * tests/unistr/test-u16-strchr.c: Likewise.
30921         * tests/unistr/test-u32-strchr.c: Likewise.
30922         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30923         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30924         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30925         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30926
30927 2010-07-28  Bruno Haible  <bruno@clisp.org>
30928
30929         Use spaces for indentation, not tabs.
30930         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30931
30932 2010-07-27  Bruno Haible  <bruno@clisp.org>
30933
30934         mbspcasecmp: Fix function specification.
30935         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30936         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30937         Reported by Eric Blake <eblake@redhat.com>.
30938
30939 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30940
30941         timespec: use cast and not conditional, as truncation isn't possible
30942         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30943         instead of a conditional.  Comment about the situation in more detail.
30944         This undoes most of the 2009-10-29 patch.
30945
30946 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30947
30948         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30949         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30950         * lib/unistr/u8-strchr.c: Likewise.
30951         * modules/unistr/u8-chr: Depend on memchr.
30952
30953         unistr/u*-strchr: add tests
30954         * modules/unistr/u8-strchr-tests: New file.
30955         * modules/unistr/u16-strchr-tests: New file.
30956         * modules/unistr/u32-strchr-tests: New file.
30957         * tests/unistr/test-strchr.h: New file.
30958         * tests/unistr/test-u8-strchr.c: New file.
30959         * tests/unistr/test-u16-strchr.c: New file.
30960         * tests/unistr/test-u32-strchr.c: New file.
30961
30962         unistr/u*-chr: test multibyte sequences more
30963         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30964         test vector.
30965         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30966         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30967         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30968
30969         unistr/u*-chr: test multibyte sequences
30970         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30971
30972         unistr/u*-chr: prepare for multibyte tests
30973         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30974         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30975         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30976         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30977         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30978         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30979
30980 2010-07-18  Bruno Haible  <bruno@clisp.org>
30981
30982         unistr/u8-strchr: Optimize non-ASCII argument case.
30983         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30984         because the first byte often matches anyway.
30985         Reported by Pádraig Brady <P@draigbrady.com>.
30986
30987 2010-07-15  Karl Berry  <karl@gnu.org>
30988
30989         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30990
30991 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30992
30993         getcwd: on Solaris, work better if ancestors are inaccessible
30994         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30995         buffer and size, try again with a large buffer.  This works better
30996         on Solaris, since its getcwd succeeds even if the path to the root
30997         is inaccessible, and this is helpful in common cases such as .zfs
30998         hidden directories.  Problem reported by J Chapman Flack in
30999         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31000         Use system getcwd if it's declared, not merely if it's partly
31001         working; use the partly-working test only to avoid needless effort
31002         if the system getcwd fails.
31003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31004         comment that was already obsolete and is now even more obsolete.
31005         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31006         now might call strdup.
31007
31008 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31009
31010         pthread: Add enough so that coreutils/src/sort.c compiles.
31011         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31012         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31013         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31014         Include <sys/types.h>, in case it defines pthread_t.
31015         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31016         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31017         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31018         (pthread_rwlockattr_t, pthread_spinlock_t):
31019         New typedefs, if HAVE_PTHREAD_T is not defined.
31020         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31021         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31022         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31023         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31024         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31025         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31026         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31027         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31028         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31029         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31030         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31031         New macros.
31032         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31033         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31034         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31035         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31036         (pthread_spin_unlock): New dummy functions.
31037         (pthread_create): Return EAGAIN; don't set errno.
31038         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31039         require AC_C_INLINE.
31040         * modules/pthread (Depends-on): Add sched, time.
31041         (pthread.h): Use AM_V_GEN.
31042
31043 2010-07-13  Bruno Haible  <bruno@clisp.org>
31044
31045         striconveh: Don't malloc memory if the result buffer is sufficient.
31046         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31047         buffer if its size is sufficient.
31048         Reported by Ludovic Courtès <ludo@gnu.org>.
31049
31050 2010-07-13  Bruno Haible  <bruno@clisp.org>
31051
31052         strtod: Add safety check.
31053         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31054
31055 2010-07-12  Bruno Haible  <bruno@clisp.org>
31056
31057         Unify tests that set gl_cv_func_ldexpl_no_libm.
31058         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31059         gl_FUNC_LDEXPL.
31060         (gl_FUNC_LDEXPL): Invoke it.
31061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31062
31063 2010-07-12  Bruno Haible  <bruno@clisp.org>
31064
31065         Unify tests that set gl_cv_func_ldexp_no_libm.
31066         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31067         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31068         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31069         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31070         * modules/strtod (Files): Add m4/ldexp.m4.
31071
31072 2010-07-12  Bruno Haible  <bruno@clisp.org>
31073
31074         Unify tests that set gl_cv_func_frexpl_no_libm.
31075         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31076         gl_FUNC_FREXPL_NO_LIBM.
31077         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31079
31080 2010-07-12  Bruno Haible  <bruno@clisp.org>
31081
31082         Unify tests that set gl_cv_func_frexp_no_libm.
31083         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31084         gl_FUNC_FREXP_NO_LIBM.
31085         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31086         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31087
31088 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31089
31090         memcoll: clarify sizes versus lengths, document better, and tweak perf
31091         * lib/memcoll.c (strcoll_loop, memcoll0):
31092         Improve quality of descriptive comments.  Name variables
31093         consistently as to whether they are lengths (which do not include
31094         terminating null) versus sizes (which do).
31095         * lib/xmemcoll.c (xmemcoll0): Likewise.
31096         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31097         returned when s1size == 0; this is easier to compile and saves
31098         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31099
31100 2010-07-12  Bruno Haible  <bruno@clisp.org>
31101
31102         Tests for module '_Exit'.
31103         * modules/_Exit-tests: New file.
31104         * tests/test-_Exit.sh: New file.
31105         * tests/test-_Exit.c: New file.
31106
31107         New module '_Exit'.
31108         * lib/stdlib.in.h (__attribute__): New macro.
31109         (_Exit): New declaration.
31110         * lib/_Exit.c: New file.
31111         * m4/_Exit.m4: New file.
31112         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31113         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31114         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31115         * modules/_Exit: New file.
31116         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31117         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31118
31119 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31120
31121         strtod: make it more-accurate typically, and don't require libm
31122         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31123         Include limits.h.  Don't include string.h.
31124         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31125         (locale_isspace): New function, so that no casts are needed to
31126         check whether *s is a space.
31127         (ldexp): Provide an unused dummy if not available.
31128         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31129         (strtod): Use them.  This implementation prefers to use the
31130         underlying strtod if available, falling back on our own code
31131         only to fix known bugs.  This is more likely to produce an
31132         accurate result.  Also, it avoids the use of libm functions.
31133         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31134         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31135         was absent, but it caused a test failure with coreutils.
31136         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31137         with libm.
31138         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31139         * modules/strtod-tests (Makefile.am): Likewise.
31140
31141 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31142             Bruno Haible  <bruno@clisp.org>
31143
31144         unistr/u8-strchr: Optimize ASCII argument case.
31145         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31146
31147 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31148
31149         (x)memcoll: minor tweaks
31150         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31151         is after the type that it qualifies.
31152         (memcoll0): Likewise.
31153         * lib/memcoll.h (memcoll0): Likewise.
31154         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31155         * lib/xmemcoll.h (xmemcoll0): Likewise.
31156         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31157         differs from memcoll in that the NUL byte is part of the argument.
31158         Omit the abort-checks, as performance is a real issue here.  Plus,
31159         the checks were wrong anyway (an off-by-one error).  Omit local
31160         variable 'diff', as it's a bit clearer that way.
31161         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31162         no longer needed.
31163
31164 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31165
31166         (x)memcoll: speedup when input is known to be NUL delimited
31167         * lib/memcoll.c: Include stdlib.
31168         (memcoll0): New function.
31169         (strcoll_loop): New function, refactored for use in both memcoll
31170         and memcoll0.
31171         * lib/memcoll.h (memcoll0): Add prototype.
31172         * lib/xmemcoll.c (xmemcoll0): New function.
31173         (collate_error): New function, refactored for use in both xmemcoll
31174         and xmemcoll0.
31175         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31176         * m4/memcoll.m4: add inline invocation.
31177
31178 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31179
31180         * build-aux/bootstrap: Remove any local translations
31181         from the translation project synchronization directory,
31182         so that local only translations are not distributed.
31183
31184 2010-07-04  Bruno Haible  <bruno@clisp.org>
31185
31186         fsusage: Clarify which code applies to which platforms.
31187         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31188         platform.
31189         * lib/fsusage.c (get_fs_usage): Likewise.
31190
31191 2010-07-04  Bruno Haible  <bruno@clisp.org>
31192
31193         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31194         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31195         Reported by Martin Lambers <marlam@marlam.de>.
31196
31197 2010-07-04  Jim Meyering  <meyering@redhat.com>
31198
31199         hash: once again explicitly disallow insertion of NULL
31200         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31201         inserting a NULL pointer cannot work with these functions.
31202         Add a comment with details.
31203         This reverts part of the 2010-07-01 commit, 5bef1a35
31204         "hash: extend module to deal with non-pointer keys".
31205
31206 2010-07-01  Bruno Haible  <bruno@clisp.org>
31207
31208         stdbool: Update doc.
31209         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31210         Info from Christian Weisgerber <naddy@mips.inka.de>.
31211
31212 2010-07-01  Jim Meyering  <meyering@redhat.com>
31213
31214         hash: extend module to deal with non-pointer keys
31215         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31216         but that allows insertion of non-pointer entries.
31217         Do not disallow an ENTRY value of NULL.
31218         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31219         * lib/hash.h (hash_insert0): Declare.
31220
31221 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31222
31223         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31224         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31225         not present (i.e. with autoconf 2.59 and when using gettextize, not
31226         gnulib), require AC_GNU_SOURCE instead.
31227
31228 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31229
31230         idpriv-drop: Fix tests.
31231         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31232         not to the test-idpriv-droptemp program.
31233
31234 2010-06-29  Bruno Haible  <bruno@clisp.org>
31235
31236         string: Fix syntax error with g++ 2.96.
31237         * lib/string.in.h (__pure__): Remove definition.
31238         (_GL_ATTRIBUTE_PURE): New macro.
31239         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31240         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31241         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31242
31243 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31244
31245         unitypes: Fix bug introduced on 2010-05-18.
31246         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31247
31248 2010-06-22  Eric Blake  <eblake@redhat.com>
31249
31250         memmem: slight optimization
31251         * lib/str-two-way.h (critical_factorization): Update comments.
31252         Reduce work during factorization phase.
31253         Reported by Carlos Bueno <carlos@bueno.org>.
31254
31255 2010-06-21  Bruno Haible  <bruno@clisp.org>
31256
31257         Fix HAVE_CALLOC_POSIX misnomer.
31258         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31259         !HAVE_CALLOC_POSIX.
31260         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31261         HAVE_CALLOC_POSIX.
31262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31263         instead of HAVE_CALLOC_POSIX.
31264         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31265         HAVE_CALLOC_POSIX.
31266
31267         Use modern idiom for calloc() replacement.
31268         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31269         AC_FUNC_CALLOC.
31270         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31271         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31272         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31273         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31274         (gl_REPLACE_CALLOC): New macro.
31275
31276 2010-06-21  Bruno Haible  <bruno@clisp.org>
31277
31278         Fix HAVE_REALLOC_POSIX misnomer.
31279         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31280         !HAVE_REALLOC_POSIX.
31281         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31282         HAVE_REALLOC_POSIX.
31283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31284         instead of HAVE_REALLOC_POSIX.
31285         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31286         HAVE_REALLOC_POSIX.
31287
31288         Use modern idiom for realloc() replacement.
31289         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31290         AC_FUNC_REALLOC.
31291         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31292         Autoconf's AC_FUNC_REALLOC.
31293         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31294         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31295         (gl_REPLACE_REALLOC): New macro.
31296         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31297
31298 2010-06-21  Bruno Haible  <bruno@clisp.org>
31299
31300         Fix HAVE_MALLOC_POSIX misnomer.
31301         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31302         !HAVE_MALLOC_POSIX.
31303         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31304         HAVE_MALLOC_POSIX.
31305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31306         instead of HAVE_MALLOC_POSIX.
31307         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31308         HAVE_MALLOC_POSIX.
31309
31310         Use modern idiom for malloc() replacement.
31311         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31312         AC_FUNC_MALLOC.
31313         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31314         Autoconf's AC_FUNC_MALLOC.
31315         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31316         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31317         (gl_REPLACE_MALLOC): New macro.
31318         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31319
31320 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31321
31322         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31323         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31324         This macro takes 3 arguments, not 4.
31325
31326 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31327
31328         ipv6: fix detection under mingw
31329         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31330         in6_addr.
31331
31332 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31333
31334         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31335         that strtod() works when cross-compiling to a glibc version known
31336         to work.
31337
31338 2010-06-15  Bruno Haible  <bruno@clisp.org>
31339
31340         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31341
31342 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31343
31344         select: Correct timeout.
31345         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31346
31347 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31348
31349         git-version-gen: init shell var to avoid env var influence
31350         * build-aux/git-version-gen (v): Init shell var to empty.
31351
31352 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31353
31354         priv-set: Don't assume that priv.h exists merely because getppriv does.
31355         See Jan Andersen's bug report about AIX 5L in
31356         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31357         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31358         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31359         * lib/priv-set.h: Likewise.
31360         * tests/test-priv-set.c: Likewise.
31361
31362 2010-06-13  Bruno Haible  <bruno@clisp.org>
31363
31364         relocatable: Make it easier to test whether to install wrappers.
31365         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31366         RELOCATABLE_VIA_WRAPPER.
31367
31368 2010-06-13  Bruno Haible  <bruno@clisp.org>
31369
31370         gnulib-tool: Display specified modules and dependencies differently.
31371         * gnulib-tool (func_show_module_list): New function.
31372         (func_import, func_create_testdir): Invoke it.
31373         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31374
31375 2010-06-13  Bruno Haible  <bruno@clisp.org>
31376
31377         gnulib-tool: Align code of func_import and func_create_testdir.
31378         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31379         specified_modules.
31380
31381 2010-06-12  Jim Meyering  <meyering@redhat.com>
31382
31383         test-inttostr: avoid spurious failure on Solaris 9
31384         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31385         to accept "%ju".  Reported by Bruno Haible.
31386
31387 2010-06-11  Jim Meyering  <meyering@redhat.com>
31388
31389         test-sys_socket: mark variables as used more readably
31390         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31391         as "used" explicitly via (void) statement casts.  This is more
31392         readable than using them in an artificial return expression.
31393         Suggestion from Bruno Haible.
31394
31395 2010-06-11  Bruno Haible  <bruno@clisp.org>
31396
31397         Avoid some more warnings from "gcc -Wwrite-strings".
31398         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31399         to 'const char *'.
31400         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31401         * tests/test-c-strcasestr.c (main): Likewise.
31402         * tests/test-mbscasestr1.c (main): Likewise.
31403         * tests/test-mbscasestr2.c (main): Likewise.
31404         * tests/test-memmem.c (main): Likewise.
31405         * tests/test-strstr.c (main): Likewise.
31406         * tests/test-strcasestr.c (main): Likewise.
31407
31408 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31409
31410         init.sh: change framework_failure_ to fail with status 99, not 1
31411         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31412         automake's parallel-tests rule that this is an unexpected failure,
31413         even if the test is listed in XFAIL_TESTS.
31414
31415 2010-06-11  Jim Meyering  <meyering@redhat.com>
31416
31417         test-inttostr: avoid warnings about 4-6KB literal strings
31418         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31419         Include "macros.h", for its definition of ASSERT.
31420         (CK): s/assert/ASSERT/
31421         * modules/inttostr-tests (Files): Add macros.h.
31422
31423         init.sh: don't use $ME_ or skip_ before they are defined
31424         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31425         their first uses.  Also hoist their companions: warn_, fail_,
31426         framework_failure_, $stderr_fileno.  Prompted by a patch from
31427         Stefano Lattarini.
31428
31429         test-sys_socket: avoid set-but-not-used warnings from gcc
31430         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31431         avoid warning about set-but-not-used variables.
31432
31433         test-xvasprintf: avoid 'const' discard warnings
31434         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31435         "const" when assigning from literal strings.
31436         (test_xasprintf): Add "void" in function argument list to placate
31437         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31438
31439         tests: avoid compilation warnings in argmatch and exclude tests...
31440         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31441         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31442         Since it always exits, declare with the "noreturn" attribute.
31443         * tests/test-argmatch.c: Likewise.
31444
31445         tests: avoid 'const' discard warnings in mbsstr tests
31446         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31447         * tests/test-mbsstr2.c (main): Likewise.
31448
31449         test-verify: avoid warning from gcc's -Wmissing-declarations
31450         * tests/test-verify.c (function): Declare to be static.
31451
31452         test-inttostr.c: include <string.h> for use of strcmp
31453         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31454
31455         test-linkat: avoid failed assertion on "other" architectures
31456         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31457         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31458         sparc: https://bugs.launchpad.net/bugs/591968
31459
31460 2010-06-11  Jim Meyering  <meyering@redhat.com>
31461
31462         printf.m4: avoid autoconf's "Expanded Before Required" warning
31463         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31464         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31465         autoconf warning.
31466
31467 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31468
31469         Replacement header templates are now named with ".in", not "_".
31470         * doc/gnulib-intro.texi: Correct.
31471
31472 2010-06-10  Jim Meyering  <meyering@redhat.com>
31473
31474         inttostr-tests: depend on snprintf, not snprintf-posix
31475         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31476         snprintf-posix, to avoid this aclocal failure:
31477           missing file gnulib-tests/vasnprintf.c
31478           configure.ac:45: error: expected source file, required through \
31479           AC_LIBSOURCES, not found
31480
31481 2010-06-10  Jim Meyering  <meyering@redhat.com>
31482
31483         inttostr: add a new function, inttostr, and tests
31484         The namesake function was not available.  The existence of the
31485         template file, inttostr.c makes its addition nontrivial.
31486         * lib/anytostr.c: Rename from inttostr.c.
31487         (anytostr): Rename from inttostr.
31488         * lib/inttostr.c: New file.
31489         * modules/inttostr (Files): Add anytostr.c.
31490         (Makefile.am): Set lib_SOURCES instead of ...
31491         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31492         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31493         * lib/offtostr.c: Likewise.
31494         * lib/uinttostr.c: Likewise.
31495         * lib/umaxtostr.c: Likewise.
31496         * modules/inttostr-tests: New file.
31497         * tests/test-inttostr.c: New file.  Test these functions.
31498
31499 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31500             Bruno Haible  <bruno@clisp.org>
31501
31502         Add "Extending Gnulib" chapter to manual.
31503         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31504         chapter.
31505         (Extending Gnulib): New chapter.
31506         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31507         chapter.
31508
31509 2010-06-09  Bruno Haible  <bruno@clisp.org>
31510
31511         Avoid relocwrapper link errors due to gnulib replacement functions.
31512         * lib/areadlink.c: Use the system's malloc, realloc functions.
31513         (areadlink): Set errno to ENOMEM explicitly.
31514         * modules/areadlink (Depends-on): Remove malloc-posix.
31515         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31516
31517 2010-06-09  Bruno Haible  <bruno@clisp.org>
31518
31519         Avoid relocwrapper link errors due to gnulib replacement functions.
31520         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31521         * lib/malloca.c: Likewise.
31522         * lib/relocatable.c: Likewise.
31523         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31524         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31525         * lib/setenv.c: Use the system's malloc, realloc functions.
31526         * lib/strerror.c: Use the system's sprintf function.
31527         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31528
31529 2010-06-04  Bruno Haible  <bruno@clisp.org>
31530
31531         Prefer documented low-level autoconf macro names.
31532         * m4/lib-link.m4: Use m4_translit instead of translit.
31533         * m4/environ.m4: Likewise.
31534         * m4/mathfunc.m4: Likewise.
31535         * m4/onceonly.m4: Likewise.
31536         * m4/stdint.m4: Likewise.
31537         Suggested by Eric Blake.
31538
31539 2010-06-04  Martin Lambers  <marlam@marlam.de>
31540             Bruno Haible  <bruno@clisp.org>
31541
31542         havelib: Allow library names with '+' characters.
31543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31544         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31545
31546 2010-06-09  Bruno Haible  <bruno@clisp.org>
31547
31548         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31549         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31550         realloc failed.
31551
31552 2010-06-08  Peter Simons  <simons@cryp.to>
31553
31554         maint.mk: make the news-check rule more configurable
31555         * top/maint.mk (news-check-lines-spec): New variable.
31556         (news-check): Use "sed -n 1,10p" in place of "head".
31557
31558 2010-06-07  Jim Meyering  <meyering@redhat.com>
31559
31560         do-release-commit-and-tag: fix typo in --help
31561         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31562
31563         regex: avoid new dead-code warning with gcc-4.6.0
31564         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31565         if-block containing a while-loop.  It's been unused for at least
31566         5 years.
31567
31568 2010-06-05  Bruno Haible  <bruno@clisp.org>
31569
31570         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31571         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31572
31573 2010-06-04  Bruno Haible  <bruno@clisp.org>
31574
31575         Update to GNU gettext 0.18.1.
31576         * modules/gettext (configure.ac): Require gettext infrastructure from
31577         version 0.18.1.
31578
31579 2010-06-03  Bruno Haible  <bruno@clisp.org>
31580
31581         Don't use AC_LIBOBJ with file names in subdirectories.
31582         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31583         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31584         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31585         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31586         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31587         gl_LIBUNISTRING_LIBSOURCE.
31588         (Makefile.am): Augment lib_SOURCES here, conditionally.
31589         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31590
31591 2010-06-03  Bruno Haible  <bruno@clisp.org>
31592
31593         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31594         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31595         expansion does not end with a newline.
31596         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31597         unnecessary newline.
31598
31599 2010-06-03  Bruno Haible  <bruno@clisp.org>
31600
31601         Reduce dependencies.
31602         * tests/test-quotearg.h: New file, extracted from
31603         tests/test-quotearg.c.
31604         * tests/test-quotearg-simple.c: New file, extracted from
31605         tests/test-quotearg.c.
31606         * tests/test-quotearg.c: Don't include <ctype.h>.
31607         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31608         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31609         use_quote_double_quotes, use_quotearg_colon): Moved to
31610         tests/test-quotearg.h.
31611         (results_g, flag_results, custom_quotes, custom_results): Moved
31612         to tests/test-quotearg-simple.c.
31613         (main): Moved the part that does not depend on gettext to
31614         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31615         performed.
31616         * modules/quotearg-simple: New file.
31617         * modules/quotearg-simple-tests: New file.
31618         * modules/quotearg (Depends-on): Add quotearg-simple.
31619         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31620         (Files): Add tests/test-quotearg.h.
31621         Reported by Paolo Bonzini.
31622
31623 2010-06-03  Bruno Haible  <bruno@clisp.org>
31624
31625         Reduce dependencies.
31626         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31627
31628 2010-06-03  Bruno Haible  <bruno@clisp.org>
31629
31630         time: Undefine more broken macros.
31631         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31632         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31633         Reported by Eric Blake.
31634
31635 2010-06-03  Bruno Haible  <bruno@clisp.org>
31636
31637         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31638         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31639         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31640         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31641         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31642         Reported by Ludovic Courtès <ludo@gnu.org>.
31643
31644 2010-06-02  Eric Blake  <eblake@redhat.com>
31645
31646         time: work with mingw + pthreads-win32 library
31647         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31648         if timespec is defined only in pthread.h.
31649         * modules/time (Makefile.am): Substitute it.
31650         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31651         <pthread.h>, when needed.
31652         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31653         from the library.
31654
31655 2010-05-31  Bruno Haible  <bruno@clisp.org>
31656
31657         Avoid expanding two macros in the wrong order.
31658         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31659         gl_LIBUNISTRING if it is defined.
31660         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31661         autoconf >= 2.64.
31662         Reported by Ludovic Courtès <ludo@gnu.org>.
31663
31664 2010-05-27  Jim Meyering  <meyering@redhat.com>
31665
31666         maint.mk: also prohibit "#undef" of always-defined symbols
31667         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31668         Allow more than one space before the symbol name.
31669         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31670         the regexp uses alternation.
31671
31672 2010-05-26  Eric Blake  <eblake@redhat.com>
31673
31674         maint.mk: avoid echo -e
31675         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31676         Convert all uses of echo -* to printf.
31677         Reported by Matthias Bolte.
31678
31679 2010-05-25  Bruno Haible  <bruno@clisp.org>
31680
31681         Update to GNU gettext 0.18, part 2.
31682         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31683         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31684
31685 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31686
31687         Add missing include in test-pwrite.c.
31688         * tests/test-pwrite.c: Include string.h, for strcmp.
31689
31690 2010-05-24  Bruno Haible  <bruno@clisp.org>
31691
31692         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31693
31694 2010-05-24  Bruno Haible  <bruno@clisp.org>
31695
31696         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31697         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31698         iconveh_error argument.
31699         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31700         U_STRCONV_TO_LOCALE.
31701         * lib/unistr/u16-strcoll.c: Likewise.
31702         * lib/unistr/u32-strcoll.c: Likewise.
31703         * modules/unistr/u8-strcoll (Depends-on): Add
31704         uniconv/u8-strconv-to-enc, localcharset. Remove
31705         uniconv/u8-strconv-to-locale.
31706         (configure.ac): Bump version number.
31707         * modules/unistr/u16-strcoll (Depends-on): Add
31708         uniconv/u16-strconv-to-enc, localcharset. Remove
31709         uniconv/u16-strconv-to-locale.
31710         (configure.ac): Bump version number.
31711         * modules/unistr/u32-strcoll (Depends-on): Add
31712         uniconv/u32-strconv-to-enc, localcharset. Remove
31713         uniconv/u32-strconv-to-locale.
31714         (configure.ac): Bump version number.
31715
31716 2010-05-24  Bruno Haible  <bruno@clisp.org>
31717
31718         Avoid a test failure on NetBSD 5.0.
31719         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31720         an iconv() bug.
31721
31722 2010-05-24  Bruno Haible  <bruno@clisp.org>
31723
31724         Adjust #include directive style.
31725         * modules/regex (Includes): Recommend to write <regex.h>.
31726
31727 2010-05-24  Bruno Haible  <bruno@clisp.org>
31728
31729         regex: Don't require alloca.
31730         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31731         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31732         only inside if (0).
31733
31734 2010-05-23  Jim Meyering  <meyering@redhat.com>
31735
31736         test-renameat.c: include <sys/stat.h>
31737         * tests/test-renameat.c: Include <sys/stat.h>; required for
31738         definition of S_IS* macros.
31739
31740 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31741
31742         Update maintainer documentation for 'relocatable-prog' module.
31743         * doc/relocatable-maint.texi: Update.
31744         Comments by Bruno Haible.
31745
31746 2010-05-23  Bruno Haible  <bruno@clisp.org>
31747
31748         git-merge-changelog: Enable --split-merged-entry by default.
31749         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31750         (usage): Don't mention this option any more.
31751         Reported by Ralf Wildenhues.
31752
31753 2010-05-23  Jim Meyering  <meyering@redhat.com>
31754
31755         test-pwrite: do not leave behind a test file named "out"
31756         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31757         The trivial-looking use of init.sh is really necessary.
31758         It ensures that the temporary file, "out", is created in
31759         a temporary directory, and removed upon termination.
31760         * tests/test-pwrite.sh: Re-add file.
31761         * modules/pwrite-tests: Reference it.
31762
31763 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31764
31765         Fix output redirection buglet in init.sh.
31766         * tests/init.sh: Fix redirection of stderr.
31767
31768 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31769
31770         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31771
31772 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31773
31774         * modules/valgrind-tests: New file.
31775         * m4/valgrind-tests.m4: New file.
31776         * doc/valgrind-tests.texi: New file.
31777         * doc/gnulib.texi (Running self-tests under valgrind): New
31778         section.
31779
31780 2010-05-19  Bruno Haible  <bruno@clisp.org>
31781
31782         Clean up dead code in recent commit.
31783         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31784         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31785         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31786         Suggested by Paolo Bonzini.
31787
31788 2010-05-19  Bruno Haible  <bruno@clisp.org>
31789
31790         Avoid valgrind error reports from libunistring.
31791         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31792         * modules/libunistring (Files): Add it.
31793         * modules/libunistring-optional (Files): Likewise.
31794
31795 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31796             Bruno Haible  <bruno@clisp.org>
31797
31798         New module 'libunistring-optional'.
31799         * modules/libunistring-optional: New file.
31800         * m4/libunistring-base.m4: New file.
31801         * m4/libunistring-optional.m4: New file.
31802         * lib/unicase.in.h: Renamed from lib/unicase.h.
31803         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31804         * lib/unictype.in.h: Renamed from lib/unictype.h.
31805         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31806         * lib/uniname.in.h: Renamed from lib/uniname.h.
31807         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31808         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31809         * lib/unistr.in.h: Renamed from lib/unistr.h.
31810         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31811         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31812         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31813         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31814         gl_LIBUNISTRING. If the library was found, determine the installed
31815         version and set LIBUNISTRING_VERSION.
31816         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31817         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31818         handle a configuration option --with-included-libunistring.
31819         * modules/libunistring (Files): Add m4/absolute-header.m4.
31820         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31821         Add m4/libunistring-base.m4.
31822         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31823         (Makefile.am): Build unicase.h from unicase.in.h.
31824         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31825         Add m4/libunistring-base.m4.
31826         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31827         (Makefile.am): Build uniconv.h from uniconv.in.h.
31828         * modules/unictype/base (Files): Use unictype.in.h instead of
31829         unictype.h. Add m4/libunistring-base.m4.
31830         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31831         (Makefile.am): Build unictype.h from unictype.in.h.
31832         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31833         Add m4/libunistring-base.m4.
31834         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31835         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31836         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31837         Add m4/libunistring-base.m4.
31838         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31839         (Makefile.am): Build uniname.h from uniname.in.h.
31840         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31841         Add m4/libunistring-base.m4.
31842         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31843         (Makefile.am): Build uninorm.h from uninorm.in.h.
31844         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31845         unistdio.h. Add m4/libunistring-base.m4.
31846         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31847         (Makefile.am): Build unistdio.h from unistdio.in.h.
31848         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31849         Add m4/libunistring-base.m4.
31850         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31851         (Makefile.am): Build unistr.h from unistr.in.h.
31852         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31853         Add m4/libunistring-base.m4.
31854         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31855         (Makefile.am): Build unitypes.h from unitypes.in.h.
31856         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31857         Add m4/libunistring-base.m4.
31858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31859         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31860         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31861         uniwidth.h. Add m4/libunistring-base.m4.
31862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31863         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31864         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31865         instead of augmenting lib_SOURCES.
31866         * modules/unicase/empty-suffix-context: Likewise.
31867         * modules/unicase/locale-language: Likewise.
31868         * modules/unicase/tolower: Likewise.
31869         * modules/unicase/totitle: Likewise.
31870         * modules/unicase/toupper: Likewise.
31871         * modules/unicase/u8-casecmp: Likewise.
31872         * modules/unicase/u8-casecoll: Likewise.
31873         * modules/unicase/u8-casefold: Likewise.
31874         * modules/unicase/u8-casexfrm: Likewise.
31875         * modules/unicase/u8-ct-casefold: Likewise.
31876         * modules/unicase/u8-ct-tolower: Likewise.
31877         * modules/unicase/u8-ct-totitle: Likewise.
31878         * modules/unicase/u8-ct-toupper: Likewise.
31879         * modules/unicase/u8-is-cased: Likewise.
31880         * modules/unicase/u8-is-casefolded: Likewise.
31881         * modules/unicase/u8-is-lowercase: Likewise.
31882         * modules/unicase/u8-is-titlecase: Likewise.
31883         * modules/unicase/u8-is-uppercase: Likewise.
31884         * modules/unicase/u8-prefix-context: Likewise.
31885         * modules/unicase/u8-suffix-context: Likewise.
31886         * modules/unicase/u8-tolower: Likewise.
31887         * modules/unicase/u8-totitle: Likewise.
31888         * modules/unicase/u8-toupper: Likewise.
31889         * modules/unicase/u16-casecmp: Likewise.
31890         * modules/unicase/u16-casecoll: Likewise.
31891         * modules/unicase/u16-casefold: Likewise.
31892         * modules/unicase/u16-casexfrm: Likewise.
31893         * modules/unicase/u16-ct-casefold: Likewise.
31894         * modules/unicase/u16-ct-tolower: Likewise.
31895         * modules/unicase/u16-ct-totitle: Likewise.
31896         * modules/unicase/u16-ct-toupper: Likewise.
31897         * modules/unicase/u16-is-cased: Likewise.
31898         * modules/unicase/u16-is-casefolded: Likewise.
31899         * modules/unicase/u16-is-lowercase: Likewise.
31900         * modules/unicase/u16-is-titlecase: Likewise.
31901         * modules/unicase/u16-is-uppercase: Likewise.
31902         * modules/unicase/u16-prefix-context: Likewise.
31903         * modules/unicase/u16-suffix-context: Likewise.
31904         * modules/unicase/u16-tolower: Likewise.
31905         * modules/unicase/u16-totitle: Likewise.
31906         * modules/unicase/u16-toupper: Likewise.
31907         * modules/unicase/u32-casecmp: Likewise.
31908         * modules/unicase/u32-casecoll: Likewise.
31909         * modules/unicase/u32-casefold: Likewise.
31910         * modules/unicase/u32-casexfrm: Likewise.
31911         * modules/unicase/u32-ct-casefold: Likewise.
31912         * modules/unicase/u32-ct-tolower: Likewise.
31913         * modules/unicase/u32-ct-totitle: Likewise.
31914         * modules/unicase/u32-ct-toupper: Likewise.
31915         * modules/unicase/u32-is-cased: Likewise.
31916         * modules/unicase/u32-is-casefolded: Likewise.
31917         * modules/unicase/u32-is-lowercase: Likewise.
31918         * modules/unicase/u32-is-titlecase: Likewise.
31919         * modules/unicase/u32-is-uppercase: Likewise.
31920         * modules/unicase/u32-prefix-context: Likewise.
31921         * modules/unicase/u32-suffix-context: Likewise.
31922         * modules/unicase/u32-tolower: Likewise.
31923         * modules/unicase/u32-totitle: Likewise.
31924         * modules/unicase/u32-toupper: Likewise.
31925         * modules/unicase/ulc-casecmp: Likewise.
31926         * modules/unicase/ulc-casecoll: Likewise.
31927         * modules/unicase/ulc-casexfrm: Likewise.
31928         * modules/uniconv/u8-conv-from-enc: Likewise.
31929         * modules/uniconv/u8-conv-to-enc: Likewise.
31930         * modules/uniconv/u8-strconv-from-enc: Likewise.
31931         * modules/uniconv/u8-strconv-from-locale: Likewise.
31932         * modules/uniconv/u8-strconv-to-enc: Likewise.
31933         * modules/uniconv/u8-strconv-to-locale: Likewise.
31934         * modules/uniconv/u16-conv-from-enc: Likewise.
31935         * modules/uniconv/u16-conv-to-enc: Likewise.
31936         * modules/uniconv/u16-strconv-from-enc: Likewise.
31937         * modules/uniconv/u16-strconv-from-locale: Likewise.
31938         * modules/uniconv/u16-strconv-to-enc: Likewise.
31939         * modules/uniconv/u16-strconv-to-locale: Likewise.
31940         * modules/uniconv/u32-conv-from-enc: Likewise.
31941         * modules/uniconv/u32-conv-to-enc: Likewise.
31942         * modules/uniconv/u32-strconv-from-enc: Likewise.
31943         * modules/uniconv/u32-strconv-from-locale: Likewise.
31944         * modules/uniconv/u32-strconv-to-enc: Likewise.
31945         * modules/uniconv/u32-strconv-to-locale: Likewise.
31946         * modules/unictype/bidicategory-byname: Likewise.
31947         * modules/unictype/bidicategory-name: Likewise.
31948         * modules/unictype/bidicategory-of: Likewise.
31949         * modules/unictype/bidicategory-test: Likewise.
31950         * modules/unictype/block-list: Likewise.
31951         * modules/unictype/block-test: Likewise.
31952         * modules/unictype/category-C: Likewise.
31953         * modules/unictype/category-Cc: Likewise.
31954         * modules/unictype/category-Cf: Likewise.
31955         * modules/unictype/category-Cn: Likewise.
31956         * modules/unictype/category-Co: Likewise.
31957         * modules/unictype/category-Cs: Likewise.
31958         * modules/unictype/category-L: Likewise.
31959         * modules/unictype/category-Ll: Likewise.
31960         * modules/unictype/category-Lm: Likewise.
31961         * modules/unictype/category-Lo: Likewise.
31962         * modules/unictype/category-Lt: Likewise.
31963         * modules/unictype/category-Lu: Likewise.
31964         * modules/unictype/category-M: Likewise.
31965         * modules/unictype/category-Mc: Likewise.
31966         * modules/unictype/category-Me: Likewise.
31967         * modules/unictype/category-Mn: Likewise.
31968         * modules/unictype/category-N: Likewise.
31969         * modules/unictype/category-Nd: Likewise.
31970         * modules/unictype/category-Nl: Likewise.
31971         * modules/unictype/category-No: Likewise.
31972         * modules/unictype/category-P: Likewise.
31973         * modules/unictype/category-Pc: Likewise.
31974         * modules/unictype/category-Pd: Likewise.
31975         * modules/unictype/category-Pe: Likewise.
31976         * modules/unictype/category-Pf: Likewise.
31977         * modules/unictype/category-Pi: Likewise.
31978         * modules/unictype/category-Po: Likewise.
31979         * modules/unictype/category-Ps: Likewise.
31980         * modules/unictype/category-S: Likewise.
31981         * modules/unictype/category-Sc: Likewise.
31982         * modules/unictype/category-Sk: Likewise.
31983         * modules/unictype/category-Sm: Likewise.
31984         * modules/unictype/category-So: Likewise.
31985         * modules/unictype/category-Z: Likewise.
31986         * modules/unictype/category-Zl: Likewise.
31987         * modules/unictype/category-Zp: Likewise.
31988         * modules/unictype/category-Zs: Likewise.
31989         * modules/unictype/category-and: Likewise.
31990         * modules/unictype/category-and-not: Likewise.
31991         * modules/unictype/category-byname: Likewise.
31992         * modules/unictype/category-name: Likewise.
31993         * modules/unictype/category-none: Likewise.
31994         * modules/unictype/category-of: Likewise.
31995         * modules/unictype/category-or: Likewise.
31996         * modules/unictype/category-test: Likewise.
31997         * modules/unictype/combining-class: Likewise.
31998         * modules/unictype/ctype-alnum: Likewise.
31999         * modules/unictype/ctype-alpha: Likewise.
32000         * modules/unictype/ctype-blank: Likewise.
32001         * modules/unictype/ctype-cntrl: Likewise.
32002         * modules/unictype/ctype-digit: Likewise.
32003         * modules/unictype/ctype-graph: Likewise.
32004         * modules/unictype/ctype-lower: Likewise.
32005         * modules/unictype/ctype-print: Likewise.
32006         * modules/unictype/ctype-punct: Likewise.
32007         * modules/unictype/ctype-space: Likewise.
32008         * modules/unictype/ctype-upper: Likewise.
32009         * modules/unictype/ctype-xdigit: Likewise.
32010         * modules/unictype/decimal-digit: Likewise.
32011         * modules/unictype/digit: Likewise.
32012         * modules/unictype/mirror: Likewise.
32013         * modules/unictype/numeric: Likewise.
32014         * modules/unictype/property-alphabetic: Likewise.
32015         * modules/unictype/property-ascii-hex-digit: Likewise.
32016         * modules/unictype/property-bidi-arabic-digit: Likewise.
32017         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32018         * modules/unictype/property-bidi-block-separator: Likewise.
32019         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32020         * modules/unictype/property-bidi-common-separator: Likewise.
32021         * modules/unictype/property-bidi-control: Likewise.
32022         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32023         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32024         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32025         * modules/unictype/property-bidi-european-digit: Likewise.
32026         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32027         * modules/unictype/property-bidi-left-to-right: Likewise.
32028         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32029         * modules/unictype/property-bidi-other-neutral: Likewise.
32030         * modules/unictype/property-bidi-pdf: Likewise.
32031         * modules/unictype/property-bidi-segment-separator: Likewise.
32032         * modules/unictype/property-bidi-whitespace: Likewise.
32033         * modules/unictype/property-byname: Likewise.
32034         * modules/unictype/property-combining: Likewise.
32035         * modules/unictype/property-composite: Likewise.
32036         * modules/unictype/property-currency-symbol: Likewise.
32037         * modules/unictype/property-dash: Likewise.
32038         * modules/unictype/property-decimal-digit: Likewise.
32039         * modules/unictype/property-default-ignorable-code-point: Likewise.
32040         * modules/unictype/property-deprecated: Likewise.
32041         * modules/unictype/property-diacritic: Likewise.
32042         * modules/unictype/property-extender: Likewise.
32043         * modules/unictype/property-format-control: Likewise.
32044         * modules/unictype/property-grapheme-base: Likewise.
32045         * modules/unictype/property-grapheme-extend: Likewise.
32046         * modules/unictype/property-grapheme-link: Likewise.
32047         * modules/unictype/property-hex-digit: Likewise.
32048         * modules/unictype/property-hyphen: Likewise.
32049         * modules/unictype/property-id-continue: Likewise.
32050         * modules/unictype/property-id-start: Likewise.
32051         * modules/unictype/property-ideographic: Likewise.
32052         * modules/unictype/property-ids-binary-operator: Likewise.
32053         * modules/unictype/property-ids-trinary-operator: Likewise.
32054         * modules/unictype/property-ignorable-control: Likewise.
32055         * modules/unictype/property-iso-control: Likewise.
32056         * modules/unictype/property-join-control: Likewise.
32057         * modules/unictype/property-left-of-pair: Likewise.
32058         * modules/unictype/property-line-separator: Likewise.
32059         * modules/unictype/property-logical-order-exception: Likewise.
32060         * modules/unictype/property-lowercase: Likewise.
32061         * modules/unictype/property-math: Likewise.
32062         * modules/unictype/property-non-break: Likewise.
32063         * modules/unictype/property-not-a-character: Likewise.
32064         * modules/unictype/property-numeric: Likewise.
32065         * modules/unictype/property-other-alphabetic: Likewise.
32066         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32067         * modules/unictype/property-other-grapheme-extend: Likewise.
32068         * modules/unictype/property-other-id-continue: Likewise.
32069         * modules/unictype/property-other-id-start: Likewise.
32070         * modules/unictype/property-other-lowercase: Likewise.
32071         * modules/unictype/property-other-math: Likewise.
32072         * modules/unictype/property-other-uppercase: Likewise.
32073         * modules/unictype/property-paired-punctuation: Likewise.
32074         * modules/unictype/property-paragraph-separator: Likewise.
32075         * modules/unictype/property-pattern-syntax: Likewise.
32076         * modules/unictype/property-pattern-white-space: Likewise.
32077         * modules/unictype/property-private-use: Likewise.
32078         * modules/unictype/property-punctuation: Likewise.
32079         * modules/unictype/property-quotation-mark: Likewise.
32080         * modules/unictype/property-radical: Likewise.
32081         * modules/unictype/property-sentence-terminal: Likewise.
32082         * modules/unictype/property-soft-dotted: Likewise.
32083         * modules/unictype/property-space: Likewise.
32084         * modules/unictype/property-terminal-punctuation: Likewise.
32085         * modules/unictype/property-test: Likewise.
32086         * modules/unictype/property-titlecase: Likewise.
32087         * modules/unictype/property-unassigned-code-value: Likewise.
32088         * modules/unictype/property-unified-ideograph: Likewise.
32089         * modules/unictype/property-uppercase: Likewise.
32090         * modules/unictype/property-variation-selector: Likewise.
32091         * modules/unictype/property-white-space: Likewise.
32092         * modules/unictype/property-xid-continue: Likewise.
32093         * modules/unictype/property-xid-start: Likewise.
32094         * modules/unictype/property-zero-width: Likewise.
32095         * modules/unictype/scripts: Likewise.
32096         * modules/unictype/syntax-c-ident: Likewise.
32097         * modules/unictype/syntax-c-whitespace: Likewise.
32098         * modules/unictype/syntax-java-ident: Likewise.
32099         * modules/unictype/syntax-java-whitespace: Likewise.
32100         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32101         * modules/unilbrk/u8-width-linebreaks: Likewise.
32102         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32103         * modules/unilbrk/u16-width-linebreaks: Likewise.
32104         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32105         * modules/unilbrk/u32-width-linebreaks: Likewise.
32106         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32107         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32108         * modules/uniname/uniname: Likewise.
32109         * modules/uninorm/canonical-decomposition: Likewise.
32110         * modules/uninorm/composition: Likewise.
32111         * modules/uninorm/decomposing-form: Likewise.
32112         * modules/uninorm/decomposition: Likewise.
32113         * modules/uninorm/filter: Likewise.
32114         * modules/uninorm/nfc: Likewise.
32115         * modules/uninorm/nfd: Likewise.
32116         * modules/uninorm/nfkc: Likewise.
32117         * modules/uninorm/nfkd: Likewise.
32118         * modules/uninorm/u8-normalize: Likewise.
32119         * modules/uninorm/u8-normcmp: Likewise.
32120         * modules/uninorm/u8-normcoll: Likewise.
32121         * modules/uninorm/u8-normxfrm: Likewise.
32122         * modules/uninorm/u16-normalize: Likewise.
32123         * modules/uninorm/u16-normcmp: Likewise.
32124         * modules/uninorm/u16-normcoll: Likewise.
32125         * modules/uninorm/u16-normxfrm: Likewise.
32126         * modules/uninorm/u32-normalize: Likewise.
32127         * modules/uninorm/u32-normcmp: Likewise.
32128         * modules/uninorm/u32-normcoll: Likewise.
32129         * modules/uninorm/u32-normxfrm: Likewise.
32130         * modules/unistdio/u8-asnprintf: Likewise.
32131         * modules/unistdio/u8-asprintf: Likewise.
32132         * modules/unistdio/u8-snprintf: Likewise.
32133         * modules/unistdio/u8-sprintf: Likewise.
32134         * modules/unistdio/u8-u8-asnprintf: Likewise.
32135         * modules/unistdio/u8-u8-asprintf: Likewise.
32136         * modules/unistdio/u8-u8-snprintf: Likewise.
32137         * modules/unistdio/u8-u8-sprintf: Likewise.
32138         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32139         * modules/unistdio/u8-u8-vasprintf: Likewise.
32140         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32141         * modules/unistdio/u8-u8-vsprintf: Likewise.
32142         * modules/unistdio/u8-vasnprintf: Likewise.
32143         * modules/unistdio/u8-vasprintf: Likewise.
32144         * modules/unistdio/u8-vsnprintf: Likewise.
32145         * modules/unistdio/u8-vsprintf: Likewise.
32146         * modules/unistdio/u16-asnprintf: Likewise.
32147         * modules/unistdio/u16-asprintf: Likewise.
32148         * modules/unistdio/u16-snprintf: Likewise.
32149         * modules/unistdio/u16-sprintf: Likewise.
32150         * modules/unistdio/u16-u16-asnprintf: Likewise.
32151         * modules/unistdio/u16-u16-asprintf: Likewise.
32152         * modules/unistdio/u16-u16-snprintf: Likewise.
32153         * modules/unistdio/u16-u16-sprintf: Likewise.
32154         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32155         * modules/unistdio/u16-u16-vasprintf: Likewise.
32156         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32157         * modules/unistdio/u16-u16-vsprintf: Likewise.
32158         * modules/unistdio/u16-vasnprintf: Likewise.
32159         * modules/unistdio/u16-vasprintf: Likewise.
32160         * modules/unistdio/u16-vsnprintf: Likewise.
32161         * modules/unistdio/u16-vsprintf: Likewise.
32162         * modules/unistdio/u32-asnprintf: Likewise.
32163         * modules/unistdio/u32-asprintf: Likewise.
32164         * modules/unistdio/u32-snprintf: Likewise.
32165         * modules/unistdio/u32-sprintf: Likewise.
32166         * modules/unistdio/u32-u32-asnprintf: Likewise.
32167         * modules/unistdio/u32-u32-asprintf: Likewise.
32168         * modules/unistdio/u32-u32-snprintf: Likewise.
32169         * modules/unistdio/u32-u32-sprintf: Likewise.
32170         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32171         * modules/unistdio/u32-u32-vasprintf: Likewise.
32172         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32173         * modules/unistdio/u32-u32-vsprintf: Likewise.
32174         * modules/unistdio/u32-vasnprintf: Likewise.
32175         * modules/unistdio/u32-vasprintf: Likewise.
32176         * modules/unistdio/u32-vsnprintf: Likewise.
32177         * modules/unistdio/u32-vsprintf: Likewise.
32178         * modules/unistdio/ulc-asnprintf: Likewise.
32179         * modules/unistdio/ulc-asprintf: Likewise.
32180         * modules/unistdio/ulc-fprintf: Likewise.
32181         * modules/unistdio/ulc-snprintf: Likewise.
32182         * modules/unistdio/ulc-sprintf: Likewise.
32183         * modules/unistdio/ulc-vasnprintf: Likewise.
32184         * modules/unistdio/ulc-vasprintf: Likewise.
32185         * modules/unistdio/ulc-vfprintf: Likewise.
32186         * modules/unistdio/ulc-vsnprintf: Likewise.
32187         * modules/unistdio/ulc-vsprintf: Likewise.
32188         * modules/unistr/u8-check: Likewise.
32189         * modules/unistr/u8-chr: Likewise.
32190         * modules/unistr/u8-cmp: Likewise.
32191         * modules/unistr/u8-cmp2: Likewise.
32192         * modules/unistr/u8-cpy: Likewise.
32193         * modules/unistr/u8-cpy-alloc: Likewise.
32194         * modules/unistr/u8-endswith: Likewise.
32195         * modules/unistr/u8-mblen: Likewise.
32196         * modules/unistr/u8-mbsnlen: Likewise.
32197         * modules/unistr/u8-mbtouc: Likewise.
32198         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32199         * modules/unistr/u8-mbtoucr: Likewise.
32200         * modules/unistr/u8-move: Likewise.
32201         * modules/unistr/u8-next: Likewise.
32202         * modules/unistr/u8-prev: Likewise.
32203         * modules/unistr/u8-set: Likewise.
32204         * modules/unistr/u8-startswith: Likewise.
32205         * modules/unistr/u8-stpcpy: Likewise.
32206         * modules/unistr/u8-stpncpy: Likewise.
32207         * modules/unistr/u8-strcat: Likewise.
32208         * modules/unistr/u8-strchr: Likewise.
32209         * modules/unistr/u8-strcmp: Likewise.
32210         * modules/unistr/u8-strcoll: Likewise.
32211         * modules/unistr/u8-strcpy: Likewise.
32212         * modules/unistr/u8-strcspn: Likewise.
32213         * modules/unistr/u8-strdup: Likewise.
32214         * modules/unistr/u8-strlen: Likewise.
32215         * modules/unistr/u8-strmblen: Likewise.
32216         * modules/unistr/u8-strmbtouc: Likewise.
32217         * modules/unistr/u8-strncat: Likewise.
32218         * modules/unistr/u8-strncmp: Likewise.
32219         * modules/unistr/u8-strncpy: Likewise.
32220         * modules/unistr/u8-strnlen: Likewise.
32221         * modules/unistr/u8-strpbrk: Likewise.
32222         * modules/unistr/u8-strrchr: Likewise.
32223         * modules/unistr/u8-strspn: Likewise.
32224         * modules/unistr/u8-strstr: Likewise.
32225         * modules/unistr/u8-strtok: Likewise.
32226         * modules/unistr/u8-to-u16: Likewise.
32227         * modules/unistr/u8-to-u32: Likewise.
32228         * modules/unistr/u8-uctomb: Likewise.
32229         * modules/unistr/u16-check: Likewise.
32230         * modules/unistr/u16-chr: Likewise.
32231         * modules/unistr/u16-cmp: Likewise.
32232         * modules/unistr/u16-cmp2: Likewise.
32233         * modules/unistr/u16-cpy: Likewise.
32234         * modules/unistr/u16-cpy-alloc: Likewise.
32235         * modules/unistr/u16-endswith: Likewise.
32236         * modules/unistr/u16-mblen: Likewise.
32237         * modules/unistr/u16-mbsnlen: Likewise.
32238         * modules/unistr/u16-mbtouc: Likewise.
32239         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32240         * modules/unistr/u16-mbtoucr: Likewise.
32241         * modules/unistr/u16-move: Likewise.
32242         * modules/unistr/u16-next: Likewise.
32243         * modules/unistr/u16-prev: Likewise.
32244         * modules/unistr/u16-set: Likewise.
32245         * modules/unistr/u16-startswith: Likewise.
32246         * modules/unistr/u16-stpcpy: Likewise.
32247         * modules/unistr/u16-stpncpy: Likewise.
32248         * modules/unistr/u16-strcat: Likewise.
32249         * modules/unistr/u16-strchr: Likewise.
32250         * modules/unistr/u16-strcmp: Likewise.
32251         * modules/unistr/u16-strcoll: Likewise.
32252         * modules/unistr/u16-strcpy: Likewise.
32253         * modules/unistr/u16-strcspn: Likewise.
32254         * modules/unistr/u16-strdup: Likewise.
32255         * modules/unistr/u16-strlen: Likewise.
32256         * modules/unistr/u16-strmblen: Likewise.
32257         * modules/unistr/u16-strmbtouc: Likewise.
32258         * modules/unistr/u16-strncat: Likewise.
32259         * modules/unistr/u16-strncmp: Likewise.
32260         * modules/unistr/u16-strncpy: Likewise.
32261         * modules/unistr/u16-strnlen: Likewise.
32262         * modules/unistr/u16-strpbrk: Likewise.
32263         * modules/unistr/u16-strrchr: Likewise.
32264         * modules/unistr/u16-strspn: Likewise.
32265         * modules/unistr/u16-strstr: Likewise.
32266         * modules/unistr/u16-strtok: Likewise.
32267         * modules/unistr/u16-to-u32: Likewise.
32268         * modules/unistr/u16-to-u8: Likewise.
32269         * modules/unistr/u16-uctomb: Likewise.
32270         * modules/unistr/u32-check: Likewise.
32271         * modules/unistr/u32-chr: Likewise.
32272         * modules/unistr/u32-cmp: Likewise.
32273         * modules/unistr/u32-cmp2: Likewise.
32274         * modules/unistr/u32-cpy: Likewise.
32275         * modules/unistr/u32-cpy-alloc: Likewise.
32276         * modules/unistr/u32-endswith: Likewise.
32277         * modules/unistr/u32-mblen: Likewise.
32278         * modules/unistr/u32-mbsnlen: Likewise.
32279         * modules/unistr/u32-mbtouc: Likewise.
32280         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32281         * modules/unistr/u32-mbtoucr: Likewise.
32282         * modules/unistr/u32-move: Likewise.
32283         * modules/unistr/u32-next: Likewise.
32284         * modules/unistr/u32-prev: Likewise.
32285         * modules/unistr/u32-set: Likewise.
32286         * modules/unistr/u32-startswith: Likewise.
32287         * modules/unistr/u32-stpcpy: Likewise.
32288         * modules/unistr/u32-stpncpy: Likewise.
32289         * modules/unistr/u32-strcat: Likewise.
32290         * modules/unistr/u32-strchr: Likewise.
32291         * modules/unistr/u32-strcmp: Likewise.
32292         * modules/unistr/u32-strcoll: Likewise.
32293         * modules/unistr/u32-strcpy: Likewise.
32294         * modules/unistr/u32-strcspn: Likewise.
32295         * modules/unistr/u32-strdup: Likewise.
32296         * modules/unistr/u32-strlen: Likewise.
32297         * modules/unistr/u32-strmblen: Likewise.
32298         * modules/unistr/u32-strmbtouc: Likewise.
32299         * modules/unistr/u32-strncat: Likewise.
32300         * modules/unistr/u32-strncmp: Likewise.
32301         * modules/unistr/u32-strncpy: Likewise.
32302         * modules/unistr/u32-strnlen: Likewise.
32303         * modules/unistr/u32-strpbrk: Likewise.
32304         * modules/unistr/u32-strrchr: Likewise.
32305         * modules/unistr/u32-strspn: Likewise.
32306         * modules/unistr/u32-strstr: Likewise.
32307         * modules/unistr/u32-strtok: Likewise.
32308         * modules/unistr/u32-to-u16: Likewise.
32309         * modules/unistr/u32-to-u8: Likewise.
32310         * modules/unistr/u32-uctomb: Likewise.
32311         * modules/uniwbrk/u8-wordbreaks: Likewise.
32312         * modules/uniwbrk/u16-wordbreaks: Likewise.
32313         * modules/uniwbrk/u32-wordbreaks: Likewise.
32314         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32315         * modules/uniwbrk/wordbreak-property: Likewise.
32316         * modules/uniwidth/u8-strwidth: Likewise.
32317         * modules/uniwidth/u8-width: Likewise.
32318         * modules/uniwidth/u16-strwidth: Likewise.
32319         * modules/uniwidth/u16-width: Likewise.
32320         * modules/uniwidth/u32-strwidth: Likewise.
32321         * modules/uniwidth/u32-width: Likewise.
32322         * modules/uniwidth/width: Likewise.
32323         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32324         with $(LIBUNISTRING).
32325         * modules/unicase/ignorable-tests: Likewise.
32326         * modules/unicase/locale-language-tests: Likewise.
32327         * modules/unicase/tolower-tests: Likewise.
32328         * modules/unicase/totitle-tests: Likewise.
32329         * modules/unicase/toupper-tests: Likewise.
32330         * modules/unicase/u8-casecmp-tests: Likewise.
32331         * modules/unicase/u8-casecoll-tests: Likewise.
32332         * modules/unicase/u8-casefold-tests: Likewise.
32333         * modules/unicase/u8-is-cased-tests: Likewise.
32334         * modules/unicase/u8-is-casefolded-tests: Likewise.
32335         * modules/unicase/u8-is-lowercase-tests: Likewise.
32336         * modules/unicase/u8-is-titlecase-tests: Likewise.
32337         * modules/unicase/u8-is-uppercase-tests: Likewise.
32338         * modules/unicase/u8-tolower-tests: Likewise.
32339         * modules/unicase/u8-totitle-tests: Likewise.
32340         * modules/unicase/u8-toupper-tests: Likewise.
32341         * modules/unicase/u16-casecmp-tests: Likewise.
32342         * modules/unicase/u16-casecoll-tests: Likewise.
32343         * modules/unicase/u16-casefold-tests: Likewise.
32344         * modules/unicase/u16-is-cased-tests: Likewise.
32345         * modules/unicase/u16-is-casefolded-tests: Likewise.
32346         * modules/unicase/u16-is-lowercase-tests: Likewise.
32347         * modules/unicase/u16-is-titlecase-tests: Likewise.
32348         * modules/unicase/u16-is-uppercase-tests: Likewise.
32349         * modules/unicase/u16-tolower-tests: Likewise.
32350         * modules/unicase/u16-totitle-tests: Likewise.
32351         * modules/unicase/u16-toupper-tests: Likewise.
32352         * modules/unicase/u32-casecmp-tests: Likewise.
32353         * modules/unicase/u32-casecoll-tests: Likewise.
32354         * modules/unicase/u32-casefold-tests: Likewise.
32355         * modules/unicase/u32-is-cased-tests: Likewise.
32356         * modules/unicase/u32-is-casefolded-tests: Likewise.
32357         * modules/unicase/u32-is-lowercase-tests: Likewise.
32358         * modules/unicase/u32-is-titlecase-tests: Likewise.
32359         * modules/unicase/u32-is-uppercase-tests: Likewise.
32360         * modules/unicase/u32-tolower-tests: Likewise.
32361         * modules/unicase/u32-totitle-tests: Likewise.
32362         * modules/unicase/u32-toupper-tests: Likewise.
32363         * modules/unicase/ulc-casecmp-tests: Likewise.
32364         * modules/unicase/ulc-casecoll-tests: Likewise.
32365         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32366         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32367         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32368         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32369         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32370         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32371         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32372         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32373         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32374         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32375         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32376         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32377         * modules/unictype/bidicategory-byname-tests: Likewise.
32378         * modules/unictype/bidicategory-name-tests: Likewise.
32379         * modules/unictype/bidicategory-of-tests: Likewise.
32380         * modules/unictype/bidicategory-test-tests: Likewise.
32381         * modules/unictype/block-list-tests: Likewise.
32382         * modules/unictype/block-of-tests: Likewise.
32383         * modules/unictype/block-test-tests: Likewise.
32384         * modules/unictype/category-C-tests: Likewise.
32385         * modules/unictype/category-Cc-tests: Likewise.
32386         * modules/unictype/category-Cf-tests: Likewise.
32387         * modules/unictype/category-Cn-tests: Likewise.
32388         * modules/unictype/category-Co-tests: Likewise.
32389         * modules/unictype/category-Cs-tests: Likewise.
32390         * modules/unictype/category-L-tests: Likewise.
32391         * modules/unictype/category-Ll-tests: Likewise.
32392         * modules/unictype/category-Lm-tests: Likewise.
32393         * modules/unictype/category-Lo-tests: Likewise.
32394         * modules/unictype/category-Lt-tests: Likewise.
32395         * modules/unictype/category-Lu-tests: Likewise.
32396         * modules/unictype/category-M-tests: Likewise.
32397         * modules/unictype/category-Mc-tests: Likewise.
32398         * modules/unictype/category-Me-tests: Likewise.
32399         * modules/unictype/category-Mn-tests: Likewise.
32400         * modules/unictype/category-N-tests: Likewise.
32401         * modules/unictype/category-Nd-tests: Likewise.
32402         * modules/unictype/category-Nl-tests: Likewise.
32403         * modules/unictype/category-No-tests: Likewise.
32404         * modules/unictype/category-P-tests: Likewise.
32405         * modules/unictype/category-Pc-tests: Likewise.
32406         * modules/unictype/category-Pd-tests: Likewise.
32407         * modules/unictype/category-Pe-tests: Likewise.
32408         * modules/unictype/category-Pf-tests: Likewise.
32409         * modules/unictype/category-Pi-tests: Likewise.
32410         * modules/unictype/category-Po-tests: Likewise.
32411         * modules/unictype/category-Ps-tests: Likewise.
32412         * modules/unictype/category-S-tests: Likewise.
32413         * modules/unictype/category-Sc-tests: Likewise.
32414         * modules/unictype/category-Sk-tests: Likewise.
32415         * modules/unictype/category-Sm-tests: Likewise.
32416         * modules/unictype/category-So-tests: Likewise.
32417         * modules/unictype/category-Z-tests: Likewise.
32418         * modules/unictype/category-Zl-tests: Likewise.
32419         * modules/unictype/category-Zp-tests: Likewise.
32420         * modules/unictype/category-Zs-tests: Likewise.
32421         * modules/unictype/category-and-not-tests: Likewise.
32422         * modules/unictype/category-and-tests: Likewise.
32423         * modules/unictype/category-byname-tests: Likewise.
32424         * modules/unictype/category-name-tests: Likewise.
32425         * modules/unictype/category-none-tests: Likewise.
32426         * modules/unictype/category-of-tests: Likewise.
32427         * modules/unictype/category-or-tests: Likewise.
32428         * modules/unictype/category-test-withtable-tests: Likewise.
32429         * modules/unictype/combining-class-tests: Likewise.
32430         * modules/unictype/ctype-alnum-tests: Likewise.
32431         * modules/unictype/ctype-alpha-tests: Likewise.
32432         * modules/unictype/ctype-blank-tests: Likewise.
32433         * modules/unictype/ctype-cntrl-tests: Likewise.
32434         * modules/unictype/ctype-digit-tests: Likewise.
32435         * modules/unictype/ctype-graph-tests: Likewise.
32436         * modules/unictype/ctype-lower-tests: Likewise.
32437         * modules/unictype/ctype-print-tests: Likewise.
32438         * modules/unictype/ctype-punct-tests: Likewise.
32439         * modules/unictype/ctype-space-tests: Likewise.
32440         * modules/unictype/ctype-upper-tests: Likewise.
32441         * modules/unictype/ctype-xdigit-tests: Likewise.
32442         * modules/unictype/decimal-digit-tests: Likewise.
32443         * modules/unictype/digit-tests: Likewise.
32444         * modules/unictype/mirror-tests: Likewise.
32445         * modules/unictype/numeric-tests: Likewise.
32446         * modules/unictype/property-alphabetic-tests: Likewise.
32447         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32448         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32449         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32450         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32451         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32452         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32453         * modules/unictype/property-bidi-control-tests: Likewise.
32454         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32455         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32456         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32457         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32458         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32459         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32460         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32461         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32462         * modules/unictype/property-bidi-pdf-tests: Likewise.
32463         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32464         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32465         * modules/unictype/property-byname-tests: Likewise.
32466         * modules/unictype/property-combining-tests: Likewise.
32467         * modules/unictype/property-composite-tests: Likewise.
32468         * modules/unictype/property-currency-symbol-tests: Likewise.
32469         * modules/unictype/property-dash-tests: Likewise.
32470         * modules/unictype/property-decimal-digit-tests: Likewise.
32471         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32472         * modules/unictype/property-deprecated-tests: Likewise.
32473         * modules/unictype/property-diacritic-tests: Likewise.
32474         * modules/unictype/property-extender-tests: Likewise.
32475         * modules/unictype/property-format-control-tests: Likewise.
32476         * modules/unictype/property-grapheme-base-tests: Likewise.
32477         * modules/unictype/property-grapheme-extend-tests: Likewise.
32478         * modules/unictype/property-grapheme-link-tests: Likewise.
32479         * modules/unictype/property-hex-digit-tests: Likewise.
32480         * modules/unictype/property-hyphen-tests: Likewise.
32481         * modules/unictype/property-id-continue-tests: Likewise.
32482         * modules/unictype/property-id-start-tests: Likewise.
32483         * modules/unictype/property-ideographic-tests: Likewise.
32484         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32485         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32486         * modules/unictype/property-ignorable-control-tests: Likewise.
32487         * modules/unictype/property-iso-control-tests: Likewise.
32488         * modules/unictype/property-join-control-tests: Likewise.
32489         * modules/unictype/property-left-of-pair-tests: Likewise.
32490         * modules/unictype/property-line-separator-tests: Likewise.
32491         * modules/unictype/property-logical-order-exception-tests: Likewise.
32492         * modules/unictype/property-lowercase-tests: Likewise.
32493         * modules/unictype/property-math-tests: Likewise.
32494         * modules/unictype/property-non-break-tests: Likewise.
32495         * modules/unictype/property-not-a-character-tests: Likewise.
32496         * modules/unictype/property-numeric-tests: Likewise.
32497         * modules/unictype/property-other-alphabetic-tests: Likewise.
32498         * modules/unictype/property-other-default-ignorable-code-point-tests:
32499         Likewise.
32500         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32501         * modules/unictype/property-other-id-continue-tests: Likewise.
32502         * modules/unictype/property-other-id-start-tests: Likewise.
32503         * modules/unictype/property-other-lowercase-tests: Likewise.
32504         * modules/unictype/property-other-math-tests: Likewise.
32505         * modules/unictype/property-other-uppercase-tests: Likewise.
32506         * modules/unictype/property-paired-punctuation-tests: Likewise.
32507         * modules/unictype/property-paragraph-separator-tests: Likewise.
32508         * modules/unictype/property-pattern-syntax-tests: Likewise.
32509         * modules/unictype/property-pattern-white-space-tests: Likewise.
32510         * modules/unictype/property-private-use-tests: Likewise.
32511         * modules/unictype/property-punctuation-tests: Likewise.
32512         * modules/unictype/property-quotation-mark-tests: Likewise.
32513         * modules/unictype/property-radical-tests: Likewise.
32514         * modules/unictype/property-sentence-terminal-tests: Likewise.
32515         * modules/unictype/property-soft-dotted-tests: Likewise.
32516         * modules/unictype/property-space-tests: Likewise.
32517         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32518         * modules/unictype/property-test-tests: Likewise.
32519         * modules/unictype/property-titlecase-tests: Likewise.
32520         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32521         * modules/unictype/property-unified-ideograph-tests: Likewise.
32522         * modules/unictype/property-uppercase-tests: Likewise.
32523         * modules/unictype/property-variation-selector-tests: Likewise.
32524         * modules/unictype/property-white-space-tests: Likewise.
32525         * modules/unictype/property-xid-continue-tests: Likewise.
32526         * modules/unictype/property-xid-start-tests: Likewise.
32527         * modules/unictype/property-zero-width-tests: Likewise.
32528         * modules/unictype/scripts-tests: Likewise.
32529         * modules/unictype/syntax-c-ident-tests: Likewise.
32530         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32531         * modules/unictype/syntax-java-ident-tests: Likewise.
32532         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32533         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32534         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32535         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32536         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32537         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32538         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32539         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32540         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32541         * modules/uniname/uniname-tests: Likewise.
32542         * modules/uninorm/canonical-decomposition-tests: Likewise.
32543         * modules/uninorm/compat-decomposition-tests: Likewise.
32544         * modules/uninorm/composition-tests: Likewise.
32545         * modules/uninorm/decomposing-form-tests: Likewise.
32546         * modules/uninorm/decomposition-tests: Likewise.
32547         * modules/uninorm/filter-tests: Likewise.
32548         * modules/uninorm/nfc-tests: Likewise.
32549         * modules/uninorm/nfd-tests: Likewise.
32550         * modules/uninorm/nfkc-tests: Likewise.
32551         * modules/uninorm/nfkd-tests: Likewise.
32552         * modules/uninorm/u8-normcmp-tests: Likewise.
32553         * modules/uninorm/u8-normcoll-tests: Likewise.
32554         * modules/uninorm/u16-normcmp-tests: Likewise.
32555         * modules/uninorm/u16-normcoll-tests: Likewise.
32556         * modules/uninorm/u32-normcmp-tests: Likewise.
32557         * modules/uninorm/u32-normcoll-tests: Likewise.
32558         * modules/unistdio/u8-asnprintf-tests: Likewise.
32559         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32560         * modules/unistdio/u8-vasprintf-tests: Likewise.
32561         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32562         * modules/unistdio/u8-vsprintf-tests: Likewise.
32563         * modules/unistdio/u16-asnprintf-tests: Likewise.
32564         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32565         * modules/unistdio/u16-vasprintf-tests: Likewise.
32566         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32567         * modules/unistdio/u16-vsprintf-tests: Likewise.
32568         * modules/unistdio/u32-asnprintf-tests: Likewise.
32569         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32570         * modules/unistdio/u32-vasprintf-tests: Likewise.
32571         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32572         * modules/unistdio/u32-vsprintf-tests: Likewise.
32573         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32574         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32575         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32576         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32577         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32578         * modules/unistr/u8-check-tests: Likewise.
32579         * modules/unistr/u8-chr-tests: Likewise.
32580         * modules/unistr/u8-cmp-tests: Likewise.
32581         * modules/unistr/u8-cmp2-tests: Likewise.
32582         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32583         * modules/unistr/u8-cpy-tests: Likewise.
32584         * modules/unistr/u8-mblen-tests: Likewise.
32585         * modules/unistr/u8-mbsnlen-tests: Likewise.
32586         * modules/unistr/u8-mbtouc-tests: Likewise.
32587         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32588         * modules/unistr/u8-mbtoucr-tests: Likewise.
32589         * modules/unistr/u8-move-tests: Likewise.
32590         * modules/unistr/u8-next-tests: Likewise.
32591         * modules/unistr/u8-prev-tests: Likewise.
32592         * modules/unistr/u8-set-tests: Likewise.
32593         * modules/unistr/u8-stpcpy-tests: Likewise.
32594         * modules/unistr/u8-stpncpy-tests: Likewise.
32595         * modules/unistr/u8-strcat-tests: Likewise.
32596         * modules/unistr/u8-strcmp-tests: Likewise.
32597         * modules/unistr/u8-strcoll-tests: Likewise.
32598         * modules/unistr/u8-strcpy-tests: Likewise.
32599         * modules/unistr/u8-strdup-tests: Likewise.
32600         * modules/unistr/u8-strlen-tests: Likewise.
32601         * modules/unistr/u8-strmblen-tests: Likewise.
32602         * modules/unistr/u8-strmbtouc-tests: Likewise.
32603         * modules/unistr/u8-strncat-tests: Likewise.
32604         * modules/unistr/u8-strncmp-tests: Likewise.
32605         * modules/unistr/u8-strncpy-tests: Likewise.
32606         * modules/unistr/u8-strnlen-tests: Likewise.
32607         * modules/unistr/u8-to-u16-tests: Likewise.
32608         * modules/unistr/u8-to-u32-tests: Likewise.
32609         * modules/unistr/u8-uctomb-tests: Likewise.
32610         * modules/unistr/u16-check-tests: Likewise.
32611         * modules/unistr/u16-chr-tests: Likewise.
32612         * modules/unistr/u16-cmp-tests: Likewise.
32613         * modules/unistr/u16-cmp2-tests: Likewise.
32614         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32615         * modules/unistr/u16-cpy-tests: Likewise.
32616         * modules/unistr/u16-mblen-tests: Likewise.
32617         * modules/unistr/u16-mbsnlen-tests: Likewise.
32618         * modules/unistr/u16-mbtouc-tests: Likewise.
32619         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32620         * modules/unistr/u16-mbtoucr-tests: Likewise.
32621         * modules/unistr/u16-move-tests: Likewise.
32622         * modules/unistr/u16-next-tests: Likewise.
32623         * modules/unistr/u16-prev-tests: Likewise.
32624         * modules/unistr/u16-set-tests: Likewise.
32625         * modules/unistr/u16-stpcpy-tests: Likewise.
32626         * modules/unistr/u16-stpncpy-tests: Likewise.
32627         * modules/unistr/u16-strcat-tests: Likewise.
32628         * modules/unistr/u16-strcmp-tests: Likewise.
32629         * modules/unistr/u16-strcoll-tests: Likewise.
32630         * modules/unistr/u16-strcpy-tests: Likewise.
32631         * modules/unistr/u16-strdup-tests: Likewise.
32632         * modules/unistr/u16-strlen-tests: Likewise.
32633         * modules/unistr/u16-strmblen-tests: Likewise.
32634         * modules/unistr/u16-strmbtouc-tests: Likewise.
32635         * modules/unistr/u16-strncat-tests: Likewise.
32636         * modules/unistr/u16-strncmp-tests: Likewise.
32637         * modules/unistr/u16-strncpy-tests: Likewise.
32638         * modules/unistr/u16-strnlen-tests: Likewise.
32639         * modules/unistr/u16-to-u32-tests: Likewise.
32640         * modules/unistr/u16-to-u8-tests: Likewise.
32641         * modules/unistr/u16-uctomb-tests: Likewise.
32642         * modules/unistr/u32-check-tests: Likewise.
32643         * modules/unistr/u32-chr-tests: Likewise.
32644         * modules/unistr/u32-cmp-tests: Likewise.
32645         * modules/unistr/u32-cmp2-tests: Likewise.
32646         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32647         * modules/unistr/u32-cpy-tests: Likewise.
32648         * modules/unistr/u32-mblen-tests: Likewise.
32649         * modules/unistr/u32-mbsnlen-tests: Likewise.
32650         * modules/unistr/u32-mbtouc-tests: Likewise.
32651         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32652         * modules/unistr/u32-mbtoucr-tests: Likewise.
32653         * modules/unistr/u32-move-tests: Likewise.
32654         * modules/unistr/u32-next-tests: Likewise.
32655         * modules/unistr/u32-prev-tests: Likewise.
32656         * modules/unistr/u32-set-tests: Likewise.
32657         * modules/unistr/u32-stpcpy-tests: Likewise.
32658         * modules/unistr/u32-stpncpy-tests: Likewise.
32659         * modules/unistr/u32-strcat-tests: Likewise.
32660         * modules/unistr/u32-strcmp-tests: Likewise.
32661         * modules/unistr/u32-strcoll-tests: Likewise.
32662         * modules/unistr/u32-strcpy-tests: Likewise.
32663         * modules/unistr/u32-strdup-tests: Likewise.
32664         * modules/unistr/u32-strlen-tests: Likewise.
32665         * modules/unistr/u32-strmblen-tests: Likewise.
32666         * modules/unistr/u32-strmbtouc-tests: Likewise.
32667         * modules/unistr/u32-strncat-tests: Likewise.
32668         * modules/unistr/u32-strncmp-tests: Likewise.
32669         * modules/unistr/u32-strncpy-tests: Likewise.
32670         * modules/unistr/u32-strnlen-tests: Likewise.
32671         * modules/unistr/u32-to-u16-tests: Likewise.
32672         * modules/unistr/u32-to-u8-tests: Likewise.
32673         * modules/unistr/u32-uctomb-tests: Likewise.
32674         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32675         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32676         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32677         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32678         * modules/uniwidth/u8-strwidth-tests: Likewise.
32679         * modules/uniwidth/u8-width-tests: Likewise.
32680         * modules/uniwidth/u16-strwidth-tests: Likewise.
32681         * modules/uniwidth/u16-width-tests: Likewise.
32682         * modules/uniwidth/u32-strwidth-tests: Likewise.
32683         * modules/uniwidth/u32-width-tests: Likewise.
32684         * modules/uniwidth/width-tests: Likewise.
32685
32686 2010-05-18  Richard Jones  <rjones@redhat.com>
32687
32688         doc: users.txt: list hivex
32689         * users.txt: Add hivex.
32690
32691 2010-05-18  Richard Jones  <rjones@redhat.com>
32692
32693         doc: users.txt: list febootstrap
32694         * users.txt: Add febootstrap.
32695
32696 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32697
32698         bootstrap: fix an error when gnulib is not used as a git submodule
32699         * build-aux/bootstrap (gnulib_path): If its length is zero then
32700         assign "gnulib" to it.
32701         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32702
32703 2010-05-16  Bruno Haible  <bruno@clisp.org>
32704
32705         Avoid autoconf warnings about AM_ICONV.
32706         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32707         2.64.
32708
32709 2010-05-16  Bruno Haible  <bruno@clisp.org>
32710
32711         absolute-header: Make the macro usable in more situations.
32712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32713         from gl_ABSOLUTE_HEADER.
32714         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32715
32716 2010-05-16  James Youngman  <jay@gnu.org>
32717
32718         doc: update users.txt
32719         * users.txt: Add CSSC.
32720
32721 2010-05-16  Jim Meyering  <meyering@redhat.com>
32722
32723         init.sh: fix an error in the previous change; add more comments
32724         * tests/init.sh: Compare exit code in loop against 9, not 2.
32725         Patch by Bruno Haible.
32726         Make the two tests more similar by adding an empty "then" clause.
32727         Add comments.
32728
32729         init.sh: avoid unnecessary shell re-exec
32730         * tests/init.sh: Improve the re-exec-required check to first test the
32731         current shell.  If it passes the test, do not search for a shell that
32732         does pass, and do not re-exec.  This test is particularly contorted to
32733         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32734         of $(...) evokes a syntax error and causes immediate shell exit with
32735         status 2.  Bruno Haible reported that the re-exec made it impossible
32736         to single-step through any init.sh-using script.
32737
32738 2010-05-16  Bruno Haible  <bruno@clisp.org>
32739
32740         Fix collision between gnulib's and libintl's printf replacements.
32741         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32742         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32743         (printf): When using GNU C, map the __printf__ function to rpl_printf
32744         via __asm__. When not using GNU C, define rpl_printf instead of
32745         __printf__.
32746         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32747         commit.
32748         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32749         commit.
32750         * m4/asm-underscore.m4: New file.
32751         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32752         * modules/stdio (Files): Add m4/asm-underscore.m4.
32753         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32754         Reported by Ben Pfaff.
32755
32756 2010-05-16  Bruno Haible  <bruno@clisp.org>
32757
32758         verify: Avoid skipping the test on openSUSE 11.0.
32759         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32760
32761 2010-05-13  Bruno Haible  <bruno@clisp.org>
32762
32763         Avoid useless warnings from G++.
32764         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32765         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32766         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32767
32768 2010-05-11  Jim Meyering  <meyering@redhat.com>
32769
32770         maint.mk: tweak preceding change
32771         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32772         regexps tighter by anchoring at EOL, and make the new group "shy"
32773         for slightly decreased overhead.
32774
32775 2010-05-11  Eric Blake  <eblake@redhat.com>
32776
32777         maint.mk: gnulib doesn't guarantee NSIG
32778         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32779
32780 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32781
32782         test-pwrite.c: Remove unused variable declaration.
32783         * tests/test-pwrite.c (main): Remove read_buf declaration.
32784
32785         Remove useless test-pwrite.sh file.
32786         * tests/test-pwrite.sh: Delete file.
32787         * modules/pwrite-tests: Remove references.
32788         Reported by Bruno Haible.
32789
32790 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32791
32792         init.sh: fix a typo
32793         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32794
32795 2010-05-10  Jim Meyering  <meyering@redhat.com>
32796
32797         maint.mk: avoid using a temporary file in the always-defined-macros check
32798         * top/maint.mk (.re-defmac): Remove rule.
32799         (gl_trap_): Remove definition.
32800         (sc_prohibit_always-defined_macros): Rewrite not to create and
32801         depend on a temporary file.  Instead, depend on GNU grep's ability
32802         to read a list of regular expressions from stdin when given "-f -".
32803
32804 2010-05-09  Bruno Haible  <bruno@clisp.org>
32805
32806         Update to GNU gettext 0.18, part 1.
32807         * m4/gettext.m4: Update to GNU gettext 0.18.
32808         * m4/intl.m4: Likewise.
32809         * m4/po.m4: Likewise.
32810         * modules/gettext (Files): Add m4/fcntl-o.m4.
32811         (configure.ac): Require gettext infrastructure from version 0.18.
32812
32813 2010-05-09  Jim Meyering  <meyering@redhat.com>
32814
32815         init.sh: enable MALLOC_PERTURB_
32816         * tests/init.sh: Enable glibc's malloc-perturbing option.
32817
32818         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32819         With my recent change in init.sh from the two-line form:
32820             -#   : ${srcdir=.}
32821             -#   . "$srcdir/init.sh"; path_prepend_ .
32822             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32823         I noticed that using the one-line form would cause this test
32824         to fail with a false-positive, or to stop working altogether,
32825         depending on whether help-version changed or all the tests did.
32826         * top/maint.mk (_hv_regex): Remove this definition.
32827         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32828         (_hv_regex_strong): Use a stronger regex to check for conformance.
32829         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32830         Give a separate diagnostic for lack of conforming use.
32831
32832         maint.mk: prohibit definition of symbols defined by gnulib
32833         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32834         definition of symbols defined by gnulib.
32835
32836 2010-05-09  Bruno Haible  <bruno@clisp.org>
32837
32838         acl: Avoid test failure on Cygwin-hosted mingw.
32839         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32840
32841 2010-05-09  Bruno Haible  <bruno@clisp.org>
32842
32843         error: Use system's fcntl function.
32844         * lib/error.c (fcntl): Undefine.
32845
32846 2010-05-09  Jim Meyering  <meyering@redhat.com>
32847
32848         verify: adjust formatting to be more consistent
32849         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32850         argument-list '('s, and after one comma.
32851
32852 2010-05-09  Bruno Haible  <bruno@clisp.org>
32853
32854         error: More reliable output on mingw.
32855         * lib/error.c: Include <windows.h>.
32856         (is_open): New function.
32857         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32858         defined.
32859
32860 2010-05-09  Bruno Haible  <bruno@clisp.org>
32861
32862         vasnprintf: Fix syntax errors in libintl build on mingw.
32863         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32864         pad_ourselves and prec_ourselves after use.
32865
32866 2010-05-08  Bruno Haible  <bruno@clisp.org>
32867
32868         * lib/config.charset: Update comments for Cygwin 1.7.
32869         * lib/localcharset.c: Likewise.
32870
32871 2010-05-07  Jim Meyering  <meyering@redhat.com>
32872
32873         init.sh: improve comments
32874         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32875         . "${srcdir=.}/init.sh"; path_prepend_ .
32876         Add a note about path_prepend_ and the alternative of using
32877         TESTS_ENVIRONMENT.
32878
32879 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32880
32881         exclude: Unescape hashed patterns in wildcard mode.
32882         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32883         to the hash list.
32884         * tests/test-exclude8.sh: New test case.
32885         * modules/exclude-tests: Add new test.
32886
32887 2010-05-05  Eric Blake  <eblake@redhat.com>
32888
32889         verify: automate tests
32890         * modules/verify-tests: New module.
32891         * tests/test-verify.sh: New file.
32892         * tests/test-verify.c: Guard each negative test with a unique id.
32893         Also avoid warning about unused left hand of comma expressions.
32894
32895 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32896
32897         Further improvements to verify.h, suggested by Eric Blake.
32898         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32899         the GL_* versions, to avoid collision with OpenGL.
32900         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32901         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32902         than testing merely whether it's defined.
32903
32904         Modify verify.h to pacify gcc -Wredundant_decls.
32905         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32906         These use the prefix "GL_" since they're likely to be useful elsewhere.
32907         We may need to break them out into a different .h file.
32908         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32909         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32910         of verify_function__.
32911
32912 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32913
32914         Tests for module pwrite.
32915         * modules/pwrite-tests: New file.
32916         * tests/test-pwrite.sh: New file.
32917         * tests/test-pwrite.c: New file.
32918
32919         New module pwrite.
32920         * lib/unistd.in.h (pwrite): New declaration.
32921         * lib/pwrite.c: New file, from glibc with modifications.
32922         * m4/pwrite.m4: New file.
32923         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32924         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32925         REPLACE_PWRITE.
32926         * modules/pwrite: New file.
32927         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32928         REPLACE_PWRITE.
32929         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32930         * doc/posix-functions/pwrite.texi: Mention the new module.
32931
32932 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32933
32934         pread: Update documentation.
32935         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32936
32937 2010-05-04  Eric Blake  <eblake@redhat.com>
32938
32939         docs: update cygwin progress
32940         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32941         this bug.
32942         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32943         Added in cygwin 1.7.2.
32944         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32945         Likewise.
32946         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32947         Likewise.
32948         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32949         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32950         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32951         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32952         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32953         Mention nproc module.
32954         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32955         bug in cygwin 1.7.5 addition.
32956         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32957         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32958         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32959         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32960         1.7.5.
32961         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32962         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32963         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32964         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32965         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32966         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32967         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32968         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32969         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32970         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32971         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32972         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32973         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32974         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32975         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32976         Likewise.
32977         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32978         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32979         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32980         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32981         Likewise.
32982         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32983         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32984         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32985         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32986         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32987         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32988         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32989         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32990         Likewise.
32991         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32992         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32993         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32994         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32995         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32996         Likewise.
32997         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32998         Likewise.
32999         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33000         Likewise.
33001         * doc/glibc-functions/xdrrec_endofrecord.texi
33002         (xdrrec_endofrecord): Likewise.
33003         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33004         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33005         Likewise.
33006         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33007         Likewise.
33008
33009 2010-05-04  Jim Meyering  <meyering@redhat.com>
33010
33011         gendocs.sh: make its "-s FILE" option more useful
33012         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33013         $PACKAGE to reflect the probably-different basename of "FILE".
33014
33015 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33016
33017         bootstrap: don't ignore download_po_files failure
33018         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33019         failure.
33020
33021 2010-05-03  Jim Meyering  <meyering@redhat.com>
33022
33023         maint.mk: allow to pass options to gendocs.sh
33024         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33025         (gendocs_options_): New overridable variable.
33026
33027         gnu-web-doc-update: don't ignore configure or build failure
33028         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33029
33030         announce-gen: backslash-escape '@'s in --help output
33031         * build-aux/announce-gen: Fix syntax errors.
33032
33033         maint.mk, announce-gen: allow project-specific announcement mail headers
33034         * top/maint.mk (translation_project_): Define default.
33035         (announcement_Cc_, announcement_mail_headers_): Likewise.
33036         (announcement): Invoke announce-gen with new --mail-headers option.
33037         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33038
33039         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33040         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33041         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33042         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33043         line in the "err2" output file when running "make check" in verbose
33044         mode (i.e., with set -x enabled).
33045
33046 2010-05-03  Bruno Haible  <bruno@clisp.org>
33047
33048         wctob: Fix for weird platforms.
33049         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33050         argument value.
33051
33052 2010-05-03  Jim Meyering  <meyering@redhat.com>
33053
33054         maint.mk: prohibit unwarranted use of <strings.h>
33055         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33056         strings.h in a file that does not also use strcasecmp, strncasecmp,
33057         ffs or ffsll.
33058
33059         maint.mk: remove obsolete comments
33060         * top/maint.mk: Remove stale, commented-out rules.
33061
33062 2010-05-02  Bruno Haible  <bruno@clisp.org>
33063
33064         wcwidth: Declare also when it's aliased.
33065         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33066         macro.
33067
33068 2010-05-02  Bruno Haible  <bruno@clisp.org>
33069
33070         Fix regression from 2010-04-25.
33071         * gnulib-tool (func_modules_transitive_closure): Check the status of
33072         all modules, not only of the tests that are of the form foo-tests where
33073         foo is a module.
33074
33075 2010-05-02  Bruno Haible  <bruno@clisp.org>
33076
33077         wctob: Work around nasty Cygwin 1.7.2 bug.
33078         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33079         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33080
33081 2010-05-01  Bruno Haible  <bruno@clisp.org>
33082
33083         fpurge: Sharper test.
33084         * tests/test-fpurge.c (main): Add one more ftell check.
33085         * modules/fpurge-tests (Depends-on): Add ftell.
33086         Suggested by Eric Blake.
33087
33088 2010-05-01  Bruno Haible  <bruno@clisp.org>
33089
33090         ftello: Another test.
33091         * tests/test-ftello3.c: New file.
33092         * modules/ftello-tests (Files): Add it.
33093         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33094         MOSTLYCLEANFILES.
33095
33096         ftell: Another test.
33097         * tests/test-ftell3.c: New file.
33098         * modules/ftell-tests (Files): Add it.
33099         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33100         MOSTLYCLEANFILES.
33101
33102 2010-05-01  Bruno Haible  <bruno@clisp.org>
33103
33104         ftell, ftello: Work around Solaris bug.
33105         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33106         * lib/ftello.c: Include stdio-impl.h.
33107         (ftello): On Solaris, when _IOWRT is set, compute the result without
33108         looking at _IOREAD.
33109         * modules/ftello (Files): Add lib/stdio-impl.h.
33110         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33111         * doc/posix-functions/ftello.texi: Likewise.
33112         Reported by Eric Blake.
33113
33114 2010-05-01  Bruno Haible  <bruno@clisp.org>
33115
33116         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33117         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33118         the _IOWRT flag is also set.
33119
33120 2010-05-01  Bruno Haible  <bruno@clisp.org>
33121
33122         Fix doc about a HP-UX stdio bug.
33123         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33124         * doc/posix-functions/ftello.texi: Likewise.
33125
33126 2010-05-01  Bruno Haible  <bruno@clisp.org>
33127
33128         lseek test: Fix failure on Solaris.
33129         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33130         output.
33131
33132 2010-04-30  Jim Meyering  <meyering@redhat.com>
33133
33134         bootstrap: don't ignore failure to generate po*/Makevars
33135         * build-aux/bootstrap (with_gettext): Don't ignore failure
33136         to create po/Makevars or runtime-po/Makevars.
33137
33138 2010-04-29  Eric Blake  <eblake@redhat.com>
33139
33140         headers: relax license to LGPLv2+
33141         * modules/fcntl-h (License): Relax license.
33142         * modules/getopt-posix (License): Likewise.
33143         * modules/locale (License): Likewise.
33144         * modules/math (License): Likewise.
33145         * modules/pty (License): Likewise.
33146         * modules/sched (License): Likewise.
33147         * modules/search (License): Likewise.
33148         * modules/spawn (License): Likewise.
33149         * modules/stdarg (License): Likewise.
33150         * modules/sysexits (License): Likewise.
33151
33152 2010-04-29  Jim Meyering  <meyering@redhat.com>
33153
33154         inttypes: relax license to LGPLv2+
33155         * modules/inttypes (License): Relax license.
33156
33157 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33158
33159         * top/maint.mk (indent): Run twice to produce idempotent results.
33160
33161 2010-04-28  Bruno Haible  <bruno@clisp.org>
33162
33163         getdate: Generate getdate.c in the source directory.
33164         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33165         MOSTLYCLEANFILES.
33166         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33167
33168 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33169
33170         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33171         is not declared as a const *; avoid warnings in that case.
33172
33173 2010-04-28  Eric Blake  <eblake@redhat.com>
33174
33175         canonicalize-lgpl: avoid compiler warning
33176         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33177         declaration' / 'extraneous semicolon' warning with some compilers.
33178         Reported by Andreas Gruenbacher.
33179
33180 2010-04-28  Jim Meyering  <meyering@redhat.com>
33181
33182         init.sh: ensure a more reliable exit status when exiting via trap
33183         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33184         Inspired by patches from Dmitry V. Levin.
33185         Also trap on signal 3 (SIGQUIT).
33186
33187 2010-04-27  Bruno Haible  <bruno@clisp.org>
33188
33189         Update doc about utimes().
33190         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33191         'utimens' module.
33192         Reported by Andreas Gruenbacher <agruen@suse.de>.
33193
33194 2010-04-27  Eric Blake  <eblake@redhat.com>
33195
33196         full-read, full-write: relax license
33197         * modules/full-read (License): Drop to LGPLv2+.
33198         * modules/full-write (License): Likewise.
33199         * modules/safe-read (License): Likewise.
33200         * modules/safe-write (License): Likewise.
33201
33202         pthread: mention library for linking
33203         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33204
33205 2010-04-27  Jim Meyering  <meyering@redhat.com>
33206
33207         maint.mk: fix a bug introduced in last change
33208         * top/maint.mk (gl_assured_headers_): Now that all names are on
33209         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33210         is not anchored to end of word, it should be adequate.
33211
33212         maint.mk: avoid side-effect in latest syntax-check
33213         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33214         to run commands via $(shell...), and hence to incur cost only when
33215         the new rule is actually run.
33216
33217         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33218         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33219         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33220         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33221         (gl_assured_headers_, az_, AZ_): Define.
33222         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33223
33224 2010-04-26  Jim Meyering  <jim@meyering.net>
33225             Bruno Haible  <bruno@clisp.org>
33226
33227         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33228         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33229         Prompted by an exchange with Gilles Espinasse.
33230
33231 2010-04-26  Jim Meyering  <meyering@redhat.com>
33232
33233         git-version-gen: aesthetic tweak
33234         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33235         so that the command remains on a single line.
33236
33237 2010-04-26  Eric Blake  <eblake@redhat.com>
33238
33239         git-version-gen: allow use on EBCDIC hosts
33240         * build-aux/git-version-gen (dirty): Use literal rather than tying
33241         ourselves to ascii.
33242         Reported by Steve Goetze.
33243
33244 2010-04-25  Bruno Haible  <bruno@clisp.org>
33245
33246         netdb: Add support for GNULIB_POSIXCHECK.
33247         * lib/netdb.in.h: Include warn-on-use.h.
33248         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33249         functions are used when GNULIB_POSIXCHECK is defined and the
33250         getaddrinfo module is not in use.
33251         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33252         freeaddrinfo, gai_strerror, getnameinfo are declared.
33253         * modules/netdb (Depends-on): Add warn-on-use.
33254         (Makefile.am): Include warn-on-use.h in netdb.h.
33255
33256 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33257
33258         build: avoid "make check" failure without .git/ directory
33259         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33260         there is no .git/ directory.
33261
33262 2010-04-25  Bruno Haible  <bruno@clisp.org>
33263
33264         ptsname: Fix misuse of ttyname_r.
33265         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33266         of errno.
33267
33268 2010-04-25  Bruno Haible  <bruno@clisp.org>
33269
33270         ttyname_r: Make it work on Solaris 10.
33271         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33272         if the system function has the POSIX declaration. Test whether the
33273         function fails if the buffer is less than 128 bytes large.
33274         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33275         system's ttyname_r function. Provide a reasonably large buffer.
33276         * modules/ttyname_r (Depends-on): Add extensions.
33277         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33278
33279 2010-04-25  Bruno Haible  <bruno@clisp.org>
33280
33281         Use the 'extensions' module for some more functions on Solaris.
33282         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33283         module.
33284         * doc/posix-functions/ctime_r.texi: Likewise.
33285         * doc/posix-functions/getgrgid_r.texi: Likewise.
33286         * doc/posix-functions/getgrnam_r.texi: Likewise.
33287         * doc/posix-functions/getpwnam_r.texi: Likewise.
33288         * doc/posix-functions/getpwuid_r.texi: Likewise.
33289         * doc/posix-functions/readdir_r.texi: Likewise.
33290         * doc/posix-functions/sigwait.texi: Likewise.
33291         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33292         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33293
33294 2010-04-25  Bruno Haible  <bruno@clisp.org>
33295
33296         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33297         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33298         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33299         * lib/ttyname_r.c: Include <limits.h>.
33300         (ttyname_r): Define using the system's ttyname_r function, if it exists
33301         and not on Solaris.
33302         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33303         set.
33304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33305         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33306         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33307         Reported by Simon Josefsson.
33308
33309 2010-04-25  Bruno Haible  <bruno@clisp.org>
33310
33311         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33312         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33313         * doc/posix-functions/ctime_r.texi: Likewise.
33314         * doc/posix-functions/getgrgid_r.texi: Likewise.
33315         * doc/posix-functions/getgrnam_r.texi: Likewise.
33316         * doc/posix-functions/getlogin_r.texi: Likewise.
33317         * doc/posix-functions/getpwnam_r.texi: Likewise.
33318         * doc/posix-functions/getpwuid_r.texi: Likewise.
33319         * doc/posix-functions/readdir_r.texi: Likewise.
33320         * doc/posix-functions/sigwait.texi: Likewise.
33321         * doc/posix-functions/ttyname_r.texi: Likewise.
33322         Reported by Simon Josefsson.
33323
33324 2010-04-25  Bruno Haible  <bruno@clisp.org>
33325
33326         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33327         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33328         also to --create-testdir.
33329         (func_acceptable): Don't consider the status of *-tests modules here.
33330         (func_modules_transitive_closure): Consider it here, before including a
33331         test module.
33332         (func_import, func_create_testdir): Set inc_all_direct_tests,
33333         inc_all_indirect_tests.
33334         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33335         --create-testdir and --create-megatestdir.
33336
33337 2010-04-25  Bruno Haible  <bruno@clisp.org>
33338
33339         gnulib-tool: Add --without-*-tests options.
33340         * gnulib-tool (func_usage): Document the --without-*-tests options.
33341         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33342         excl_unportable_tests): New variables.
33343         Fail if they are specified with --import or --update.
33344         (func_acceptable): Respect the excl_*_tests variables.
33345         (func_import): Set the excl_*_tests variables to empty.
33346
33347 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33348             Bruno Haible  <bruno@clisp.org>
33349
33350         Work around a MacOS X 10.4 bug with openpty.
33351         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33352         * tests/test-openpty.c (main): Close the master side explicitly.
33353
33354 2010-04-25  Bruno Haible  <bruno@clisp.org>
33355
33356         strnlen: Fix a C++ test error on MacOS X and Solaris.
33357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33358         the function is not declared.
33359         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33360         Simon Josefsson.
33361
33362 2010-04-24  Bruno Haible  <bruno@clisp.org>
33363
33364         Avoid a gcc warning.
33365         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33366         of correct type for %08lx directive.
33367         Reported by Eric Blake.
33368
33369 2010-04-24  Bruno Haible  <bruno@clisp.org>
33370
33371         vasnprintf: Correct errno value in case of out-of-memory.
33372         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33373         or sprintf. Use the errno value from SNPRINTF or sprintf.
33374         Reported by Ian Beckwith <ianb@erislabs.net>.
33375
33376 2010-04-24  Bruno Haible  <bruno@clisp.org>
33377
33378         ansi-c++-opt: Find correct compiler when cross-compiling.
33379         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33380         AC_CHECK_PROGS.
33381         Reported by Simon Josefsson.
33382
33383 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33384
33385         vc-list-files: Add support for subversion
33386         * build-aux/vc-list-files: Use "svn list" to generate the list of
33387         files controlled by subversion.
33388
33389 2010-04-23  Jim Meyering  <meyering@redhat.com>
33390
33391         vc-list-files tests: convert to use init.sh
33392         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33393         path_prepend_.
33394         Use Exit, not exit.
33395         Use skip_ rather than open coding it.
33396         Remove trap set-up and compare definitions.
33397         * tests/test-vc-list-files-git.sh: Likewise.
33398         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33399
33400 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33401
33402         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33403         backup files.
33404
33405 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33406
33407         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33408
33409 2010-04-20  Eric Blake  <eblake@redhat.com>
33410
33411         tests: be robust to ignored SIGPIPE
33412         * tests/test-select-in.sh: Consume all output.
33413         * tests/test-lseek.sh: Check correct exit status, while avoiding
33414         EPIPE.
33415
33416 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33417             Bruno Haible  <bruno@clisp.org>
33418
33419         visibility: Don't use -fvisibility if it leads to a warning.
33420         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33421         yes, don't pretend that visibility works if it leads to a warning.
33422         Reported by Mike Gran <spk121@yahoo.com>.
33423
33424 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33425
33426         * build-aux/bootstrap: Use "git -h" for testing for supported options
33427         instead of "git --help".  The short-form option only shows a summary,
33428         and doesn't layout the full man page.  Grep for the full option name
33429         in the summary, too.
33430
33431 2010-04-19  Bruno Haible  <bruno@clisp.org>
33432
33433         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33434         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33435         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33436         mention of RELOCATABLE_STRIP.
33437         Reported by Sylvain Beucler <beuc@beuc.net>.
33438
33439 2010-04-19  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/diffseq.h: Fix typo in comment.
33442         Reported by Eric Blake.
33443
33444 2010-04-19  Bruno Haible  <bruno@clisp.org>
33445
33446         ioctl: Move autoconf macro to a .m4 file.
33447         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33448         * modules/ioctl (Files): Add it.
33449         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33450         Reported by Ian Beckwith <ianb@erislabs.net>.
33451
33452 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33453             Bruno Haible  <bruno@clisp.org>
33454
33455         diffseq: Accommodate use-case with abstract arrays.
33456         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33457         is not defined.
33458         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33459         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33460
33461 2010-04-18  Bruno Haible  <bruno@clisp.org>
33462
33463         * doc/posix-headers/stdbool.texi: More precise wording.
33464
33465 2010-04-17  Jim Meyering  <meyering@redhat.com>
33466
33467         maint.mk: use gnu-style indentation in an embedded perl script
33468         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33469         Rename variable: s/two/last_two_bytes/
33470
33471 2010-04-16  Eric Blake  <eblake@redhat.com>
33472
33473         test-stdbool: skip test that fails with Solaris CC
33474         * tests/test-stdbool.c (f): Skip test that causes compilation
33475         error under buggy C++ compiler.
33476         * lib/stdbool.in.h: Document the limitation.
33477         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33478
33479         setenv: allow compilation with C++
33480         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33481         register keyword.
33482
33483         stdint: allow test to pass with C++
33484         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33485
33486         getopt: allow compilation with C++
33487         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33488         struct.
33489         * lib/getopt.c (_getopt_internal_r): Use correct type.
33490         Reported by Dagobert Michelson, via Joel E. Denny.
33491
33492 2010-04-16  Bruno Haible  <bruno@clisp.org>
33493
33494         Override netdb.h always.
33495         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33496         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33497         Reported by Ludovic Courtès <ludo@gnu.org>.
33498
33499 2010-04-15  Bruno Haible  <bruno@clisp.org>
33500
33501         openpty: Fix mistake from 2010-03-21.
33502         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33503         Reported by Simon Josefsson.
33504
33505 2010-04-15  Eric Blake  <eblake@redhat.com>
33506
33507         test-forkpty: fix expected signature
33508         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33509         Reported by Simon Josefsson.
33510
33511 2010-04-15  Jim Meyering  <meyering@redhat.com>
33512
33513         maint.mk: texinfo_suffix_re_: correct the default regexp
33514         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33515
33516         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33517         make it configurable via texinfo_suffix_re_.
33518
33519 2010-04-14  Eric Blake  <eblake@redhat.com>
33520
33521         strtok_r: relax license to LGPLv2+
33522         * modules/strtok_r (License): Relax license.
33523         Reported by Matthias Bolte.
33524
33525 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33526
33527         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33528         version 1.4.4 by default instead of requiring the libgcrypt
33529         version used during build.  This makes it possible to use the
33530         application with older but still binary compatible libgcrypt
33531         versions.
33532
33533 2010-04-13  Eric Blake  <eblake@redhat.com>
33534
33535         getopt-gnu: match recent glibc fixes and posix ruling
33536         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33537         '+' handling, when requesting extensions.
33538         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33539         'W;' handling.
33540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33541         * doc/posix-functions/getopt.texi (getopt): Document this.
33542         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33543         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33544         Likewise.
33545
33546         getopt: merge bug fixes from glibc
33547         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33548         diagnostics.  Honor '+:' correctly.  Reject ';'.
33549
33550         getopt-posix: detect MacOS bug
33551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33552         optind when missing a required argument.
33553         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33554         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33555         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33556         Likewise.
33557
33558         getopt-posix: avoid spurious failure on Solaris
33559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33560         an indicator that setting optind=1 is sufficient for reset.
33561
33562         getopt-posix: avoid spurious failure on FreeBSD
33563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33564         in POSIX mode, since the m4 test uses it.
33565
33566         gnulib-tool: silence warning on BSD sh
33567         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33568
33569 2010-04-13  Jim Meyering  <meyering@redhat.com>
33570
33571         doc: users.txt: GNU patch now uses gnulib
33572         * users.txt: Add patch.
33573
33574 2010-04-12  Jim Meyering  <meyering@redhat.com>
33575
33576         maint.mk: generate more concise timing data for syntax-check rules
33577         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33578         " done" from each line that reports a syntax-check test duration.
33579
33580 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33581
33582         git-version-gen: use "git update-index..." rather than "git status"
33583         * build-aux/git-version-gen: Use git update-index --refresh, not
33584         "git status".  With some versions of git, "git status" would fail
33585         to update the index and result in an unwarranted "-dirty" suffix.
33586
33587 2010-04-11  Jim Meyering  <meyering@redhat.com>
33588
33589         openat: correct formatting (no semantic change)
33590         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33591         Suggested by Bruno Haible.
33592
33593 2010-04-11  Bruno Haible  <bruno@clisp.org>
33594
33595         Stricter declaration checking in testdirs.
33596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33597         If for_tests is true, augment AM_CPPFLAGS to define
33598         GNULIB_STRICT_CHECKING.
33599         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33600         GNULIB_STRICT_CHECKING is defined, verify that the function is
33601         declared.
33602
33603 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33604             Bruno Haible  <bruno@clisp.org>
33605
33606         libunistring: Improve configure output.
33607         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33608         Don't say "consider installing GNU libunistring" when checking again
33609         with libiconv.
33610
33611 2010-04-11  Bruno Haible  <bruno@clisp.org>
33612
33613         libunistring: Correct value of $LTLIBUNISTRING.
33614         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33615         correct the value of $LTLIBUNISTRING.
33616
33617 2010-04-11  Bruno Haible  <bruno@clisp.org>
33618
33619         havelib: Add static libraries to LIBS in the right order.
33620         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33621         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33622
33623 2010-04-11  Bruno Haible  <bruno@clisp.org>
33624
33625         libunistring: Detect libunistring also when it depends on libiconv.
33626         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33627         the second AC_LIB_HAVE_LINKFLAGS invocation.
33628
33629 2010-04-11  James Youngman  <jay@gnu.org>
33630
33631         close-stream: declare local scalars to be "const"
33632         * lib/close-stream.c (close_stream): Make boolean variables const
33633         to document the fact that we set but do not change them.
33634
33635 2010-04-11  Bruno Haible  <bruno@clisp.org>
33636
33637         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33638
33639 2010-04-11  Jim Meyering  <meyering@redhat.com>
33640
33641         maint.mk: don't include dist-check.mk
33642         * top/maint.mk: Remove bogus include directive.
33643
33644         maint.mk: improve empty-line-at-EOF check
33645         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33646         solution, rather than tail+Perl-based one.  The latter would read
33647         a few kilobytes from the end of each file, and did not handle empty
33648         files properly.
33649
33650         maint.mk: print the elapsed time for each syntax-check rule
33651         * top/maint.mk (sc_m_rules_): Save start time in a file.
33652         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33653         (local-check): Interpose the .z rules
33654
33655 2010-04-11  Jim Meyering  <meyering@redhat.com>
33656
33657         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33658         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33659         empty file with one that ends in an empty line.
33660
33661 2010-04-10  Bruno Haible  <bruno@clisp.org>
33662
33663         mkdir: Make it work on mingw64.
33664         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33665         * lib/mkdir.c: Update comment.
33666         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33667
33668 2010-04-10  Bruno Haible  <bruno@clisp.org>
33669
33670         Don't override improved macro from newer autoconf.
33671         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33672         autoconf >= 2.62.
33673         Reported by Joel E. Denny <jdenny@clemson.edu>.
33674
33675 2010-04-10  Jim Meyering  <meyering@redhat.com>
33676
33677         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33678         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33679
33680         maint.mk: correct a diagnostic
33681         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33682         in diagnostic; now use $prohibit.
33683
33684 2010-04-10  Bruno Haible  <address@hidden>
33685
33686         fchownat: Fix a C++ test error on Solaris 8.
33687         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33688         the function does not exist.
33689
33690 2010-04-10  Bruno Haible  <bruno@clisp.org>
33691
33692         vasnprintf: Add more tests.
33693         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33694         (test_function): Test converting an invalid wide string.
33695
33696         vasnprintf: Correct handling of unconvertible wide string arguments.
33697         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33698         VASNPRINTF.
33699         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33700         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33701         smaller than the expected maximum need for the directive. Set errno to
33702         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33703         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33705         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33706         * modules/vasnprintf (Files): Add m4/printf.m4.
33707         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33708
33709 2010-04-10  Bruno Haible  <bruno@clisp.org>
33710
33711         vasnprintf: Fix crash in %ls directive.
33712         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33713         string is passed as argument to %ls, with no precision and no width.
33714         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33715
33716 2010-04-10  Bruno Haible  <bruno@clisp.org>
33717
33718         vasnprintf: Fix multiple test failures on mingw.
33719         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33720         _snprintf, or snwprintf, not _snwprintf.
33721
33722 2010-04-10  Bruno Haible  <bruno@clisp.org>
33723
33724         write: Fix a C++ test error on mingw.
33725         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33726
33727 2010-04-10  Bruno Haible  <bruno@clisp.org>
33728
33729         vasnprintf test: Reduce code duplication.
33730         * tests/test-vasnprintf.c (test_function): New function, extracted from
33731         test_vasnprintf.
33732         (test_vasnprintf, test_asnprintf): Invoke it.
33733
33734 2010-04-10  Bruno Haible  <bruno@clisp.org>
33735
33736         strnlen: Fix warning in C++ mode on MacOS X.
33737         * lib/string.in.h (strnlen): Use the modern idiom.
33738         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33739         defining strnlen as a macro already in <config.h>.
33740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33741         REPLACE_STRNLEN.
33742         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33743         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33744
33745 2010-04-08  James Youngman  <jay@gnu.org>
33746
33747         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33748         the example.
33749
33750 2010-04-09  Jim Meyering  <meyering@redhat.com>
33751
33752         maint.mk: print better diagnostic when there is no $(_hv_file)
33753         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33754         announce that when $(_hv_file) (aka help-version) does not exist.
33755
33756         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33757         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33758         not try to interpret its random input bytes.  Jarno Rajahalme reported
33759         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33760         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33761         (mktempd_): Likewise, just in case.
33762
33763         ftruncate: add two years to projected module removal date: 2012
33764         * m4/ftruncate.m4: Adjust comments.
33765
33766         ftruncate: mark module as obsolete; even MinGW provides it, now
33767         * modules/ftruncate (Status): Obsolete.
33768         (Notice): Say that.
33769         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33771
33772 2010-04-08  Bruno Haible  <bruno@clisp.org>
33773
33774         Fix side effects from tests-related modules.
33775         * modules/dprintf-posix (Comment): New section.
33776         * modules/fprintf-posix (Comment): Likewise.
33777         * modules/obstack-printf-posix (Comment): Likewise.
33778         * modules/printf-posix (Comment): Likewise.
33779         * modules/snprintf-posix (Comment): Likewise.
33780         * modules/sprintf-posix (Comment): Likewise.
33781         * modules/vasnprintf-posix (Comment): Likewise.
33782         * modules/vasprintf-posix (Comment): Likewise.
33783         * modules/vdprintf-posix (Comment): Likewise.
33784         * modules/vfprintf-posix (Comment): Likewise.
33785         * modules/vprintf-posix (Comment): Likewise.
33786         * modules/vsnprintf-posix (Comment): Likewise.
33787         * modules/vsprintf-posix (Comment): Likewise.
33788         * modules/xprintf-posix (Comment): Likewise.
33789         * modules/xvasprintf-posix (Comment): Likewise.
33790         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33791         * modules/floorf-tests (Depends-on): Likewise.
33792         * modules/round-tests (Depends-on): Likewise.
33793         * modules/roundf-tests (Depends-on): Likewise.
33794         * modules/trunc-tests (Depends-on): Likewise.
33795         * modules/truncf-tests (Depends-on): Likewise.
33796         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33797         'fprintf-posix' module is not present.
33798         * tests/test-floorf2.c (check): Likewise.
33799         * tests/test-trunc2.c (check): Likewise.
33800         * tests/test-truncf2.c (check): Likewise.
33801         * tests/test-round2.c (equal): Likewise.
33802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33803
33804 2010-04-07  Karl Berry  <karl@gnu.org>
33805
33806         * config/srclist.txt,
33807         * config/srclistvars.sh,
33808         * config/srclist-update: doc fixes.
33809
33810 2010-04-07  Jim Meyering  <meyering@redhat.com>
33811
33812         maint.mk: add a PATH crosschecking syntax-check rule
33813         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33814         Useful if you use a test like the one in help-version (coreutils,
33815         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33816         printed by prog --version.
33817
33818 2010-04-06  Bruno Haible  <bruno@clisp.org>
33819
33820         Fix link error on mingw.
33821         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33822         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33823
33824 2010-04-06  Bruno Haible  <bruno@clisp.org>
33825
33826         Assume rmdir exists.
33827         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33828
33829 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33830
33831         doc: update users.txt
33832         * users.txt: Add gcal.
33833
33834 2010-04-06  Jim Meyering  <meyering@redhat.com>
33835
33836         init.sh: simply unset TMPDIR rather than risking env -i
33837         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33838         although it probably works fine on all Unix-based systems, some
33839         systems (Cygwin?) cannot tolerate a totally cleared environment.
33840         Suggestion from Eric Blake.
33841
33842 2010-04-06  Jim Meyering  <meyering@redhat.com>
33843
33844         init.sh: portability fix: use env's POSIX-specified -i option not -u
33845         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33846         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33847
33848 2010-04-05  Bruno Haible  <bruno@clisp.org>
33849
33850         btowc: Work around Cygwin 1.7.2 bug.
33851         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33852         does not map NUL to 0.
33853         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33854
33855 2010-04-05  Bruno Haible  <bruno@clisp.org>
33856
33857         Make the multithread modules work on Cygwin 1.7.2.
33858         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33859         imported symbols can be declared weak, so that it returns "no" on
33860         Cygwin 1.7.2.
33861
33862 2010-04-05  Bruno Haible  <bruno@clisp.org>
33863
33864         Use the module 'strncat'.
33865         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33866
33867         Tests for module 'strncat'.
33868         * modules/strncat-tests: New file.
33869         * tests/test-strncat.c: New file.
33870
33871         New module 'strncat'.
33872         * lib/string.in.h (strncat): New declaration.
33873         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33874         * m4/strncat.m4: New file, based on m4/memchr.m4.
33875         * modules/strncat: New file.
33876         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33877         is declared.
33878         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33879         REPLACE_STRNCAT.
33880         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33881         REPLACE_STRNCAT.
33882         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33883         module.
33884         * tests/test-string-c++.cc: Check signature of strncat.
33885
33886 2010-04-05  Jim Meyering  <meyering@redhat.com>
33887
33888         xstrtoumax-tests: convert to use init.sh
33889         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33890         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33891         Use Exit, not exit.
33892         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33893
33894         xstrtoimax-tests: convert to use init.sh
33895         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33896         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33897         Use Exit, not exit.
33898         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33899
33900 2010-04-05  Bruno Haible  <bruno@clisp.org>
33901
33902         sys_socket: Avoid #define replacements in C++ mode.
33903         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33904         warning to the function if possible, rather than #defining the symbol
33905         to a dysfunctional alias.
33906
33907 2010-04-05  Bruno Haible  <bruno@clisp.org>
33908
33909         fseeko: Fix C++ test error on mingw.
33910         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33911         gl_FUNC_FSEEKO.
33912         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33913         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33914         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33915         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33916
33917 2010-04-05  Bruno Haible  <bruno@clisp.org>
33918
33919         duplocale: Improve test output.
33920         * tests/test-duplocale.c (main): Print reason for skipped test.
33921
33922 2010-04-05  Bruno Haible  <bruno@clisp.org>
33923
33924         Assume rmdir exists.
33925         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33926         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33927
33928 2010-04-05  Bruno Haible  <bruno@clisp.org>
33929
33930         Fix link error on Solaris 8 with cc.
33931         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33932
33933 2010-04-05  Bruno Haible  <bruno@clisp.org>
33934
33935         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33936         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33937
33938 2010-04-05  Bruno Haible  <bruno@clisp.org>
33939
33940         vasprintf: Update documentation.
33941         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33942
33943 2010-04-05  Bruno Haible  <bruno@clisp.org>
33944
33945         ptsname: Improve test.
33946         * tests/test-ptsname.c (main): Also try the various master names of BSD
33947         systems.
33948
33949 2010-04-05  Bruno Haible  <bruno@clisp.org>
33950
33951         memchr: Avoid a possible C++ test error.
33952         * lib/string.in.h (memchr): Provide declaration if function is missing.
33953         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33954         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33956         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33957
33958 2010-04-05  Bruno Haible  <bruno@clisp.org>
33959
33960         strtok_r: Improve idiom.
33961         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33962         AC_LIBOBJ is used.
33963
33964 2010-04-05  Bruno Haible  <bruno@clisp.org>
33965
33966         strdup: Improve idiom.
33967         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33968         AC_LIBOBJ is used.
33969         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33970         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33971         when AC_LIBOBJ is used.
33972
33973 2010-04-05  Bruno Haible  <bruno@clisp.org>
33974
33975         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33976         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33977         don't set REPLACE_MBSINIT to 1.
33978         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33979         don't set REPLACE_MBRTOWC to 1.
33980         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33981         exist, don't set REPLACE_MBSRTOWCS to 1.
33982         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33983         exist, don't set REPLACE_MBSNRTOWCS to 1.
33984         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33985         don't set REPLACE_WCRTOMB to 1.
33986         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33987         exist, don't set REPLACE_WCSRTOMBS to 1.
33988         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33989         exist, don't set REPLACE_WCSNRTOMBS to 1.
33990
33991 2010-04-05  Bruno Haible  <bruno@clisp.org>
33992
33993         ldexpl: Improve idiom.
33994         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33995         make sure to set HAVE_DECL_LDEXPL to 0.
33996
33997 2010-04-05  Jim Meyering  <meyering@redhat.com>
33998
33999         xstrtol-tests: convert to use init.sh
34000         * modules/xstrtol-tests (Files): Add tests/init.sh.
34001         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34002         Use Exit, not exit.
34003         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34004
34005         atexit-tests: convert to use init.sh
34006         * modules/atexit-tests (Files): Add tests/init.sh.
34007         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34008         Use Exit, not exit.
34009         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34010
34011         init.sh: fix typo
34012         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34013
34014         init.sh: make it easier for a test script to write to the tty, ...
34015         when using automake's parallel-tests mode.
34016         * tests/init.sh (stderr_fileno_): Define overridable variable.
34017         (warn_): New function, to use it.
34018         (fail_, skip_, framework_failure_): Use warn_.
34019
34020 2010-04-04  Bruno Haible  <bruno@clisp.org>
34021
34022         btowc: Avoid warning.
34023         * lib/btowc.c: Include <stdlib.h>.
34024         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34025
34026 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34027             Bruno Haible  <bruno@clisp.org>
34028
34029         wchar: Port to NetBSD 1.5.
34030         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34031         * lib/wctype.in.h (WEOF): Likewise.
34032
34033 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34034             Bruno Haible  <bruno@clisp.org>
34035
34036         Port extended stdio to NetBSD 1.5.
34037         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34038         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34039         older.
34040
34041 2010-04-04  Bruno Haible  <bruno@clisp.org>
34042
34043         string: Remove unused substitution.
34044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34045         HAVE_DECL_STRERROR.
34046         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34047
34048 2010-04-04  Bruno Haible  <bruno@clisp.org>
34049
34050         strtod: Avoid a possible C++ test error.
34051         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34052         set REPLACE_STRTOD.
34053
34054 2010-04-04  Bruno Haible  <bruno@clisp.org>
34055
34056         strerror: Update documentation.
34057         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34058
34059 2010-04-04  Bruno Haible  <bruno@clisp.org>
34060
34061         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34062         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34063         _GL_CXXALIAS_SYS_CAST.
34064
34065 2010-04-04  Bruno Haible  <bruno@clisp.org>
34066
34067         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34068         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34069         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34070         REPLACE_FREXPL to 1.
34071         * doc/posix-functions/frexpl.texi: Update documentation.
34072
34073 2010-04-04  Bruno Haible  <bruno@clisp.org>
34074
34075         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34076         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34077
34078 2010-04-04  Bruno Haible  <bruno@clisp.org>
34079
34080         Implement nanosleep for native Windows.
34081         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34082
34083 2010-04-04  Bruno Haible  <bruno@clisp.org>
34084
34085         math: Fix some C++ test errors on Solaris 8.
34086         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34087
34088 2010-04-04  Bruno Haible  <bruno@clisp.org>
34089
34090         math: Fix some C++ test errors on Cygwin.
34091         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34092         truncl): Provide declaration if the system does not have it.
34093         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34094         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34095         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34096         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34097         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34098         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34099         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34100         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34101         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34102         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34103         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34104         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34105         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34106         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34107         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34108         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34110         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34111         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34112         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34113         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34114         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34115
34116 2010-04-04  Bruno Haible  <bruno@clisp.org>
34117
34118         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34119         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34120         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34121         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34122         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34123         * m4/isinf.m4 (gl_ISINF): Likewise.
34124         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34125
34126 2010-04-04  Bruno Haible  <bruno@clisp.org>
34127
34128         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34129         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34130
34131 2010-04-04  Bruno Haible  <bruno@clisp.org>
34132
34133         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34134         * modules/tmpfile (configure.ac): Update.
34135
34136         tmpfile: Fix C++ test error on mingw.
34137         * lib/stdio.in.h (tmpfile): New declaration.
34138         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34139         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34140         * modules/tmpfile (Depends-on): Add stdio.
34141         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34142         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34143         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34144         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34145         REPLACE_TMPFILE.
34146         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34147
34148 2010-04-04  Bruno Haible  <bruno@clisp.org>
34149
34150         ioctl: Fix C++ test error on mingw.
34151         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34152         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34153         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34154
34155 2010-04-03  Bruno Haible  <bruno@clisp.org>
34156
34157         wcwidth: Fix C++ test error on mingw.
34158         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34160         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34161
34162 2010-04-03  Bruno Haible  <bruno@clisp.org>
34163
34164         nanosleep: Fix C++ test error on mingw.
34165         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34166         * lib/time.in.h (nanosleep): Use modern idiom.
34167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34168         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34169         REPLACE_NANOSLEEP to 1.
34170         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34171         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34172
34173 2010-04-03  Bruno Haible  <bruno@clisp.org>
34174
34175         strptime: Fix C++ test error on mingw.
34176         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34177         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34178         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34179         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34180         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34181         not REPLACE_STRPTIME.
34182         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34183         REPLACE_STRPTIME.
34184
34185 2010-04-03  Bruno Haible  <bruno@clisp.org>
34186
34187         timegm: Fix C++ test error on mingw.
34188         * lib/time.in.h (timegm): Use modern idiom.
34189         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34190         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34192         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34193
34194 2010-04-03  Bruno Haible  <bruno@clisp.org>
34195
34196         timegm: Assume declaration if function exists.
34197         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34198         if it exists. Don't clobber ac_cv_func_timegm.
34199
34200 2010-04-03  Bruno Haible  <bruno@clisp.org>
34201
34202         time_r: Fix C++ test error on mingw.
34203         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34204         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34205         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34207         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34208
34209 2010-04-03  Bruno Haible  <bruno@clisp.org>
34210
34211         time_r: Minor updates.
34212         * modules/time_r (Description): Mention the provided functions.
34213         * lib/time_r.c: Don't include <string.h>.
34214         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34215         * doc/posix-functions/localtime_r.texi: Likewise.
34216
34217 2010-04-03  Bruno Haible  <bruno@clisp.org>
34218
34219         time: Fix regression introduced on 2010-03-08.
34220         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34221         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34222
34223 2010-04-03  Jim Meyering  <meyering@redhat.com>
34224
34225         maint.mk: don't silently disable project-specific syntax-check rules
34226         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34227         that they need to convert their project-specific syntax-check rules
34228         to use the new _sc_search_regexp.
34229
34230 2010-04-03  Bruno Haible  <bruno@clisp.org>
34231
34232         fchdir: Fix regression introduced on 2010-03-08.
34233         * lib/unistd.in.h (fchdir): Fix declaration.
34234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34236         REPLACE_FCHDIR.
34237         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34238         REPLACE_FCHDIR.
34239
34240 2010-04-03  Bruno Haible  <bruno@clisp.org>
34241
34242         getpagesize: Fix C++ test error on mingw.
34243         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34244         system does not declare the function.
34245         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34246         declared.
34247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34248         HAVE_DECL_GETPAGESIZE.
34249         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34250
34251 2010-04-03  Bruno Haible  <bruno@clisp.org>
34252
34253         stdio: Make C++ tests work on mingw.
34254         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34255         does not declare the function.
34256
34257 2010-04-03  Bruno Haible  <bruno@clisp.org>
34258
34259         ftello: Fix C++ test error on mingw.
34260         * lib/stdio.in.h (ftello): Use modern idiom.
34261         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34262         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34263         is missing and that it needs to be replaced.
34264         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34266         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34267
34268 2010-04-03  Bruno Haible  <bruno@clisp.org>
34269
34270         fseeko: Fix C++ test error on mingw.
34271         * lib/stdio.in.h (fseeko): Use modern idiom.
34272         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34273         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34274         is missing and that it needs to be replaced.
34275         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34277         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34278
34279 2010-04-03  Bruno Haible  <bruno@clisp.org>
34280
34281         mkstemp: Fix C++ test error on mingw.
34282         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34283         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34284         function is missing and that it needs to be replaced.
34285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34286         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34287
34288 2010-04-03  Bruno Haible  <bruno@clisp.org>
34289
34290         stpncpy: Fix C++ test error on mingw.
34291         * lib/string.in.h (stpncpy): Use modern idiom.
34292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34293         function is missing and that it needs to be replaced.
34294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34295         REPLACE_STPNCPY.
34296         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34297
34298 2010-04-03  Bruno Haible  <bruno@clisp.org>
34299
34300         sys_stat: Fix C++ test error on mingw.
34301         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34302         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34303
34304 2010-04-03  Bruno Haible  <bruno@clisp.org>
34305
34306         pty: Update doc.
34307         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34308
34309 2010-04-03  Bruno Haible  <bruno@clisp.org>
34310
34311         unistd: Fix C++ test error on mingw.
34312         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34313
34314 2010-04-03  Bruno Haible  <bruno@clisp.org>
34315
34316         Update doc regarding mingw.
34317         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34318         * doc/glibc-functions/login_tty.texi: Likewise.
34319         * doc/glibc-functions/forkpty.texi: Likewise.
34320
34321 2010-04-03  Bruno Haible  <bruno@clisp.org>
34322
34323         stdlib: Avoid compilation failure of c-strtold on mingw.
34324         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34325
34326 2010-04-03  Bruno Haible  <bruno@clisp.org>
34327
34328         locale: Make C++ tests work on Cygwin and mingw.
34329         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34330         cannot provide the function.
34331         Reported by Simon Josefsson.
34332
34333 2010-04-03  Bruno Haible  <bruno@clisp.org>
34334
34335         localename: Port to MacOS X 10.6.
34336         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34337         memory layout of the locales in MacOS X 10.6 as well.
34338         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34339
34340 2010-04-02  Bruno Haible  <bruno@clisp.org>
34341
34342         gnulib-tool: Ensure that long-running tests are executed last.
34343         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34344         running tests after the one for the other tests.
34345
34346 2010-04-02  Bruno Haible  <bruno@clisp.org>
34347
34348         gnulib-tool: Ensure the tests in the main directory are executed first.
34349         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34350         start with the current directory.
34351
34352 2010-04-02  Bruno Haible  <bruno@clisp.org>
34353
34354         Tests for module 'havelib', moved here from GNU gettext.
34355         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34356         modifications.
34357         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34358         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34359         with modifications.
34360         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34361         modifications.
34362         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34363         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34364         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34365         with modifications.
34366         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34367         with modifications.
34368         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34369         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34370         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34371         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34372         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34373         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34374         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34375         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34376         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34377         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34378         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34379         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34380         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34381         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34382         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34383         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34384         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34385         with modifications.
34386         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34387         with modifications.
34388         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34389         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34390         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34391         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34392         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34393         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34394         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34395         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34396         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34397         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34398         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34399         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34400         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34401         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34402         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34403         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34404         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34405         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34406         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34407         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34408         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34409         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34410         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34411         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34412         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34413         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34414         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34415         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34416         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34417         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34418         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34419         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34420         * tests/havelib/rpathx/rpathx.c: New file, from
34421         gettext/autoconf-lib-link.
34422         * tests/havelib/rpathx/Makefile.am: New file, from
34423         gettext/autoconf-lib-link.
34424         * tests/havelib/rpathx/configure.ac: New file, from
34425         gettext/autoconf-lib-link with modifications.
34426         * tests/havelib/rpathy/rpathy.c: New file, from
34427         gettext/autoconf-lib-link.
34428         * tests/havelib/rpathy/Makefile.am: New file, from
34429         gettext/autoconf-lib-link.
34430         * tests/havelib/rpathy/configure.ac: New file, from
34431         gettext/autoconf-lib-link with modifications.
34432         * tests/havelib/rpathz/rpathz.c: New file, from
34433         gettext/autoconf-lib-link.
34434         * tests/havelib/rpathz/Makefile.am: New file, from
34435         gettext/autoconf-lib-link.
34436         * tests/havelib/rpathz/configure.ac: New file, from
34437         gettext/autoconf-lib-link with modifications.
34438         * tests/havelib/rpathlx/usex.c: New file, from
34439         gettext/autoconf-lib-link.
34440         * tests/havelib/rpathlx/Makefile.am: New file, from
34441         gettext/autoconf-lib-link.
34442         * tests/havelib/rpathlx/configure.ac: New file, from
34443         gettext/autoconf-lib-link with modifications.
34444         * tests/havelib/rpathly/usey.c: New file, from
34445         gettext/autoconf-lib-link.
34446         * tests/havelib/rpathly/Makefile.am: New file, from
34447         gettext/autoconf-lib-link.
34448         * tests/havelib/rpathly/configure.ac: New file, from
34449         gettext/autoconf-lib-link with modifications.
34450         * tests/havelib/rpathlz/usez.c: New file, from
34451         gettext/autoconf-lib-link.
34452         * tests/havelib/rpathlz/Makefile.am: New file, from
34453         gettext/autoconf-lib-link.
34454         * tests/havelib/rpathlz/configure.ac: New file, from
34455         gettext/autoconf-lib-link with modifications.
34456         * tests/havelib/rpathlyx/usey.c: New file, from
34457         gettext/autoconf-lib-link.
34458         * tests/havelib/rpathlyx/Makefile.am: New file, from
34459         gettext/autoconf-lib-link.
34460         * tests/havelib/rpathlyx/configure.ac: New file, from
34461         gettext/autoconf-lib-link with modifications.
34462         * tests/havelib/rpathlzyx/usez.c: New file, from
34463         gettext/autoconf-lib-link.
34464         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34465         gettext/autoconf-lib-link.
34466         * tests/havelib/rpathlzyx/configure.ac: New file, from
34467         gettext/autoconf-lib-link with modifications.
34468         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34469         with modifications.
34470
34471 2010-04-02  Bruno Haible  <bruno@clisp.org>
34472
34473         gnulib-tool: Create distributed built sources also for the tests.
34474         * gnulib-tool (func_create_testdir): Also generate distributed built
34475         sources in the tests directory.
34476
34477 2010-04-02  Bruno Haible  <bruno@clisp.org>
34478
34479         gnulib-tool: Obey user's environment variables.
34480         * gnulib-tool (func_create_testdir): When creating built sources,
34481         respect the environment variables for autoconf, automake, etc. given by
34482         the user.
34483
34484 2010-04-02  Bruno Haible  <bruno@clisp.org>
34485
34486         gnulib-tool: Provide the value of --m4-base to modules.
34487         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34488         of gl_m4_base.
34489
34490 2010-04-02  Eric Blake  <eblake@redhat.com>
34491
34492         maint.mk: fix some fallout
34493         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34494         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34495
34496 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34497
34498         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34499         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34500         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34501         (sc_cast_of_x_alloc_return_value): Likewise.
34502         (sc_cast_of_alloca_return_value): Likewise.
34503         (sc_space_tab): Likewise.
34504         (sc_prohibit_atoi_atof): Likewise.
34505         (sc_prohibit_magic_number_exit): Likewise.
34506         (sc_error_exit_success): Likewise.
34507         (sc_file_system): Likewise.
34508         (sc_prohibit_have_config_h): Likewise.
34509         (sc_require_config_h): Likewise.
34510         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34511         (sc_obsolete_symbols): Likewise.
34512         (sc_changelog): Likewise.
34513         (sc_program_name): Likewise.
34514         (sc_the_the): Likewise.
34515         (sc_trailing_blank): Likewise.
34516         (sc_two_space_separator_in_usage): Likewise.
34517         (sc_useless_cpp_parens): Likewise.
34518         (sc_GPL_version): Likewise.
34519         (sc_GFDL_version): Likewise.
34520         (sc_texinfo_acronym): Likewise.
34521         (sc_prohibit_cvs_keyword): Likewise.
34522         (sc_prohibit_stat_st_blocks): Likewise.
34523         (sc_prohibit_S_IS_definition): Likewise.
34524         (sc_redundant_const): Likewise.
34525         (sc_makefile_TAB_only_indentation): Likewise.
34526         (sc_m4_quote_check): Likewise.
34527         (sc_makefile_path_separator_check): Likewise.
34528         (sc_copyright_check): Likewise.
34529         (sc_Wundef_boolean): Likewise.
34530         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34531
34532         maint.mk: match 0 or more whitespace-before-function-call '('
34533         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34534         that have zero or two-and-more spaces between the function name
34535         and the open parenthesis.
34536         (sc_error_message_warn_fatal): Likewise.
34537         (sc_error_message_uppercase): Likewise.
34538         (sc_error_message_period): Likewise.
34539
34540 2010-03-31  Eric Blake  <eblake@redhat.com>
34541
34542         maint.mk: check for [ as well as test
34543         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34544         Based on a libvirt report by Matthias Bolte.
34545
34546         gnumakefile: don't squelch _version output
34547         * top/GNUmakefile (_version): Create one-shot dependency rather
34548         than using $(shell) when version must be regenerated.
34549         (_autoreconf): Run verbosely, by default.
34550
34551         sys_time: avoid compiler warnings
34552         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34553         unconditional, fixing regression from 2010-03-29.
34554         Reported by Simon Josefsson.
34555
34556 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34557
34558         maint.mk: s/_header_without_use/_sc_header_without_use/
34559         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34560         (sc_prohibit_assert_without_use): Use the new name.
34561         (sc_prohibit_close_stream_without_use): Likewise.
34562         (sc_prohibit_getopt_without_use): Likewise.
34563         (sc_prohibit_quotearg_without_use): Likewise.
34564         (sc_prohibit_quote_without_use): Likewise.
34565         (sc_prohibit_long_options_without_use): Likewise.
34566         (sc_prohibit_inttostr_without_use): Likewise.
34567         (sc_prohibit_ignore_value_without_use): Likewise.
34568         (sc_prohibit_error_without_use): Likewise.
34569         (sc_prohibit_xalloc_without_use): Likewise.
34570         (sc_prohibit_hash_without_use): Likewise.
34571         (sc_prohibit_hash_pjw_without_use): Likewise.
34572         (sc_prohibit_safe_read_without_use): Likewise.
34573         (sc_prohibit_argmatch_without_use): Likewise.
34574         (sc_prohibit_canonicalize_without_use): Likewise.
34575         (sc_prohibit_root_dev_ino_without_use): Likewise.
34576         (sc_prohibit_openat_without_use): Likewise.
34577         (sc_prohibit_c_ctype_without_use): Likewise.
34578         (sc_prohibit_signal_without_use): Likewise.
34579         (sc_prohibit_intprops_without_use): Likewise.
34580
34581 2010-03-30  Eric Blake  <eblake@redhat.com>
34582
34583         maint: improve module indicators
34584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34585         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34586         columns, and avoid extra macro expansion.
34587
34588         fdopendir: work around FreeBSD bug
34589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34591         * modules/dirent (Makefile.am): Substitute it.
34592         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34593         declaration.
34594         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34595         fix.
34596         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34597
34598 2010-03-29  Bruno Haible  <bruno@clisp.org>
34599
34600         Emit #pragma system_header after the inclusion guard, not before.
34601         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34602         guard that spans the entire file, not before. This enables an
34603         optimization in GCC's preprocessor.
34604         * lib/ctype.in.h: Likewise.
34605         * lib/dirent.in.h: Likewise.
34606         * lib/errno.in.h: Likewise.
34607         * lib/float.in.h: Likewise.
34608         * lib/getopt.in.h: Likewise.
34609         * lib/iconv.in.h: Likewise.
34610         * lib/langinfo.in.h: Likewise.
34611         * lib/locale.in.h: Likewise.
34612         * lib/math.in.h: Likewise.
34613         * lib/netdb.in.h: Likewise.
34614         * lib/netinet_in.in.h: Likewise.
34615         * lib/pty.in.h: Likewise.
34616         * lib/sched.in.h: Likewise.
34617         * lib/se-selinux.in.h: Likewise.
34618         * lib/search.in.h: Likewise.
34619         * lib/spawn.in.h: Likewise.
34620         * lib/stdarg.in.h: Likewise.
34621         * lib/stdint.in.h: Likewise.
34622         * lib/string.in.h: Likewise.
34623         * lib/strings.in.h: Likewise.
34624         * lib/sys_file.in.h: Likewise.
34625         * lib/sys_ioctl.in.h: Likewise.
34626         * lib/sys_time.in.h: Likewise.
34627         * lib/sys_times.in.h: Likewise.
34628         * lib/sys_utsname.in.h: Likewise.
34629         * lib/sys_wait.in.h: Likewise.
34630         * lib/sysexits.in.h: Likewise.
34631         * lib/wctype.in.h: Likewise.
34632
34633 2010-03-28  James Youngman  <jay@gnu.org>
34634
34635         save-cwd: don't leak a file descriptor when the caller execs.
34636         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34637         saved file descriptor.
34638         * modules/save-cwd (Depends-on): Depend on cloexec.
34639
34640 2010-03-29  Bruno Haible  <bruno@clisp.org>
34641
34642         Remove vestiges of fts-lgpl module.
34643         * lib/fts_.h: Assume GNULIB_FTS is 1.
34644         * lib/fts.c: Likewise.
34645         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34646
34647 2010-03-28  Bruno Haible  <bruno@clisp.org>
34648
34649         Fix definition of tests witness macro.
34650         * gnulib-tool (func_import): Fix definition of witness macro.
34651
34652 2010-03-28  Bruno Haible  <bruno@clisp.org>
34653
34654         Fix ioctl's protoype on glibc systems.
34655         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34656         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34657         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34658         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34659         signature. If not, arrange to replace the ioctl function.
34660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34661         REPLACE_IOCTL.
34662         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34663         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34664         Reported by Ludovic Courtès <ludo@gnu.org>.
34665
34666 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34667
34668         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34669         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34670         made it so grep -r --include=GLOB* ... did not work.
34671
34672 2010-03-26  Jim Meyering  <meyering@redhat.com>
34673             Eric Blake  <eblake@redhat.com>
34674
34675         maint.mk: prohibit use of test's -o and -a operators
34676         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34677
34678 2010-03-28  Bruno Haible  <bruno@clisp.org>
34679
34680         Remove unused GNULIB_XYZ macro definitions.
34681         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34682         invocation.
34683
34684 2010-03-28  Bruno Haible  <bruno@clisp.org>
34685
34686         Mark privileged tests modules.
34687         * modules/idpriv-drop-tests (Status): New section.
34688         * modules/idpriv-droptemp-tests (Status): New section.
34689
34690 2010-03-28  Bruno Haible  <bruno@clisp.org>
34691
34692         Split C++ tests into separate tests modules.
34693         * modules/dirent-c++-tests: New file, extracted from
34694         modules/dirent-tests.
34695         * modules/dirent-tests: Depend on it.
34696         * modules/fcntl-h-c++-tests: New file, extracted from
34697         modules/fcntl-h-tests.
34698         * modules/fcntl-h-tests: Depend on it.
34699         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34700         * modules/glob-tests: Depend on it.
34701         * modules/iconv-h-c++-tests: New file, extracted from
34702         modules/iconv-h-tests.
34703         * modules/iconv-h-tests: Depend on it.
34704         * modules/langinfo-c++-tests: New file, extracted from
34705         modules/langinfo-tests.
34706         * modules/langinfo-tests: Depend on it.
34707         * modules/locale-c++-tests: New file, extracted from
34708         modules/locale-tests.
34709         * modules/locale-tests: Depend on it.
34710         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34711         * modules/math-tests: Depend on it.
34712         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34713         * modules/pty-tests: Depend on it.
34714         * modules/search-c++-tests: New file, extracted from
34715         modules/search-tests.
34716         * modules/search-tests: Depend on it.
34717         * modules/signal-c++-tests: New file, extracted from
34718         modules/signal-tests.
34719         * modules/signal-tests: Depend on it.
34720         * modules/spawn-c++-tests: New file, extracted from
34721         modules/spawn-tests.
34722         * modules/spawn-tests: Depend on it.
34723         * modules/stdio-c++-tests: New file, extracted from
34724         modules/stdio-tests.
34725         * modules/stdio-tests: Depend on it.
34726         * modules/stdlib-c++-tests: New file, extracted from
34727         modules/stdlib-tests.
34728         * modules/stdlib-tests: Depend on it.
34729         * modules/string-c++-tests: New file, extracted from
34730         modules/string-tests.
34731         * modules/string-tests: Depend on it.
34732         * modules/sys_ioctl-c++-tests: New file, extracted from
34733         modules/sys_ioctl-tests.
34734         * modules/sys_ioctl-tests: Depend on it.
34735         * modules/sys_select-c++-tests: New file, extracted from
34736         modules/sys_select-tests.
34737         * modules/sys_select-tests: Depend on it.
34738         * modules/sys_socket-c++-tests: New file, extracted from
34739         modules/sys_socket-tests.
34740         * modules/sys_socket-tests: Depend on it.
34741         * modules/sys_stat-c++-tests: New file, extracted from
34742         modules/sys_stat-tests.
34743         * modules/sys_stat-tests: Depend on it.
34744         * modules/sys_time-c++-tests: New file, extracted from
34745         modules/sys_time-tests.
34746         * modules/sys_time-tests: Depend on it.
34747         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34748         * modules/time-tests: Depend on it.
34749         * modules/unistd-c++-tests: New file, extracted from
34750         modules/unistd-tests.
34751         * modules/unistd-tests: Depend on it.
34752         * modules/wchar-c++-tests: New file, extracted from
34753         modules/wchar-tests.
34754         * modules/wchar-tests: Depend on it.
34755         * modules/wctype-c++-tests: New file, extracted from
34756         modules/wctype-tests.
34757         * modules/wctype-tests: Depend on it.
34758         Reported by Simon Josefsson.
34759
34760 2010-03-28  Bruno Haible  <bruno@clisp.org>
34761
34762         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34763         * gnulib-tool (func_exists_module): New function, extracted from
34764         func_verify_module.
34765         (func_verify_module): Use it.
34766         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34767         'foo' only if 'foo' exists.
34768         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34769         module.
34770
34771 2010-03-28  Bruno Haible  <bruno@clisp.org>
34772
34773         gnulib-tool: Add support for special categories of tests.
34774         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34775         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34776         (func_usage): Document them.
34777         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34778         inc_unportable_tests, inc_all_tests): New variables.
34779         (func_acceptable): Consider these variables.
34780         (func_modules_transitive_closure): Make it work when the 'Status' field
34781         consists of multiple words.
34782         (func_import): Store and restore the values of inc_cxx_tests,
34783         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34784         inc_all_tests in gnulib-comp.m4.
34785         (func_create_testdir): Set inc_all_tests to true.
34786         * doc/gnulib.texi (Extra tests modules): New section.
34787         Suggested by Jim Meyering.
34788
34789 2010-03-28  Bruno Haible  <bruno@clisp.org>
34790
34791         ansi-c++-opt: Allow turning off the C++ build by default.
34792         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34793         gl_CXX_CHOICE_DEFAULT_NO is defined.
34794         Requested by Eric Blake.
34795
34796 2010-03-28  Bruno Haible  <bruno@clisp.org>
34797
34798         unistd: Avoid #define replacements in C++ mode.
34799         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34800         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34801         setsockopt, shutdown, select): In C++, attach a warning to the function
34802         if possible, rather than #defining the symbol to a dysfunctional alias.
34803         Reported by John W. Eaton <jwe@gnu.org>.
34804
34805 2010-03-28  Bruno Haible  <bruno@clisp.org>
34806
34807         Fix link errors on mingw.
34808         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34809         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34810         $(LIBSOCKET).
34811         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34812         $(LIBSOCKET).
34813
34814 2010-03-28  Bruno Haible  <bruno@clisp.org>
34815             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34816
34817         lib-ignore: Determine different options for different compilers.
34818         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34819         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34820         Add comments.
34821         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34822         * NEWS: Mention the change.
34823
34824 2010-03-27  Bruno Haible  <bruno@clisp.org>
34825
34826         Remove unused GNULIB_XYZ macro definitions.
34827         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34828         * modules/fseek (configure.ac): Likewise.
34829         * modules/ioctl (configure.ac): Likewise.
34830         * modules/open (configure.ac): Likewise.
34831         * modules/stdlib-safer (configure.ac): Likewise.
34832
34833 2010-03-27  Bruno Haible  <bruno@clisp.org>
34834
34835         Add a remark about certain modules.
34836         * modules/malloc (Comment): New section.
34837         * modules/realloc (Comment): Likewise.
34838         * modules/sigpipe (Comment): Likewise.
34839
34840 2010-03-27  Bruno Haible  <bruno@clisp.org>
34841
34842         Resolve conflict between the two kinds of module indicators.
34843         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34844         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34845         * modules/canonicalize (configure.ac): Invoke
34846         gl_MODULE_INDICATOR_FOR_TESTS.
34847         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34848         GNULIB_XYZ.
34849         * tests/test-dirent-c++.cc: Likewise.
34850         * tests/test-dirent-safer.c: Likewise.
34851         * tests/test-dup2.c: Likewise.
34852         * tests/test-fchdir.c: Likewise.
34853         * tests/test-fcntl-h-c++.cc: Likewise.
34854         * tests/test-getopt.c: Likewise.
34855         * tests/test-getopt.h: Likewise.
34856         * tests/test-langinfo-c++.cc: Likewise.
34857         * tests/test-locale-c++.cc: Likewise.
34858         * tests/test-math-c++.cc: Likewise.
34859         * tests/test-pty-c++.cc: Likewise.
34860         * tests/test-search-c++.cc: Likewise.
34861         * tests/test-signal-c++.cc: Likewise.
34862         * tests/test-spawn-c++.cc: Likewise.
34863         * tests/test-stdio-c++.cc: Likewise.
34864         * tests/test-stdlib-c++.cc: Likewise.
34865         * tests/test-string-c++.cc: Likewise.
34866         * tests/test-sys_ioctl-c++.cc: Likewise.
34867         * tests/test-sys_select-c++.cc: Likewise.
34868         * tests/test-sys_socket-c++.cc: Likewise.
34869         * tests/test-sys_stat-c++.cc: Likewise.
34870         * tests/test-sys_time-c++.cc: Likewise.
34871         * tests/test-time-c++.cc: Likewise.
34872         * tests/test-unistd-c++.cc: Likewise.
34873         * tests/test-wchar-c++.cc: Likewise.
34874         * tests/uninorm/test-u8-nfc.c: Likewise.
34875         * tests/uninorm/test-u8-nfd.c: Likewise.
34876         * tests/uninorm/test-u8-nfkc.c: Likewise.
34877         * tests/uninorm/test-u8-nfkd.c: Likewise.
34878         * tests/uninorm/test-u16-nfc.c: Likewise.
34879         * tests/uninorm/test-u16-nfd.c: Likewise.
34880         * tests/uninorm/test-u16-nfkc.c: Likewise.
34881         * tests/uninorm/test-u16-nfkd.c: Likewise.
34882         * tests/uninorm/test-u32-nfc.c: Likewise.
34883         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34884         * tests/uninorm/test-u32-nfd.c: Likewise.
34885         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34886         * tests/uninorm/test-u32-nfkc.c: Likewise.
34887         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34888         * tests/uninorm/test-u32-nfkd.c: Likewise.
34889         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34890         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34891
34892 2010-03-27  Bruno Haible  <bruno@clisp.org>
34893
34894         Distinguish two kinds of module indicators.
34895         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34896         gl_MODULE_INDICATOR.
34897         (gl_MODULE_INDICATOR): New macro.
34898         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34899         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34900         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34901         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34902         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34903         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34904         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34905         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34906         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34907         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34908         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34909         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34912         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34913         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34914         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34915         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34916         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34917         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34918         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34919         * modules/cloexec (configure.ac): Likewise.
34920         * modules/getopt-gnu (configure.ac): Likewise.
34921         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34922         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34923         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34924         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34925
34926 2010-03-27  Bruno Haible  <bruno@clisp.org>
34927
34928         New module description field 'Comment'.
34929         * gnulib-tool: New option --extract-comment.
34930         (func_usage): Document it.
34931         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34932         (func_get_comment): New function.
34933         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34934
34935 2010-03-27  Bruno Haible  <bruno@clisp.org>
34936
34937         Addendum to 2010-02-07 commit.
34938         * gnulib-tool (func_usage): Document --extract-applicability option.
34939
34940 2010-03-27  Bruno Haible  <bruno@clisp.org>
34941
34942         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34943         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34944         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34945         rather than link errors.
34946
34947 2010-03-27  Bruno Haible  <bruno@clisp.org>
34948
34949         Avoid side effects from tests-related modules on the compilation of lib.
34950         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34951         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34952         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34953         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34954         macro.
34955         (func_import): Define a witness macro. Assign it a value that depends
34956         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34957         tests-related modules.
34958         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34959         Reported by Jim Meyering.
34960
34961 2010-03-27  Bruno Haible  <bruno@clisp.org>
34962
34963         Factorize common .m4 code.
34964         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34965         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34966         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34967         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34968         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34969         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34970         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34971         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34972         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34973         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34974         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34975         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34976         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34977         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34978         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34979         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34980         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34981         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34983         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34984         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34985         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34986         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34987         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34988         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34989         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34990         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34991         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34992         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34993         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34994         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34995         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34996
34997 2010-03-27  Bruno Haible  <bruno@clisp.org>
34998
34999         Fix a compilation error on Cygwin with g++ >= 4.3.
35000         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35001         if it is undefined or if we alias it to chmod.
35002         (lstat): Don't warn about the use of this function if it is undefined
35003         or if we alias it to stat.
35004         Reported by Simon Josefsson.
35005
35006 2010-03-27  Bruno Haible  <bruno@clisp.org>
35007
35008         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35009         * modules/getlogin (configure.ac): Update.
35010
35011         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35012         * modules/getlogin_r (configure.ac): Update.
35013
35014         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35016         * modules/inet_ntop (configure.ac): Update.
35017
35018         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35019         * modules/inet_pton (configure.ac): Update.
35020
35021         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35022         * modules/mbslen (configure.ac): Update.
35023
35024         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35025         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35026         * modules/forkpty (configure.ac): Update.
35027         * modules/openpty (configure.ac): Update.
35028
35029 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35030
35031         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35032         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35033
35034 2010-03-25  Eric Blake  <eblake@redhat.com>
35035
35036         maint: use pragma consistently across replacement headers
35037         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35038         * lib/dirent.in.h (system_header): Likewise.
35039         * lib/errno.in.h (system_header): Likewise.
35040         * lib/float.in.h (system_header): Likewise.
35041         * lib/getopt.in.h (system_header): Likewise.
35042         * lib/iconv.in.h (system_header): Likewise.
35043         * lib/inttypes.in.h (system_header): Likewise.
35044         * lib/langinfo.in.h (system_header): Likewise.
35045         * lib/locale.in.h (system_header): Likewise.
35046         * lib/math.in.h (system_header): Likewise.
35047         * lib/netdb.in.h (system_header): Likewise.
35048         * lib/netinet_in.in.h (system_header): Likewise.
35049         * lib/pty.in.h (system_header): Likewise.
35050         * lib/sched.in.h (system_header): Likewise.
35051         * lib/se-selinux.in.h (system_header): Likewise.
35052         * lib/search.in.h (system_header): Likewise.
35053         * lib/spawn.in.h (system_header): Likewise.
35054         * lib/stdarg.in.h (system_header): Likewise.
35055         * lib/stdint.in.h (system_header): Likewise.
35056         * lib/string.in.h (system_header): Likewise.
35057         * lib/strings.in.h (system_header): Likewise.
35058         * lib/sys_file.in.h (system_header): Likewise.
35059         * lib/sys_ioctl.in.h (system_header): Likewise.
35060         * lib/sys_socket.in.h (system_header): Likewise.
35061         * lib/sys_times.in.h (system_header): Likewise.
35062         * lib/sys_utsname.in.h (system_header): Likewise.
35063         * lib/sys_wait.in.h (system_header): Likewise.
35064         * lib/sysexits.in.h (system_header): Likewise.
35065         * lib/unistd.in.h (system_header): Likewise.
35066         * lib/wctype.in.h (system_header): Likewise.
35067
35068         arpa/inet: fix mingw compilation warning
35069         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35070         Reported by Matthew Bolte.
35071
35072 2010-03-25  Bruno Haible  <bruno@clisp.org>
35073
35074         Avoid collision between gnulib wrapper and libintl wrapper.
35075         * lib/printf.c (printf): Don't define if a printf wrapper is already
35076         defined in intl/printf.c.
35077         Reported by Michel Boaventura <michel@michelboaventura.com>.
35078
35079 2010-03-25  Bruno Haible  <bruno@clisp.org>
35080
35081         Use ANSI C.
35082         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35083
35084 2010-03-25  Bruno Haible  <bruno@clisp.org>
35085
35086         Minor formatting changes.
35087         * lib/acosl.c: Insert space before function argument list.
35088         * lib/argz.c: Likewise.
35089         * lib/asinl.c: Likewise.
35090         * lib/expl.c: Likewise.
35091         * lib/gen-uni-tables.c: Likewise.
35092         * lib/gettext.h: Likewise.
35093         * lib/glthread/lock.h: Likewise.
35094         * lib/tanl.c: Likewise.
35095         * lib/uniname/uniname.c: Likewise.
35096         * tests/test-idpriv-drop.c: Likewise.
35097         * tests/test-idpriv-droptemp.c: Likewise.
35098         * tests/test-lock.c: Likewise.
35099         * tests/test-tls.c: Likewise.
35100         * lib/argp-help.c: Insert space before function-like macro argument
35101         list.
35102         * lib/memcmp.c: Likewise.
35103         * tests/test-base64.c: Likewise.
35104         * lib/localename.c: Insert space before sizeof's argument list.
35105         * lib/safe-alloc.h: Likewise.
35106         * lib/file-set.h: Insert space before macro argument list.
35107         * tests/test-argp.c: Likewise.
35108         * lib/argp-namefrob.h: Insert space before function parameter list.
35109         * lib/getaddrinfo.c: Likewise.
35110         * lib/netdb.in.h: Likewise.
35111         * lib/parse-duration.h: Likewise.
35112         * lib/parse-duration.c: Likewise.
35113         * lib/poll.c: Likewise.
35114         * lib/select.c: Likewise.
35115         * lib/trim.h: Likewise.
35116         * tests/test-usleep.c: Likewise.
35117         * lib/ldexpl.c: Insert space before function parameter list and before
35118         function argument list.
35119         * lib/logl.c: Likewise.
35120         * lib/sqrtl.c: Likewise.
35121         * lib/trim.c: Likewise.
35122         * lib/cosl.c: Use GNU style indentation. Insert space before function
35123         argument list.
35124         * lib/sinl.c: Likewise.
35125         * lib/tsearch.c: Insert space after 'for'.
35126         Reported by Jim Meyering.
35127
35128 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35129
35130         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35131         config header before grepping, as it's not present before
35132         autoreconf/configure are run.  Reported by Simon Josefsson.
35133
35134 2010-03-23  Bruno Haible  <bruno@clisp.org>
35135
35136         pt_chown: Make it work with automake < 1.11.
35137         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35138         Reported by Simon Josefsson.
35139
35140 2010-03-23  Bruno Haible  <bruno@clisp.org>
35141
35142         pt_chown: Don't depend on GPLed modules.
35143         * lib/pt_chown.c: Don't include idpriv.h.
35144         (main): Don't drop privileges.
35145         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35146         Reported by Simon Josefsson.
35147
35148 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35149
35150         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35151         suggestions from karl@freefriends.org (Karl Berry).
35152
35153 2010-03-22  Eric Blake  <eblake@redhat.com>
35154
35155         gethostname: further tweaks
35156         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35157         are overriding gethostname.
35158         Suggested by Bruno Haible.
35159
35160 2010-03-21  Bruno Haible  <bruno@clisp.org>
35161
35162         Fix comments.
35163         * lib/forkpty.c (rpl_forkpty): Fix comment.
35164         * lib/openpty.c (rpl_openpty): Likewise.
35165         Reported by Eric Blake.
35166
35167 2010-03-22  Eric Blake  <eblake@redhat.com>
35168
35169         gethostname: fix build on mingw
35170         * lib/unistd.in.h (includes): Work around fact that mingw
35171         <winsock2.h> re-includes <unistd.h>, by avoiding any
35172         redeclarations if we are being included by <winsock2.h>.
35173         Reported by Matthias Bolte.
35174
35175 2010-03-21  Bruno Haible  <bruno@clisp.org>
35176
35177         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35178         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35179         modifications.
35180         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35181         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35182         provide the replacement.
35183         * modules/forkpty (Depends-on): Add openpty, login_tty.
35184         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35185         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35186         * doc/glibc-functions/forkpty.texi: More supported platforms.
35187         * config/srclist.txt: Add forkpty.c (commented).
35188
35189 2010-03-21  Bruno Haible  <bruno@clisp.org>
35190
35191         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35192         (Makefile.am): Verify that PTY_LIB is defined.
35193
35194         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35195
35196 2010-03-21  Bruno Haible  <bruno@clisp.org>
35197
35198         Tests for module 'login_tty'.
35199         * modules/login_tty-tests: New file.
35200         * tests/test-login_tty.c: New file.
35201
35202         New module 'login_tty'.
35203         * lib/login_tty.c: New file.
35204         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35205         * modules/login_tty: New file.
35206         * doc/glibc-functions/login_tty.texi: Mention the new module.
35207
35208 2010-03-21  Bruno Haible  <bruno@clisp.org>
35209
35210         login_tty: Documentation.
35211         * doc/glibc-functions/login_tty.texi: New file.
35212         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35213
35214 2010-03-21  Bruno Haible  <bruno@clisp.org>
35215
35216         pty: Consistent macro naming.
35217         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35218         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35219         * modules/pty (configure.ac): Update.
35220
35221 2010-03-21  Bruno Haible  <bruno@clisp.org>
35222
35223         Tests for openpty: Make stricter.
35224         * tests/test-openpty.c (main): Add test of canonical processing and
35225         erase.
35226         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35227
35228         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35229         * lib/openpty.c (openpty): New replacement function.
35230         * lib/pty.in.h: Include <termios.h>.
35231         (openpty): Update declaration. Add comments.
35232         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35233         is not declared, arrange to provide the replacement. Check for _getpty
35234         and posix_openpt.
35235         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35236         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35237         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35238         * modules/pty-tests (test_pty_c___LDADD): New variable.
35239         * doc/glibc-functions/openpty.texi: More supported platforms.
35240
35241 2010-03-21  Bruno Haible  <bruno@clisp.org>
35242
35243         setenv: Tweaks.
35244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35245         the test program.
35246         * doc/posix-functions/setenv.texi: Update platforms list.
35247
35248 2010-03-21  Bruno Haible  <bruno@clisp.org>
35249
35250         New module 'unlockpt'.
35251         * lib/unlockpt.c: New file, from glibc with modifications.
35252         * m4/unlockpt.m4: New file.
35253         * modules/unlockpt: New file.
35254         * lib/stdlib.in.h (unlockpt): New declaration.
35255         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35256         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35257         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35258         HAVE_UNLOCKPT.
35259         * doc/posix-functions/unlockpt.texi: Mention the new module.
35260         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35261         * config/srclist.txt: Add unlockpt.c (commented).
35262
35263 2010-03-21  Jim Meyering  <meyering@redhat.com>
35264
35265         maint.mk: prohibit inclusion of "intprops.h" without use
35266         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35267
35268 2010-03-21  Bruno Haible  <bruno@clisp.org>
35269
35270         New module 'grantpt'.
35271         * lib/grantpt.c: New file, from glibc with modifications.
35272         * m4/grantpt.m4: New file.
35273         * modules/grantpt: New file.
35274         * lib/stdlib.in.h (grantpt): New declaration.
35275         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35276         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35277         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35278         HAVE_GRANTPT.
35279         * doc/posix-functions/grantpt.texi: Mention the new module.
35280         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35281         * config/srclist.txt: Add grantpt.c (commented).
35282
35283 2010-03-21  Bruno Haible  <bruno@clisp.org>
35284
35285         New module 'pt_chown'.
35286         * lib/pt_chown.c: New file, from glibc with modifications.
35287         * lib/pty-private.h: New file, from glibc with modifications.
35288         * modules/pt_chown: New file.
35289         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35290
35291 2010-03-21  Bruno Haible  <bruno@clisp.org>
35292
35293         Tests for module 'ptsname'.
35294         * modules/ptsname-tests: New file.
35295         * tests/test-ptsname.c: New file.
35296
35297         New module 'ptsname'.
35298         * lib/ptsname.c: New file, from glibc with modifications.
35299         * m4/ptsname.m4: New file.
35300         * modules/ptsname: New file.
35301         * lib/stdlib.in.h (ptsname): New declaration.
35302         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35303         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35304         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35305         HAVE_PTSNAME.
35306         * doc/posix-functions/ptsname.texi: Mention the new module.
35307         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35308         * config/srclist.txt: Add ptsname.c (commented).
35309
35310 2010-03-21  Bruno Haible  <bruno@clisp.org>
35311
35312         Tests for module 'ttyname_r'.
35313         * modules/ttyname_r-tests: New file.
35314         * tests/test-ttyname_r.c: New file.
35315
35316         New module 'ttyname_r'.
35317         * lib/ttyname_r.c: New file.
35318         * m4/ttyname_r.m4: New file.
35319         * modules/ttyname_r: New file.
35320         * lib/unistd.in.h (ttyname_r): New declaration.
35321         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35322         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35323         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35324         HAVE_TTYNAME_R.
35325         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35326         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35327
35328 2010-03-20  Bruno Haible  <bruno@clisp.org>
35329
35330         signal: Undefine macro definitions in C++ mode.
35331         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35332         sigfillset): Undefine macro definitions from the system header in C++
35333         mode.
35334         Reported by John W. Eaton <jwe@gnu.org>.
35335
35336 2010-03-20  Bruno Haible  <bruno@clisp.org>
35337
35338         Ensure no #include statements inside extern "C" { ... }.
35339         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35340         contain #include statements.
35341         * lib/time.in.h: Likewise.
35342
35343 2010-03-20  Bruno Haible  <bruno@clisp.org>
35344
35345         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35346         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35347         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35348         Reported by John W. Eaton <jwe@gnu.org>.
35349
35350 2010-03-20  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35353         Reported by Jim Meyering.
35354
35355 2010-03-20  Bruno Haible  <bruno@clisp.org>
35356
35357         pipe: Set errno upon failure.
35358         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35359         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35360         errno value in error message.
35361
35362 2010-03-20  Bruno Haible  <bruno@clisp.org>
35363             Jim Meyering  <meyering@redhat.com>
35364
35365         lchown: Avoid "unused variable" warning.
35366         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35367
35368 2010-03-20  Bruno Haible  <bruno@clisp.org>
35369
35370         Work around unlink() bug on MacOS X 10.5.6.
35371         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35372         attempting to unlink a parent directory.
35373         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35374         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35375         activate for the replacement function.
35376         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35377
35378 2010-03-20  Bruno Haible  <bruno@clisp.org>
35379
35380         Fix link errors on Solaris 8.
35381         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35382         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35383
35384 2010-03-19  Jim Meyering  <meyering@redhat.com>
35385
35386         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35387         The _LIBC implementation of build_range_exp correctly honors the
35388         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35389         However, the non-_LIBC implementation would ignore that syntax-bit
35390         flag and return REG_ERANGE unconditionally.
35391         This change makes it honor that flag.
35392         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35393         Make two pointer parameters "const".
35394         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35395         (parse_bracket_exp): Update caller.
35396
35397         regex.m4: correct the reversed range endpoint ([b-a]) test
35398         * m4/regex.m4: When requiring that [b-a] evoke failure,
35399         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35400         test pass once again for x86-based systems.
35401
35402 2010-03-19  Bruno Haible  <bruno@clisp.org>
35403
35404         scandir: Fix link error on Solaris 8.
35405         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35406         macros.
35407
35408 2010-03-19  Bruno Haible  <bruno@clisp.org>
35409
35410         getusershell: Fix documentation.
35411         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35412         module.
35413         * doc/glibc-functions/setusershell.texi: Likewise.
35414
35415         getusershell: Provide declaration, missing on Solaris 9.
35416         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35417         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35418         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35419         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35421         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35422         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35423         HAVE_GETUSERSHELL.
35424         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35425
35426 2010-03-19  Bruno Haible  <bruno@clisp.org>
35427
35428         wctype: Provide iswblank function.
35429         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35430         exists and is fine.
35431         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35432         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35433         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35434         * doc/posix-functions/iswblank.texi: Update.
35435
35436 2010-03-19  Bruno Haible  <bruno@clisp.org>
35437
35438         Tests of module 'pty' in C++ mode.
35439         * modules/pty-tests: New file.
35440         * tests/test-pty-c++.cc: New file.
35441         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35442
35443 2010-03-19  Eric Blake  <eblake@redhat.com>
35444
35445         logb: fix documentation
35446         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35447         1.5 declaration bug.
35448
35449         forkpty, openpty: prefer glibc's const-safe prototype
35450         * lib/forkpty.c (rpl_forkpty): New file.
35451         * lib/openpty.c (rpl_openpty): Likewise.
35452         * modules/forkpty (Files): Distribute it.
35453         * modules/openpty (Files): Likewise.
35454         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35455         check...
35456         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35457         replacement for for non-const BSD signature.
35458         * modules/pty (Makefile.am): Substitute witnesses.
35459         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35460         * tests/test-forkpty.c: Update signature check.
35461         * tests/test-openpty.c: Likewise.
35462         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35463         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35464
35465         forkpty, openpty: split functions into new modules
35466         * modules/pty (Makefile.am): Substitute new witnesses.
35467         (Libraries): Move library detection...
35468         * modules/forkpty: ...into new module.
35469         * modules/openpty: Another new module.
35470         * modules/pty-tests: Rename and split...
35471         * modules/forkpty-tests: ...to this...
35472         * modules/openpty-tests: ...and this.
35473         * tests/test-pty.c: Rename and split...
35474         * tests/test-forkpty.c: ...to this...
35475         * tests/test-openpty.c: ...and this.
35476         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35477         (gl_PTY): Split library searching...
35478         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35479         (gl_FORKPTY, gl_OPENPTY): New macros.
35480         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35481         * NEWS: Mention the split.
35482         * MODULES.html.sh (Misc): Document the modules.
35483         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35484         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35485
35486         pty: improve replacement header
35487         * lib/pty.in.h: New file.
35488         * modules/pty (Files): Ship it.
35489         (Makefile.am): Always build replacement.
35490         * m4/pty.m4: Rename...
35491         * m4/pty_h.m4: ...to this.
35492         (gl_PTY): Modernize setting of witness macros; update check of
35493         forkpty to take proper advantage of cache.
35494         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35495
35496         getopt: avoid compiler warning
35497         * lib/getopt.c (attribute_hidden): Remove unused macro.
35498
35499 2010-03-18  Bruno Haible  <bruno@clisp.org>
35500
35501         Fix link errors on Solaris 8.
35502         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35503         * modules/search-tests (test_search_c___LDADD): Likewise.
35504         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35505         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35506         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35507         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35508         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35509         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35510         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35511
35512 2010-03-18  Bruno Haible  <bruno@clisp.org>
35513
35514         Fix bug introduced on 2010-03-14.
35515         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35516         (gl_SPAWN_H): Require it.
35517         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35518         Reported by Simon Josefsson.
35519
35520 2010-03-18  Bruno Haible  <bruno@clisp.org>
35521
35522         Fix typo introduced on 2009-12-31.
35523         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35524         posix_spawn_file_actions_adddup2.
35525
35526 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35527         and Eric Blake  <eblake@redhat.com>
35528
35529         test-vc-list-files-git: make more robust
35530         * tests/test-vc-list-files-git.sh: Unset problematic environment
35531         variables.  Chain commands together.
35532
35533 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35534
35535         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35536         `AC_CHECK_DECL' invocation.
35537
35538 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35539
35540         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35541         appears before executable statements. Suggested by Petr Sumbera
35542         <Petr.Sumbera@Sun.COM>.
35543
35544 2010-03-14  Bruno Haible  <bruno@clisp.org>
35545
35546         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35547         portability problems. Instead use a simpler test.
35548         (main): Check that invalid arguments are rejected only on Linux.
35549
35550 2010-03-14  Bruno Haible  <bruno@clisp.org>
35551
35552         Fix bug introduced on 2009-12-31.
35553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35554         gl_PREREQ_SYS_H_WINSOCK2 always.
35555         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35556         SYS_SOCKET_H variable.
35557         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35558         Update comments.
35559         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35560         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35563         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35564
35565 2010-03-14  Bruno Haible  <bruno@clisp.org>
35566
35567         Fix values returned by sinl, cosl.
35568         * lib/trigl.h: Add specification comments.
35569         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35570         that combines the values from the precomputed table with the values of
35571         the Chebyshev polynomials.
35572
35573 2010-03-14  Bruno Haible  <bruno@clisp.org>
35574
35575         Fix compilation error when modules 'posix_spawn[p]' are not used.
35576         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35578
35579 2010-03-14  Bruno Haible  <bruno@clisp.org>
35580
35581         Fix compilation error on mingw when module 'time_r' is not used.
35582         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35583         is 1.
35584         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35585         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35586         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35588
35589 2010-03-14  Bruno Haible  <bruno@clisp.org>
35590
35591         Fix compilation error with Sun C.
35592         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35593         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35594         instead of GCC specific ULONG_LONG_MAX.
35595         * lib/xstrtoll.c: Likewise.
35596         * lib/xstrtoull.c: Likewise.
35597
35598 2010-03-13  Bruno Haible  <bruno@clisp.org>
35599
35600         Allow the user to disable C++ code and tests.
35601         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35602         (gl_PROG_ANSI_CXX): Require it.
35603
35604 2010-03-13  Bruno Haible  <bruno@clisp.org>
35605
35606         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35607         cases.
35608
35609 2010-03-13  Bruno Haible  <bruno@clisp.org>
35610
35611         Test that gnulib does not break the standard C++ headers.
35612         * tests/test-locale-c++2.cc: New file.
35613         * modules/locale-tests (Files): Add it.
35614         (Makefile.am): Compile it for test-locale-c++.
35615         * tests/test-math-c++2.cc: New file.
35616         * modules/math-tests (Files): Add it.
35617         (Makefile.am): Compile it for test-math-c++.
35618         * tests/test-signal-c++2.cc: New file.
35619         * modules/signal-tests (Files): Add it.
35620         (Makefile.am): Compile it for test-signal-c++.
35621         * tests/test-stdio-c++2.cc: New file.
35622         * modules/stdio-tests (Files): Add it.
35623         (Makefile.am): Compile it for test-stdio-c++.
35624         * tests/test-stdlib-c++2.cc: New file.
35625         * modules/stdlib-tests (Files): Add it.
35626         (Makefile.am): Compile it for test-stdlib-c++.
35627         * tests/test-string-c++2.cc: New file.
35628         * modules/string-tests (Files): Add it.
35629         (Makefile.am): Compile it for test-string-c++.
35630         * tests/test-time-c++2.cc: New file.
35631         * modules/time-tests (Files): Add it.
35632         (Makefile.am): Compile it for test-time-c++.
35633         Reported by John W. Eaton <jwe@gnu.org>.
35634
35635 2010-03-13  Bruno Haible  <bruno@clisp.org>
35636
35637         * gnulib-tool (func_usage): Clarify which options are available for
35638         --create-testdir and --create-megatestdir.
35639
35640 2010-03-13  Bruno Haible  <bruno@clisp.org>
35641
35642         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35643         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35644         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35645         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35646         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35647         when appropriate.
35648         Reported by Jim Meyering.
35649
35650 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35651
35652         * gnulib-tool (func_import): Explain origin of code.
35653
35654 2010-03-12  Bruno Haible  <bruno@clisp.org>
35655
35656         Fix problem with automake's definition of CXXLINK.
35657         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35658         Reported by Simon Josefsson and Ludovic Courtès.
35659
35660 2010-03-12  Bruno Haible  <bruno@clisp.org>
35661
35662         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35663         stable releases.
35664
35665 2010-03-11  Bruno Haible  <bruno@clisp.org>
35666
35667         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35668         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35669         whether the system provides one variant or multiple variants of the
35670         function.
35671         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35672         C++ compilers.
35673         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35674         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35675         Reported by Jim Meyering.
35676
35677 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35678
35679         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35680
35681 2010-03-08  Bruno Haible  <bruno@clisp.org>
35682
35683         gnulib-tool: Add support for --libtool in --create-testdir.
35684         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35685         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35686
35687 2010-03-08  Eric Blake  <eblake@redhat.com>
35688
35689         gnulib-tool.texi: mention possibility of git submodule
35690         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35691         submodules.
35692         * doc/.gitignore: Ignore another generated file.
35693
35694 2010-03-08  Karl Berry  <karl@gnu.org>
35695
35696         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35697         of committing gnulib files while skipping others.
35698
35699 2010-03-07  Bruno Haible  <bruno@clisp.org>
35700
35701         Tests of module 'wctype' in C++ mode.
35702         * tests/test-wctype-c++.cc: New file.
35703         * modules/wctype-tests (Files): Add it and tests/signature.h.
35704         (Depends-on): Add ansi-c++-opt.
35705         (Makefile.am): Arrange to compile and run test-wctype-c++.
35706
35707         Tests of module 'wchar' in C++ mode.
35708         * tests/test-wchar-c++.cc: New file.
35709         * modules/wchar-tests (Files): Add it and tests/signature.h.
35710         (Depends-on): Add ansi-c++-opt.
35711         (Makefile.am): Arrange to compile and run test-wchar-c++.
35712         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35713         gl_MODULE_INDICATOR.
35714
35715         Tests of module 'unistd' in C++ mode.
35716         * tests/test-unistd-c++.cc: New file.
35717         * modules/unistd-tests (Files): Add it and tests/signature.h.
35718         (Depends-on): Add ansi-c++-opt.
35719         (Makefile.am): Arrange to compile and run test-unistd-c++.
35720         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35721         gl_MODULE_INDICATOR.
35722
35723         Tests of module 'time' in C++ mode.
35724         * tests/test-time-c++.cc: New file.
35725         * modules/time-tests (Files): Add it and tests/signature.h.
35726         (Depends-on): Add ansi-c++-opt.
35727         (Makefile.am): Arrange to compile and run test-time-c++.
35728         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35729
35730         Tests of module 'sys_time' in C++ mode.
35731         * tests/test-sys_time-c++.cc: New file.
35732         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35733         (Depends-on): Add ansi-c++-opt.
35734         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35735         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35736         gl_MODULE_INDICATOR.
35737
35738         Tests of module 'sys_stat' in C++ mode.
35739         * tests/test-sys_stat-c++.cc: New file.
35740         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35741         (Depends-on): Add ansi-c++-opt.
35742         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35743         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35744         gl_MODULE_INDICATOR.
35745
35746         Tests of module 'sys_socket' in C++ mode.
35747         * tests/test-sys_socket-c++.cc: New file.
35748         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35749         (Depends-on): Add ansi-c++-opt.
35750         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35752         gl_MODULE_INDICATOR.
35753
35754         Tests of module 'sys_select' in C++ mode.
35755         * tests/test-sys_select-c++.cc: New file.
35756         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35757         (Depends-on): Add ansi-c++-opt.
35758         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35759         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35760         gl_MODULE_INDICATOR.
35761
35762         Tests of module 'sys_ioctl' in C++ mode.
35763         * tests/test-sys_ioctl-c++.cc: New file.
35764         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35765         (Depends-on): Add ansi-c++-opt.
35766         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35767         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35768         gl_MODULE_INDICATOR.
35769
35770         Tests of module 'string' in C++ mode.
35771         * tests/test-string-c++.cc: New file.
35772         * modules/string-tests (Files): Add it and tests/signature.h.
35773         (Depends-on): Add ansi-c++-opt.
35774         (Makefile.am): Arrange to compile and run test-string-c++.
35775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35776         gl_MODULE_INDICATOR.
35777
35778         Tests of module 'stdlib' in C++ mode.
35779         * tests/test-stdlib-c++.cc: New file.
35780         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35781         (Depends-on): Add ansi-c++-opt.
35782         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35783         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35784         gl_MODULE_INDICATOR.
35785
35786         Tests of module 'stdio' in C++ mode.
35787         * tests/test-stdio-c++.cc: New file.
35788         * modules/stdio-tests (Files): Add it and tests/signature.h.
35789         (Depends-on): Add ansi-c++-opt.
35790         (Makefile.am): Arrange to compile and run test-stdio-c++.
35791         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35792         gl_MODULE_INDICATOR.
35793
35794         Tests of module 'spawn' in C++ mode.
35795         * tests/test-spawn-c++.cc: New file.
35796         * modules/spawn-tests (Files): Add it and tests/signature.h.
35797         (Depends-on): Add ansi-c++-opt.
35798         (Makefile.am): Arrange to compile and run test-spawn-c++.
35799         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35800         gl_MODULE_INDICATOR.
35801
35802         Tests of module 'signal' in C++ mode.
35803         * tests/test-signal-c++.cc: New file.
35804         * modules/signal-tests (Files): Add it and tests/signature.h.
35805         (Depends-on): Add ansi-c++-opt.
35806         (Makefile.am): Arrange to compile and run test-signal-c++.
35807         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35808         gl_MODULE_INDICATOR.
35809
35810         Tests of module 'search' in C++ mode.
35811         * tests/test-search-c++.cc: New file.
35812         * modules/search-tests (Files): Add it and tests/signature.h.
35813         (Depends-on): Add ansi-c++-opt.
35814         (Makefile.am): Arrange to compile and run test-search-c++.
35815         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35816         gl_MODULE_INDICATOR.
35817
35818         Tests of module 'math' in C++ mode.
35819         * tests/test-math-c++.cc: New file.
35820         * modules/math-tests (Files): Add it and tests/signature.h.
35821         (Depends-on): Add ansi-c++-opt.
35822         (Makefile.am): Arrange to compile and run test-math-c++.
35823         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35824
35825         Tests of module 'locale' in C++ mode.
35826         * tests/test-locale-c++.cc: New file.
35827         * modules/locale-tests (Files): Add it and tests/signature.h.
35828         (Depends-on): Add ansi-c++-opt.
35829         (Makefile.am): Arrange to compile and run test-locale-c++.
35830         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35831         gl_MODULE_INDICATOR.
35832
35833         Tests of module 'langinfo' in C++ mode.
35834         * tests/test-langinfo-c++.cc: New file.
35835         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35836         (Depends-on): Add ansi-c++-opt.
35837         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35838         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35839         gl_MODULE_INDICATOR.
35840
35841         Tests of module 'iconv-h' in C++ mode.
35842         * tests/test-iconv-h-c++.cc: New file.
35843         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35844         (Depends-on): Add ansi-c++-opt.
35845         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35846
35847         Tests of module 'glob' in C++ mode.
35848         * tests/test-glob-c++.cc: New file.
35849         * modules/glob-tests (Files): Add it.
35850         (Depends-on): Add ansi-c++-opt.
35851         (Makefile.am): Arrange to compile and run test-glob-c++.
35852
35853         Tests of module 'fcntl-h' in C++ mode.
35854         * tests/test-fcntl-h-c++.cc: New file.
35855         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35856         (Depends-on): Add ansi-c++-opt.
35857         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35858         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35859         gl_MODULE_INDICATOR.
35860
35861         Tests of module 'dirent' in C++ mode.
35862         * tests/test-dirent-c++.cc: New file.
35863         * modules/dirent-tests (Files): Add it and tests/signature.h.
35864         (Depends-on): Add ansi-c++-opt.
35865         (Makefile.am): Arrange to compile and run test-dirent-c++.
35866         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35867         gl_MODULE_INDICATOR.
35868
35869         New module 'ansi-c++-opt'.
35870         * modules/ansi-c++-opt: New file.
35871         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35872
35873         Document C++ namespace mode.
35874         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35875
35876         wctype: Avoid #define replacements in C++ mode.
35877         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35878         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35879         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35880         In C++, define a namespaced alias symbol.
35881         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35882         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35883         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35884         rule.
35885
35886         wchar: Avoid #define replacements in C++ mode.
35887         * lib/wchar.in.h: Include c++defs.h.
35888         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35889         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35890         symbol.
35891         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35892         * modules/wchar (Depends-on): Add c++defs.
35893         (Makefile.am): Update wchar.h rule.
35894
35895         unistd: Avoid #define replacements in C++ mode.
35896         * lib/unistd.in.h: Include c++defs.h.
35897         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35898         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35899         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35900         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35901         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35902         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35903         symbol.
35904         (environ): Update.
35905         * modules/unistd (Depends-on): Add c++defs.
35906         (Makefile.am): Update unistd.h rule.
35907
35908         time: Avoid #define replacements in C++ mode.
35909         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35910         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35911         define a namespaced alias symbol.
35912         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35913         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35914         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35915         * modules/time (Depends-on): Add c++defs, warn-on-use.
35916         (Makefile.am): Update time.h rule.
35917         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35918         * modules/nanosleep (configure.ac): Likewise.
35919         * modules/strptime (configure.ac): Likewise.
35920         * modules/timegm (configure.ac): Likewise.
35921
35922         sys_time: Avoid #define replacements in C++ mode.
35923         * lib/sys_time.in.h: Include c++defs.h.
35924         (gettimeofday): In C++, define a namespaced alias symbol.
35925         * modules/sys_time (Depends-on): Add c++defs.
35926         (Makefile.am): Update sys/time.h rule.
35927
35928         sys_stat: Avoid #define replacements in C++ mode.
35929         * lib/sys_stat.in.h: Include c++defs.h.
35930         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35931         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35932         namespaced alias symbol.
35933         In C++, define a namespaced alias symbol.
35934         * modules/sys_stat (Depends-on): Add c++defs.
35935         (Makefile.am): Update sys/stat.h rule.
35936
35937         sys_socket: Avoid #define replacements in C++ mode.
35938         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35939         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35940         definitions also when the system has a <sys/socket.h>.
35941         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35942         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35943         In C++, define a namespaced alias symbol.
35944         * modules/sys_socket (Depends-on): Add c++defs.
35945         (Makefile.am): Update sys/socket.h rule.
35946
35947         sys_select: Avoid #define replacements in C++ mode.
35948         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35949         definitions also when the system has a <sys/select.h>.
35950         (select): In C++, define a namespaced alias symbol.
35951         * modules/sys_select (Depends-on): Add c++defs.
35952         (Makefile.am): Update sys/select.h rule.
35953
35954         sys_ioctl: Avoid #define replacements in C++ mode.
35955         * lib/sys_ioctl.in.h: Include c++defs.h.
35956         (ioctl): In C++, define a namespaced alias symbol.
35957         * modules/sys_ioctl (Depends-on): Add c++defs.
35958         (Makefile.am): Update sys/ioctl.h rule.
35959
35960         string: Avoid #define replacements in C++ mode.
35961         * lib/string.in.h: Include c++defs.h.
35962         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35963         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35964         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35965         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35966         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35967         * modules/string (Depends-on): Add c++defs.
35968         (Makefile.am): Update string.h rule.
35969
35970         stdlib: Avoid #define replacements in C++ mode.
35971         * lib/stdlib.in.h: Include c++defs.h.
35972         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35973         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35974         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35975         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35976         symbol.
35977         * modules/stdlib (Depends-on): Add c++defs.
35978         (Makefile.am): Update stdlib.h rule.
35979
35980         stdio: Avoid #define replacements in C++ mode.
35981         * lib/stdio.in.h: Include c++defs.h.
35982         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35983         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35984         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35985         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35986         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35987         namespaced alias symbol.
35988         * modules/stdio (Depends-on): Add c++defs.
35989         (Makefile.am): Update stdio.h rule.
35990
35991         spawn: Avoid #define replacements in C++ mode.
35992         * lib/spawn.in.h: Include c++defs.h.
35993         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35994         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35995         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35996         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35997         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35998         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35999         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36000         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36001         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36002         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36003         In C++, define a namespaced alias symbol.
36004         * modules/spawn (Depends-on): Add c++defs.
36005         (Makefile.am): Update spawn.h rule.
36006
36007         signal: Avoid #define replacements in C++ mode.
36008         * lib/signal.in.h: Include c++defs.h.
36009         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36010         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36011         namespaced alias symbol.
36012         * modules/signal (Depends-on): Add c++defs.
36013         (Makefile.am): Update signal.h rule.
36014
36015         search: Avoid #define replacements in C++ mode.
36016         * lib/search.in.h: Include c++defs.h.
36017         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36018         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36019         symbol.
36020         * modules/search (Depends-on): Add c++defs.
36021         (Makefile.am): Update search.h rule.
36022
36023         math: Avoid #define replacements in C++ mode.
36024         * lib/math.in.h: Include c++defs.h.
36025         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36026         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36027         trunc, truncl): In C++, define a namespaced alias symbol.
36028         * modules/math (Depends-on): Add c++defs.
36029         (Makefile.am): Update math.h rule.
36030
36031         locale: Avoid #define replacements in C++ mode.
36032         * lib/locale.in.h: Include c++defs.h.
36033         (duplocale): In C++, define a namespaced alias symbol.
36034         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36035         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36036         * modules/locale (Depends-on): Add c++defs.
36037         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36038
36039         langinfo: Avoid #define replacements in C++ mode.
36040         * lib/langinfo.in.h: Include c++defs.h.
36041         (nl_langinfo): In C++, define a namespaced alias symbol.
36042         * modules/langinfo (Depends-on): Add c++defs.
36043         (Makefile.am): Update langinfo.h rule.
36044
36045         iconv-h: Avoid #define replacements in C++ mode.
36046         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36047         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36048         symbol.
36049         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36050         whenever iconv is present.
36051         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36052         (Makefile.am): Update iconv.h rule.
36053
36054         glob: Avoid #define replacements in C++ mode.
36055         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36056         (_gl_glob_errfunc_fn): New type.
36057         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36058         symbol.
36059         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36060         (Makefile.am): Update glob.h rule.
36061
36062         fcntl-h: Avoid #define replacements in C++ mode.
36063         * lib/fcntl.in.h: Include c++defs.h.
36064         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36065         * modules/fcntl-h (Depends-on): Add c++defs.
36066         (Makefile.am): Update fcntl.h rule.
36067
36068         dirent: Avoid #define replacements in C++ mode.
36069         * lib/dirent.in.h: Include c++defs.h.
36070         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36071         namespaced alias symbol.
36072         (dirfd): Update declaration.
36073         * modules/dirent (Depends-on): Add c++defs.
36074         (Makefile.am): Update dirent.h rule.
36075
36076         ctype: Make it usable in C++ code.
36077         * lib/ctype.in.h: Include c++defs.h.
36078         (isblank): Declare as extern "C".
36079         * modules/ctype (Depends-on): Add c++defs.
36080         (Makefile.am): Update ctype.h rule.
36081
36082         New module 'c++defs'.
36083         * modules/c++defs: New file.
36084         * build-aux/c++defs.h: New file.
36085         Reported by John W. Eaton <jwe@gnu.org>.
36086
36087 2010-03-07  Bruno Haible  <bruno@clisp.org>
36088
36089         logb: Provide missing declaration for Cygwin.
36090         * lib/math.in.h (logb): New declaration.
36091         * m4/logb.m4: New file.
36092         * modules/logb (Files): Add m4/logb.m4.
36093         (Depends-on): Add math.
36094         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36095         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36097         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36098         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36099
36100 2010-03-07  Bruno Haible  <bruno@clisp.org>
36101
36102         Fix test-cond link error.
36103         * tests/test-cond.c: Include <stdio.h>.
36104
36105 2010-03-07  Bruno Haible  <bruno@clisp.org>
36106
36107         Fix test-dirent-safer link error.
36108         * modules/dirent-safer-tests (Makefile.am): Define
36109         test_dirent_safer_LDADD.
36110
36111 2010-03-07  Bruno Haible  <bruno@clisp.org>
36112
36113         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36114         among default module list.
36115
36116 2010-03-07  Bruno Haible  <bruno@clisp.org>
36117
36118         Fix link error on platforms with GNU libiconv.
36119         * modules/unistr/u8-strcoll-tests (Makefile): Define
36120         test_u8_strcoll_LDADD.
36121         * modules/unistr/u16-strcoll-tests (Makefile): Define
36122         test_u16_strcoll_LDADD.
36123         * modules/unistr/u32-strcoll-tests (Makefile): Define
36124         test_u32_strcoll_LDADD.
36125
36126 2010-03-07  Bruno Haible  <bruno@clisp.org>
36127
36128         Use POSIX declarations for socket functions.
36129         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36130         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36131         rpl_sendto): Change declaration to match POSIX.
36132         * lib/connect.c (rpl_connect): Likewise.
36133         * lib/accept.c (rpl_accept): Likewise.
36134         * lib/bind.c (rpl_bind): Likewise.
36135         * lib/getpeername.c (rpl_getpeername): Likewise.
36136         * lib/getsockname.c (rpl_getsockname): Likewise.
36137         * lib/recv.c (rpl_recv): Likewise.
36138         * lib/send.c (rpl_send): Likewise.
36139         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36140         * lib/sendto.c (rpl_sendto): Likewise.
36141
36142 2010-03-06  Bruno Haible  <bruno@clisp.org>
36143
36144         Clarify access, euidaccess, faccessat.
36145         * doc/posix-functions/faccessat.texi: Mention security problem under
36146         "Other problems", not "Portability problems".
36147         * doc/posix-functions/access.texi: Likewise. Mention a related security
36148         problem.
36149         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36150         * lib/euidaccess.c: Add comments about platforms.
36151         * lib/unistd.in.h (access, euidaccess): Add warnings.
36152
36153 2010-03-07  Bruno Haible  <bruno@clisp.org>
36154
36155         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36156         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36157         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36158         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36159         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36160         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36161         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36162         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36163         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36164         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36165         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36166         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36167         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36168         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36169         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36170         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36171         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36172         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36173         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36174         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36175         Likewise.
36176         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36177         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36178         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36179         Likewise.
36180         * tests/test-spawn.c (main): Make it work when
36181         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36182
36183 2010-03-07  Bruno Haible  <bruno@clisp.org>
36184
36185         Fix incorrect Makefile.am generation in German locale.
36186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36187         Execute sed command with character range in C locale.
36188
36189 2010-03-06  Bruno Haible  <bruno@clisp.org>
36190
36191         Tests for module 'iconv-h'.
36192         * modules/iconv-h-tests: New file.
36193         * tests/test-iconv-h.c: New file.
36194
36195         New module 'iconv-h'.
36196         * modules/iconv-h: New file.
36197         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36198         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36199         (configure.ac): Remove gl_ICONV_H.
36200         (Makefile.am): Remove rule for iconv.h.
36201
36202 2010-03-06  Bruno Haible  <bruno@clisp.org>
36203
36204         More consistent naming of *.m4 files.
36205         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36206         * modules/wctype (Files): Update.
36207
36208         More consistent naming of *.m4 files.
36209         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36210         * modules/wchar (Files): Update.
36211
36212 2010-03-06  Jim Meyering  <meyering@redhat.com>
36213
36214         euidaccess: relax license to LGPLv2+
36215         * modules/euidaccess (License): Relax to LGPLv2+.
36216
36217 2010-03-06  Bruno Haible  <bruno@clisp.org>
36218
36219         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36220         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36221         (Makefile.am): Augment lib_SOURCES instead.
36222
36223 2010-03-04  Jim Meyering  <meyering@redhat.com>
36224
36225         utime: remove obsolete module
36226         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36227         unnecessary for years, and has been marked as obsolete for 10 months.
36228         * modules/utime: Remove file.
36229         * lib/utime.c: Remove file.
36230         * m4/utime.m4: Remove file.
36231         * m4/utimes-null.m4: Remove file.
36232         * doc/posix-functions/utime.texi (utime): Remove reference to
36233         the module.  Move the sole "fixed by gnulib" item into the
36234         "problems not fixed by Gnulib" list.
36235         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36236
36237 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36238
36239         * modules/exit (License): Relax license to LGPLv2+.
36240         (Status): Mark as obsolete.
36241         * NEWS: Mention deprecated 'exit' module.
36242         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36243         of now obsolete 'exit'.
36244
36245 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36246
36247         fts-lgpl: remove unused module
36248         * modules/fts-lgpl: Remove.
36249         * MODULES.html.sh (func_all_modules): Adjust.
36250         * check-module (find_included_lib_files): Adjust.
36251         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36252
36253 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36254
36255         copy-acl: enhance Solaris ACL error handling
36256         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36257         * lib/set-mode-acl.c (qset_acl): Likewise.
36258
36259 2010-03-02  Bruno Haible  <bruno@clisp.org>
36260
36261         spawn: Don't override the system defined values on FreeBSD 8.
36262         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36263         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36264         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36265         if HAVE_POSIX_SPAWN is 1.
36266         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36267
36268 2010-03-01  Bruno Haible  <bruno@clisp.org>
36269
36270         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36271         regarding Automake.
36272
36273 2010-02-25  Bruno Haible  <bruno@clisp.org>
36274
36275         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36276         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36277         setting, not afterwards.
36278         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36279
36280 2010-02-24  Eric Blake  <eblake@redhat.com>
36281
36282         bootstrap, git-version-gen: use timestamp
36283         * build-aux/git-version-gen (scriptversion): Force UTC.
36284         * build-aux/bootstrap (scriptversion): New variable.
36285
36286         bootstrap: allow older git
36287         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36288         older than 1.6.4.  Requested by the libvirt project.
36289
36290 2010-02-23  Eric Blake  <eblake@redhat.com>
36291
36292         warn-on-use: work with old autoconf
36293         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36294         AS_VAR semantics of autoconf 2.60.
36295         Reported by Bruno Haible.
36296
36297         bootstrap: improve some comments
36298         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36299         clarification comments.
36300
36301         gettimeofday: provide correct function
36302         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36303         when replacement is declared, otherwise provide gettimeofday.
36304         Reported by Michael Goffioul.
36305
36306 2010-02-23  Jim Meyering  <meyering@redhat.com>
36307
36308         lib-ignore: relax license to "unlimited", not LGPLv2+
36309         * modules/lib-ignore (License): Relax to "unlimited".
36310
36311 2010-02-23  Jim Meyering  <meyering@redhat.com>
36312
36313         lib-ignore: relax license to LGPLv2+
36314         * modules/lib-ignore (License): Relax to LGPLv2+.
36315
36316 2010-02-22  Eric Blake  <eblake@redhat.com>
36317
36318         lseek: avoid bash 3.2 broken pipe bug
36319         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36320         warning from bash 3.2.
36321         Reported by Ben Pfaff, with analysis from Bruno Haible.
36322
36323         bootstrap: support non-FSF copyright holder
36324         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36325         bootstrap.conf override of COPYRIGHT_HOLDER.
36326         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36327
36328         bootstrap: interoperate with gettext 0.14.1
36329         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36330
36331         bootstrap: allow for alternate submodule location
36332         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36333         hardcoding submodule location.
36334         (gnulib_mk): Allow direct use of Makefile.am.
36335
36336         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36337         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36338         rather than reconfiguring where the submodule points.
36339
36340         gettimeofday: restore support for platforms that lack function
36341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36342         replacement if function is missing.
36343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36344         * modules/sys_time (Makefile.am): Substitute it.
36345         * lib/sys_time.in.h (gettimeofday): Check it.
36346         Reported by Michael Goffioul.
36347
36348 2010-02-21  Bruno Haible  <bruno@clisp.org>
36349
36350         * lib/stdio.in.h (obstack_printf): Fix typo.
36351
36352 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36353
36354         vc-list-files: use bzr ls's -R option
36355         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36356         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36357
36358 2010-02-21  Jim Meyering  <meyering@redhat.com>
36359
36360         init.sh: fix EXEEXT shims to work also for names like test-prog
36361         * tests/init.sh: Re-exec a better shell, when needed.
36362         If the current shell lacks support for posix $(...), an init.sh-using
36363         test will now try to find a shell that supports that.  If EXEEXT is
36364         nonempty, we also require support for hyphen-in-alias-name and shell
36365         substitutions like ${var#glob}.  Failure to find such a shell results
36366         in a skipped test.
36367
36368 2010-02-21  Bruno Haible  <bruno@clisp.org>
36369
36370         Really work around around "broken pipe" error message from bash 3.2.
36371         * gnulib-tool (func_reset_sigpipe): Remove function.
36372         (echo): In bash 3.2, define to a function that uses printf.
36373         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36374
36375 2010-02-20  Bruno Haible  <bruno@clisp.org>
36376
36377         Restore support for automake 1.9.6 with autoconf 2.61.
36378         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36379         Reported by James Youngman <jay@gnu.org>.
36380
36381 2010-02-20  Bruno Haible  <bruno@clisp.org>
36382
36383         Improve *printf warning condition.
36384         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36385         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36386         and the function is overridden due to SIGPIPE emulation.
36387
36388 2010-02-20  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/stdio.in.h: Tweak comments.
36391
36392 2010-02-19  Bruno Haible  <bruno@clisp.org>
36393
36394         Make it easier to find modules. New gnulib-tool option '--find'.
36395         * gnulib-tool: New option --find.
36396         (func_usage): Document it.
36397         (func_sanitize_modulelist): New function, extracted from
36398         func_all_modules.
36399         (func_all_modules): Invoke it.
36400         * doc/gnulib-tool.texi (Which modules?): New node.
36401
36402 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36403
36404         * lib/sys_select.in.h: Provide select replacement even if
36405         sys/select.h exists on a system, for Interix.
36406
36407 2010-02-18  Jim Meyering  <meyering@redhat.com>
36408
36409         init.sh: don't use $(...) just yet
36410         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36411         to accommodate e.g., Solaris' /bin/sh.
36412
36413 2010-02-17  Bruno Haible  <bruno@clisp.org>
36414
36415         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36416         Reported by Ludovic Courtès <ludo@gnu.org>.
36417
36418 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36419
36420         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36421         linking with -lintl.
36422
36423 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36424
36425         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36426         if not provided by the system's netdb.h.  Reported by
36427         ludo@gnu.org (Ludovic Courtès).
36428
36429 2010-02-15  Jim Meyering  <meyering@redhat.com>
36430
36431         init.sh: improve portability and efficiency
36432         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36433         "dummy" in a for loop.
36434         Use '!', not '^' to select the complement of a character set used
36435         in a "case" statement.
36436         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36437         Suggestions from Eric Blake.
36438
36439         init.sh: automatically accommodate programs with the .exe suffix
36440         Automatically arrange for an invocation of "prog" to execute the
36441         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36442         may use the simpler "prog", yet still work when built on a system
36443         that requires specifying the added suffix.
36444         Do this by constructing a function named "prog" that invokes
36445         "prog.exe" for each .exe file in selected directories.
36446         * tests/init.sh (find_exe_basenames_): New function.
36447         (create_exe_shim_functions_): New function.
36448         (path_prepend_): Use it.
36449
36450         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36451         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36452         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36453
36454 2010-02-14  Jim Meyering  <meyering@redhat.com>
36455
36456         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36457         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36458         (sc_prohibit_hash_pjw_without_use): New rule.
36459
36460         maint.mk: allow the default upload destination dir to be overridden
36461         * top/maint.mk (upload_dest_dir_): Define with a default that
36462         preserves the status quo.
36463         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36464         Reported by Peter Simons.
36465
36466         maint.mk: prohibit inclusion of "hash.h" without_use
36467         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36468
36469 2010-02-10  Jim Meyering  <meyering@redhat.com>
36470
36471         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36472         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36473
36474 2010-02-09  Eric Blake  <ebb9@byu.net>
36475         and Bruno Haible  <bruno@clisp.org>
36476
36477         obstack-printf-posix: ensure declaration
36478         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36479         extracted from gl_FUNC_OBSTACK_PRINTF.
36480         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36482         Likewise.
36483         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36484         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36485         0.
36486
36487 2010-02-08  Bruno Haible  <bruno@clisp.org>
36488
36489         gnulib-tool: Fix typo in 2010-02-07 commit.
36490         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36491         Reported by Eric Blake.
36492
36493 2010-02-07  Bruno Haible  <bruno@clisp.org>
36494
36495         gnulib-tool: Fix up caching patches.
36496         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36497         option --no-cache. Use associative arrays when supported by the shell.
36498         (sed_comments): New variable.
36499         (modcache): Renamed from do_cache.
36500         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36501         abbreviate unnecessarily.
36502         (have_associative): New variable.
36503         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36504         way also for ksh and zsh.
36505         (func_init_sed_convert_to_cache_statements): New function, extracted
36506         from func_cache_lookup_module. Add support for associative arrays.
36507         Don't set the c_MODULE_cached variable here. Ignore all lines before
36508         the first field header. Remove only the final newline, not all trailing
36509         newlines. Support empty fields correctly. Limit the use of 'eval' to
36510         assignments.
36511         (func_get_description, func_get_status, func_get_notice,
36512         func_get_applicability, func_get_filelist, func_get_dependencies,
36513         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36514         func_get_automake_snippet, func_get_include_directive,
36515         func_get_link_directive, func_get_license, func_get_maintainer):
36516         Update documentation. List the unoptimized code first. Add support for
36517         associative arrays. Limit the use of 'eval' to assignments.
36518         (func_get_applicability): Undo stylistic pessimisations.
36519         (func_get_automake_snippet, func_get_include_directive): Reduce code
36520         duplication.
36521         (func_modules_transitive_closure, func_modules_add_dummy,
36522         func_modules_notice, func_modules_to_filelist, func_add_file,
36523         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36524         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36525         func_create_testdir, func_create_megatestdir): Update documentation.
36526
36527 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36528
36529         * gnulib-tool (func_cache_lookup_module): Store the module name
36530         belonging to the cache variable; error out if two different
36531         module names map to the same cache variable name.
36532
36533 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36534
36535         gnulib-tool: Make caching optional.
36536         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36537         Update matching short versions of --no-changelog.
36538         (func_usage): Update.
36539         (sed_extract_cache_prog): Renamed from ...
36540         (sed_extract_prog): ... this; revert to old extraction script.
36541         (func_get_description, func_get_status)
36542         (func_get_notice, func_get_applicability, func_get_filelist)
36543         (func_get_dependencies, func_get_autoconf_early_snippet)
36544         (func_get_autoconf_snippet, func_get_automake_snippet)
36545         (func_get_include_directive, func_get_link_directive)
36546         (func_get_license, func_get_maintainer): If $do_cache is false,
36547         use old, non-caching extraction scripts.
36548         Suggestion by Bruno Haible.
36549
36550 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36551
36552         gnulib-tool: cache module metainformation.
36553         * gnulib-tool (sed_extract_prog): Match newline before each
36554         header, and rewrite header to a shell variable suffix.
36555         (func_cache_var, func_cache_lookup_module): New functions,
36556         to turn a module name into a cache variable prefix, and to
36557         look up and cache module metainformation.
36558         (func_get_description, func_get_status)
36559         (func_get_notice, func_get_applicability, func_get_filelist)
36560         (func_get_dependencies, func_get_autoconf_early_snippet)
36561         (func_get_autoconf_snippet, func_get_automake_snippet)
36562         (func_get_include_directive, func_get_link_directive)
36563         (func_get_license, func_get_maintainer): Use
36564         func_cache_lookup_module.
36565
36566 2010-02-07  Bruno Haible  <bruno@clisp.org>
36567
36568         fnctl: Fix missing dependency.
36569         * modules/fcntl (Depends-on): Add getdtablesize.
36570         Reported by John W. Eaton <jwe@gnu.org>.
36571
36572 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36573
36574         Argp: fix recognition of short alias options.
36575
36576         * lib/argp-parse.c (convert_options): Fix improper use of
36577         `|' between character values.
36578         * tests/test-argp.c (group1_option): New alias option
36579         --read (-r).
36580         (group1_parser): Special handling for 'r'.
36581         (test15): New test case.
36582         (test_fun): Add test15.
36583         * tests/test-argp-2.sh: Update expected --help and --usage
36584         outputs.
36585
36586 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36587
36588         * tests/test-argp.c: Fix indentation.
36589
36590 2010-02-04  Eric Blake  <ebb9@byu.net>
36591
36592         gettimeofday: expose type of second argument
36593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36594         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36595         * tests/test-gettimeofday.c: Use it to silence warning.
36596         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36597         the issue.
36598
36599 2010-02-03  Jim Meyering  <meyering@redhat.com>
36600
36601         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36602         * lib/regcomp.c (TYPE_SIGNED): Define.
36603         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36604
36605         regcomp.c: avoid a new -Wshadow warning
36606         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36607
36608 2010-02-01  Jim Meyering  <meyering@redhat.com>
36609
36610         removing useless parentheses in cpp #define directives
36611         For motivation, see commit c0221df4, "define STREQ(a,b)
36612         consistently, removing useless parentheses"
36613         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36614         * lib/mountlist.c (MNT_IGNORE): Likewise.
36615         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36616
36617 2010-02-01  Eric Blake  <ebb9@byu.net>
36618
36619         sys_time: use link-warning
36620         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36621         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36622         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36623         * modules/sys_time (Depends-on): Add warn-on-use.
36624         (Makefile.am): Always build replacement.
36625         (configure.ac): Update substitutions.
36626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36627         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36628         bother with SYS_TIME_H.
36629         * modules/gettimeofday (configure.ac): Declare indicator.
36630         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36631         in use.
36632
36633         closein-tests: silence compiler warning
36634         * tests/test-closein.c (main): Ignore fread result.
36635         * modules/closein-tests (Depends-on): Add ignore-value.
36636
36637         tests: silence warning about system return
36638         * tests/test-areadlink-with-size.c (main): Ignore system result.
36639         * tests/test-areadlink.c (main): Likewise.
36640         * tests/test-areadlinkat-with-size.c (main): Likewise.
36641         * tests/test-areadlinkat.c (main): Likewise.
36642         * tests/test-canonicalize-lgpl.c (main): Likewise.
36643         * tests/test-canonicalize.c (main): Likewise.
36644         * tests/test-chown.c (main): Likewise.
36645         * tests/test-fchownat.c (main): Likewise.
36646         * tests/test-fdutimensat.c (main): Likewise.
36647         * tests/test-fstatat.c (main): Likewise.
36648         * tests/test-futimens.c (main): Likewise.
36649         * tests/test-lchown.c (main): Likewise.
36650         * tests/test-link.c (main): Likewise.
36651         * tests/test-linkat.c (main): Likewise.
36652         * tests/test-lstat.c (main): Likewise.
36653         * tests/test-mkdir.c (main): Likewise.
36654         * tests/test-mkdirat.c (main): Likewise.
36655         * tests/test-mkfifo.c (main): Likewise.
36656         * tests/test-mkfifoat.c (main): Likewise.
36657         * tests/test-mknod.c (main): Likewise.
36658         * tests/test-readlink.c (main): Likewise.
36659         * tests/test-remove.c (main): Likewise.
36660         * tests/test-rename.c (main): Likewise.
36661         * tests/test-renameat.c (main): Likewise.
36662         * tests/test-rmdir.c (main): Likewise.
36663         * tests/test-symlink.c (main): Likewise.
36664         * tests/test-symlinkat.c (main): Likewise.
36665         * tests/test-unlink.c (main): Likewise.
36666         * tests/test-unlinkat.c (main): Likewise.
36667         * tests/test-utimens.c (main): Likewise.
36668         * tests/test-utimensat.c (main): Likewise.
36669         * modules/areadlink-tests (Depends-on): Add ignore-value.
36670         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36671         * modules/areadlinkat-tests (Depends-on): Likewise.
36672         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36673         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36674         * modules/canonicalize-tests (Depends-on): Likewise.
36675         * modules/chown-tests (Depends-on): Likewise.
36676         * modules/fdutimensat-tests (Depends-on): Likewise.
36677         * modules/futimens-tests (Depends-on): Likewise.
36678         * modules/lchown-tests (Depends-on): Likewise.
36679         * modules/link-tests (Depends-on): Likewise.
36680         * modules/linkat-tests (Depends-on): Likewise.
36681         * modules/lstat-tests (Depends-on): Likewise.
36682         * modules/mkdir-tests (Depends-on): Likewise.
36683         * modules/mkfifo-tests (Depends-on): Likewise.
36684         * modules/mkfifoat-tests (Depends-on): Likewise.
36685         * modules/mknod-tests (Depends-on): Likewise.
36686         * modules/openat-tests (Depends-on): Likewise.
36687         * modules/readlink-tests (Depends-on): Likewise.
36688         * modules/remove-tests (Depends-on): Likewise.
36689         * modules/rename-tests (Depends-on): Likewise.
36690         * modules/renameat-tests (Depends-on): Likewise.
36691         * modules/rmdir-tests (Depends-on): Likewise.
36692         * modules/symlink-tests (Depends-on): Likewise.
36693         * modules/symlinkat-tests (Depends-on): Likewise.
36694         * modules/unlink-tests (Depends-on): Likewise.
36695         * modules/utimens-tests (Depends-on): Likewise.
36696         * modules/utimensat-tests (Depends-on): Likewise.
36697
36698 2010-01-31  Bruno Haible  <bruno@clisp.org>
36699
36700         Perform the same test for many <math.h> functions.
36701         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36702         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36703         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36704         of gl_MATHFUNC.
36705         * modules/acos (configure.ac): Likewise.
36706         * modules/asin (configure.ac): Likewise.
36707         * modules/atan (configure.ac): Likewise.
36708         * modules/atan2 (configure.ac): Likewise.
36709         * modules/cbrt (configure.ac): Likewise.
36710         * modules/copysign (configure.ac): Likewise.
36711         * modules/cos (configure.ac): Likewise.
36712         * modules/cosh (configure.ac): Likewise.
36713         * modules/erf (configure.ac): Likewise.
36714         * modules/erfc (configure.ac): Likewise.
36715         * modules/exp (configure.ac): Likewise.
36716         * modules/fmod (configure.ac): Likewise.
36717         * modules/hypot (configure.ac): Likewise.
36718         * modules/j0 (configure.ac): Likewise.
36719         * modules/j1 (configure.ac): Likewise.
36720         * modules/jn (configure.ac): Likewise.
36721         * modules/lgamma (configure.ac): Likewise.
36722         * modules/log (configure.ac): Likewise.
36723         * modules/log10 (configure.ac): Likewise.
36724         * modules/log1p (configure.ac): Likewise.
36725         * modules/pow (configure.ac): Likewise.
36726         * modules/remainder (configure.ac): Likewise.
36727         * modules/sin (configure.ac): Likewise.
36728         * modules/sinh (configure.ac): Likewise.
36729         * modules/tan (configure.ac): Likewise.
36730         * modules/tanh (configure.ac): Likewise.
36731         * modules/y0 (configure.ac): Likewise.
36732         * modules/y1 (configure.ac): Likewise.
36733         * modules/yn (configure.ac): Likewise.
36734         Suggested by Paolo Bonzini.
36735
36736 2010-01-31  Bruno Haible  <bruno@clisp.org>
36737
36738         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36739
36740 2010-01-31  Bruno Haible  <bruno@clisp.org>
36741
36742         Work around getdelim() bug on FreeBSD 8.0.
36743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36744         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36745         not work.
36746         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36747         is 1.
36748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36749         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36750         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36751         a non-zero size.
36752         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36753
36754 2010-01-31  Bruno Haible  <bruno@clisp.org>
36755
36756         Work around getline() bug on FreeBSD 8.0.
36757         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36758         and a non-zero size.
36759         * tests/test-getline.c (main): Likewise.
36760         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36761         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36762
36763 2010-01-28  Eric Blake  <ebb9@byu.net>
36764
36765         regex: fix build failure
36766         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36767         platforms.
36768
36769 2010-01-28  Jim Meyering  <meyering@redhat.com>
36770
36771         regex: do not ignore memory allocation failure
36772         * lib/regex_internal.c (create_cd_newstate): Detect
36773         re_node_set_init_copy failure.   Extracted from glibc commit
36774         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36775
36776         regex: sync more white-space changes from libc
36777         * lib/regex_internal.c: White-space only changes.
36778         * lib/regexec.c: Likewise.
36779
36780         regex: add many uses of __attribute_warn_unused_result__
36781         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36782         * lib/regexec.c: Likewise.
36783         Extracted from a messy glibc commit.
36784
36785         regcomp.c: spelling and merge-artifact from glibc
36786         * lib/regcomp.c: Merge remainder of glibc's
36787         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36788
36789         regcomp.c: sync white-space changes from glibc
36790         * lib/regcomp.c: Merge to accommodate white space
36791         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36792
36793         regcomp.c: do not ignore internal return values
36794         * lib/regcomp.c: Do not ignore internal return values.
36795         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36796         but without its white-space changes and spelling fixes.
36797
36798         regex_internal.h: define __attribute_warn_unused_result__
36799         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36800
36801         maint: add a syntax-check rule to check for vulnerable Makefile.in
36802         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36803
36804 2010-01-27  Jim Meyering  <meyering@redhat.com>
36805
36806         ncftpput-ftp: clean up spaces
36807         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36808         Remove trailing blanks.
36809
36810 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36811
36812         * build-aux/git-version-gen: Fix copyright statement.
36813         * build-aux/gnupload: Likewise.
36814         * tests/test-arcfour.c: Likewise.
36815         * tests/test-arctwo.c: Likewise.
36816         * tests/test-count-one-bits.c: Likewise.
36817         * tests/test-crc.c: Likewise.
36818         * tests/test-des.c: Likewise.
36819         * tests/test-gc-arcfour.c: Likewise.
36820         * tests/test-gc-arctwo.c: Likewise.
36821         * tests/test-gc-des.c: Likewise.
36822         * tests/test-gc-hmac-md5.c: Likewise.
36823         * tests/test-gc-hmac-sha1.c: Likewise.
36824         * tests/test-gc-md2.c: Likewise.
36825         * tests/test-gc-md4.c: Likewise.
36826         * tests/test-gc-md5.c: Likewise.
36827         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36828         * tests/test-gc-rijndael.c: Likewise.
36829         * tests/test-gc-sha1.c: Likewise.
36830         * tests/test-gc.c: Likewise.
36831         * tests/test-gethostname.c: Likewise.
36832         * tests/test-gettimeofday.c: Likewise.
36833         * tests/test-hash.c: Likewise.
36834         * tests/test-hmac-md5.c: Likewise.
36835         * tests/test-hmac-sha1.c: Likewise.
36836         * tests/test-md2.c: Likewise.
36837         * tests/test-md4.c: Likewise.
36838         * tests/test-md5.c: Likewise.
36839         * tests/test-memchr.c: Likewise.
36840         * tests/test-memchr2.c: Likewise.
36841         * tests/test-memcmp.c: Likewise.
36842         * tests/test-memmem.c: Likewise.
36843         * tests/test-memrchr.c: Likewise.
36844         * tests/test-rawmemchr.c: Likewise.
36845         * tests/test-read-file.c: Likewise.
36846         * tests/test-rijndael.c: Likewise.
36847         * tests/test-sockets.c: Likewise.
36848         * tests/test-strchrnul.c: Likewise.
36849         * tests/test-strstr.c: Likewise.
36850         * tests/test-strtod.c: Likewise.
36851         * build-aux/ncftpput-ftp: Likewise.
36852
36853 2010-01-26  Eric Blake  <ebb9@byu.net>
36854
36855         ignore-value: update recommended header name
36856         * modules/ignore-value (Include): Only use <> for headers that
36857         exist in glibc.
36858
36859 2010-01-26  Jim Meyering  <meyering@redhat.com>
36860
36861         test-userspec.c: avoid compiler warnings
36862         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36863         and "initialization discards qualifiers..." warnings.
36864         Put the first "uid" in its own scope, and make char* members "const".
36865
36866 2010-01-25  Bruno Haible  <bruno@clisp.org>
36867
36868         gnulib-tool: Make warning diagnostics consistent.
36869         * gnulib-tool (func_warning): New function.
36870         Use it everywhere where gnulib-tool produces output to stderr and it is
36871         not a fatal error.
36872
36873 2010-01-25  Bruno Haible  <bruno@clisp.org>
36874
36875         Fix test dependencies.
36876         * modules/xstrtol-tests (Depends-on): Add inttypes.
36877         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36878
36879 2010-01-25 Pádraig Brady <P@draigBrady.com>
36880
36881         syntax-check: detect incorrect boolean macro values in config.h
36882         * modules/maintainer-makefile (configure.ac): Parameterize the location
36883         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36884         The logic is from Eric Blake and the location indicated by Jim Meyering.
36885         Note the more natural CONFIG_HEADER name is prohibited by automake
36886         for backwards compatibility reasons.
36887         * top/maint.mk (sc_Wundef_boolean): New rule.
36888
36889 2010-01-25  Jim Meyering  <meyering@redhat.com>
36890
36891         bootstrap: detect MacOS 10.6's shasum, too
36892         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36893         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36894
36895 2010-01-23  Jim Meyering  <meyering@redhat.com>
36896
36897         xstrtoll: new module
36898         * modules/xstrtoll: New file.
36899         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36900         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36901         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36902         ./configure fails if you use this module and lack "long long".
36903         * modules/xstrtoll-tests: New module.
36904         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36905         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36906         new init.sh-based test framework.
36907
36908 2010-01-24  Bruno Haible  <bruno@clisp.org>
36909
36910         Tests for module 'yn'.
36911         * modules/yn-tests: New file.
36912         * tests/test-yn.c: New file.
36913
36914         Tests for module 'y1'.
36915         * modules/y1-tests: New file.
36916         * tests/test-y1.c: New file.
36917
36918         Tests for module 'y0'.
36919         * modules/y0-tests: New file.
36920         * tests/test-y0.c: New file.
36921
36922         Tests for module 'tanh'.
36923         * modules/tanh-tests: New file.
36924         * tests/test-tanh.c: New file.
36925
36926         Tests for module 'tan'.
36927         * modules/tan-tests: New file.
36928         * tests/test-tan.c: New file.
36929
36930         Tests for module 'sqrt'.
36931         * modules/sqrt-tests: New file.
36932         * tests/test-sqrt.c: New file.
36933
36934         Tests for module 'sinh'.
36935         * modules/sinh-tests: New file.
36936         * tests/test-sinh.c: New file.
36937
36938         Tests for module 'sin'.
36939         * modules/sin-tests: New file.
36940         * tests/test-sin.c: New file.
36941
36942         Tests for module 'rint'.
36943         * modules/rint-tests: New file.
36944         * tests/test-rint.c: New file.
36945
36946         Tests for module 'remainder'.
36947         * modules/remainder-tests: New file.
36948         * tests/test-remainder.c: New file.
36949
36950         Tests for module 'pow'.
36951         * modules/pow-tests: New file.
36952         * tests/test-pow.c: New file.
36953
36954         Tests for module 'nextafter'.
36955         * modules/nextafter-tests: New file.
36956         * tests/test-nextafter.c: New file.
36957
36958         Tests for module 'modf'.
36959         * modules/modf-tests: New file.
36960         * tests/test-modf.c: New file.
36961
36962         Tests for module 'logb'.
36963         * modules/logb-tests: New file.
36964         * tests/test-logb.c: New file.
36965
36966         Tests for module 'log1p'.
36967         * modules/log1p-tests: New file.
36968         * tests/test-log1p.c: New file.
36969
36970         Tests for module 'log10'.
36971         * modules/log10-tests: New file.
36972         * tests/test-log10.c: New file.
36973
36974         Tests for module 'log'.
36975         * modules/log-tests: New file.
36976         * tests/test-log.c: New file.
36977
36978         Tests for module 'lgamma'.
36979         * modules/lgamma-tests: New file.
36980         * tests/test-lgamma.c: New file.
36981
36982         Tests for module 'ldexp'.
36983         * modules/ldexp-tests: New file.
36984         * tests/test-ldexp.c: New file.
36985
36986         Tests for module 'jn'.
36987         * modules/jn-tests: New file.
36988         * tests/test-jn.c: New file.
36989
36990         Tests for module 'j1'.
36991         * modules/j1-tests: New file.
36992         * tests/test-j1.c: New file.
36993
36994         Tests for module 'j0'.
36995         * modules/j0-tests: New file.
36996         * tests/test-j0.c: New file.
36997
36998         Tests for module 'hypot'.
36999         * modules/hypot-tests: New file.
37000         * tests/test-hypot.c: New file.
37001
37002         Tests for module 'fmod'.
37003         * modules/fmod-tests: New file.
37004         * tests/test-fmod.c: New file.
37005
37006         Tests for module 'fabs'.
37007         * modules/fabs-tests: New file.
37008         * tests/test-fabs.c: New file.
37009
37010         Tests for module 'exp'.
37011         * modules/exp-tests: New file.
37012         * tests/test-exp.c: New file.
37013
37014         Tests for module 'erfc'.
37015         * modules/erfc-tests: New file.
37016         * tests/test-erfc.c: New file.
37017
37018         Tests for module 'erf'.
37019         * modules/erf-tests: New file.
37020         * tests/test-erf.c: New file.
37021
37022         Tests for module 'cosh'.
37023         * modules/cosh-tests: New file.
37024         * tests/test-cosh.c: New file.
37025
37026         Tests for module 'cos'.
37027         * modules/cos-tests: New file.
37028         * tests/test-cos.c: New file.
37029
37030         Tests for module 'copysign'.
37031         * modules/copysign-tests: New file.
37032         * tests/test-copysign.c: New file.
37033
37034         Tests for module 'cbrt'.
37035         * modules/cbrt-tests: New file.
37036         * tests/test-cbrt.c: New file.
37037
37038         Tests for module 'atan2'.
37039         * modules/atan2-tests: New file.
37040         * tests/test-atan2.c: New file.
37041
37042         Tests for module 'atan'.
37043         * modules/atan-tests: New file.
37044         * tests/test-atan.c: New file.
37045
37046         Tests for module 'asin'.
37047         * modules/asin-tests: New file.
37048         * tests/test-asin.c: New file.
37049
37050         Tests for module 'acos'.
37051         * modules/acos-tests: New file.
37052         * tests/test-acos.c: New file.
37053
37054 2010-01-24  Bruno Haible  <bruno@clisp.org>
37055
37056         Fix tests for common <math.h> functions.
37057         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37058         code snippet that references the function pointer, rather than merely
37059         calling the function. Substitute the FUNC_LIBM variable.
37060         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37061         * modules/acos (configure.ac): Likewise.
37062         * modules/asin (configure.ac): Likewise.
37063         * modules/atan (configure.ac): Likewise.
37064         * modules/atan2 (configure.ac): Likewise.
37065         * modules/cbrt (configure.ac): Likewise.
37066         * modules/copysign (configure.ac): Likewise.
37067         * modules/cos (configure.ac): Likewise.
37068         * modules/cosh (configure.ac): Likewise.
37069         * modules/erf (configure.ac): Likewise.
37070         * modules/erfc (configure.ac): Likewise.
37071         * modules/exp (configure.ac): Likewise.
37072         * modules/fabs (configure.ac): Likewise.
37073         * modules/fmod (configure.ac): Likewise.
37074         * modules/hypot (configure.ac): Likewise.
37075         * modules/j0 (configure.ac): Likewise.
37076         * modules/j1 (configure.ac): Likewise.
37077         * modules/jn (configure.ac): Likewise.
37078         * modules/ldexp (configure.ac): Likewise.
37079         * modules/lgamma (configure.ac): Likewise.
37080         * modules/log (configure.ac): Likewise.
37081         * modules/log10 (configure.ac): Likewise.
37082         * modules/log1p (configure.ac): Likewise.
37083         * modules/logb (configure.ac): Likewise.
37084         * modules/modf (configure.ac): Likewise.
37085         * modules/nextafter (configure.ac): Likewise.
37086         * modules/pow (configure.ac): Likewise.
37087         * modules/remainder (configure.ac): Likewise.
37088         * modules/rint (configure.ac): Likewise.
37089         * modules/sin (configure.ac): Likewise.
37090         * modules/sinh (configure.ac): Likewise.
37091         * modules/tan (configure.ac): Likewise.
37092         * modules/tanh (configure.ac): Likewise.
37093         * modules/y0 (configure.ac): Likewise.
37094         * modules/y1 (configure.ac): Likewise.
37095         * modules/yn (configure.ac): Likewise.
37096
37097 2010-01-24  Bruno Haible  <bruno@clisp.org>
37098
37099         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37100         * tests/test-acosl.c (x): New variable.
37101         (main): Store argument in x and fetch it from x.
37102         * tests/test-asinl.c (x): New variable.
37103         (main): Store argument in x and fetch it from x.
37104         * tests/test-atanl.c (x): New variable.
37105         (main): Store argument in x and fetch it from x.
37106         * tests/test-cosl.c (x): New variable.
37107         (main): Store argument in x and fetch it from x.
37108         * tests/test-expl.c (x): New variable.
37109         (main): Store argument in x and fetch it from x.
37110         * tests/test-logl.c (x): New variable.
37111         (main): Store argument in x and fetch it from x.
37112         * tests/test-sinl.c (x): New variable.
37113         (main): Store argument in x and fetch it from x.
37114         * tests/test-sqrtl.c (x): New variable.
37115         (main): Store argument in x and fetch it from x.
37116         * tests/test-tanl.c (x): New variable.
37117         (main): Store argument in x and fetch it from x.
37118
37119 2010-01-24  Bruno Haible  <bruno@clisp.org>
37120
37121         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37122         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37123         assignments to the initial TESTS_ENVIRONMENT.
37124         * doc/gnulib.texi (Unit test modules): Document it.
37125         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37126         TESTS_ENVIRONMENT.
37127         * modules/btowc-tests (Makefile.am): Likewise.
37128         * modules/c-stack-tests (Makefile.am): Likewise.
37129         * modules/c-strcase-tests (Makefile.am): Likewise.
37130         * modules/copy-file-tests (Makefile.am): Likewise.
37131         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37132         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37133         * modules/mbrtowc-tests (Makefile.am): Likewise.
37134         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37135         * modules/mbscasestr-tests (Makefile.am): Likewise.
37136         * modules/mbschr-tests (Makefile.am): Likewise.
37137         * modules/mbscspn-tests (Makefile.am): Likewise.
37138         * modules/mbsinit-tests (Makefile.am): Likewise.
37139         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37140         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37141         * modules/mbspbrk-tests (Makefile.am): Likewise.
37142         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37143         * modules/mbsrchr-tests (Makefile.am): Likewise.
37144         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37145         * modules/mbsspn-tests (Makefile.am): Likewise.
37146         * modules/mbsstr-tests (Makefile.am): Likewise.
37147         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37148         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37149         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37150         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37151         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37152         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37153         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37154         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37155         * modules/wcrtomb-tests (Makefile.am): Likewise.
37156         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37157         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37158         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37159         assignments from TESTS_ENVIRONMENT.
37160         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37161         augmentation.
37162         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37163         * modules/atexit-tests (Makefile.am): Likewise.
37164         * modules/binary-io-tests (Makefile.am): Likewise.
37165         * modules/closein-tests (Makefile.am): Likewise.
37166         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37167         * modules/exclude-tests (Makefile.am): Likewise.
37168         * modules/fflush-tests (Makefile.am): Likewise.
37169         * modules/fpending-tests (Makefile.am): Likewise.
37170         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37171         * modules/freadahead-tests (Makefile.am): Likewise.
37172         * modules/freadptr-tests (Makefile.am): Likewise.
37173         * modules/freadseek-tests (Makefile.am): Likewise.
37174         * modules/fseek-tests (Makefile.am): Likewise.
37175         * modules/fseeko-tests (Makefile.am): Likewise.
37176         * modules/ftell-tests (Makefile.am): Likewise.
37177         * modules/ftello-tests (Makefile.am): Likewise.
37178         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37179         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37180         * modules/lseek-tests (Makefile.am): Likewise.
37181         * modules/parse-duration-tests (Makefile.am): Likewise.
37182         * modules/perror-tests (Makefile.am): Likewise.
37183         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37184         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37185         * modules/pipe-tests (Makefile.am): Likewise.
37186         * modules/pread-tests (Makefile.am): Likewise.
37187         * modules/printf-posix-tests (Makefile.am): Likewise.
37188         * modules/select-tests (Makefile.am): Likewise.
37189         * modules/sigpipe-tests (Makefile.am): Likewise.
37190         * modules/tsearch-tests (Makefile.am): Likewise.
37191         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37192         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37193         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37194         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37195         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37196         * modules/version-etc-tests (Makefile.am): Likewise.
37197         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37198         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37199         * modules/xalloc-die-tests (Makefile.am): Likewise.
37200         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37201         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37202         * modules/xstrtol-tests (Makefile.am): Likewise.
37203         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37204         * modules/yesno-tests (Makefile.am): Likewise.
37205         Suggested by Jim Meyering.
37206
37207 2010-01-24  Bruno Haible  <bruno@clisp.org>
37208
37209         More documentation.
37210         * doc/gnulib.texi (Writing modules): New chapter.
37211         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37212         the new chapter.
37213
37214 2010-01-24  Jim Meyering  <meyering@redhat.com>
37215
37216         maint.mk: do not prepend "./" after filtering
37217         * top/maint.mk (_prepend_srcdir_prefix): New variable
37218         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37219         "./" when $(srcdir) is ".".
37220
37221         define STREQ(a,b) consistently, removing useless parentheses
37222         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37223         since the only risk is that "a" or "b" contains an unparenthesized
37224         comma, but if either did that, STREQ would have 3 or more arguments.
37225         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37226         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37227         * lib/hash-triple.c (STREQ): Likewise.
37228         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37229         * lib/getugroups.c (STREQ): Likewise.
37230
37231 2010-01-23  Jim Meyering  <meyering@redhat.com>
37232
37233         maint.mk: fix syntax-check in a non-srcdir build directory
37234         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37235         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37236
37237 2010-01-22  Jim Meyering  <meyering@redhat.com>
37238
37239         userspec: add unit tests
37240         * tests/test-userspec.c: New file.
37241         * modules/userspec-tests: Likewise.
37242
37243 2010-01-21  Jim Meyering  <meyering@redhat.com>
37244
37245         maint.mk: handle source file names containing "." robustly
37246         * top/maint.mk (_dot_escaped_srcdir): Define.
37247         (VC_LIST): Use it in LHS of sed substitution.
37248
37249 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37250
37251         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37252         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37253         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37254         from a non-srcdir build.
37255
37256 2010-01-20  Eric Blake  <ebb9@byu.net>
37257
37258         warn-on-use: use instead of link-warning
37259         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37260         * modules/unistd (Depends-on, Makefile.am): Likewise.
37261         * modules/arpa_inet (Depends-on): Replace link-warning with
37262         warn-on-use.
37263         (Makefile.am): Update rules accordingly.
37264         * modules/ctype (Depends-on, Makefile.am): Likewise.
37265         * modules/dirent (Depends-on, Makefile.am): Likewise.
37266         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37267         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37268         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37269         * modules/locale (Depends-on, Makefile.am): Likewise.
37270         * modules/math (Depends-on, Makefile.am): Likewise.
37271         * modules/search (Depends-on, Makefile.am): Likewise.
37272         * modules/signal (Depends-on, Makefile.am): Likewise.
37273         * modules/spawn (Depends-on, Makefile.am): Likewise.
37274         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37275         * modules/string (Depends-on, Makefile.am): Likewise.
37276         * modules/strings (Depends-on, Makefile.am): Likewise.
37277         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37278         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37279         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37280         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37281         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37282         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37283         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37284         * modules/wchar (Depends-on, Makefile.am): Likewise.
37285         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37286         should be poisoned.
37287         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37288         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37289         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37290         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37291         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37292         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37293         * m4/math_h.m4 (gl_MATH_H): Likewise.
37294         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37295         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37296         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37297         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37298         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37300         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37301         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37306         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37308         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37309         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37310         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37311         GL_LINK_WARNING.
37312         * lib/ctype.in.h: Likewise.
37313         * lib/dirent.in.h: Likewise.
37314         * lib/fcntl.in.h: Likewise.
37315         * lib/inttypes.in.h: Likewise.
37316         * lib/langinfo.in.h: Likewise.
37317         * lib/locale.in.h: Likewise.
37318         * lib/math.in.h: Likewise.
37319         * lib/search.in.h: Likewise.
37320         * lib/signal.in.h: Likewise.
37321         * lib/spawn.in.h: Likewise.
37322         * lib/stdio.in.h: Likewise.
37323         * lib/stdlib.in.h: Likewise.
37324         * lib/string.in.h: Likewise.
37325         * lib/strings.in.h: Likewise.
37326         * lib/sys_file.in.h: Likewise.
37327         * lib/sys_ioctl.in.h: Likewise.
37328         * lib/sys_select.in.h: Likewise.
37329         * lib/sys_socket.in.h: Likewise.
37330         * lib/sys_stat.in.h: Likewise.
37331         * lib/sys_times.in.h: Likewise.
37332         * lib/sys_utsname.in.h: Likewise.
37333         * lib/unistd.in.h: Likewise.
37334         * lib/wchar.in.h: Likewise.
37335
37336 2010-01-20  Bruno Haible  <bruno@clisp.org>
37337
37338         Avoid duplicate -lm.
37339         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37340         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37341         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37343         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37344         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37345         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37346         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37347         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37348         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37349         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37350         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37351         Reported by Paolo Bonzini.
37352
37353 2010-01-19  Bruno Haible  <bruno@clisp.org>
37354
37355         langinfo, nl_langinfo: Relicense under LGPLv2+.
37356         * modules/langinfo (License): Change to LGPLv2+.
37357         * modules/nl_langinfo (License): Likewise.
37358         Patch by David Lutterkort <lutter@redhat.com>.
37359
37360 2010-01-19  Bruno Haible  <bruno@clisp.org>
37361
37362         Avoid compilation error with cc on OSF/1 5.1.
37363         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37364         statement, not before.
37365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37366
37367 2010-01-18  Bruno Haible  <bruno@clisp.org>
37368
37369         Avoid a link error due to the __printf__ symbol.
37370         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37371         and 2.6.x.
37372         (__format__, __printf__): Remove definitions.
37373         * lib/argp-fmtstream.h: Likewise.
37374         * lib/argp.h: Likewise.
37375         * lib/error.h: Likewise.
37376         * lib/vasnprintf.h: Likewise.
37377         * lib/xprintf.h: Likewise.
37378         * lib/xvasprintf.h: Likewise.
37379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37380
37381 2010-01-18  Bruno Haible  <bruno@clisp.org>
37382
37383         Tests for module 'tanl'.
37384         * modules/tanl-tests: New file.
37385         * tests/test-tanl.c: New file.
37386
37387         Tests for module 'sqrtl'.
37388         * modules/sqrtl-tests: New file.
37389         * tests/test-sqrtl.c: New file.
37390
37391         Tests for module 'sinl'.
37392         * modules/sinl-tests: New file.
37393         * tests/test-sinl.c: New file.
37394
37395         Tests for module 'logl'.
37396         * modules/logl-tests: New file.
37397         * tests/test-logl.c: New file.
37398
37399         Tests for module 'expl'.
37400         * modules/expl-tests: New file.
37401         * tests/test-expl.c: New file.
37402
37403         Tests for module 'cosl'.
37404         * modules/cosl-tests: New file.
37405         * tests/test-cosl.c: New file.
37406
37407         Tests for module 'atanl'.
37408         * modules/atanl-tests: New file.
37409         * tests/test-atanl.c: New file.
37410
37411         Tests for module 'asinl'.
37412         * modules/asinl-tests: New file.
37413         * tests/test-asinl.c: New file.
37414
37415         Tests for module 'acosl'.
37416         * modules/acosl-tests: New file.
37417         * tests/test-acosl.c: New file.
37418
37419         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37420         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37421         tanl): Use the standard gnulib idiom.
37422         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37423         * lib/sinl.c: Likewise.
37424         * lib/tanl.c: Don't include trigl.c.
37425         (kernel_tanl): Make static.
37426         * lib/sincosl.c: Include trigl.h first.
37427         * lib/trigl.c: Likewise.
37428         * m4/acosl.m4: New file.
37429         * m4/asinl.m4: New file.
37430         * m4/atanl.m4: New file.
37431         * m4/cosl.m4: New file.
37432         * m4/expl.m4: New file.
37433         * m4/logl.m4: New file.
37434         * m4/sinl.m4: New file.
37435         * m4/sqrtl.m4: New file.
37436         * m4/tanl.m4: New file.
37437         * m4/mathl.m4: Remove file.
37438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37439         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37440         Don't initialize GNULIB_MATHL.
37441         * modules/acosl: New file.
37442         * modules/asinl: New file.
37443         * modules/atanl: New file.
37444         * modules/cosl: New file.
37445         * modules/expl: New file.
37446         * modules/logl: New file.
37447         * modules/sinl: New file.
37448         * modules/sqrtl: New file.
37449         * modules/tanl: New file.
37450         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37451         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37452         substitute GNULIB_MATHL.
37453         * modules/mathl: Rewritten.
37454         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37455         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37456         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37457         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37458         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37459         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37460         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37461         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37462         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37463
37464 2010-01-18  Bruno Haible  <bruno@clisp.org>
37465
37466         sqrt: Make gl_FUNC_SQRT requirable.
37467         * m4/sqrt.m4: New file.
37468         * modules/sqrt (Files): Add it.
37469         (configure.ac): Invoke gl_FUNC_SQRT.
37470
37471 2010-01-18  Bruno Haible  <bruno@clisp.org>
37472
37473         New modules for common <math.h> functions.
37474         * m4/mathfunc.m4: New file.
37475         * modules/acos: New file.
37476         * modules/asin: New file.
37477         * modules/atan: New file.
37478         * modules/atan2: New file.
37479         * modules/cbrt: New file.
37480         * modules/copysign: New file.
37481         * modules/cos: New file.
37482         * modules/cosh: New file.
37483         * modules/erf: New file.
37484         * modules/erfc: New file.
37485         * modules/exp: New file.
37486         * modules/fabs: New file.
37487         * modules/fmod: New file.
37488         * modules/hypot: New file.
37489         * modules/j0: New file.
37490         * modules/j1: New file.
37491         * modules/jn: New file.
37492         * modules/ldexp: New file.
37493         * modules/lgamma: New file.
37494         * modules/log: New file.
37495         * modules/log10: New file.
37496         * modules/log1p: New file.
37497         * modules/logb: New file.
37498         * modules/modf: New file.
37499         * modules/nextafter: New file.
37500         * modules/pow: New file.
37501         * modules/remainder: New file.
37502         * modules/rint: New file.
37503         * modules/sin: New file.
37504         * modules/sinh: New file.
37505         * modules/sqrt: New file.
37506         * modules/tan: New file.
37507         * modules/tanh: New file.
37508         * modules/y0: New file.
37509         * modules/y1: New file.
37510         * modules/yn: New file.
37511         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37512         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37513         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37514         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37515         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37516         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37517         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37518         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37519         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37520         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37521         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37522         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37523         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37524         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37525         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37526         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37527         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37528         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37529         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37530         * doc/posix-functions/log.texi: Mention the 'log' module.
37531         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37532         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37533         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37534         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37535         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37536         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37537         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37538         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37539         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37540         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37541         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37542         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37543         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37544         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37545         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37546         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37547
37548 2010-01-18  Jim Meyering  <meyering@redhat.com>
37549
37550         ignore-value: relax license to LGPLv2+
37551         * modules/ignore-value (License): Relax to LGPLv2+.
37552
37553         getdate: don't leak when TZ contains two or more '"'s
37554         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37555         double quote in TZ after the first one.
37556
37557         readtokens: do not leak internal token_lengths buffer
37558         * lib/readtokens.c (readtokens): Free the local, lengths,
37559         when the supplied "token_lengths" parameter is NULL.
37560
37561 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37562
37563         Fix a couple of missing LIBTHREAD link failures on AIX.
37564         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37565         $(LIBTHREAD).
37566         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37567
37568         Link test-poll against INET_PTON_LIB.
37569         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37570         for inet_pton on Solaris 10.
37571
37572 2010-01-17  Bruno Haible  <bruno@clisp.org>
37573
37574         unistdio/*-sprintf: Fix typo in module description.
37575         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37576         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37577         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37578         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37579         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37580         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37581         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37582         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37583
37584 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37585
37586         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37587         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37588         variables in shell case patterns, for AIX and HP-UX ksh.
37589
37590         Split large sed scripts, for HP-UX sed.
37591         * modules/stdio: Split sed scripts around 50 sed commands,
37592         to avoid HP-UX limit of 99 commands, in the near future.
37593         * modules/string: Likewise.
37594         * modules/unistd: Likewise.
37595
37596         gnulib-tool: avoid writing in the current directory.
37597         * gnulib-tool (func_emit_lib_Makefile_am)
37598         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37599         not in the current directory, so concurrent gnulib-tool
37600         instances do not interfere.
37601
37602 2010-01-16  Jim Meyering  <meyering@redhat.com>
37603
37604         doc: update users.txt
37605         * users.txt: Add grep.
37606         (diffutils, gzip): Update URLs.
37607
37608 2010-01-12  Bruno Haible  <bruno@clisp.org>
37609
37610         posix_spawn: Avoid test failure on Cygwin.
37611         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37612         characters.
37613         Reported by Simon Josefsson.
37614
37615 2010-01-12  Bruno Haible  <bruno@clisp.org>
37616
37617         * tests/test-cond.c (main): When skipping the test, show the reason.
37618
37619 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37620
37621         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37622
37623 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37624
37625         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37626         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37627
37628 2010-01-12  Eric Blake  <ebb9@byu.net>
37629
37630         build: guarantee AS_VAR_IF
37631         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37632         (gl_AS_VAR_IF): Move...
37633         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37634         Reported by Simon Josefsson.
37635
37636 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37637
37638         * lib/stdio.in.h: Fix typo.
37639
37640 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37641
37642         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37643         libgpg-error.
37644
37645 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37646
37647         * tests/test-xalloc-die.sh: Use $EXEEXT.
37648
37649 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37650             Bruno Haible  <bruno@clisp.org>
37651
37652         getlogin, getlogin_r: Avoid test failure.
37653         * tests/test-getlogin.c: Include <stdio.h>.
37654         (main): Skip the test when the function fails because stdin is not a
37655         tty.
37656         * tests/test-getlogin_r.c: Include <stdio.h>.
37657         (main): Skip the test when the function fails because stdin is not a
37658         tty.
37659
37660 2010-01-11  Eric Blake  <ebb9@byu.net>
37661
37662         tests: avoid more large file warnings
37663         * tests/test-fflush.c: Avoid warning about ftell use.
37664         * tests/test-fseek.c: Avoid warning about fseek use.
37665
37666 2010-01-10  Bruno Haible  <bruno@clisp.org>
37667
37668         nproc: Work better on Linux when /proc and /sys are not mounted.
37669         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37670         as lower bound when, on glibc/Linux systems,
37671         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37672         Suggested by Pádraig Brady <P@draigbrady.com>.
37673         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37674
37675         nproc: Refactor.
37676         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37677         extracted from num_processors.
37678         (num_processors): Call it.
37679
37680 2010-01-11  Jim Meyering  <meyering@redhat.com>
37681
37682         utimecmp: avoid new warning from upcoming gcc-4.5.0
37683         * lib/utimecmp.c (BILLION): Define using #define rather than an
37684         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37685
37686 2010-01-11  Eric Blake  <ebb9@byu.net>
37687
37688         math: add portability warnings for classification macros
37689         * modules/math (Depends-on): Add warn-on-use.
37690         (Makefile.am): Provide new substitutions.
37691         * m4/math_h.m4 (gl_MATH_H): Require inline.
37692         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37693         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37694         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37695         implement warnings.
37696
37697         unistd: warn on use of environ without module
37698         * modules/unistd (Depends-on): Add warn-on-use.
37699         (Makefile.am): Provide new substitutions.
37700         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37701         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37702
37703         stdio: warn on suspicious uses
37704         * modules/stdio (Depends-on): Add warn-on-use.
37705         (Makefile.am): Provide new substitutions.
37706         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37707         fseeko.
37708         * lib/stdio.in.h (gets): Always warn on use.
37709         (fseek, ftell): Adjust when warnings are issued, and honor
37710         _GL_NO_LARGE_FILES as a way to silence the warning.
37711         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37712         any warning about large file offsets.
37713         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37714         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37715         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37716         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37717         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37718         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37719         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37720         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37721
37722         warn-on-use: new module
37723         * modules/warn-on-use: New file.
37724         * build-aux/warn-on-use.h: Likewise.
37725         * m4/warn-on-use.m4: Likewise.
37726         * MODULES.html.sh (Support for building): Mention it.
37727
37728 2010-01-10  Bruno Haible  <bruno@clisp.org>
37729
37730         Tests for module 'unistr/u32-strdup'.
37731         * modules/unistr/u32-strdup-tests: New file.
37732         * tests/unistr/test-u32-strdup.c: New file.
37733
37734         Tests for module 'unistr/u16-strdup'.
37735         * modules/unistr/u16-strdup-tests: New file.
37736         * tests/unistr/test-u16-strdup.c: New file.
37737
37738         Tests for module 'unistr/u8-strdup'.
37739         * modules/unistr/u8-strdup-tests: New file.
37740         * tests/unistr/test-u8-strdup.c: New file.
37741         * tests/unistr/test-strdup.h: New file.
37742
37743         Tests for module 'unistr/u32-strncmp'.
37744         * modules/unistr/u32-strncmp-tests: New file.
37745         * tests/unistr/test-u32-strncmp.c: New file.
37746
37747         Tests for module 'unistr/u16-strncmp'.
37748         * modules/unistr/u16-strncmp-tests: New file.
37749         * tests/unistr/test-u16-strncmp.c: New file.
37750
37751         Tests for module 'unistr/u8-strncmp'.
37752         * modules/unistr/u8-strncmp-tests: New file.
37753         * tests/unistr/test-u8-strncmp.c: New file.
37754         * tests/unistr/test-strncmp.h: New file.
37755
37756         Tests for module 'unistr/u32-strcoll'.
37757         * modules/unistr/u32-strcoll-tests: New file.
37758         * tests/unistr/test-u32-strcoll.c: New file.
37759
37760         Tests for module 'unistr/u16-strcoll'.
37761         * modules/unistr/u16-strcoll-tests: New file.
37762         * tests/unistr/test-u16-strcoll.c: New file.
37763
37764         Tests for module 'unistr/u8-strcoll'.
37765         * modules/unistr/u8-strcoll-tests: New file.
37766         * tests/unistr/test-u8-strcoll.c: New file.
37767
37768         Tests for module 'unistr/u32-strcmp'.
37769         * modules/unistr/u32-strcmp-tests: New file.
37770         * tests/unistr/test-u32-strcmp.c: New file.
37771         * tests/unistr/test-u32-strcmp.h: New file.
37772
37773         Tests for module 'unistr/u16-strcmp'.
37774         * modules/unistr/u16-strcmp-tests: New file.
37775         * tests/unistr/test-u16-strcmp.c: New file.
37776         * tests/unistr/test-u16-strcmp.h: New file.
37777
37778         Tests for module 'unistr/u8-strcmp'.
37779         * modules/unistr/u8-strcmp-tests: New file.
37780         * tests/unistr/test-u8-strcmp.c: New file.
37781         * tests/unistr/test-u8-strcmp.h: New file.
37782         * tests/unistr/test-strcmp.h: New file.
37783
37784         Tests for module 'unistr/u32-strncat'.
37785         * modules/unistr/u32-strncat-tests: New file.
37786         * tests/unistr/test-u32-strncat.c: New file.
37787
37788         Tests for module 'unistr/u16-strncat'.
37789         * modules/unistr/u16-strncat-tests: New file.
37790         * tests/unistr/test-u16-strncat.c: New file.
37791
37792         Tests for module 'unistr/u8-strncat'.
37793         * modules/unistr/u8-strncat-tests: New file.
37794         * tests/unistr/test-u8-strncat.c: New file.
37795         * tests/unistr/test-strncat.h: New file.
37796
37797         Tests for module 'unistr/u32-strcat'.
37798         * modules/unistr/u32-strcat-tests: New file.
37799         * tests/unistr/test-u32-strcat.c: New file.
37800
37801         Tests for module 'unistr/u16-strcat'.
37802         * modules/unistr/u16-strcat-tests: New file.
37803         * tests/unistr/test-u16-strcat.c: New file.
37804
37805         Tests for module 'unistr/u8-strcat'.
37806         * modules/unistr/u8-strcat-tests: New file.
37807         * tests/unistr/test-u8-strcat.c: New file.
37808         * tests/unistr/test-strcat.h: New file.
37809
37810         Tests for module 'unistr/u32-stpncpy'.
37811         * modules/unistr/u32-stpncpy-tests: New file.
37812         * tests/unistr/test-u32-stpncpy.c: New file.
37813
37814         Tests for module 'unistr/u16-stpncpy'.
37815         * modules/unistr/u16-stpncpy-tests: New file.
37816         * tests/unistr/test-u16-stpncpy.c: New file.
37817
37818         Tests for module 'unistr/u8-stpncpy'.
37819         * modules/unistr/u8-stpncpy-tests: New file.
37820         * tests/unistr/test-u8-stpncpy.c: New file.
37821         * tests/unistr/test-stpncpy.h: New file.
37822
37823         Tests for module 'unistr/u32-strncpy'.
37824         * modules/unistr/u32-strncpy-tests: New file.
37825         * tests/unistr/test-u32-strncpy.c: New file.
37826
37827         Tests for module 'unistr/u16-strncpy'.
37828         * modules/unistr/u16-strncpy-tests: New file.
37829         * tests/unistr/test-u16-strncpy.c: New file.
37830
37831         Tests for module 'unistr/u8-strncpy'.
37832         * modules/unistr/u8-strncpy-tests: New file.
37833         * tests/unistr/test-u8-strncpy.c: New file.
37834         * tests/unistr/test-strncpy.h: New file.
37835
37836         Tests for module 'unistr/u32-stpcpy'.
37837         * modules/unistr/u32-stpcpy-tests: New file.
37838         * tests/unistr/test-u32-stpcpy.c: New file.
37839
37840         Tests for module 'unistr/u16-stpcpy'.
37841         * modules/unistr/u16-stpcpy-tests: New file.
37842         * tests/unistr/test-u16-stpcpy.c: New file.
37843
37844         Tests for module 'unistr/u8-stpcpy'.
37845         * modules/unistr/u8-stpcpy-tests: New file.
37846         * tests/unistr/test-u8-stpcpy.c: New file.
37847         * tests/unistr/test-stpcpy.h: New file.
37848
37849         Tests for module 'unistr/u32-strcpy'.
37850         * modules/unistr/u32-strcpy-tests: New file.
37851         * tests/unistr/test-u32-strcpy.c: New file.
37852
37853         Tests for module 'unistr/u16-strcpy'.
37854         * modules/unistr/u16-strcpy-tests: New file.
37855         * tests/unistr/test-u16-strcpy.c: New file.
37856
37857         Tests for module 'unistr/u8-strcpy'.
37858         * modules/unistr/u8-strcpy-tests: New file.
37859         * tests/unistr/test-u8-strcpy.c: New file.
37860         * tests/unistr/test-strcpy.h: New file.
37861
37862         Tests for module 'unistr/u32-strnlen'.
37863         * modules/unistr/u32-strnlen-tests: New file.
37864         * tests/unistr/test-u32-strnlen.c: New file.
37865
37866         Tests for module 'unistr/u16-strnlen'.
37867         * modules/unistr/u16-strnlen-tests: New file.
37868         * tests/unistr/test-u16-strnlen.c: New file.
37869
37870         Tests for module 'unistr/u8-strnlen'.
37871         * modules/unistr/u8-strnlen-tests: New file.
37872         * tests/unistr/test-u8-strnlen.c: New file.
37873         * tests/unistr/test-strnlen.h: New file.
37874
37875         Tests for module 'unistr/u32-strlen'.
37876         * modules/unistr/u32-strlen-tests: New file.
37877         * tests/unistr/test-u32-strlen.c: New file.
37878
37879         Tests for module 'unistr/u16-strlen'.
37880         * modules/unistr/u16-strlen-tests: New file.
37881         * tests/unistr/test-u16-strlen.c: New file.
37882
37883         Tests for module 'unistr/u8-strlen'.
37884         * modules/unistr/u8-strlen-tests: New file.
37885         * tests/unistr/test-u8-strlen.c: New file.
37886
37887         Tests for module 'unistr/u32-prev'.
37888         * modules/unistr/u32-prev-tests: New file.
37889         * tests/unistr/test-u32-prev.c: New file.
37890
37891         Tests for module 'unistr/u16-prev'.
37892         * modules/unistr/u16-prev-tests: New file.
37893         * tests/unistr/test-u16-prev.c: New file.
37894
37895         Tests for module 'unistr/u8-prev'.
37896         * modules/unistr/u8-prev-tests: New file.
37897         * tests/unistr/test-u8-prev.c: New file.
37898
37899         Tests for module 'unistr/u32-next'.
37900         * modules/unistr/u32-next-tests: New file.
37901         * tests/unistr/test-u32-next.c: New file.
37902
37903         Tests for module 'unistr/u16-next'.
37904         * modules/unistr/u16-next-tests: New file.
37905         * tests/unistr/test-u16-next.c: New file.
37906
37907         Tests for module 'unistr/u8-next'.
37908         * modules/unistr/u8-next-tests: New file.
37909         * tests/unistr/test-u8-next.c: New file.
37910
37911         Tests for module 'unistr/u32-strmbtouc'.
37912         * modules/unistr/u32-strmbtouc-tests: New file.
37913         * tests/unistr/test-u32-strmbtouc.c: New file.
37914
37915         Tests for module 'unistr/u16-strmbtouc'.
37916         * modules/unistr/u16-strmbtouc-tests: New file.
37917         * tests/unistr/test-u16-strmbtouc.c: New file.
37918
37919         Tests for module 'unistr/u8-strmbtouc'.
37920         * modules/unistr/u8-strmbtouc-tests: New file.
37921         * tests/unistr/test-u8-strmbtouc.c: New file.
37922
37923         Tests for module 'unistr/u32-strmblen'.
37924         * modules/unistr/u32-strmblen-tests: New file.
37925         * tests/unistr/test-u32-strmblen.c: New file.
37926
37927         Tests for module 'unistr/u16-strmblen'.
37928         * modules/unistr/u16-strmblen-tests: New file.
37929         * tests/unistr/test-u16-strmblen.c: New file.
37930
37931         Tests for module 'unistr/u8-strmblen'.
37932         * modules/unistr/u8-strmblen-tests: New file.
37933         * tests/unistr/test-u8-strmblen.c: New file.
37934
37935         Tests for module 'unistr/u32-cpy-alloc'.
37936         * modules/unistr/u32-cpy-alloc-tests: New file.
37937         * tests/unistr/test-u32-cpy-alloc.c: New file.
37938
37939         Tests for module 'unistr/u16-cpy-alloc'.
37940         * modules/unistr/u16-cpy-alloc-tests: New file.
37941         * tests/unistr/test-u16-cpy-alloc.c: New file.
37942
37943         Tests for module 'unistr/u8-cpy-alloc'.
37944         * modules/unistr/u8-cpy-alloc-tests: New file.
37945         * tests/unistr/test-u8-cpy-alloc.c: New file.
37946         * tests/unistr/test-cpy-alloc.h: New file.
37947
37948         Tests for module 'unistr/u32-mbsnlen'.
37949         * modules/unistr/u32-mbsnlen-tests: New file.
37950         * tests/unistr/test-u32-mbsnlen.c: New file.
37951
37952         Tests for module 'unistr/u16-mbsnlen'.
37953         * modules/unistr/u16-mbsnlen-tests: New file.
37954         * tests/unistr/test-u16-mbsnlen.c: New file.
37955
37956         Tests for module 'unistr/u8-mbsnlen'.
37957         * modules/unistr/u8-mbsnlen-tests: New file.
37958         * tests/unistr/test-u8-mbsnlen.c: New file.
37959
37960         Tests for module 'unistr/u32-chr'.
37961         * modules/unistr/u32-chr-tests: New file.
37962         * tests/unistr/test-u32-chr.c: New file.
37963
37964         Tests for module 'unistr/u16-chr'.
37965         * modules/unistr/u16-chr-tests: New file.
37966         * tests/unistr/test-u16-chr.c: New file.
37967
37968         Tests for module 'unistr/u8-chr'.
37969         * modules/unistr/u8-chr-tests: New file.
37970         * tests/unistr/test-u8-chr.c: New file.
37971         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37972
37973         Tests for module 'unistr/u32-cmp2'.
37974         * modules/unistr/u32-cmp2-tests: New file.
37975         * tests/unistr/test-u32-cmp2.c: New file.
37976
37977         Tests for module 'unistr/u16-cmp2'.
37978         * modules/unistr/u16-cmp2-tests: New file.
37979         * tests/unistr/test-u16-cmp2.c: New file.
37980
37981         Tests for module 'unistr/u8-cmp2'.
37982         * modules/unistr/u8-cmp2-tests: New file.
37983         * tests/unistr/test-u8-cmp2.c: New file.
37984         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37985
37986         Tests for module 'unistr/u32-cmp'.
37987         * modules/unistr/u32-cmp-tests: New file.
37988         * tests/unistr/test-u32-cmp.c: New file.
37989
37990         Tests for module 'unistr/u16-cmp'.
37991         * modules/unistr/u16-cmp-tests: New file.
37992         * tests/unistr/test-u16-cmp.c: New file.
37993
37994         Tests for module 'unistr/u8-cmp'.
37995         * modules/unistr/u8-cmp-tests: New file.
37996         * tests/unistr/test-u8-cmp.c: New file.
37997         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37998
37999         Tests for module 'unistr/u32-set'.
38000         * modules/unistr/u32-set-tests: New file.
38001         * tests/unistr/test-u32-set.c: New file.
38002
38003         Tests for module 'unistr/u16-set'.
38004         * modules/unistr/u16-set-tests: New file.
38005         * tests/unistr/test-u16-set.c: New file.
38006
38007         Tests for module 'unistr/u8-set'.
38008         * modules/unistr/u8-set-tests: New file.
38009         * tests/unistr/test-u8-set.c: New file.
38010         * tests/unistr/test-set.h: New file.
38011
38012         Tests for module 'unistr/u32-move'.
38013         * modules/unistr/u32-move-tests: New file.
38014         * tests/unistr/test-u32-move.c: New file.
38015
38016         Tests for module 'unistr/u16-move'.
38017         * modules/unistr/u16-move-tests: New file.
38018         * tests/unistr/test-u16-move.c: New file.
38019
38020         Tests for module 'unistr/u8-move'.
38021         * modules/unistr/u8-move-tests: New file.
38022         * tests/unistr/test-u8-move.c: New file.
38023         * tests/unistr/test-move.h: New file.
38024
38025         Tests for module 'unistr/u32-cpy'.
38026         * modules/unistr/u32-cpy-tests: New file.
38027         * tests/unistr/test-u32-cpy.c: New file.
38028
38029         Tests for module 'unistr/u16-cpy'.
38030         * modules/unistr/u16-cpy-tests: New file.
38031         * tests/unistr/test-u16-cpy.c: New file.
38032
38033         Tests for module 'unistr/u8-cpy'.
38034         * modules/unistr/u8-cpy-tests: New file.
38035         * tests/unistr/test-u8-cpy.c: New file.
38036         * tests/unistr/test-cpy.h: New file.
38037
38038 2010-01-09  Bruno Haible  <bruno@clisp.org>
38039
38040         Tests for module 'unistr/u32-uctomb'.
38041         * modules/unistr/u32-uctomb-tests: New file.
38042         * tests/unistr/test-u32-uctomb.c: New file.
38043
38044         Tests for module 'unistr/u16-uctomb'.
38045         * modules/unistr/u16-uctomb-tests: New file.
38046         * tests/unistr/test-u16-uctomb.c: New file.
38047
38048         Tests for module 'unistr/u8-uctomb'.
38049         * modules/unistr/u8-uctomb-tests: New file.
38050         * tests/unistr/test-u8-uctomb.c: New file.
38051
38052         Tests for module 'unistr/u32-mbtoucr'.
38053         * modules/unistr/u32-mbtoucr-tests: New file.
38054         * tests/unistr/test-u32-mbtoucr.c: New file.
38055
38056         Tests for module 'unistr/u16-mbtoucr'.
38057         * modules/unistr/u16-mbtoucr-tests: New file.
38058         * tests/unistr/test-u16-mbtoucr.c: New file.
38059
38060         Tests for module 'unistr/u8-mbtoucr'.
38061         * modules/unistr/u8-mbtoucr-tests: New file.
38062         * tests/unistr/test-u8-mbtoucr.c: New file.
38063
38064         Tests for module 'unistr/u32-mbtouc'.
38065         * modules/unistr/u32-mbtouc-tests: New file.
38066         * tests/unistr/test-u32-mbtouc.c: New file.
38067
38068         Tests for module 'unistr/u16-mbtouc'.
38069         * modules/unistr/u16-mbtouc-tests: New file.
38070         * tests/unistr/test-u16-mbtouc.c: New file.
38071
38072         Tests for module 'unistr/u8-mbtouc'.
38073         * modules/unistr/u8-mbtouc-tests: New file.
38074         * tests/unistr/test-u8-mbtouc.c: New file.
38075
38076         Tests for module 'unistr/u32-mbtouc-unsafe'.
38077         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38078         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38079         * tests/unistr/test-u32-mbtouc.h: New file.
38080
38081         Tests for module 'unistr/u16-mbtouc-unsafe'.
38082         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38083         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38084         * tests/unistr/test-u16-mbtouc.h: New file.
38085
38086         Tests for module 'unistr/u8-mbtouc-unsafe'.
38087         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38088         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38089         * tests/unistr/test-u8-mbtouc.h: New file.
38090
38091         Tests for module 'unistr/u32-mblen'.
38092         * modules/unistr/u32-mblen-tests: New file.
38093         * tests/unistr/test-u32-mblen.c: New file.
38094
38095         Tests for module 'unistr/u16-mblen'.
38096         * modules/unistr/u16-mblen-tests: New file.
38097         * tests/unistr/test-u16-mblen.c: New file.
38098
38099         Tests for module 'unistr/u8-mblen'.
38100         * modules/unistr/u8-mblen-tests: New file.
38101         * tests/unistr/test-u8-mblen.c: New file.
38102
38103         Tests for module 'unistr/u32-to-u16'.
38104         * modules/unistr/u32-to-u16-tests: New file.
38105         * tests/unistr/test-u32-to-u16.c: New file.
38106
38107         Tests for module 'unistr/u32-to-u8'.
38108         * modules/unistr/u32-to-u8-tests: New file.
38109         * tests/unistr/test-u32-to-u8.c: New file.
38110
38111         Tests for module 'unistr/u16-to-u32'.
38112         * modules/unistr/u16-to-u32-tests: New file.
38113         * tests/unistr/test-u16-to-u32.c: New file.
38114
38115         Tests for module 'unistr/u16-to-u8'.
38116         * modules/unistr/u16-to-u8-tests: New file.
38117         * tests/unistr/test-u16-to-u8.c: New file.
38118
38119         Tests for module 'unistr/u8-to-u32'.
38120         * modules/unistr/u8-to-u32-tests: New file.
38121         * tests/unistr/test-u8-to-u32.c: New file.
38122
38123         Tests for module 'unistr/u8-to-u16'.
38124         * modules/unistr/u8-to-u16-tests: New file.
38125         * tests/unistr/test-u8-to-u16.c: New file.
38126
38127         Tests for module 'unistr/u32-check'.
38128         * modules/unistr/u32-check-tests: New file.
38129         * tests/unistr/test-u32-check.c: New file.
38130
38131         Tests for module 'unistr/u16-check'.
38132         * modules/unistr/u16-check-tests: New file.
38133         * tests/unistr/test-u16-check.c: New file.
38134
38135         Tests for module 'unistr/u8-check'.
38136         * modules/unistr/u8-check-tests: New file.
38137         * tests/unistr/test-u8-check.c: New file.
38138
38139         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38140         (category_equals): New function.
38141         (main): Add more tests.
38142         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38143
38144         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38145
38146 2010-01-10  Bruno Haible  <bruno@clisp.org>
38147
38148         unistr/u*-strcoll: Try harder to distinguish different strings.
38149         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38150         compare s1 and s2 to see if they are different.
38151
38152 2010-01-10  Bruno Haible  <bruno@clisp.org>
38153
38154         unistr/u*-stpncpy: Fix the return value.
38155         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38156         description of the return value consistent with stpncpy in glibc.
38157         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38158         written non-NUL unit.
38159
38160 2010-01-10  Bruno Haible  <bruno@clisp.org>
38161
38162         unistr/u*-next: Add missing dependencies.
38163         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38164         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38165         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38166
38167 2010-01-10  Bruno Haible  <bruno@clisp.org>
38168
38169         unistr/u8-mbsnlen: Fix return value for incomplete character.
38170         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38171         u8_mblen.
38172         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38173         Remove unistr/u8-mblen.
38174         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38175         u16_mblen.
38176         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38177         Remove unistr/u16-mblen.
38178
38179 2010-01-10  Bruno Haible  <bruno@clisp.org>
38180
38181         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38182         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38183         Reported by Brian Gough <bjg@gnu.org> and
38184         Chris Clayton <chris2553@googlemail.com> via
38185         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38186
38187 2010-01-09  Bruno Haible  <bruno@clisp.org>
38188
38189         unistr/u16-to-u32: Reject invalid input.
38190         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38191         u16_mbtouc.
38192         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38193         Remove unistr/u16-mbtouc.
38194
38195         unistr/u16-to-u8: Reject invalid input.
38196         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38197         u16_mbtouc.
38198         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38199         Remove unistr/u16-mbtouc.
38200
38201         unistr/u8-to-u32: Reject invalid input.
38202         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38203         u8_mbtouc.
38204         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38205         Remove unistr/u8-mbtouc.
38206
38207         unistr/u8-to-u16: Reject invalid input.
38208         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38209         u8_mbtouc.
38210         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38211         Remove unistr/u8-mbtouc.
38212
38213 2010-01-09  Bruno Haible  <bruno@clisp.org>
38214
38215         Tests for module 'getlogin'.
38216         * modules/getlogin-tests: New file.
38217         * tests/test-getlogin.c: New file.
38218
38219         New module 'getlogin'.
38220         * lib/unistd.in.h (getlogin): New declaration.
38221         * lib/getlogin.c: New file.
38222         * m4/getlogin.m4: New file.
38223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38224         HAVE_GETLOGIN.
38225         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38226         HAVE_GETLOGIN.
38227         * modules/getlogin: New file.
38228         * doc/posix-functions/getlogin.texi: Mention the new module.
38229         Reported by John W. Eaton <jwe@gnu.org>.
38230
38231 2010-01-09  Bruno Haible  <bruno@clisp.org>
38232
38233         getlogin_r: Support for native Windows.
38234         * lib/getlogin_r.c: Include <windows.h>
38235         (getlogin_r): Implement for native Windows.
38236         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38237         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38238         via John W. Eaton <jwe@gnu.org>.
38239
38240 2010-01-09  Bruno Haible  <bruno@clisp.org>
38241
38242         getlogin_r: Small fixes.
38243         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38244         succeeds.
38245         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38246         before testing whether getlogin_r is declared. No need to set
38247         HAVE_DECL_GETLOGIN_R to 1.
38248         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38249
38250 2010-01-09  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/unistd.in.h (getlogin_r): Add comment.
38253
38254 2010-01-09  Bruno Haible  <bruno@clisp.org>
38255
38256         Tests for module 'getlogin_r'.
38257         * modules/getlogin_r-tests: New file.
38258         * tests/test-getlogin_r.c: New file.
38259
38260 2010-01-09  Jim Meyering  <meyering@redhat.com>
38261
38262         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38263         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38264         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38265
38266 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38267
38268         * lib/dup2.c (rpl_dup2): Improve comment.
38269
38270 2010-01-08  Eric Blake  <ebb9@byu.net>
38271
38272         maint.mk: allow packages to add makefile @@ exceptions
38273         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38274         (sc_makefile_check): Rename...
38275         (sc_makefile_at_at_check): ...to this, and use hook.
38276
38277         dup2: work around mingw bug
38278         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38279         Reported by Simon Josefsson.
38280
38281 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38282
38283         glob: Fix C++ compilation.
38284         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38285         C++.
38286
38287 2010-01-07  Bruno Haible  <bruno@clisp.org>
38288
38289         Fix indentation of wctype.in.h, broken since 2007-01-06.
38290         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38291
38292 2010-01-07  Bruno Haible  <bruno@clisp.org>
38293
38294         mbslen: Avoid collision with system function.
38295         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38296         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38297         * m4/mbslen.m4: New file.
38298         * modules/mbslen (Files): Add it.
38299         (configure.ac): Invoke gl_MBSLEN.
38300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38301         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38302         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38303         via Ian Beckwith <ianb@erislabs.net>.
38304
38305 2010-01-07  Bruno Haible  <bruno@clisp.org>
38306
38307         dirent: Document the last fix.
38308         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38309
38310 2010-01-07  Bruno Haible  <bruno@clisp.org>
38311
38312         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38313         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38314         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38315         va_list are defined.
38316         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38317         Reported by Eric Blake.
38318
38319 2010-01-07  Bruno Haible  <bruno@clisp.org>
38320
38321         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38322         * modules/xlist (Depends-on): Add 'list',
38323         * modules/xoset (Depends-on): Add 'oset'.
38324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38325
38326 2010-01-07  Bruno Haible  <bruno@clisp.org>
38327
38328         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38329         * doc/posix-functions/strncasecmp.texi: Likewise.
38330
38331 2010-01-07  Bruno Haible  <bruno@clisp.org>
38332
38333         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38334
38335 2010-01-07  John W. Eaton  <jwe@octave.org>
38336
38337         wctype: allow C++ use
38338         * lib/wctype.in.h: Add extern "C" block for C++.
38339
38340 2010-01-06  Eric Blake  <ebb9@byu.net>
38341
38342         maint.mk: detect incorrect GFDL usage
38343         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38344
38345 2010-01-06  Jim Meyering  <meyering@redhat.com>
38346         and Eric Blake  <ebb9@byu.net>
38347
38348         maint.mk: ignore multi-line copyright in NEWS
38349         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38350
38351 2010-01-06  Eric Blake  <ebb9@byu.net>
38352
38353         select: add missing dependency
38354         * modules/select-tests (Depends-on): Move sockets dependency...
38355         * modules/select (Depends-on): ...here.
38356         Reported by Ian Beckwith.
38357
38358         doc: regenerate INSTALL
38359         * doc/INSTALL: Reflect recent autoconf update.
38360         * doc/INSTALL.ISO: Likewise.
38361         * doc/INSTALL.UTF-8: Likewise.
38362
38363         pread: fix compilation on glibc
38364         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38365         Reported by Ralf Wildenhues.
38366
38367         dirent: fix test failure
38368         * lib/dirent.in.h (includes): Guarantee ino_t.
38369         Reported by Ralf Wildenhues.
38370
38371 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38372
38373         linkat, renameat: avoid bad free
38374         * lib/at-func2.c (at_func2): Fix typo.
38375         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38376
38377 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38378
38379         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38380         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38381         to avoid failure of symlink test later.
38382
38383 2010-01-06  Eric Blake  <ebb9@byu.net>
38384
38385         stdio, unistd: guarantee ssize_t
38386         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38387         2008 are exposed when needed.
38388         * lib/stdio.in.h (includes): Likewise.
38389         Reported by Ralf Wildenhues.
38390
38391 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38392
38393         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38394         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38395         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38396
38397 2010-01-06  Jim Meyering  <meyering@redhat.com>
38398
38399         readtokens: this module *does* require xalloc.h
38400         It uses only functions that were omitted by the old syntax-check rule.
38401         * lib/readtokens.c: Include "xalloc.h" once again.
38402         * modules/readtokens (Depends-on): Add xalloc.
38403         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38404
38405 2010-01-05  Eric Blake  <ebb9@byu.net>
38406
38407         maint: support 'make announcement' from a VPATH build
38408         * top/maint.mk (announcement): Look for correct NEWS file.
38409
38410 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38411
38412         utimens (fdutimens): ignore a negative FD, per contract
38413         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38414         when we have a valid file descriptor.  Otherwise, using a brand
38415         new glibc (with just-patched futimens that now fails with EBADF)
38416         would cause this function to fail with ENOSYS.
38417         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38418         See also http://bugzilla.redhat.com/552320.
38419
38420 2010-01-05  Eric Blake  <ebb9@byu.net>
38421
38422         strcase: document what it provides
38423         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38424         gnulib module.
38425         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38426         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38427
38428 2010-01-05  Jim Meyering  <meyering@redhat.com>
38429
38430         maint: remove useless inclusions of "xalloc.h"
38431         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38432         * lib/readtokens.c: Likewise.
38433         * lib/same.c: Likewise.
38434         * modules/getloadavg (Depends-on): Remove xalloc.
38435         * modules/readtokens: Likewise.
38436         * modules/same: Likewise.
38437
38438         maint.mk: include 4 more function names in alloca.h-checking regexp
38439         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38440         regexp.  Before, we would give a false-positive (saying alloca.h
38441         is included unnecessarily) when the only uses involved omitted symbols.
38442
38443         xalloc.h: use consistent formatting
38444         * lib/xalloc.h: Move declarations to start in the first column.
38445
38446 2010-01-05  Eric Blake  <ebb9@byu.net>
38447
38448         mkdir: avoid xalloc
38449         * lib/mkdir.c (includes): Drop unused header.
38450         Reported by John W. Eaton.
38451
38452 2010-01-04  Jim Meyering  <meyering@redhat.com>
38453
38454         nl_langinfo: avoid configure-time syntax error
38455         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38456         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38457         the empty string.  Don't let that provoke a shell syntax error.
38458
38459         regcomp, regexec, fnmatch: avoid array bounds read error
38460         * lib/regcomp.c (build_equiv_class): From glibc:
38461         Use only the low 24 bits of a findidx return value as an index
38462         into the weights array.  Patch by Ulrich Drepper:
38463         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38464         * lib/regexec.c (check_node_accept_bytes): Likewise.
38465         * lib/fnmatch_loop.c (FCT): Likewise.
38466
38467         regcomp: skip collseq lookup when there are no rules
38468         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38469         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38470
38471         regcomp: recognize ill-formed { } expressions
38472         * lib/regcomp.c (parse_dup_op): From glibc:
38473         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38474
38475         regcomp: fix typo in comment
38476         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38477         s/satisfy/satisfies/.
38478
38479         regcomp: sync from glibc: remove dead store
38480         * lib/regcomp.c (duplicate_node_closure): Remove useless
38481         search_duplicated_node call and dead store.
38482
38483         regcomp: sync from glibc; always use nl_langinfo
38484         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38485         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38486         * modules/regex (Depends-on): Add nl_langinfo.
38487
38488 2010-01-04  Eric Blake  <ebb9@byu.net>
38489
38490         fdopendir: fix configure test
38491         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38492
38493 2010-01-01  Bruno Haible  <bruno@clisp.org>
38494
38495         wchar: Remove unused configure check.
38496         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38497
38498 2010-01-01  Eric Blake  <ebb9@byu.net>
38499
38500         headers: make check of system header explicit
38501         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38502         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38503         ourselves.
38504         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38506         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38507         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38508         internals.
38509         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38510         missing.
38511         Suggested by Bruno Haible.
38512
38513 2010-01-01  Jim Meyering  <meyering@redhat.com>
38514
38515         ChangeLog: tweak to eliminate unnecessary copyright line
38516         * ChangeLog: Remove a copyright line that was mistakenly updated
38517         by today's update-copyright run.  Reported by Eric Blake.
38518
38519         test-update-copyright: don't let envvar setting cause test failure
38520         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38521
38522 2010-01-01  Bruno Haible  <bruno@clisp.org>
38523
38524         localename: Avoid gcc warning.
38525         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38526         function if it is not used.
38527
38528 2010-01-01  Jim Meyering  <meyering@redhat.com>
38529
38530         update nearly all FSF copyright year lists to include 2010
38531         Use the same procedure as for 2009, outlined in
38532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38533
38534         version-etc: set COPYRIGHT_YEAR to 2010
38535         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38536
38537 2009-12-31  Eric Blake  <ebb9@byu.net>
38538
38539         doc: correct availability of cygwin 1.5.x getopt
38540         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38541         variables.
38542         * doc/posix-functions/opterr.texi (opterr): Likewise.
38543         * doc/posix-functions/optind.texi (optind): Likewise.
38544         * doc/posix-functions/optopt.texi (optopt): Likewise.
38545         * doc/posix-functions/tzname.texi (tzname): Likewise.
38546
38547         openat: update maintainer
38548         * modules/openat (Maintainer): Add myself.
38549
38550         utimens: avoid shadowing warning
38551         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38552         buffers into one, to avoid shadowing, as well as avoiding a
38553         redundant stat.
38554         Reported by Jim Meyering.
38555
38556         test-dup2: avoid compiler warning
38557         * tests/test-dup2.c (is_inheritable): Only define if used.
38558
38559 2010-01-01  Bruno Haible  <bruno@clisp.org>
38560
38561         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38562         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38563         defined, use wctomb instead of wcrtomb.
38564
38565 2010-01-01  Bruno Haible  <bruno@clisp.org>
38566
38567         iconv: Reject native Solaris iconv.
38568         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38569         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38570
38571 2009-12-31  Bruno Haible  <bruno@clisp.org>
38572
38573         * tests/test-signal.c (main): Remove test of 'SIG'.
38574
38575 2009-12-31  Bruno Haible  <bruno@clisp.org>
38576
38577         spawn: Fix incomplete fix.
38578         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38579         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38580         warnings for GNULIB_POSIXCHECK again.
38581         Reported by Eric Blake.
38582
38583 2009-12-31  Bruno Haible  <bruno@clisp.org>
38584
38585         Avoid namespace pollution on glibc systems.
38586         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38587         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38588         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38589         glibc systems.
38590
38591 2009-12-31  Bruno Haible  <bruno@clisp.org>
38592
38593         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38594         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38595         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38596         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38597         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38598         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38599         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38600
38601 2009-12-31  Bruno Haible  <bruno@clisp.org>
38602
38603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38604         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38605         afterwards.
38606
38607 2009-12-31  Bruno Haible  <bruno@clisp.org>
38608
38609         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38610         SYS_UTSNAME_H.
38611
38612 2009-12-31  Bruno Haible  <bruno@clisp.org>
38613
38614         spawn: Fix misapplied patch.
38615         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38616         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38617         warnings for GNULIB_POSIXCHECK.
38618
38619 2009-12-31  Bruno Haible  <bruno@clisp.org>
38620
38621         times: Update after sys_times changed.
38622         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38623         * modules/times (Files): Add it.
38624         (configure.ac): Invoke gl_FUNC_TIMES.
38625
38626 2009-12-31  Bruno Haible  <bruno@clisp.org>
38627
38628         Use AC_C_INLINE where necessary.
38629         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38630         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38632         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38633         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38634         * m4/mbiter.m4 (gl_MBITER): Likewise.
38635         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38636         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38637         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38638         * modules/u64 (configure.ac): Likewise.
38639
38640 2009-12-31  Bruno Haible  <bruno@clisp.org>
38641
38642         Use AC_C_INLINE instead of module 'inline' where possible.
38643         * modules/inline (Description): Clarify purpose.
38644         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38645         * modules/count-one-bits (Depends-on): Remove inline.
38646         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38647         * modules/openat (Depends-on): Remove inline.
38648         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38649         instead of depending on module 'inline'.
38650         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38651         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38652         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38653         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38654         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38655         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38656         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38657         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38658         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38659         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38660         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38661         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38662         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38663         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38664         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38665         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38666         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38667         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38668         Likewise.
38669         * modules/unictype/property-ascii-hex-digit (Depends-on,
38670         configure.ac): Likewise.
38671         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38672         configure.ac): Likewise.
38673         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38674         configure.ac): Likewise.
38675         * modules/unictype/property-bidi-block-separator (Depends-on,
38676         configure.ac): Likewise.
38677         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38678         configure.ac): Likewise.
38679         * modules/unictype/property-bidi-common-separator (Depends-on,
38680         configure.ac): Likewise.
38681         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38682         Likewise.
38683         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38684         configure.ac): Likewise.
38685         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38686         configure.ac): Likewise.
38687         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38688         configure.ac): Likewise.
38689         * modules/unictype/property-bidi-european-digit (Depends-on,
38690         configure.ac): Likewise.
38691         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38692         configure.ac): Likewise.
38693         * modules/unictype/property-bidi-left-to-right (Depends-on,
38694         configure.ac): Likewise.
38695         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38696         configure.ac): Likewise.
38697         * modules/unictype/property-bidi-other-neutral (Depends-on,
38698         configure.ac): Likewise.
38699         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38700         Likewise.
38701         * modules/unictype/property-bidi-segment-separator (Depends-on,
38702         configure.ac): Likewise.
38703         * modules/unictype/property-bidi-whitespace (Depends-on,
38704         configure.ac): Likewise.
38705         * modules/unictype/property-combining (Depends-on, configure.ac):
38706         Likewise.
38707         * modules/unictype/property-composite (Depends-on, configure.ac):
38708         Likewise.
38709         * modules/unictype/property-currency-symbol (Depends-on,
38710         configure.ac): Likewise.
38711         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38712         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38713         Likewise.
38714         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38715         configure.ac): Likewise.
38716         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38717         Likewise.
38718         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38719         Likewise.
38720         * modules/unictype/property-extender (Depends-on, configure.ac):
38721         Likewise.
38722         * modules/unictype/property-format-control (Depends-on, configure.ac):
38723         Likewise.
38724         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38725         Likewise.
38726         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38727         Likewise.
38728         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38729         Likewise.
38730         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38731         Likewise.
38732         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38733         Likewise.
38734         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38735         Likewise.
38736         * modules/unictype/property-id-start (Depends-on, configure.ac):
38737         Likewise.
38738         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38739         Likewise.
38740         * modules/unictype/property-ids-binary-operator (Depends-on,
38741         configure.ac): Likewise.
38742         * modules/unictype/property-ids-trinary-operator (Depends-on,
38743         configure.ac): Likewise.
38744         * modules/unictype/property-ignorable-control (Depends-on,
38745         configure.ac): Likewise.
38746         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38747         Likewise.
38748         * modules/unictype/property-join-control (Depends-on, configure.ac):
38749         Likewise.
38750         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38751         Likewise.
38752         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38753         Likewise.
38754         * modules/unictype/property-logical-order-exception (Depends-on,
38755         configure.ac): Likewise.
38756         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38757         Likewise.
38758         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38759         * modules/unictype/property-non-break (Depends-on, configure.ac):
38760         Likewise.
38761         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38762         Likewise.
38763         * modules/unictype/property-numeric (Depends-on, configure.ac):
38764         Likewise.
38765         * modules/unictype/property-other-alphabetic (Depends-on,
38766         configure.ac): Likewise.
38767         * modules/unictype/property-other-default-ignorable-code-point
38768         (Depends-on, configure.ac): Likewise.
38769         * modules/unictype/property-other-grapheme-extend (Depends-on,
38770         configure.ac): Likewise.
38771         * modules/unictype/property-other-id-continue (Depends-on,
38772         configure.ac): Likewise.
38773         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38774         Likewise.
38775         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38776         Likewise.
38777         * modules/unictype/property-other-math (Depends-on, configure.ac):
38778         Likewise.
38779         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38780         Likewise.
38781         * modules/unictype/property-paired-punctuation (Depends-on,
38782         configure.ac): Likewise.
38783         * modules/unictype/property-paragraph-separator (Depends-on,
38784         configure.ac): Likewise.
38785         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38786         Likewise.
38787         * modules/unictype/property-pattern-white-space (Depends-on,
38788         configure.ac): Likewise.
38789         * modules/unictype/property-private-use (Depends-on, configure.ac):
38790         Likewise.
38791         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38792         Likewise.
38793         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38794         Likewise.
38795         * modules/unictype/property-radical (Depends-on, configure.ac):
38796         Likewise.
38797         * modules/unictype/property-sentence-terminal (Depends-on,
38798         configure.ac): Likewise.
38799         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38800         Likewise.
38801         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38802         * modules/unictype/property-terminal-punctuation (Depends-on,
38803         configure.ac): Likewise.
38804         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38805         Likewise.
38806         * modules/unictype/property-unassigned-code-value (Depends-on,
38807         configure.ac): Likewise.
38808         * modules/unictype/property-unified-ideograph (Depends-on,
38809         configure.ac): Likewise.
38810         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38811         Likewise.
38812         * modules/unictype/property-variation-selector (Depends-on,
38813         configure.ac): Likewise.
38814         * modules/unictype/property-white-space (Depends-on, configure.ac):
38815         Likewise.
38816         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38817         Likewise.
38818         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38819         Likewise.
38820         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38821         Likewise.
38822         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38823         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38824         Likewise.
38825
38826 2009-12-31  Bruno Haible  <bruno@clisp.org>
38827
38828         Remove unnecessary AC_C_INLINE invocation.
38829         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38830         since 2009-08-21.
38831
38832 2009-12-31  Jim Meyering  <meyering@redhat.com>
38833
38834         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38835         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38836         With this change, we can all remove the gpg_key_ID = ... definition
38837         from our respective cfg.mk files.
38838
38839         maint.mk: create announcement template in ~/, not in /tmp
38840         * top/maint.mk (emit_upload_commands): Adjust.
38841         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38842         Remove temporary file, .ci-msg.
38843
38844 2009-12-31  Eric Blake  <ebb9@byu.net>
38845
38846         link-warning: always build headers with link warnings
38847         * modules/arpa_inet (Makefile.am): Always build replacement
38848         header.
38849         * modules/ctype (Makefile.am): Likewise.
38850         * modules/dirent (Makefile.am): Likewise.
38851         * modules/inttypes (Makefile.am): Likewise.
38852         * modules/langinfo (Makefile.am): Likewise.
38853         * modules/locale (Makefile.am): Likewise.
38854         * modules/spawn (Makefile.am): Likewise.
38855         * modules/sys_file (Makefile.am): Likewise.
38856         * modules/sys_ioctl (Makefile.am): Likewise.
38857         * modules/sys_select (Makefile.am): Likewise.
38858         * modules/sys_socket (Makefile.am): Likewise.
38859         * modules/sys_times (Makefile.am): Likewise.
38860         * modules/sys_utsname (Makefile.am): Likewise.
38861         * modules/sys_wait (Makefile.am): Likewise.
38862         * modules/wchar (Makefile.am): Likewise.
38863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38864         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38865         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38866         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38867         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38868         Likewise.
38869         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38870         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38871         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38872         Likewise.
38873         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38874         Likewise.
38875         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38877         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38879         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38880         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38881         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38882         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38883         (gl_WCHAR_H_DEFAULTS): Likewise.
38884
38885 2009-12-31  Eric Blake  <ebb9@byu.net>
38886
38887         signal, spawn: use link warnings
38888         * lib/signal.in.h (sigset_t): Make unconditional.
38889         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38890         (sigpending, sigprocmask, sigaction): Add link warnings.
38891         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38892         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38893         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38894         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38895         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38896         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38897         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38898         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38899         (posix_spawn_file_actions_destroy)
38900         (posix_spawn_file_actions_addopen)
38901         (posix_spawn_file_actions_addclose)
38902         (posix_spawn_file_actions_adddup2): Likewise.
38903         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38904         * tests/test-signal.c (main): Enhance test.
38905
38906         spawn: improve wrapper support
38907         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38908         (gl_SPAWN_H_DEFAULTS): New defaults.
38909         * modules/spawn (Makefile.am): Substitute them.
38910         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38911         Only declare if missing or broken.
38912
38913         sys_times, sys_utsname: use include_next
38914         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38915         header.
38916         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38917         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38918         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38919         * modules/sys_times (Depends-on): Add include_next.
38920         (Makefile.am): Substitute additional values.
38921         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38922         * lib/sys_times.in.h (includes): Include native header, if
38923         available.
38924         * lib/sys_utsname.in.h (includes): Likewise.
38925         * tests/test-sys_times.c (main): Enhance test.
38926
38927         fdutimensat: revert prior patch
38928         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38929         utimens.h.
38930         Reported by Bruno Haible.
38931
38932 2009-12-30  Eric Blake  <ebb9@byu.net>
38933
38934         sys_wait: drop link-warning dependency
38935         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38936         link-warning efforts.
38937         * lib/sys_wait.in.h: Likewise.
38938
38939         fdutimensat: remove bogus dependency
38940         * modules/fdutimensat (Depends-on): Drop inline.
38941
38942         unistd: fix typo
38943         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38944
38945 2009-12-30  Bruno Haible  <bruno@clisp.org>
38946
38947         Fix compilation error with Solaris cc.
38948         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38949         * lib/unicase/u16-is-invariant.c: Likewise.
38950         * lib/unicase/u32-is-invariant.c: Likewise.
38951         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38952
38953 2009-12-30  Bruno Haible  <bruno@clisp.org>
38954
38955         Fix test crash.
38956         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38957         locales.
38958         Reported by Simon Josefsson <simon@josefsson.org>.
38959
38960 2009-12-30  Bruno Haible  <bruno@clisp.org>
38961
38962         Fix compilation error on most platforms.
38963         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38964         Reported by Simon Josefsson <simon@josefsson.org>
38965         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38966
38967 2009-12-30  Eric Blake  <ebb9@byu.net>
38968
38969         futimens, utimensat: work around ntfs-3g bug
38970         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38971         a ctime bug is present, and expand workaround to cover ntfs-3g.
38972         * lib/utimens.c (fdutimens, lutimens): Likewise.
38973         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38974         (validate_timespec): Adjust return value.
38975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38976         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38977         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38978
38979 2009-12-29  Eric Blake  <ebb9@byu.net>
38980
38981         link-warning: make usage consistent
38982         * modules/ctype (Depends-on): Add link-warning.
38983         (Makefile.am): Update rules accordingly.
38984         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38985         * modules/locale (Depends-on, Makefile.am): Likewise.
38986         * modules/sys_file (Makefile.am): Likewise.
38987         * modules/getopt-posix (Makefile.am): Delete unused link warning
38988         efforts.
38989         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38990         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38991         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38992         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38993
38994         stdio: remove unused variables
38995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38997         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38998
38999         tests: test more substitute headers
39000         * modules/ctype-tests: New file.
39001         * modules/dirent-tests: Likewise.
39002         * modules/spawn-tests: Likewise.
39003         * modules/sys_file-tests: Likewise.
39004         * modules/sys_ioctl-tests: Likewise.
39005         * modules/sys_wait-tests: Likewise.
39006         * tests/test-ctype.c: Likewise.
39007         * tests/test-dirent.c: Likewise.
39008         * tests/test-spawn.c: Likewise.
39009         * tests/test-sys_file.c: Likewise.
39010         * tests/test-sys_ioctl.c: Likewise.
39011         * tests/test-sys_wait.c: Likewise.
39012         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39013         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39014         whether or not flock is in use.
39015
39016         tests: remove License section from module
39017         * modules/arpa_inet-tests: Remove unneeded section.
39018         * modules/byteswap-tests: Likewise.
39019         * modules/ceilf-tests: Likewise.
39020         * modules/ceill-tests: Likewise.
39021         * modules/crypto/des-tests: Likewise.
39022         * modules/crypto/gc-arcfour-tests: Likewise.
39023         * modules/crypto/gc-arctwo-tests: Likewise.
39024         * modules/crypto/gc-des-tests: Likewise.
39025         * modules/crypto/gc-hmac-md5-tests: Likewise.
39026         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39027         * modules/crypto/gc-md2-tests: Likewise.
39028         * modules/crypto/gc-md4-tests: Likewise.
39029         * modules/crypto/gc-md5-tests: Likewise.
39030         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39031         * modules/crypto/gc-rijndael-tests: Likewise.
39032         * modules/crypto/gc-sha1-tests: Likewise.
39033         * modules/crypto/gc-tests: Likewise.
39034         * modules/crypto/md2-tests: Likewise.
39035         * modules/crypto/md4-tests: Likewise.
39036         * modules/fcntl-h-tests: Likewise.
39037         * modules/floorf-tests: Likewise.
39038         * modules/floorl-tests: Likewise.
39039         * modules/frexp-nolibm-tests: Likewise.
39040         * modules/frexp-tests: Likewise.
39041         * modules/frexpl-nolibm-tests: Likewise.
39042         * modules/frexpl-tests: Likewise.
39043         * modules/getaddrinfo-tests: Likewise.
39044         * modules/inttypes-tests: Likewise.
39045         * modules/isfinite-tests: Likewise.
39046         * modules/isinf-tests: Likewise.
39047         * modules/ldexpl-tests: Likewise.
39048         * modules/locale-tests: Likewise.
39049         * modules/math-tests: Likewise.
39050         * modules/netdb-tests: Likewise.
39051         * modules/netinet_in-tests: Likewise.
39052         * modules/printf-frexp-tests: Likewise.
39053         * modules/printf-frexpl-tests: Likewise.
39054         * modules/priv-set-tests: Likewise.
39055         * modules/random_r-tests: Likewise.
39056         * modules/round-tests: Likewise.
39057         * modules/roundf-tests: Likewise.
39058         * modules/roundl-tests: Likewise.
39059         * modules/search-tests: Likewise.
39060         * modules/select-tests: Likewise.
39061         * modules/signal-tests: Likewise.
39062         * modules/stdbool-tests: Likewise.
39063         * modules/stddef-tests: Likewise.
39064         * modules/stdint-tests: Likewise.
39065         * modules/stdio-tests: Likewise.
39066         * modules/stdlib-tests: Likewise.
39067         * modules/string-tests: Likewise.
39068         * modules/strings-tests: Likewise.
39069         * modules/sys_select-tests: Likewise.
39070         * modules/sys_socket-tests: Likewise.
39071         * modules/sys_stat-tests: Likewise.
39072         * modules/sys_time-tests: Likewise.
39073         * modules/sys_utsname-tests: Likewise.
39074         * modules/sysexits-tests: Likewise.
39075         * modules/time-tests: Likewise.
39076         * modules/trunc-tests: Likewise.
39077         * modules/truncf-tests: Likewise.
39078         * modules/truncl-tests: Likewise.
39079         * modules/tsearch-tests: Likewise.
39080         * modules/unistd-tests: Likewise.
39081         * modules/wchar-tests: Likewise.
39082         * modules/wctype-tests: Likewise.
39083
39084         tests: fix license on several tests
39085         * tests/test-des.c: Update to GPLv3+.
39086         * tests/test-flock.c: Likewise.
39087         * tests/test-fsync.c: Likewise.
39088         * tests/test-futimens.h: Likewise.
39089         * tests/test-gc-arcfour.c: Likewise.
39090         * tests/test-gc-arctwo.c: Likewise.
39091         * tests/test-gc-des.c: Likewise.
39092         * tests/test-gc-hmac-md5.c: Likewise.
39093         * tests/test-gc-hmac-sha1.c: Likewise.
39094         * tests/test-gc-md2.c: Likewise.
39095         * tests/test-gc-md4.c: Likewise.
39096         * tests/test-gc-md5.c: Likewise.
39097         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39098         * tests/test-gc-rijndael.c: Likewise.
39099         * tests/test-gc-sha1.c: Likewise.
39100         * tests/test-gc.c: Likewise.
39101         * tests/test-getcwd.c: Likewise.
39102         * tests/test-link.c: Likewise.
39103         * tests/test-link.h: Likewise.
39104         * tests/test-lutimens.h: Likewise.
39105         * tests/test-md2.c: Likewise.
39106         * tests/test-md4.c: Likewise.
39107         * tests/test-mkdir.h: Likewise.
39108         * tests/test-rename.c: Likewise.
39109         * tests/test-rename.h: Likewise.
39110         * tests/test-safe-alloc.c: Likewise.
39111         * tests/test-utimens-common.h: Likewise.
39112         * tests/test-utimens.h: Likewise.
39113
39114         maint: sync license texts
39115         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39116         * doc/gpl-3.0.texi: Revert copyright year update.
39117         * doc/lgpl-3.0.texi: Likewise.
39118
39119 2009-12-29  Jim Meyering  <meyering@redhat.com>
39120
39121         update nearly all FSF copyright year lists to include 2009
39122         The files named by the following are exempted:
39123             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39124               test -f "$dst" && { echo "$dst"; continue; }
39125               test -d "$dst" || continue
39126               echo "$dst"/$(basename "$src")
39127             done > exempt
39128             git ls-files tests/unictype >> exempt
39129         In the remaining files, convert to all-interval notation if
39130         - there is already at least one year interval like 2000-2003
39131         - the file is maintained by me
39132         - the file is in lib/uni*/, where that style already prevails
39133         Otherwise, use update-copyright's default.
39134
39135 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39136         and Eric Blake  <ebb9@byu.net>
39137
39138         tests: don't require debug system() to pass
39139         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39140         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39141         * tests/test-unlink.h (test_unlink_func): Likewise.
39142         * tests/test-fstatat.c (main): ...into callers.
39143         * tests/test-lstat.c (main): Likewise.
39144         * tests/test-rmdir.c (main): Likewise.
39145         * tests/test-unlink.c (main): Likewise.
39146         * tests/test-unlinkat.c (main): Likewise.
39147         * tests/test-areadlink-with-size.c (main): Don't require a
39148         debug-only system call to pass, aiding cross-testing to mingw.
39149         * tests/test-areadlink.c (main): Likewise.
39150         * tests/test-areadlinkat-with-size.c (main): Likewise.
39151         * tests/test-areadlinkat.c (main): Likewise.
39152         * tests/test-canonicalize-lgpl.c (main): Likewise.
39153         * tests/test-canonicalize.c (main): Likewise.
39154         * tests/test-chown.c (main): Likewise.
39155         * tests/test-fchownat.c (main): Likewise.
39156         * tests/test-lchown.c (main): Likewise.
39157         * tests/test-fdutimensat.c (main): Likewise.
39158         * tests/test-futimens.c (main): Likewise.
39159         * tests/test-link.c (main): Likewise.
39160         * tests/test-linkat.c (main): Likewise.
39161         * tests/test-mkdir.c (main): Likewise.
39162         * tests/test-mkdirat.c (main): Likewise.
39163         * tests/test-mkfifo.c (main): Likewise.
39164         * tests/test-mkfifoat.c (main): Likewise.
39165         * tests/test-mknod.c (main): Likewise.
39166         * tests/test-readlink.c (main): Likewise.
39167         * tests/test-remove.c (main): Likewise.
39168         * tests/test-rename.c (main): Likewise.
39169         * tests/test-renameat.c (main): Likewise.
39170         * tests/test-symlink.c (main): Likewise.
39171         * tests/test-symlinkat.c (main): Likewise.
39172         * tests/test-utimens.c (main): Likewise.
39173         * tests/test-utimensat.c (main): Likewise.
39174
39175 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39176
39177         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39178         on $(UNUSED_PARAMETER_H) to avoid build failure.
39179
39180 2009-12-28  Jim Meyering  <meyering@redhat.com>
39181
39182         update-copyright: you may specify a max. line length other than 72
39183         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39184
39185         maint: use consistent FSF copyright line syntax
39186         * lib/posixtm.c: Add missing comma in FSF copyright line.
39187         * lib/posixtm.h: Likewise.
39188         * lib/getugroups.c: Add missing ", Inc.".
39189
39190         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39191         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39192         FSF copyright line.  Remove trailing blanks.
39193
39194 2009-12-28  Eric Blake  <ebb9@byu.net>
39195
39196         test-dup2: reduce dependencies
39197         * modules/cloexec (Configure.ac): Set witness.
39198         * modules/dup2-tests (Depends-on): Drop cloexec.
39199         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39200         not present.
39201         Suggested by Bruno Haible.
39202
39203 2009-12-26  Bruno Haible  <bruno@clisp.org>
39204
39205         Remove an unneeded dependency.
39206         * modules/fseterr (Depends-on): Remove dup2.
39207
39208 2009-12-26  Eric Blake  <ebb9@byu.net>
39209
39210         tests: use macros.h in more places
39211         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39212         (ASSERT_STREAM): Provide default of stderr.
39213         * tests/test-dirent-safer.c: Include macros.h, using alternate
39214         stream for assertions.
39215         * tests/test-dup-safer.c: Likewise.
39216         * tests/test-freopen-safer.c: Likewise.
39217         * tests/test-getopt.c: Likewise.
39218         * tests/test-openat-safer.c: Likewise.
39219         * tests/test-pipe.c: Likewise.
39220         * tests/test-popen-safer.c: Likewise.
39221         * modules/dirent-safer-tests (Files): Include macros.h.
39222         * modules/unistd-safer-tests (Files): Likewise.
39223         * modules/freopen-safer-tests (Files): Likewise.
39224         * modules/getopt-posix-tests (Files): Likewise.
39225         * modules/openat-safer-tests (Files): Likewise.
39226         * modules/pipe-tests (Files): Likewise.
39227
39228 2009-12-26  Bruno Haible  <bruno@clisp.org>
39229
39230         javacomp: Portability fix.
39231         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39232         that it also works on Solaris.
39233
39234 2009-12-26  Bruno Haible  <bruno@clisp.org>
39235
39236         localename: Fix storage allocation of gl_locale_name_thread's result.
39237         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39238         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39239         all platforms that have 'uselocale'.
39240         (gl_locale_name_thread_unsafe): New function, extracted from
39241         gl_locale_name_thread.
39242         (gl_locale_name_thread): Call struniq on all platforms that have
39243         'uselocale'.
39244         * tests/test-localename.c (test_locale_name_thread): Check that the
39245         resulting strings are permanently allocated.
39246         * modules/localename-tests (Depends-on): Add strdup.
39247
39248 2009-12-26  Bruno Haible  <bruno@clisp.org>
39249
39250         * tests/test-localename.c (categories): Fill in the strings.
39251
39252 2009-12-26  Jim Meyering  <meyering@redhat.com>
39253
39254         isdir: complete the removal of m4/isdir.m4
39255         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39256
39257         isdir: clean up, since at least grep still uses it
39258         * lib/isdir.c: Include "isdir.h".
39259         (S_ISDIR): Remove now-unneeded definition.
39260         * modules/isdir (Files): Add lib/isdir.h.
39261         * lib/isdir.h: New file, with declaration.
39262         * m4/isdir.m4: Remove file -- unneeded.
39263
39264 2009-12-25  Bruno Haible  <bruno@clisp.org>
39265
39266         selinux-h: Make generated .h files standalone.
39267         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39268         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39269         * lib/se-selinux.in.h: Likewise.
39270         * modules/selinux-h (Depends-on): Add unused-parameter.
39271         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39272         selinux/selinux.h and selinux/context.h.
39273         Suggested by Eric Blake.
39274
39275 2009-12-25  Bruno Haible  <bruno@clisp.org>
39276
39277         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39278         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39279         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39280         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39281         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39282
39283 2009-12-24  Bruno Haible  <bruno@clisp.org>
39284
39285         openat: Fix warning.
39286         * lib/openat-proc.c: Include <unistd.h>.
39287
39288 2009-12-24  Bruno Haible  <bruno@clisp.org>
39289
39290         New module 'unused-parameter'.
39291         * build-aux/unused-parameter.h: New file, extracted from earlier
39292         gnulib-common.m4.
39293         * modules/unused-parameter: New file.
39294         * lib/unistr.h: Include unused-parameter.h.
39295         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39296         _GL_UNUSED.
39297         * modules/unistr/base (Depends-on): Add unused-parameter.
39298
39299 2009-12-24  Bruno Haible  <bruno@clisp.org>
39300
39301         Add missing dependencies to 'extensions' module.
39302         * m4/extensions.m4: Add comment.
39303         * modules/accept4 (Depends-on): Add extensions.
39304         * modules/dup3 (Depends-on): Likewise.
39305         * modules/fcntl (Depends-on): Likewise.
39306         * modules/futimens (Depends-on): Likewise.
39307         * modules/mknod (Depends-on): Likewise.
39308         * modules/pipe2 (Depends-on): Likewise.
39309         * modules/stat-time (Depends-on): Likewise.
39310         * modules/strcasestr-simple (Depends-on): Likewise.
39311         * modules/strsignal (Depends-on): Likewise.
39312         * modules/utimensat (Depends-on): Likewise.
39313         * modules/localcharset (Depends-on): Likewise. Needed because of
39314         gl_FCNTL_O_FLAGS.
39315         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39316         AC_TYPE_MBSTATE_T.
39317         * modules/wcsnrtombs (Depends-on): Likewise.
39318         * modules/wcsrtombs (Depends-on): Likewise.
39319
39320 2009-12-24  Bruno Haible  <bruno@clisp.org>
39321
39322         binary-io: Avoid gcc warning due to SET_BINARY.
39323         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39324         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39325
39326 2009-12-24  Bruno Haible  <bruno@clisp.org>
39327
39328         Avoid future namespace pollution on glibc systems.
39329         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39330         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39331         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39332         glibc systems.
39333
39334 2009-12-24  Bruno Haible  <bruno@clisp.org>
39335
39336         Refactor common macros used in tests.
39337         * tests/macros.h: New file.
39338         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39339         and/or <stdlib.h>, if appropriate.
39340         (ASSERT, SIZEOF): Remove macros.
39341         * tests/test-areadlink-with-size.c: Likewise.
39342         * tests/test-areadlinkat.c: Likewise.
39343         * tests/test-areadlinkat-with-size.c: Likewise.
39344         * tests/test-argmatch.c: Likewise.
39345         * tests/test-argv-iter.c: Likewise.
39346         * tests/test-array-mergesort.c: Likewise.
39347         * tests/test-array_list.c: Likewise.
39348         * tests/test-array_oset.c: Likewise.
39349         * tests/test-avltree_list.c: Likewise.
39350         * tests/test-avltree_oset.c: Likewise.
39351         * tests/test-avltreehash_list.c: Likewise.
39352         * tests/test-base64.c: Likewise.
39353         * tests/test-binary-io.c: Likewise.
39354         * tests/test-bitrotate.c: Likewise.
39355         * tests/test-btowc.c: Likewise.
39356         * tests/test-byteswap.c: Likewise.
39357         * tests/test-c-ctype.c: Likewise.
39358         * tests/test-c-stack.c: Likewise.
39359         * tests/test-c-strcasecmp.c: Likewise.
39360         * tests/test-c-strcasestr.c: Likewise.
39361         * tests/test-c-strncasecmp.c: Likewise.
39362         * tests/test-c-strstr.c: Likewise.
39363         * tests/test-canonicalize-lgpl.c: Likewise.
39364         * tests/test-canonicalize.c: Likewise.
39365         * tests/test-carray_list.c: Likewise.
39366         * tests/test-ceilf1.c: Likewise.
39367         * tests/test-ceilf2.c: Likewise.
39368         * tests/test-ceill.c: Likewise.
39369         * tests/test-chown.c: Likewise.
39370         * tests/test-cloexec.c: Likewise.
39371         * tests/test-copy-acl.c: Likewise.
39372         * tests/test-copy-file.c: Likewise.
39373         * tests/test-count-one-bits.c: Likewise.
39374         * tests/test-dprintf-posix.c: Likewise.
39375         * tests/test-dup2.c: Likewise.
39376         * tests/test-dup3.c: Likewise.
39377         * tests/test-duplocale.c: Likewise.
39378         * tests/test-fbufmode.c: Likewise.
39379         * tests/test-fchdir.c: Likewise.
39380         * tests/test-fchownat.c: Likewise.
39381         * tests/test-fcntl-safer.c: Likewise.
39382         * tests/test-fcntl.c: Likewise.
39383         * tests/test-fdopendir.c: Likewise.
39384         * tests/test-fdutimensat.c: Likewise.
39385         * tests/test-fflush2.c: Likewise.
39386         * tests/test-file-has-acl.c: Likewise.
39387         * tests/test-filevercmp.c: Likewise.
39388         * tests/test-flock.c: Likewise.
39389         * tests/test-floorf1.c: Likewise.
39390         * tests/test-floorf2.c: Likewise.
39391         * tests/test-floorl.c: Likewise.
39392         * tests/test-fnmatch.c: Likewise.
39393         * tests/test-fopen.h: Likewise.
39394         * tests/test-fpending.c: Likewise.
39395         * tests/test-fprintf-posix.c: Likewise.
39396         * tests/test-fpurge.c: Likewise.
39397         * tests/test-freadable.c: Likewise.
39398         * tests/test-freadahead.c: Likewise.
39399         * tests/test-freading.c: Likewise.
39400         * tests/test-freadptr.c: Likewise.
39401         * tests/test-freadptr2.c: Likewise.
39402         * tests/test-freadseek.c: Likewise.
39403         * tests/test-freopen.c: Likewise.
39404         * tests/test-frexp.c: Likewise.
39405         * tests/test-frexpl.c: Likewise.
39406         * tests/test-fseek.c: Likewise.
39407         * tests/test-fseeko.c: Likewise.
39408         * tests/test-fstatat.c: Likewise.
39409         * tests/test-fstrcmp.c: Likewise.
39410         * tests/test-fsync.c: Likewise.
39411         * tests/test-ftell.c: Likewise.
39412         * tests/test-ftello.c: Likewise.
39413         * tests/test-func.c: Likewise.
39414         * tests/test-futimens.c: Likewise.
39415         * tests/test-fwritable.c: Likewise.
39416         * tests/test-fwriting.c: Likewise.
39417         * tests/test-getcwd.c: Likewise.
39418         * tests/test-getdate.c: Likewise.
39419         * tests/test-getdelim.c: Likewise.
39420         * tests/test-getdtablesize.c: Likewise.
39421         * tests/test-getgroups.c: Likewise.
39422         * tests/test-getline.c: Likewise.
39423         * tests/test-getndelim2.c: Likewise.
39424         * tests/test-glob.c: Likewise.
39425         * tests/test-hash.c: Likewise.
39426         * tests/test-i-ring.c: Likewise.
39427         * tests/test-iconv-utf.c: Likewise.
39428         * tests/test-iconv.c: Likewise.
39429         * tests/test-idpriv-drop.c: Likewise.
39430         * tests/test-idpriv-droptemp.c: Likewise.
39431         * tests/test-inet_ntop.c: Likewise.
39432         * tests/test-inet_pton.c: Likewise.
39433         * tests/test-isblank.c: Likewise.
39434         * tests/test-isfinite.c: Likewise.
39435         * tests/test-isinf.c: Likewise.
39436         * tests/test-isnan.c: Likewise.
39437         * tests/test-isnand.h: Likewise.
39438         * tests/test-isnanf.h: Likewise.
39439         * tests/test-isnanl.h: Likewise.
39440         * tests/test-lchown.c: Likewise.
39441         * tests/test-ldexpl.c: Likewise.
39442         * tests/test-link.c: Likewise.
39443         * tests/test-linkat.c: Likewise.
39444         * tests/test-linked_list.c: Likewise.
39445         * tests/test-linkedhash_list.c: Likewise.
39446         * tests/test-localename.c: Likewise.
39447         * tests/test-lseek.c: Likewise.
39448         * tests/test-lstat.c: Likewise.
39449         * tests/test-mbmemcasecmp.c: Likewise.
39450         * tests/test-mbmemcasecoll.c: Likewise.
39451         * tests/test-mbrtowc.c: Likewise.
39452         * tests/test-mbscasecmp.c: Likewise.
39453         * tests/test-mbscasestr1.c: Likewise.
39454         * tests/test-mbscasestr2.c: Likewise.
39455         * tests/test-mbscasestr3.c: Likewise.
39456         * tests/test-mbscasestr4.c: Likewise.
39457         * tests/test-mbschr.c: Likewise.
39458         * tests/test-mbscspn.c: Likewise.
39459         * tests/test-mbsinit.c: Likewise.
39460         * tests/test-mbsncasecmp.c: Likewise.
39461         * tests/test-mbsnrtowcs.c: Likewise.
39462         * tests/test-mbspbrk.c: Likewise.
39463         * tests/test-mbspcasecmp.c: Likewise.
39464         * tests/test-mbsrchr.c: Likewise.
39465         * tests/test-mbsrtowcs.c: Likewise.
39466         * tests/test-mbsspn.c: Likewise.
39467         * tests/test-mbsstr1.c: Likewise.
39468         * tests/test-mbsstr2.c: Likewise.
39469         * tests/test-mbsstr3.c: Likewise.
39470         * tests/test-memchr.c: Likewise.
39471         * tests/test-memchr2.c: Likewise.
39472         * tests/test-memcmp.c: Likewise.
39473         * tests/test-memmem.c: Likewise.
39474         * tests/test-memrchr.c: Likewise.
39475         * tests/test-mkdir.c: Likewise.
39476         * tests/test-mkdirat.c: Likewise.
39477         * tests/test-mkfifo.c: Likewise.
39478         * tests/test-mkfifoat.c: Likewise.
39479         * tests/test-mknod.c: Likewise.
39480         * tests/test-nanosleep.c: Likewise.
39481         * tests/test-nl_langinfo.c: Likewise.
39482         * tests/test-obstack-printf.c: Likewise.
39483         * tests/test-open.c: Likewise.
39484         * tests/test-openat.c: Likewise.
39485         * tests/test-pipe-filter-gi1.c: Likewise.
39486         * tests/test-pipe-filter-gi2-main.c: Likewise.
39487         * tests/test-pipe-filter-ii1.c: Likewise.
39488         * tests/test-pipe-filter-ii2-main.c: Likewise.
39489         * tests/test-pipe2.c: Likewise.
39490         * tests/test-popen.h: Likewise.
39491         * tests/test-posixtm.c: Likewise.
39492         * tests/test-pread.c: Likewise.
39493         * tests/test-printf-frexp.c: Likewise.
39494         * tests/test-printf-frexpl.c: Likewise.
39495         * tests/test-printf-posix.c: Likewise.
39496         * tests/test-priv-set.c: Likewise.
39497         * tests/test-quotearg.c: Likewise.
39498         * tests/test-random_r.c: Likewise.
39499         * tests/test-rawmemchr.c: Likewise.
39500         * tests/test-rbtree_list.c: Likewise.
39501         * tests/test-rbtree_oset.c: Likewise.
39502         * tests/test-rbtreehash_list.c: Likewise.
39503         * tests/test-readlink.c: Likewise.
39504         * tests/test-remove.c: Likewise.
39505         * tests/test-rename.c: Likewise.
39506         * tests/test-renameat.c: Likewise.
39507         * tests/test-rmdir.c: Likewise.
39508         * tests/test-round1.c: Likewise.
39509         * tests/test-roundf1.c: Likewise.
39510         * tests/test-roundl.c: Likewise.
39511         * tests/test-safe-alloc.c: Likewise.
39512         * tests/test-sameacls.c: Likewise.
39513         * tests/test-set-mode-acl.c: Likewise.
39514         * tests/test-setenv.c: Likewise.
39515         * tests/test-sigaction.c: Likewise.
39516         * tests/test-signbit.c: Likewise.
39517         * tests/test-sleep.c: Likewise.
39518         * tests/test-snprintf-posix.c: Likewise.
39519         * tests/test-snprintf.c: Likewise.
39520         * tests/test-sprintf-posix.c: Likewise.
39521         * tests/test-stat-time.c: Likewise.
39522         * tests/test-stat.c: Likewise.
39523         * tests/test-strcasestr.c: Likewise.
39524         * tests/test-strchrnul.c: Likewise.
39525         * tests/test-strerror.c: Likewise.
39526         * tests/test-striconv.c: Likewise.
39527         * tests/test-striconveh.c: Likewise.
39528         * tests/test-striconveha.c: Likewise.
39529         * tests/test-strsignal.c: Likewise.
39530         * tests/test-strstr.c: Likewise.
39531         * tests/test-strtod.c: Likewise.
39532         * tests/test-strverscmp.c: Likewise.
39533         * tests/test-symlink.c: Likewise.
39534         * tests/test-symlinkat.c: Likewise.
39535         * tests/test-trunc1.c: Likewise.
39536         * tests/test-trunc2.c: Likewise.
39537         * tests/test-truncf1.c: Likewise.
39538         * tests/test-truncf2.c: Likewise.
39539         * tests/test-truncl.c: Likewise.
39540         * tests/test-uname.c: Likewise.
39541         * tests/test-unlink.c: Likewise.
39542         * tests/test-unlinkat.c: Likewise.
39543         * tests/test-unsetenv.c: Likewise.
39544         * tests/test-usleep.c: Likewise.
39545         * tests/test-utimens.c: Likewise.
39546         * tests/test-utimensat.c: Likewise.
39547         * tests/test-vasnprintf-posix.c: Likewise.
39548         * tests/test-vasnprintf-posix2.c: Likewise.
39549         * tests/test-vasnprintf.c: Likewise.
39550         * tests/test-vasprintf-posix.c: Likewise.
39551         * tests/test-vasprintf.c: Likewise.
39552         * tests/test-vdprintf-posix.c: Likewise.
39553         * tests/test-vfprintf-posix.c: Likewise.
39554         * tests/test-vprintf-posix.c: Likewise.
39555         * tests/test-vsnprintf-posix.c: Likewise.
39556         * tests/test-vsnprintf.c: Likewise.
39557         * tests/test-vsprintf-posix.c: Likewise.
39558         * tests/test-wcrtomb.c: Likewise.
39559         * tests/test-wcsnrtombs.c: Likewise.
39560         * tests/test-wcsrtombs.c: Likewise.
39561         * tests/test-wctype.c: Likewise.
39562         * tests/test-wcwidth.c: Likewise.
39563         * tests/test-xfprintf-posix.c: Likewise.
39564         * tests/test-xmemdup0.c: Likewise.
39565         * tests/test-xprintf-posix.c: Likewise.
39566         * tests/test-xvasprintf.c: Likewise.
39567         * tests/unicase/test-locale-language.c: Likewise.
39568         * tests/unicase/test-mapping-part1.h: Likewise.
39569         * tests/unicase/test-predicate-part1.h: Likewise.
39570         * tests/unicase/test-u8-casecmp.c: Likewise.
39571         * tests/unicase/test-u8-casecoll.c: Likewise.
39572         * tests/unicase/test-u8-casefold.c: Likewise.
39573         * tests/unicase/test-u8-is-cased.c: Likewise.
39574         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39575         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39576         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39577         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39578         * tests/unicase/test-u8-tolower.c: Likewise.
39579         * tests/unicase/test-u8-totitle.c: Likewise.
39580         * tests/unicase/test-u8-toupper.c: Likewise.
39581         * tests/unicase/test-u16-casecmp.c: Likewise.
39582         * tests/unicase/test-u16-casecoll.c: Likewise.
39583         * tests/unicase/test-u16-casefold.c: Likewise.
39584         * tests/unicase/test-u16-is-cased.c: Likewise.
39585         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39586         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39587         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39588         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39589         * tests/unicase/test-u16-tolower.c: Likewise.
39590         * tests/unicase/test-u16-totitle.c: Likewise.
39591         * tests/unicase/test-u16-toupper.c: Likewise.
39592         * tests/unicase/test-u32-casecmp.c: Likewise.
39593         * tests/unicase/test-u32-casecoll.c: Likewise.
39594         * tests/unicase/test-u32-casefold.c: Likewise.
39595         * tests/unicase/test-u32-is-cased.c: Likewise.
39596         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39597         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39598         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39599         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39600         * tests/unicase/test-u32-tolower.c: Likewise.
39601         * tests/unicase/test-u32-totitle.c: Likewise.
39602         * tests/unicase/test-u32-toupper.c: Likewise.
39603         * tests/unicase/test-ulc-casecmp.c: Likewise.
39604         * tests/unicase/test-ulc-casecoll.c: Likewise.
39605         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39606         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39607         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39608         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39609         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39610         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39611         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39612         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39613         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39614         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39615         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39616         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39617         * tests/unictype/test-bidi_byname.c: Likewise.
39618         * tests/unictype/test-bidi_name.c: Likewise.
39619         * tests/unictype/test-bidi_of.c: Likewise.
39620         * tests/unictype/test-bidi_test.c: Likewise.
39621         * tests/unictype/test-block_list.c: Likewise.
39622         * tests/unictype/test-block_of.c: Likewise.
39623         * tests/unictype/test-block_test.c: Likewise.
39624         * tests/unictype/test-categ_and.c: Likewise.
39625         * tests/unictype/test-categ_and_not.c: Likewise.
39626         * tests/unictype/test-categ_byname.c: Likewise.
39627         * tests/unictype/test-categ_name.c: Likewise.
39628         * tests/unictype/test-categ_none.c: Likewise.
39629         * tests/unictype/test-categ_of.c: Likewise.
39630         * tests/unictype/test-categ_or.c: Likewise.
39631         * tests/unictype/test-categ_test_withtable.c: Likewise.
39632         * tests/unictype/test-combining.c: Likewise.
39633         * tests/unictype/test-decdigit.c: Likewise.
39634         * tests/unictype/test-digit.c: Likewise.
39635         * tests/unictype/test-mirror.c: Likewise.
39636         * tests/unictype/test-numeric.c: Likewise.
39637         * tests/unictype/test-pr_byname.c: Likewise.
39638         * tests/unictype/test-pr_test.c: Likewise.
39639         * tests/unictype/test-predicate-part1.h: Likewise.
39640         * tests/unictype/test-scripts.c: Likewise.
39641         * tests/unictype/test-sy_c_ident.c: Likewise.
39642         * tests/unictype/test-sy_java_ident.c: Likewise.
39643         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39644         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39645         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39646         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39647         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39648         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39649         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39650         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39651         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39652         * tests/uninorm/test-compat-decomposition.c: Likewise.
39653         * tests/uninorm/test-composition.c: Likewise.
39654         * tests/uninorm/test-decomposing-form.c: Likewise.
39655         * tests/uninorm/test-decomposition.c: Likewise.
39656         * tests/uninorm/test-u8-nfc.c: Likewise.
39657         * tests/uninorm/test-u8-nfd.c: Likewise.
39658         * tests/uninorm/test-u8-nfkc.c: Likewise.
39659         * tests/uninorm/test-u8-nfkd.c: Likewise.
39660         * tests/uninorm/test-u8-normcmp.c: Likewise.
39661         * tests/uninorm/test-u8-normcoll.c: Likewise.
39662         * tests/uninorm/test-u16-nfc.c: Likewise.
39663         * tests/uninorm/test-u16-nfd.c: Likewise.
39664         * tests/uninorm/test-u16-nfkc.c: Likewise.
39665         * tests/uninorm/test-u16-nfkd.c: Likewise.
39666         * tests/uninorm/test-u16-normcmp.c: Likewise.
39667         * tests/uninorm/test-u16-normcoll.c: Likewise.
39668         * tests/uninorm/test-u32-nfc.c: Likewise.
39669         * tests/uninorm/test-u32-nfd.c: Likewise.
39670         * tests/uninorm/test-u32-nfkc.c: Likewise.
39671         * tests/uninorm/test-u32-nfkd.c: Likewise.
39672         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39673         * tests/uninorm/test-u32-normcmp.c: Likewise.
39674         * tests/uninorm/test-u32-normcoll.c: Likewise.
39675         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39676         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39677         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39678         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39679         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39680         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39681         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39682         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39683         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39684         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39685         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39686         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39687         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39688         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39689         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39690         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39691         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39692         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39693         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39694         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39695         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39696         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39697         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39698         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39699         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39700         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39701         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39702         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39703         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39704         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39705         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39706         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39707         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39708         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39709         * tests/uniwidth/test-u8-width.c: Likewise.
39710         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39711         * tests/uniwidth/test-u16-width.c: Likewise.
39712         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39713         * tests/uniwidth/test-u32-width.c: Likewise.
39714         * tests/uniwidth/test-uc_width.c: Likewise.
39715         * tests/uniwidth/test-uc_width2.c: Likewise.
39716         * modules/acl-tests (Files): Add tests/macros.h.
39717         * modules/areadlink-tests (Files): Likewise.
39718         * modules/areadlink-with-size-tests (Files): Likewise.
39719         * modules/areadlinkat-tests (Files): Likewise.
39720         * modules/areadlinkat-with-size-tests (Files): Likewise.
39721         * modules/argmatch-tests (Files): Likewise.
39722         * modules/argv-iter-tests (Files): Likewise.
39723         * modules/array-list-tests (Files): Likewise.
39724         * modules/array-mergesort-tests (Files): Likewise.
39725         * modules/array-oset-tests (Files): Likewise.
39726         * modules/avltree-list-tests (Files): Likewise.
39727         * modules/avltree-oset-tests (Files): Likewise.
39728         * modules/avltreehash-list-tests (Files): Likewise.
39729         * modules/base64-tests (Files): Likewise.
39730         * modules/binary-io-tests (Files): Likewise.
39731         * modules/bitrotate-tests (Files): Likewise.
39732         * modules/btowc-tests (Files): Likewise.
39733         * modules/byteswap-tests (Files): Likewise.
39734         * modules/c-ctype-tests (Files): Likewise.
39735         * modules/c-stack-tests (Files): Likewise.
39736         * modules/c-strcase-tests (Files): Likewise.
39737         * modules/c-strcasestr-tests (Files): Likewise.
39738         * modules/c-strstr-tests (Files): Likewise.
39739         * modules/canonicalize-lgpl-tests (Files): Likewise.
39740         * modules/canonicalize-tests (Files): Likewise.
39741         * modules/carray-list-tests (Files): Likewise.
39742         * modules/ceilf-tests (Files): Likewise.
39743         * modules/ceill-tests (Files): Likewise.
39744         * modules/chown-tests (Files): Likewise.
39745         * modules/cloexec-tests (Files): Likewise.
39746         * modules/copy-file-tests (Files): Likewise.
39747         * modules/count-one-bits-tests (Files): Likewise.
39748         * modules/dprintf-posix-tests (Files): Likewise.
39749         * modules/dup2-tests (Files): Likewise.
39750         * modules/dup3-tests (Files): Likewise.
39751         * modules/duplocale-tests (Files): Likewise.
39752         * modules/fbufmode-tests (Files): Likewise.
39753         * modules/fchdir-tests (Files): Likewise.
39754         * modules/fcntl-safer-tests (Files): Likewise.
39755         * modules/fcntl-tests (Files): Likewise.
39756         * modules/fdopendir-tests (Files): Likewise.
39757         * modules/fdutimensat-tests (Files): Likewise.
39758         * modules/fflush-tests (Files): Likewise.
39759         * modules/filevercmp-tests (Files): Likewise.
39760         * modules/flock-tests (Files): Likewise.
39761         * modules/floorf-tests (Files): Likewise.
39762         * modules/floorl-tests (Files): Likewise.
39763         * modules/fnmatch-tests (Files): Likewise.
39764         * modules/fopen-safer-tests (Files): Likewise.
39765         * modules/fopen-tests (Files): Likewise.
39766         * modules/fpending-tests (Files): Likewise.
39767         * modules/fprintf-posix-tests (Files): Likewise.
39768         * modules/fpurge-tests (Files): Likewise.
39769         * modules/freadable-tests (Files): Likewise.
39770         * modules/freadahead-tests (Files): Likewise.
39771         * modules/freading-tests (Files): Likewise.
39772         * modules/freadptr-tests (Files): Likewise.
39773         * modules/freadseek-tests (Files): Likewise.
39774         * modules/freopen-tests (Files): Likewise.
39775         * modules/frexp-nolibm-tests (Files): Likewise.
39776         * modules/frexp-tests (Files): Likewise.
39777         * modules/frexpl-nolibm-tests (Files): Likewise.
39778         * modules/frexpl-tests (Files): Likewise.
39779         * modules/fseek-tests (Files): Likewise.
39780         * modules/fseeko-tests (Files): Likewise.
39781         * modules/fstrcmp-tests (Files): Likewise.
39782         * modules/fsync-tests (Files): Likewise.
39783         * modules/ftell-tests (Files): Likewise.
39784         * modules/ftello-tests (Files): Likewise.
39785         * modules/func-tests (Files): Likewise.
39786         * modules/futimens-tests (Files): Likewise.
39787         * modules/fwritable-tests (Files): Likewise.
39788         * modules/fwriting-tests (Files): Likewise.
39789         * modules/getcwd-tests (Files): Likewise.
39790         * modules/getdate-tests (Files): Likewise.
39791         * modules/getdelim-tests (Files): Likewise.
39792         * modules/getdtablesize-tests (Files): Likewise.
39793         * modules/getgroups-tests (Files): Likewise.
39794         * modules/getline-tests (Files): Likewise.
39795         * modules/getndelim2-tests (Files): Likewise.
39796         * modules/glob-tests (Files): Likewise.
39797         * modules/hash-tests (Files): Likewise.
39798         * modules/i-ring-tests (Files): Likewise.
39799         * modules/iconv-tests (Files): Likewise.
39800         * modules/iconv_open-utf-tests (Files): Likewise.
39801         * modules/idpriv-drop-tests (Files): Likewise.
39802         * modules/idpriv-droptemp-tests (Files): Likewise.
39803         * modules/inet_ntop-tests (Files): Likewise.
39804         * modules/inet_pton-tests (Files): Likewise.
39805         * modules/isblank-tests (Files): Likewise.
39806         * modules/isfinite-tests (Files): Likewise.
39807         * modules/isinf-tests (Files): Likewise.
39808         * modules/isnan-tests (Files): Likewise.
39809         * modules/isnand-nolibm-tests (Files): Likewise.
39810         * modules/isnand-tests (Files): Likewise.
39811         * modules/isnanf-nolibm-tests (Files): Likewise.
39812         * modules/isnanf-tests (Files): Likewise.
39813         * modules/isnanl-nolibm-tests (Files): Likewise.
39814         * modules/isnanl-tests (Files): Likewise.
39815         * modules/lchown-tests (Files): Likewise.
39816         * modules/ldexpl-tests (Files): Likewise.
39817         * modules/link-tests (Files): Likewise.
39818         * modules/linkat-tests (Files): Likewise.
39819         * modules/linked-list-tests (Files): Likewise.
39820         * modules/linkedhash-list-tests (Files): Likewise.
39821         * modules/localename-tests (Files): Likewise.
39822         * modules/lseek-tests (Files): Likewise.
39823         * modules/lstat-tests (Files): Likewise.
39824         * modules/mbmemcasecmp-tests (Files): Likewise.
39825         * modules/mbmemcasecoll-tests (Files): Likewise.
39826         * modules/mbrtowc-tests (Files): Likewise.
39827         * modules/mbscasecmp-tests (Files): Likewise.
39828         * modules/mbscasestr-tests (Files): Likewise.
39829         * modules/mbschr-tests (Files): Likewise.
39830         * modules/mbscspn-tests (Files): Likewise.
39831         * modules/mbsinit-tests (Files): Likewise.
39832         * modules/mbsncasecmp-tests (Files): Likewise.
39833         * modules/mbsnrtowcs-tests (Files): Likewise.
39834         * modules/mbspbrk-tests (Files): Likewise.
39835         * modules/mbspcasecmp-tests (Files): Likewise.
39836         * modules/mbsrchr-tests (Files): Likewise.
39837         * modules/mbsrtowcs-tests (Files): Likewise.
39838         * modules/mbsspn-tests (Files): Likewise.
39839         * modules/mbsstr-tests (Files): Likewise.
39840         * modules/memchr-tests (Files): Likewise.
39841         * modules/memchr2-tests (Files): Likewise.
39842         * modules/memcmp-tests (Files): Likewise.
39843         * modules/memmem-tests (Files): Likewise.
39844         * modules/memrchr-tests (Files): Likewise.
39845         * modules/mkdir-tests (Files): Likewise.
39846         * modules/mkfifo-tests (Files): Likewise.
39847         * modules/mkfifoat-tests (Files): Likewise.
39848         * modules/mknod-tests (Files): Likewise.
39849         * modules/nanosleep-tests (Files): Likewise.
39850         * modules/nl_langinfo-tests (Files): Likewise.
39851         * modules/obstack-printf-tests (Files): Likewise.
39852         * modules/open-tests (Files): Likewise.
39853         * modules/openat-tests (Files): Likewise.
39854         * modules/pipe-filter-gi-tests (Files): Likewise.
39855         * modules/pipe-filter-ii-tests (Files): Likewise.
39856         * modules/pipe2-tests (Files): Likewise.
39857         * modules/popen-safer-tests (Files): Likewise.
39858         * modules/popen-tests (Files): Likewise.
39859         * modules/posixtm-tests (Files): Likewise.
39860         * modules/pread-tests (Files): Likewise.
39861         * modules/printf-frexp-tests (Files): Likewise.
39862         * modules/printf-frexpl-tests (Files): Likewise.
39863         * modules/printf-posix-tests (Files): Likewise.
39864         * modules/priv-set-tests (Files): Likewise.
39865         * modules/quotearg-tests (Files): Likewise.
39866         * modules/random_r-tests (Files): Likewise.
39867         * modules/rawmemchr-tests (Files): Likewise.
39868         * modules/rbtree-list-tests (Files): Likewise.
39869         * modules/rbtree-oset-tests (Files): Likewise.
39870         * modules/rbtreehash-list-tests (Files): Likewise.
39871         * modules/readlink-tests (Files): Likewise.
39872         * modules/remove-tests (Files): Likewise.
39873         * modules/rename-tests (Files): Likewise.
39874         * modules/renameat-tests (Files): Likewise.
39875         * modules/rmdir-tests (Files): Likewise.
39876         * modules/round-tests (Files): Likewise.
39877         * modules/roundf-tests (Files): Likewise.
39878         * modules/roundl-tests (Files): Likewise.
39879         * modules/safe-alloc-tests (Files): Likewise.
39880         * modules/setenv-tests (Files): Likewise.
39881         * modules/sigaction-tests (Files): Likewise.
39882         * modules/signbit-tests (Files): Likewise.
39883         * modules/sleep-tests (Files): Likewise.
39884         * modules/snprintf-posix-tests (Files): Likewise.
39885         * modules/snprintf-tests (Files): Likewise.
39886         * modules/sprintf-posix-tests (Files): Likewise.
39887         * modules/stat-tests (Files): Likewise.
39888         * modules/stat-time-tests (Files): Likewise.
39889         * modules/strcasestr-tests (Files): Likewise.
39890         * modules/strchrnul-tests (Files): Likewise.
39891         * modules/strerror-tests (Files): Likewise.
39892         * modules/striconv-tests (Files): Likewise.
39893         * modules/striconveh-tests (Files): Likewise.
39894         * modules/striconveha-tests (Files): Likewise.
39895         * modules/strsignal-tests (Files): Likewise.
39896         * modules/strstr-tests (Files): Likewise.
39897         * modules/strtod-tests (Files): Likewise.
39898         * modules/strverscmp-tests (Files): Likewise.
39899         * modules/symlink-tests (Files): Likewise.
39900         * modules/symlinkat-tests (Files): Likewise.
39901         * modules/trunc-tests (Files): Likewise.
39902         * modules/truncf-tests (Files): Likewise.
39903         * modules/truncl-tests (Files): Likewise.
39904         * modules/uname-tests (Files): Likewise.
39905         * modules/unicase/cased-tests (Files): Likewise.
39906         * modules/unicase/ignorable-tests (Files): Likewise.
39907         * modules/unicase/locale-language-tests (Files): Likewise.
39908         * modules/unicase/tolower-tests (Files): Likewise.
39909         * modules/unicase/totitle-tests (Files): Likewise.
39910         * modules/unicase/toupper-tests (Files): Likewise.
39911         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39912         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39913         * modules/unicase/u8-casefold-tests (Files): Likewise.
39914         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39915         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39916         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39917         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39918         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39919         * modules/unicase/u8-tolower-tests (Files): Likewise.
39920         * modules/unicase/u8-totitle-tests (Files): Likewise.
39921         * modules/unicase/u8-toupper-tests (Files): Likewise.
39922         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39923         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39924         * modules/unicase/u16-casefold-tests (Files): Likewise.
39925         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39926         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39927         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39928         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39929         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39930         * modules/unicase/u16-tolower-tests (Files): Likewise.
39931         * modules/unicase/u16-totitle-tests (Files): Likewise.
39932         * modules/unicase/u16-toupper-tests (Files): Likewise.
39933         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39934         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39935         * modules/unicase/u32-casefold-tests (Files): Likewise.
39936         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39937         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39938         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39939         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39940         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39941         * modules/unicase/u32-tolower-tests (Files): Likewise.
39942         * modules/unicase/u32-totitle-tests (Files): Likewise.
39943         * modules/unicase/u32-toupper-tests (Files): Likewise.
39944         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39945         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39946         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39947         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39948         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39949         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39950         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39951         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39952         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39953         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39954         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39955         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39956         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39957         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39958         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39959         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39960         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39961         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39962         * modules/unictype/block-list-tests (Files): Likewise.
39963         * modules/unictype/block-of-tests (Files): Likewise.
39964         * modules/unictype/block-test-tests (Files): Likewise.
39965         * modules/unictype/category-C-tests (Files): Likewise.
39966         * modules/unictype/category-Cc-tests (Files): Likewise.
39967         * modules/unictype/category-Cf-tests (Files): Likewise.
39968         * modules/unictype/category-Cn-tests (Files): Likewise.
39969         * modules/unictype/category-Co-tests (Files): Likewise.
39970         * modules/unictype/category-Cs-tests (Files): Likewise.
39971         * modules/unictype/category-L-tests (Files): Likewise.
39972         * modules/unictype/category-Ll-tests (Files): Likewise.
39973         * modules/unictype/category-Lm-tests (Files): Likewise.
39974         * modules/unictype/category-Lo-tests (Files): Likewise.
39975         * modules/unictype/category-Lt-tests (Files): Likewise.
39976         * modules/unictype/category-Lu-tests (Files): Likewise.
39977         * modules/unictype/category-M-tests (Files): Likewise.
39978         * modules/unictype/category-Mc-tests (Files): Likewise.
39979         * modules/unictype/category-Me-tests (Files): Likewise.
39980         * modules/unictype/category-Mn-tests (Files): Likewise.
39981         * modules/unictype/category-N-tests (Files): Likewise.
39982         * modules/unictype/category-Nd-tests (Files): Likewise.
39983         * modules/unictype/category-Nl-tests (Files): Likewise.
39984         * modules/unictype/category-No-tests (Files): Likewise.
39985         * modules/unictype/category-P-tests (Files): Likewise.
39986         * modules/unictype/category-Pc-tests (Files): Likewise.
39987         * modules/unictype/category-Pd-tests (Files): Likewise.
39988         * modules/unictype/category-Pe-tests (Files): Likewise.
39989         * modules/unictype/category-Pf-tests (Files): Likewise.
39990         * modules/unictype/category-Pi-tests (Files): Likewise.
39991         * modules/unictype/category-Po-tests (Files): Likewise.
39992         * modules/unictype/category-Ps-tests (Files): Likewise.
39993         * modules/unictype/category-S-tests (Files): Likewise.
39994         * modules/unictype/category-Sc-tests (Files): Likewise.
39995         * modules/unictype/category-Sk-tests (Files): Likewise.
39996         * modules/unictype/category-Sm-tests (Files): Likewise.
39997         * modules/unictype/category-So-tests (Files): Likewise.
39998         * modules/unictype/category-Z-tests (Files): Likewise.
39999         * modules/unictype/category-Zl-tests (Files): Likewise.
40000         * modules/unictype/category-Zp-tests (Files): Likewise.
40001         * modules/unictype/category-Zs-tests (Files): Likewise.
40002         * modules/unictype/category-and-not-tests (Files): Likewise.
40003         * modules/unictype/category-and-tests (Files): Likewise.
40004         * modules/unictype/category-byname-tests (Files): Likewise.
40005         * modules/unictype/category-name-tests (Files): Likewise.
40006         * modules/unictype/category-none-tests (Files): Likewise.
40007         * modules/unictype/category-of-tests (Files): Likewise.
40008         * modules/unictype/category-or-tests (Files): Likewise.
40009         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40010         * modules/unictype/combining-class-tests (Files): Likewise.
40011         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40012         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40013         * modules/unictype/ctype-blank-tests (Files): Likewise.
40014         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40015         * modules/unictype/ctype-digit-tests (Files): Likewise.
40016         * modules/unictype/ctype-graph-tests (Files): Likewise.
40017         * modules/unictype/ctype-lower-tests (Files): Likewise.
40018         * modules/unictype/ctype-print-tests (Files): Likewise.
40019         * modules/unictype/ctype-punct-tests (Files): Likewise.
40020         * modules/unictype/ctype-space-tests (Files): Likewise.
40021         * modules/unictype/ctype-upper-tests (Files): Likewise.
40022         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40023         * modules/unictype/decimal-digit-tests (Files): Likewise.
40024         * modules/unictype/digit-tests (Files): Likewise.
40025         * modules/unictype/mirror-tests (Files): Likewise.
40026         * modules/unictype/numeric-tests (Files): Likewise.
40027         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40028         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40029         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40030         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40031         Likewise.
40032         * modules/unictype/property-bidi-block-separator-tests (Files):
40033         Likewise.
40034         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40035         Likewise.
40036         * modules/unictype/property-bidi-common-separator-tests (Files):
40037         Likewise.
40038         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40039         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40040         Likewise.
40041         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40042         Likewise.
40043         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40044         Likewise.
40045         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40046         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40047         Likewise.
40048         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40049         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40050         Likewise.
40051         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40052         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40053         * modules/unictype/property-bidi-segment-separator-tests (Files):
40054         Likewise.
40055         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40056         * modules/unictype/property-byname-tests (Files): Likewise.
40057         * modules/unictype/property-combining-tests (Files): Likewise.
40058         * modules/unictype/property-composite-tests (Files): Likewise.
40059         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40060         * modules/unictype/property-dash-tests (Files): Likewise.
40061         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40062         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40063         Likewise.
40064         * modules/unictype/property-deprecated-tests (Files): Likewise.
40065         * modules/unictype/property-diacritic-tests (Files): Likewise.
40066         * modules/unictype/property-extender-tests (Files): Likewise.
40067         * modules/unictype/property-format-control-tests (Files): Likewise.
40068         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40069         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40070         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40071         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40072         * modules/unictype/property-hyphen-tests (Files): Likewise.
40073         * modules/unictype/property-id-continue-tests (Files): Likewise.
40074         * modules/unictype/property-id-start-tests (Files): Likewise.
40075         * modules/unictype/property-ideographic-tests (Files): Likewise.
40076         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40077         * modules/unictype/property-ids-trinary-operator-tests (Files):
40078         Likewise.
40079         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40080         * modules/unictype/property-iso-control-tests (Files): Likewise.
40081         * modules/unictype/property-join-control-tests (Files): Likewise.
40082         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40083         * modules/unictype/property-line-separator-tests (Files): Likewise.
40084         * modules/unictype/property-logical-order-exception-tests (Files):
40085         Likewise.
40086         * modules/unictype/property-lowercase-tests (Files): Likewise.
40087         * modules/unictype/property-math-tests (Files): Likewise.
40088         * modules/unictype/property-non-break-tests (Files): Likewise.
40089         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40090         * modules/unictype/property-numeric-tests (Files): Likewise.
40091         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40092         * modules/unictype/property-other-default-ignorable-code-point-tests
40093         (Files): Likewise.
40094         * modules/unictype/property-other-grapheme-extend-tests (Files):
40095         Likewise.
40096         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40097         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40098         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40099         * modules/unictype/property-other-math-tests (Files): Likewise.
40100         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40101         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40102         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40103         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40104         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40105         * modules/unictype/property-private-use-tests (Files): Likewise.
40106         * modules/unictype/property-punctuation-tests (Files): Likewise.
40107         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40108         * modules/unictype/property-radical-tests (Files): Likewise.
40109         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40110         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40111         * modules/unictype/property-space-tests (Files): Likewise.
40112         * modules/unictype/property-terminal-punctuation-tests (Files):
40113         Likewise.
40114         * modules/unictype/property-test-tests (Files): Likewise.
40115         * modules/unictype/property-titlecase-tests (Files): Likewise.
40116         * modules/unictype/property-unassigned-code-value-tests (Files):
40117         Likewise.
40118         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40119         * modules/unictype/property-uppercase-tests (Files): Likewise.
40120         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40121         * modules/unictype/property-white-space-tests (Files): Likewise.
40122         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40123         * modules/unictype/property-xid-start-tests (Files): Likewise.
40124         * modules/unictype/property-zero-width-tests (Files): Likewise.
40125         * modules/unictype/scripts-tests (Files): Likewise.
40126         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40127         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40128         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40129         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40130         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40131         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40132         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40133         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40134         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40135         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40136         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40137         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40138         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40139         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40140         * modules/uninorm/composition-tests (Files): Likewise.
40141         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40142         * modules/uninorm/decomposition-tests (Files): Likewise.
40143         * modules/uninorm/filter-tests (Files): Likewise.
40144         * modules/uninorm/nfc-tests (Files): Likewise.
40145         * modules/uninorm/nfd-tests (Files): Likewise.
40146         * modules/uninorm/nfkc-tests (Files): Likewise.
40147         * modules/uninorm/nfkd-tests (Files): Likewise.
40148         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40149         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40150         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40151         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40152         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40153         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40154         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40155         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40156         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40157         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40158         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40159         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40160         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40161         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40162         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40163         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40164         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40165         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40166         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40167         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40168         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40169         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40170         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40171         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40172         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40173         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40174         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40175         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40176         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40177         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40178         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40179         * modules/uniwidth/u8-width-tests (Files): Likewise.
40180         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40181         * modules/uniwidth/u16-width-tests (Files): Likewise.
40182         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40183         * modules/uniwidth/u32-width-tests (Files): Likewise.
40184         * modules/uniwidth/width-tests (Files): Likewise.
40185         * modules/unlink-tests (Files): Likewise.
40186         * modules/unsetenv-tests (Files): Likewise.
40187         * modules/usleep-tests (Files): Likewise.
40188         * modules/utimens-tests (Files): Likewise.
40189         * modules/utimensat-tests (Files): Likewise.
40190         * modules/vasnprintf-posix-tests (Files): Likewise.
40191         * modules/vasnprintf-tests (Files): Likewise.
40192         * modules/vasprintf-posix-tests (Files): Likewise.
40193         * modules/vasprintf-tests (Files): Likewise.
40194         * modules/vdprintf-posix-tests (Files): Likewise.
40195         * modules/vfprintf-posix-tests (Files): Likewise.
40196         * modules/vprintf-posix-tests (Files): Likewise.
40197         * modules/vsnprintf-posix-tests (Files): Likewise.
40198         * modules/vsnprintf-tests (Files): Likewise.
40199         * modules/vsprintf-posix-tests (Files): Likewise.
40200         * modules/wcrtomb-tests (Files): Likewise.
40201         * modules/wcsnrtombs-tests (Files): Likewise.
40202         * modules/wcsrtombs-tests (Files): Likewise.
40203         * modules/wctype-tests (Files): Likewise.
40204         * modules/wcwidth-tests (Files): Likewise.
40205         * modules/xmemdup0-tests (Files): Likewise.
40206         * modules/xprintf-posix-tests (Files): Likewise.
40207         * modules/xvasprintf-tests (Files): Likewise.
40208
40209 2009-12-24  Eric Blake  <ebb9@byu.net>
40210
40211         test-nanosleep: fix typo
40212         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40213         patch.
40214         Reported by Bruno Haible.
40215
40216 2009-12-24  Bruno Haible  <bruno@clisp.org>
40217
40218         Reduce namespace pollution on glibc systems.
40219         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40220         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40221         systems.
40222         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40223         <getopt.h> on glibc systems.
40224         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40225         systems.
40226         * lib/fcntl.c: Include <unistd.h> here instead.
40227
40228 2009-12-24  Bruno Haible  <bruno@clisp.org>
40229
40230         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40231
40232 2009-12-24  Eric Blake  <ebb9@byu.net>
40233
40234         tests: add signature checks
40235         * tests/signature.h (SIGNATURE_CHECK): New file.
40236         * modules/atexit-tests (Files): Use it.
40237         * modules/btowc-tests (Files): Likewise.
40238         * modules/canonicalize-lgpl-tests (Files): Likewise.
40239         * modules/ceilf-tests (Files): Likewise.
40240         * modules/ceill-tests (Files): Likewise.
40241         * modules/chown-tests (Files): Likewise.
40242         * modules/dprintf-posix-tests (Files): Likewise.
40243         * modules/dup2-tests (Files): Likewise.
40244         * modules/dup3-tests (Files): Likewise.
40245         * modules/duplocale-tests (Files): Likewise.
40246         * modules/fchdir-tests (Files): Likewise.
40247         * modules/fcntl-tests (Files): Likewise.
40248         * modules/fdopendir-tests (Files): Likewise.
40249         * modules/fflush-tests (Files): Likewise.
40250         * modules/flock-tests (Files): Likewise.
40251         * modules/floorf-tests (Files): Likewise.
40252         * modules/floorl-tests (Files): Likewise.
40253         * modules/fnmatch-tests (Files): Likewise.
40254         * modules/fopen-tests (Files): Likewise.
40255         * modules/fprintf-posix-tests (Files): Likewise.
40256         * modules/freopen-tests (Files): Likewise.
40257         * modules/frexp-nolibm-tests (Files): Likewise.
40258         * modules/frexp-tests (Files): Likewise.
40259         * modules/frexpl-nolibm-tests (Files): Likewise.
40260         * modules/frexpl-tests (Files): Likewise.
40261         * modules/fseek-tests (Files): Likewise.
40262         * modules/fseeko-tests (Files): Likewise.
40263         * modules/fsync-tests (Files): Likewise.
40264         * modules/ftell-tests (Files): Likewise.
40265         * modules/ftello-tests (Files): Likewise.
40266         * modules/futimens-tests (Files): Likewise.
40267         * modules/getaddrinfo-tests (Files): Likewise.
40268         * modules/getcwd-tests (Files): Likewise.
40269         * modules/getdelim-tests (Files): Likewise.
40270         * modules/getdtablesize-tests (Files): Likewise.
40271         * modules/getgroups-tests (Files): Likewise.
40272         * modules/gethostname-tests (Files): Likewise.
40273         * modules/getline-tests (Files): Likewise.
40274         * modules/getopt-posix-tests (Files): Likewise.
40275         * modules/gettimeofday-tests (Files): Likewise.
40276         * modules/glob-tests (Files): Likewise.
40277         * modules/iconv-tests (Files): Likewise.
40278         * modules/inet_ntop-tests (Files): Likewise.
40279         * modules/inet_pton-tests (Files): Likewise.
40280         * modules/isblank-tests (Files): Likewise.
40281         * modules/lchown-tests (Files): Likewise.
40282         * modules/ldexpl-tests (Files): Likewise.
40283         * modules/link-tests (Files): Likewise.
40284         * modules/linkat-tests (Files): Likewise.
40285         * modules/lseek-tests (Files): Likewise.
40286         * modules/lstat-tests (Files): Likewise.
40287         * modules/mbrtowc-tests (Files): Likewise.
40288         * modules/mbsinit-tests (Files): Likewise.
40289         * modules/mbsnrtowcs-tests (Files): Likewise.
40290         * modules/mbsrtowcs-tests (Files): Likewise.
40291         * modules/memchr-tests (Files): Likewise.
40292         * modules/memcmp-tests (Files): Likewise.
40293         * modules/memmem-tests (Files): Likewise.
40294         * modules/memrchr-tests (Files): Likewise.
40295         * modules/mkdir-tests (Files): Likewise.
40296         * modules/mkfifo-tests (Files): Likewise.
40297         * modules/mkfifoat-tests (Files): Likewise.
40298         * modules/mknod-tests (Files): Likewise.
40299         * modules/nanosleep-tests (Files): Likewise.
40300         * modules/nl_langinfo-tests (Files): Likewise.
40301         * modules/obstack-printf-tests (Files): Likewise.
40302         * modules/open-tests (Files): Likewise.
40303         * modules/openat-tests (Files): Likewise.
40304         * modules/perror-tests (Files): Likewise.
40305         * modules/pipe2-tests (Files): Likewise.
40306         * modules/poll-tests (Files): Likewise.
40307         * modules/popen-tests (Files): Likewise.
40308         * modules/posix_spawn-tests (Files): Likewise.
40309         * modules/posix_spawnp-tests (Files): Likewise.
40310         * modules/pread-tests (Files): Likewise.
40311         * modules/printf-posix-tests (Files): Likewise.
40312         * modules/pty-tests (Files): Likewise.
40313         * modules/random_r-tests (Files): Likewise.
40314         * modules/rawmemchr-tests (Files): Likewise.
40315         * modules/readlink-tests (Files): Likewise.
40316         * modules/remove-tests (Files): Likewise.
40317         * modules/rename-tests (Files): Likewise.
40318         * modules/renameat-tests (Files): Likewise.
40319         * modules/rmdir-tests (Files): Likewise.
40320         * modules/round-tests (Files): Likewise.
40321         * modules/roundf-tests (Files): Likewise.
40322         * modules/roundl-tests (Files): Likewise.
40323         * modules/select-tests (Files): Likewise.
40324         * modules/setenv-tests (Files): Likewise.
40325         * modules/sigaction-tests (Files): Likewise.
40326         * modules/sleep-tests (Files): Likewise.
40327         * modules/snprintf-posix-tests (Files): Likewise.
40328         * modules/snprintf-tests (Files): Likewise.
40329         * modules/sprintf-posix-tests (Files): Likewise.
40330         * modules/stat-tests (Files): Likewise.
40331         * modules/strcasestr-tests (Files): Likewise.
40332         * modules/strchrnul-tests (Files): Likewise.
40333         * modules/strerror-tests (Files): Likewise.
40334         * modules/strsignal-tests (Files): Likewise.
40335         * modules/strstr-tests (Files): Likewise.
40336         * modules/strtod-tests (Files): Likewise.
40337         * modules/strverscmp-tests (Files): Likewise.
40338         * modules/symlink-tests (Files): Likewise.
40339         * modules/symlinkat-tests (Files): Likewise.
40340         * modules/times-tests (Files): Likewise.
40341         * modules/trunc-tests (Files): Likewise.
40342         * modules/truncf-tests (Files): Likewise.
40343         * modules/truncl-tests (Files): Likewise.
40344         * modules/tsearch-tests (Files): Likewise.
40345         * modules/uname-tests (Files): Likewise.
40346         * modules/unlink-tests (Files): Likewise.
40347         * modules/unsetenv-tests (Files): Likewise.
40348         * modules/usleep-tests (Files): Likewise.
40349         * modules/utimensat-tests (Files): Likewise.
40350         * modules/vasprintf-tests (Files): Likewise.
40351         * modules/vdprintf-posix-tests (Files): Likewise.
40352         * modules/vfprintf-posix-tests (Files): Likewise.
40353         * modules/vprintf-posix-tests (Files): Likewise.
40354         * modules/vsnprintf-posix-tests (Files): Likewise.
40355         * modules/vsnprintf-tests (Files): Likewise.
40356         * modules/vsprintf-posix-tests (Files): Likewise.
40357         * modules/wcrtomb-tests (Files): Likewise.
40358         * modules/wcsnrtombs-tests (Files): Likewise.
40359         * modules/wcsrtombs-tests (Files): Likewise.
40360         * modules/wcwidth-tests (Files): Likewise.
40361         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40362         * tests/test-isinf.c (isinf): Likewise.
40363         * tests/test-isnan.c (isnan): Likewise.
40364         * tests/test-signbit.c (signbit): Likewise.
40365         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40366         declaration, either as macro or with correct signature.
40367         (select): Ensure function under test is declared with correct
40368         signature in correct header.
40369         * tests/test-atexit.c (atexit): Likewise.
40370         * tests/test-btowc.c (btowc): Likewise.
40371         * tests/test-canonicalize-lgpl.c (realpath)
40372         (canonicalize_file_name): Likewise.
40373         * tests/test-ceilf1.c (ceilf): Likewise.
40374         * tests/test-ceill.c (ceill): Likewise.
40375         * tests/test-chown.c (chown): Likewise.
40376         * tests/test-dprintf-posix.c (dprintf): Likewise.
40377         * tests/test-dup2.c (dup2): Likewise.
40378         * tests/test-dup3.c (dup3): Likewise.
40379         * tests/test-duplocale.c (duplocale): Likewise.
40380         * tests/test-fchdir.c (fchdir): Likewise.
40381         * tests/test-fchownat.c (fchownat): Likewise.
40382         * tests/test-fcntl.c (fcntl): Likewise.
40383         * tests/test-fdopendir.c (fdopendir): Likewise.
40384         * tests/test-fflush.c (fflush): Likewise.
40385         * tests/test-flock.c (flock): Likewise.
40386         * tests/test-floorf1.c (floorf): Likewise.
40387         * tests/test-floorl.c (floorl): Likewise.
40388         * tests/test-fnmatch.c (fnmatch): Likewise.
40389         * tests/test-fopen.c (fopen): Likewise.
40390         * tests/test-fprintf-posix.c (fprintf): Likewise.
40391         * tests/test-freopen.c (freopen): Likewise.
40392         * tests/test-frexp.c (frexp): Likewise.
40393         * tests/test-frexpl.c (frexpl): Likewise.
40394         * tests/test-fseek.c (fseek): Likewise.
40395         * tests/test-fseeko.c (fseeko): Likewise.
40396         * tests/test-fstatat.c (fstatat): Likewise.
40397         * tests/test-fsync.c (fsync): Likewise.
40398         * tests/test-ftell.c (ftell): Likewise.
40399         * tests/test-ftello.c (ftello): Likewise.
40400         * tests/test-futimens.c (futimens): Likewise.
40401         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40402         (gai_strerror): Likewise.
40403         * tests/test-getcwd.c (getcwd): Likewise.
40404         * tests/test-getdelim.c (getdelim): Likewise.
40405         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40406         * tests/test-getgroups.c (getgroups): Likewise.
40407         * tests/test-gethostname.c (gethostname): Likewise.
40408         * tests/test-getline.c (getline): Likewise.
40409         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40410         Likewise.
40411         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40412         * tests/test-glob.c (glob, globfree): Likewise.
40413         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40414         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40415         * tests/test-inet_pton.c (inet_pton): Likewise.
40416         * tests/test-isblank.c (isblank): Likewise.
40417         * tests/test-lchown.c (lchown): Likewise.
40418         * tests/test-ldexpl.c (ldexpl): Likewise.
40419         * tests/test-link.c (link): Likewise.
40420         * tests/test-linkat.c (linkat): Likewise.
40421         * tests/test-lseek.c (lseek): Likewise.
40422         * tests/test-lstat.c (lstat): Likewise.
40423         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40424         * tests/test-mbsinit.c (mbsinit): Likewise.
40425         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40426         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40427         * tests/test-memchr.c (memchr): Likewise.
40428         * tests/test-memcmp.c (memcmp): Likewise.
40429         * tests/test-memmem.c (memmem): Likewise.
40430         * tests/test-memrchr.c (memrchr): Likewise.
40431         * tests/test-mkdir.c (mkdir): Likewise.
40432         * tests/test-mkdirat.c (mkdirat): Likewise.
40433         * tests/test-mkfifo.c (mkfifo): Likewise.
40434         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40435         * tests/test-mknod.c (mknod): Likewise.
40436         * tests/test-nanosleep.c (nanosleep): Likewise.
40437         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40438         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40439         Likewise.
40440         * tests/test-open.c (open): Likewise.
40441         * tests/test-openat.c (openat): Likewise.
40442         * tests/test-perror.c (perror): Likewise.
40443         * tests/test-pipe2.c (pipe2): Likewise.
40444         * tests/test-poll.c (poll): Likewise.
40445         * tests/test-popen.c (popen, pclose): Likewise.
40446         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40447         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40448         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40449         (posix_spawn_file_actions_destroy)
40450         (posix_spawn_file_actions_addclose)
40451         (posix_spawn_file_actions_addopen)
40452         (posix_spawn_file_actions_adddup2): Likewise.
40453         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40454         * tests/test-pread.c (pread): Likewise.
40455         * tests/test-printf-posix.c (printf): Likewise.
40456         * tests/test-pty.c (openpty, forkpty): Likewise.
40457         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40458         (random_r): Likewise.
40459         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40460         * tests/test-readlink.c (readlink): Likewise.
40461         * tests/test-remove.c (remove): Likewise.
40462         * tests/test-rename.c (rename): Likewise.
40463         * tests/test-renameat.c (renameat): Likewise.
40464         * tests/test-rmdir.c (rmdir): Likewise.
40465         * tests/test-round1.c (round): Likewise.
40466         * tests/test-roundf1.c (roundf): Likewise.
40467         * tests/test-roundl.c (roundl): Likewise.
40468         * tests/test-setenv.c (setenv): Likewise.
40469         * tests/test-sigaction.c (sigaction): Likewise.
40470         * tests/test-sleep.c (sleep): Likewise.
40471         * tests/test-snprintf.c (snprintf): Likewise.
40472         * tests/test-sprintf-posix.c (sprintf): Likewise.
40473         * tests/test-stat.c (stat): Likewise.
40474         * tests/test-stpncpy.c (stpncpy): Likewise.
40475         * tests/test-strcasestr.c (strcasestr): Likewise.
40476         * tests/test-strchrnul.c (strchrnul): Likewise.
40477         * tests/test-strerror.c (strerror): Likewise.
40478         * tests/test-strsignal.c (strsignal): Likewise.
40479         * tests/test-strstr.c (strstr): Likewise.
40480         * tests/test-strtod.c (strtod): Likewise.
40481         * tests/test-strverscmp.c (strverscmp): Likewise.
40482         * tests/test-symlink.c (symlink): Likewise.
40483         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40484         * tests/test-times.c (times): Likewise.
40485         * tests/test-trunc1.c (trunc): Likewise.
40486         * tests/test-truncf1.c (truncf): Likewise.
40487         * tests/test-truncl.c (truncl): Likewise.
40488         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40489         Likewise.
40490         * tests/test-uname.c (uname): Likewise.
40491         * tests/test-unlink.c (unlink): Likewise.
40492         * tests/test-unlinkat.c (unlinkat): Likewise.
40493         * tests/test-unsetenv.c (unsetenv): Likewise.
40494         * tests/test-usleep.c (usleep): Likewise.
40495         * tests/test-utimensat.c (utimensat): Likewise.
40496         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40497         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40498         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40499         * tests/test-vprintf-posix.c (vprintf): Likewise.
40500         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40501         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40502         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40503         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40504         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40505         * tests/test-wcwidth.c (wcwidth): Likewise.
40506
40507         build: pull in conditional headers during GNULIB_POSIXCHECK
40508         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40509         definitions from any conditionally-included headers.
40510         * lib/stdlib.in.h (includes): Likewise.
40511         * lib/unistd.in.h (includes): Likewise.
40512
40513 2009-12-24  Bruno Haible  <bruno@clisp.org>
40514
40515         * tests/test-argv-iter.c: Include header file being tested immediately
40516         after config.h.
40517         * tests/test-base64.c: Likewise.
40518         * tests/test-flock.c: Likewise.
40519         * tests/test-fsync.c: Likewise.
40520         * tests/test-getdate.c: Likewise.
40521         * tests/test-getndelim2.c: Likewise.
40522         * tests/test-isfinite.c: Likewise.
40523         * tests/test-isinf.c: Likewise.
40524         * tests/test-strerror.c: Likewise.
40525         * tests/test-strsignal.c: Likewise.
40526
40527 2009-12-23  Eric Blake  <ebb9@byu.net>
40528
40529         unistd: work around cygwin bug
40530         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40531         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40532         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40533
40534 2009-12-23  Bruno Haible  <bruno@clisp.org>
40535
40536         localename: More tests.
40537         * tests/test-localename.c (SIZEOF): New macro.
40538         (categories): New variable.
40539         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40540         test_locale_name_default): Add test w.r.t. thread locale.
40541         (test_locale_name_thread): New function.
40542         (main): Invoke it.
40543
40544         localename: Make aware of thread locale.
40545         * lib/localename.h (gl_locale_name_thread): New declaration.
40546         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40547         behaviour with respect to thread locale.
40548         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40549         <langinfo.h>, glthread/lock.h.
40550         (SIZE_BITS): New macro.
40551         (string_hash): New function.
40552         (struct hash_node): New type.
40553         (HASH_TABLE_SIZE): New macro.
40554         (struniq_hash_table, struniq_lock): New variables.
40555         (struniq): New function.
40556         (gl_locale_name_thread): New function.
40557         (gl_locale_name): Invoke it.
40558         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40559         * modules/localename (Depends-on): Add lock.
40560         Reported by Mike Gran <spk121@yahoo.com>.
40561
40562 2009-12-23  Eric Blake  <ebb9@byu.net>
40563
40564         va-args: new module
40565         * modules/va-args: New file.
40566         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40567         * MODULES.html.sh (Core language properties): Mention it.
40568
40569         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40570         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40571         named alias for __attribute__((__unused__)).
40572         * lib/chown.c: Update client.
40573         * lib/fchmodat.c: Likewise.
40574         * lib/fts.c: Likewise.
40575         * lib/getdate.y: Likewise.
40576         * lib/getgroups.c: Likewise.
40577         * lib/getopt.c: Likewise.
40578         * lib/getugroups.c: Likewise.
40579         * lib/mkdir.c: Likewise.
40580         * lib/mkfifo.c: Likewise.
40581         * lib/mkfifoat.c: Likewise.
40582         * lib/mknod.c: Likewise.
40583         * lib/mknodat.c: Likewise.
40584         * lib/readlink.c: Likewise.
40585         * lib/se-context.in.h: Likewise.
40586         * lib/se-selinux.in.h: Likewise.
40587         * lib/sockets.c: Likewise.
40588         * lib/symlink.c: Likewise.
40589         * lib/symlinkat.c: Likewise.
40590         * lib/unicodeio.c: Likewise.
40591         * lib/unistr.h: Likewise.
40592         * tests/test-areadlink.c: Likewise.
40593         * tests/test-areadlinkat.c: Likewise.
40594         * tests/test-filenamecat.c: Likewise.
40595         * tests/test-fseeko.c: Likewise.
40596         * tests/test-ftello.c: Likewise.
40597         * tests/test-getdate.c: Likewise.
40598         * tests/test-getgroups.c: Likewise.
40599         * tests/test-gethostname.c: Likewise.
40600         * tests/test-quotearg.c: Likewise.
40601         * tests/test-version-etc.c: Likewise.
40602         * tests/test-xalloc-die.c: Likewise.
40603         * tests/test-xfprintf-posix.c: Likewise.
40604         * tests/test-xprintf-posix.c: Likewise.
40605         * tests/test-xvasprintf.c: Likewise.
40606
40607         tests: avoid compiler warnings
40608         * tests/test-fcntl.c (main): Delete unused parameters.
40609         * tests/test-freopen-safer.c (main): Likewise.
40610         * tests/test-xalloc-die.c (main): Mark unused parameters.
40611         * tests/test-fseeko.c (main): Likewise.
40612         * tests/test-ftello.c (main): Likewise.
40613         * tests/test-nanosleep.c (main): Avoid declaration warning.
40614         * tests/test-sleep.c (main): Likewise.
40615         * tests/test-unsetenv.c (main): Silence warning about string
40616         literal.
40617         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40618
40619 2009-12-23  Bruno Haible  <bruno@clisp.org>
40620
40621         * tests/test-localename.c (test_locale_name): New function, extracted
40622         from main. Also test mixed situations.
40623         (test_locale_name_posix, test_locale_name_environ,
40624         test_locale_name_default): New functions.
40625         (main): Invoke them all.
40626         * modules/localename-tests (configure.ac): Test for newlocale.
40627
40628 2009-12-23  Bruno Haible  <bruno@clisp.org>
40629
40630         unistd: Ensure getcwd gets declared before being overridden.
40631         * lib/unistd.in.h: Conditionally include <io.h>.
40632
40633 2009-12-22  Bruno Haible  <bruno@clisp.org>
40634
40635         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40636         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40637         (gl_WCHAR_H): Invoke it.
40638         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40639         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40640         Reported by Karl Berry <karl@freefriends.org>.
40641
40642 2009-12-22  Eric Blake  <ebb9@byu.net>
40643
40644         math, unistd: avoid redundant includes
40645         * lib/math.in.h (isnan): No need to re-include <math.h>.
40646         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40647
40648         getsubopt: work around cygwin bug
40649         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40650         avoid conflicting with system getsubopt.
40651         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40652         bug.
40653
40654         getopt: synchronize from glibc
40655         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40656         parameter order.  Adjust all callers.
40657         (_getopt_internal_r, main): Adjust quoting in error messages.
40658         Drop considerations for outdated POSIX 1003.2 error message.
40659         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40660         callers.
40661         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40662
40663         test-getopt: test stderr behavior
40664         * modules/getopt-posix-tests (Depends-on): Add dup2.
40665         * tests/test-getopt.c (ASSERT): Avoid stderr.
40666         (main): Move stderr to a temporary file.
40667         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40668         Instead, add parameter to inform caller if output occurred.
40669         (test_getopt): Adjust all existing tests to expect silence, and
40670         add new tests of leading ":".
40671         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40672         glibc shortcomings with leading "-:" or "+:" in optstring.
40673         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40674         Likewise.
40675         * doc/posix-functions/getopt.texi (getopt): Likewise.
40676
40677         test-getopt: enhance test
40678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40679         supports optind=0.
40680         * tests/test-getopt.c (OPTIND_MIN): Move...
40681         * tests/test-getopt.h (OPTIND_MIN): ...here.
40682         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40683         Require that optind=0 works, since modern BSD supports it in
40684         addition to optreset, and since coreutils expects it.
40685         (test_getopt_long_only): New test.
40686         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40687         glibc shortcomings with 'W;', and enforcement of optind=0.
40688         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40689         Likewise.
40690
40691 2009-12-21  Bruno Haible  <bruno@clisp.org>
40692
40693         localename: Improvements for MacOS X and Cygwin.
40694         * lib/localename.h (gl_locale_name_environ): New declaration.
40695         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40696         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40697         (gl_locale_name_posix): Invoke it.
40698         (gl_locale_name_default): Add comments. Use Windows native API also on
40699         Cygwin.
40700
40701 2009-12-21  Bruno Haible  <bruno@clisp.org>
40702
40703         Update list of Win32 locale ids.
40704         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40705         (LANG_SAMI): Renamed from LANG_SAAMI.
40706         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40707         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40708         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40709         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40710         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40711         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40712         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40713         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40714         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40715         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40716         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40717         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40718         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40719         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40720         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40721         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40722         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40723         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40724         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40725         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40726         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40727         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40728         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40729         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40730         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40731         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40732         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40733         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40734         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40735         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40736         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40737         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40738         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40739         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40740         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40741         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40742         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40743         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40744         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40745         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40746         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40747         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40748         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40749         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40750         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40751         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40752         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40753         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40754         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40755         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40756         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40757         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40758         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40759         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40760         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40761         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40762         Add more languages and countries for Sami, Sorbian. Add more countries
40763         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40764         for Pashto. Change country for Syriac, Tswana.
40765
40766 2009-12-21  Eric Blake  <ebb9@byu.net>
40767
40768         test-utimens: avoid spurious failure
40769         * tests/test-chown.h (nap): Factor...
40770         * tests/nap.h: ...into new file.
40771         * tests/test-lchown.h (nap): Avoid duplication.
40772         * tests/test-utimens-common.h (nap): Use shared implementation,
40773         necessary on file systems with 1-second resolution.
40774         * modules/chown-tests (Files): Include new file.
40775         * modules/fdutimensat-tests (Files): Likewise.
40776         * modules/futimens-tests (Files): Likewise.
40777         * modules/lchown-tests (Files): Likewise.
40778         * modules/openat-tests (Files): Likewise.
40779         * modules/utimens-tests (Files): Likewise.
40780         * modules/utimensat-tests (Files): Likewise.
40781
40782 2009-12-19  Eric Blake  <ebb9@byu.net>
40783
40784         futimens, utimensat: work around Linux bug
40785         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40786         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40787         * lib/utimensat.c (rpl_utimensat): Work around it.
40788         * lib/futimens.c (rpl_futimens): Adjust comment.
40789
40790         utimens: work around Linux ctime bug
40791         * lib/utimens.c (detect_ctime_bug): New helper function.
40792         (update_timespec): Differentiate between workaround needed for
40793         this bug vs. what is needed for systems that lack utimensat.
40794         (fdutimens, lutimens): Work around bug.
40795
40796         utimens: check for ctime update
40797         * tests/test-utimens-common.h (check_ctime): Define.
40798         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40799         * tests/test-futimens.h (test_futimens): Likewise.
40800         * tests/test-lutimens.h (test_lutimens): Likewise.
40801         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40802         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40803
40804 2009-12-19  Bruno Haible  <bruno@clisp.org>
40805
40806         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40807         * tests/test-dprintf-posix2.sh: New file.
40808         * tests/test-dprintf-posix2.c: New file.
40809         * modules/dprintf-posix-tests (Files): Add them.
40810         (configure.ac): Check for getrlimit and setrlimit.
40811         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40812
40813 2009-12-19  Bruno Haible  <bruno@clisp.org>
40814
40815         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40816         * tests/test-fprintf-posix3.sh: New file.
40817         * tests/test-fprintf-posix3.c: New file.
40818         * modules/fprintf-posix-tests (Files): Add them.
40819         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40820
40821 2009-12-19  Eric Blake  <ebb9@byu.net>
40822
40823         dirfd: fix prototype
40824         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40825         * lib/dirfd.c (dirfd): Likewise.
40826
40827         canonicalize: reduce memory usage
40828         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40829         allocation to size.
40830         Reported by Solar Designer <solar@openwall.com>.
40831
40832 2009-12-19  Bruno Haible  <bruno@clisp.org>
40833
40834         New module attribute 'Applicability'.
40835         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40836         * gnulib-tool: New option --extract-applicability.
40837         (func_usage): Document it.
40838         (sed_extract_prog): Recognize it.
40839         (func_get_applicability): New function.
40840         (func_import): Generalize handling of 'link-warning' module.
40841         * modules/link-warning (Applicability): New section.
40842         * modules/arg-nonnull (Applicability): New section.
40843         Repoted by Simon Josefsson <simon@josefsson.org>.
40844
40845 2009-12-19  Bruno Haible  <bruno@clisp.org>
40846
40847         fflush: tweak
40848         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40849         * lib/fseeko.c (rpl_fseeko): Likewise.
40850
40851 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40852
40853         * lib/gl_list.h: Fix typo in comment.
40854
40855 2009-12-16  Eric Blake  <ebb9@byu.net>
40856
40857         fcntl: use to simplify other modules
40858         * modules/cloexec (Depends-on): Add fcntl.
40859         * modules/fchdir (Depends-on): Likewise.
40860         * modules/fd-safer-flag (Depends-on): Likewise.
40861         * modules/unistd-safer (Depends-on): Likewise.
40862         * modules/dup3 (configure.ac): Set module indicator.
40863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40864         missing.
40865         * lib/fchdir.c (_gl_register_dup): Fix comment.
40866         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40867         * lib/dup-safer.c (dup_safer): Likewise.
40868         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40869         * lib/dup3.c (dup3): Likewise.
40870         * tests/test-fchdir.c (main): Enhance test.
40871         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40872
40873         fcntl: port portions of fcntl to mingw
40874         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40875         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40876         replacement for mingw.
40877         * modules/fcntl (Description): Update.
40878         (Depends-on): Add dup2.
40879         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40880         * modules/fcntl-h (Makefile.am): Substitute it.
40881         * lib/fcntl.in.h (fcntl): Update declaration.
40882         (F_DUPFD, F_GETFD): New macros, when needed.
40883         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40884         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40885         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40886         we now guarantee.
40887
40888         fcntl: work around cygwin bug in F_DUPFD
40889         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40890         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40891         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40892         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40893         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40894
40895         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40896         * modules/fcntl (Files): List new files.
40897         (configure.ac): Run a test.
40898         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40899         * lib/fcntl.c (rpl_fcntl): Likewise.
40900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40901         (gl_FCNTL_H): Always replace fcntl.h.
40902         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40903         * lib/fcntl.in.h (fcntl): Declare replacement.
40904         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40905         needed, plus a witness.
40906         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40907         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40908         * tests/test-fcntl.c: New file.
40909         * modules/fcntl-tests: Likewise.
40910
40911         binary-io: avoid potential compilation warning
40912         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40913         directives.
40914
40915         fflush: avoid compilation error on NetBSD
40916         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40917         between off_t and fpos_t, since the latter is sometimes a struct.
40918         * lib/fseeko.c (rpl_fseeko): Likewise.
40919         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40920
40921 2009-12-15  Eric Blake  <ebb9@byu.net>
40922
40923         fcntl-h, stdio, sys_ioctl: fix declarations
40924         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40925         function must not take arguments.
40926         * lib/sys_ioctl.in.h (ioctl): Likewise.
40927         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40928         (open): Add a link warning.
40929
40930 2009-12-15  Jim Meyering  <meyering@redhat.com>
40931
40932         areadlink, areadlink-with-size: relax license to LGPLv2+
40933         * modules/areadlink (License): Relax to LGPLv2+.
40934         * modules/areadlink-with-size (License): Likewise.
40935
40936 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40937             Bruno Haible  <bruno@clisp.org>
40938
40939         *printf: Fix memory leak.
40940         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40941         * lib/vfprintf.c (vfprintf): Likewise.
40942         * lib/dprintf.c (dprintf): Likewise.
40943         * lib/vdprintf.c (vdprintf): Likewise.
40944
40945 2009-12-14  Eric Blake  <ebb9@byu.net>
40946
40947         accept4: adjust module dependencies
40948         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40949
40950         utimens: one more try at avoiding compiler warning
40951         * lib/utimens.c (lutimens): Lower scope of result.
40952
40953 2009-12-13  Bruno Haible  <bruno@clisp.org>
40954
40955         Move the malloc checking from module 'list' to new module 'xlist'.
40956         * modules/xlist: New file.
40957         * lib/gl_xlist.h: New file.
40958         * lib/gl_xlist.c: New file.
40959         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40960         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40961         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40962         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40963         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40964         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40965         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40966         gl_sortedlist_nx_add): New declarations.
40967         (struct gl_list_implementation): Rename and change methods accordingly.
40968         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40969         (gl_list_nx_create): Renamed from gl_list_create.
40970         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40971         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40972         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40973         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40974         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40975         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40976         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40977         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40978         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40979         gl_list_create_empty.
40980         (gl_list_nx_create): Renamed from gl_list_create.
40981         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40982         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40983         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40984         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40985         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40986         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40987         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40988         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40989         * lib/gl_array_list.c: Don't include xalloc.h.
40990         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40991         NULL upon out-of-memory.
40992         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40993         out-of-memory.
40994         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40995         Change return type to 'int'.
40996         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40997         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40998         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40999         upon out-of-memory.
41000         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41001         upon out-of-memory.
41002         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41003         upon out-of-memory.
41004         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41005         upon out-of-memory.
41006         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41007         out-of-memory.
41008         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41009         Update.
41010         (gl_array_list_implementation): Update.
41011         * lib/gl_carray_list.c: Don't include xalloc.h.
41012         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41013         Return NULL upon out-of-memory.
41014         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41015         out-of-memory.
41016         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41017         Change return type to 'int'.
41018         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41019         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41020         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41021         upon out-of-memory.
41022         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41023         upon out-of-memory.
41024         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41025         out-of-memory.
41026         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41027         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41028         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41029         Update.
41030         (gl_carray_list_implementation): Update.
41031         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41032         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41033         gl_linked_create_empty. Return NULL upon out-of-memory.
41034         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41035         out-of-memory.
41036         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41037         Change return type to 'int'. Return -1 upon out-of-memory.
41038         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41039         out-of-memory.
41040         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41041         upon out-of-memory.
41042         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41043         upon out-of-memory.
41044         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41045         NULL upon out-of-memory.
41046         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41047         upon out-of-memory.
41048         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41049         out-of-memory.
41050         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41051         Update.
41052         * lib/gl_linked_list.c: Don't include xalloc.h.
41053         (gl_linked_list_implementation): Update.
41054         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41055         (add_to_bucket): Change return type to 'int'.
41056         (gl_linkedhash_list_implementation): Update.
41057         * lib/gl_anytree_list1.h (free_subtree): New function.
41058         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41059         gl_tree_create_empty. Return NULL upon out-of-memory.
41060         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41061         Change return type to 'int'. Return -1 upon out-of-memory.
41062         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41063         out-of-memory.
41064         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41065         (gl_tree_remove_node): New function, moved here from
41066         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41067         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41068         Update.
41069         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41070         malloc, not xmalloc. Return NULL upon out-of-memory.
41071         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41072         out-of-memory.
41073         (gl_tree_remove_node_from_tree): New function, extracted from
41074         gl_tree_remove_node.
41075         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41076         upon out-of-memory.
41077         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41078         out-of-memory.
41079         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41080         upon out-of-memory.
41081         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41082         upon out-of-memory.
41083         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41084         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41085         not xmalloc. Return NULL upon out-of-memory.
41086         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41087         out-of-memory.
41088         (gl_tree_remove_node_from_tree): New function, extracted from
41089         gl_tree_remove_node.
41090         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41091         upon out-of-memory.
41092         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41093         out-of-memory.
41094         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41095         upon out-of-memory.
41096         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41097         upon out-of-memory.
41098         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41099         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41100         gl_anytree_list1.h before gl_anyavltree_list2.h.
41101         (gl_avltree_list_implementation): Update.
41102         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41103         gl_anytree_list1.h before gl_anyavltree_list2.h.
41104         (gl_rbtree_list_implementation): Update.
41105         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41106         Change return type to 'int'. Return -1 upon out-of-memory. Use
41107         __builtin_expect.
41108         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41109         (gl_avltreehash_list_implementation): Update.
41110         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41111         (gl_rbtreehash_list_implementation): Update.
41112         * modules/array-list (Depends-on): Remove xalloc.
41113         * modules/carray-list (Depends-on): Likewise.
41114         * modules/linked-list (Depends-on): Likewise.
41115         * modules/linkedhash-list (Depends-on): Likewise.
41116         * modules/avltree-list (Depends-on): Likewise.
41117         * modules/rbtree-list (Depends-on): Likewise.
41118         * modules/avltreehash-list (Depends-on): Likewise.
41119         * modules/rbtreehash-list (Depends-on): Likewise.
41120
41121         * modules/xsublist: New file.
41122         * lib/gl_xsublist.h: New file.
41123         * lib/gl_xsublist.c: New file.
41124         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41125         (gl_sublist_nx_create): New declaration.
41126         * lib/gl_sublist.c: Don't include xalloc.h.
41127         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41128         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41129         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41130         Change return type to 'int'. Return -1 upon out-of-memory.
41131         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41132         upon out-of-memory.
41133         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41134         NULL upon out-of-memory.
41135         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41136         upon out-of-memory.
41137         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41138         NULL upon out-of-memory.
41139         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41140         NULL upon out-of-memory.
41141         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41142         upon out-of-memory.
41143         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41144         (gl_sublist_list_implementation): Update.
41145         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41146         upon out-of-memory.
41147         * modules/sublist (Depends-on): Remove xalloc.
41148
41149         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41150         * tests/test-carray_list.c: Likewise.
41151         * tests/test-linked_list.c: Likewise.
41152         * tests/test-linkedhash_list.c: Likewise.
41153         * tests/test-avltree_list.c: Likewise.
41154         * tests/test-rbtree_list.c: Likewise.
41155         * tests/test-avltreehash_list.c: Likewise.
41156         * tests/test-rbtreehash_list.c: Likewise.
41157         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41158         * modules/carray-list-tests (Makefile.am): Likewise.
41159         * modules/linked-list-tests (Makefile.am): Likewise.
41160         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41161         * modules/avltree-list-tests (Makefile.am): Likewise.
41162         * modules/rbtree-list-tests (Makefile.am): Likewise.
41163         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41164         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41165
41166         * NEWS: Mention the changes.
41167
41168         * lib/clean-temp.c: Include gl_xlist.h.
41169         * modules/clean-temp (Depends-on): Add xlist.
41170
41171         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41172         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41173
41174         * tests/test-array_oset.c: Include gl_xlist.h.
41175         * modules/array-oset-tests (Depends-on): Add xlist.
41176
41177         Reported by José E. Marchesi <jemarch@gnu.org>.
41178
41179 2009-12-13  Bruno Haible  <bruno@clisp.org>
41180
41181         Move the malloc checking from module 'oset' to new module 'xoset'.
41182         * modules/xoset: New file.
41183         * lib/gl_xoset.h: New file.
41184         * lib/gl_xoset.c: New file.
41185         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41186         declarations.
41187         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41188         (struct gl_oset_implementation): Rename and change methods accordingly.
41189         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41190         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41191         'int'. Mark as __warn_unused_result__.
41192         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41193         gl_oset_create_empty.
41194         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41195         'int'.
41196         * lib/gl_array_oset.c: Don't include xalloc.h.
41197         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41198         malloc, not xmalloc.
41199         (grow): Change return type to 'int'. Don't call xalloc_die.
41200         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41201         to 'int'.
41202         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41203         'int'.
41204         (gl_array_oset_implementation): Update.
41205         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41206         gl_tree_create_empty.
41207         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41208         'int'.
41209         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41210         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41211         xmalloc.
41212         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41213         not xmalloc.
41214         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41215         xmalloc.
41216         (gl_avltree_oset_implementation): Update.
41217         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41218         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41219         xmalloc.
41220         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41221         not xmalloc.
41222         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41223         xmalloc.
41224         (gl_rbtree_oset_implementation): Update.
41225         * modules/array-oset (Depends-on): Remove xalloc.
41226         * modules/avltree-oset (Depends-on): Likewise.
41227         * modules/rbtree-oset (Depends-on): Likewise.
41228         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41229         * tests/test-avltree_oset.c: Likewise.
41230         * tests/test-rbtree_oset.c: Likewise.
41231         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41232         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41233         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41234         * NEWS: Mention the change.
41235
41236 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41237
41238         maint.mk: allow a project to override release-prep commands
41239         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41240         commands into a new rule.
41241         (release-prep): New rule.
41242         (release-prep-hook): New overridable variable.
41243
41244 2009-12-13  Bruno Haible  <bruno@clisp.org>
41245
41246         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41247
41248 2009-12-13  Jim Meyering  <meyering@redhat.com>
41249
41250         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41251         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41252
41253 2009-12-12  Bruno Haible  <bruno@clisp.org>
41254
41255         duplocale: Tweak.
41256         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41257
41258 2009-12-12  Karl Berry  <karl@gnu.org>
41259
41260         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41261
41262 2009-12-12  Bruno Haible  <bruno@clisp.org>
41263
41264         * m4/po.m4: Undo incorrect untabification.
41265
41266 2009-12-12  Bruno Haible  <bruno@clisp.org>
41267
41268         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41269         * modules/c-strtod (Depends-on): Add locale.
41270         * modules/c-strtold (Depends-on): Likewise.
41271
41272 2009-12-12  Bruno Haible  <bruno@clisp.org>
41273
41274         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41275
41276 2009-12-11  Eric Blake  <ebb9@byu.net>
41277
41278         setenv: relax requirement in light of POSIX ruling
41279         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41280         not NULL.
41281         * tests/test-setenv.c (main): Relax test.
41282         * tests/test-unsetenv.c (main): Likewise.
41283         * doc/posix-functions/setenv.texi (setenv): Document this.
41284         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41285
41286 2009-12-11  Bruno Haible  <bruno@clisp.org>
41287
41288         New module 'fd-safer-flag'.
41289         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41290         * lib/dup-safer.c (dup_safer_flag): Remove function.
41291         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41292         * lib/fd-safer.c (fd_safer_flag): Remove function.
41293         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41294         * modules/cloexec (configure.ac): Drop indicator macro.
41295         * modules/fd-safer-flag: New file.
41296         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41297         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41298         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41299
41300 2009-12-11  Bruno Haible  <bruno@clisp.org>
41301
41302         Tests for module 'nl_langinfo'.
41303         * modules/nl_langinfo-tests: New file.
41304         * tests/test-nl_langinfo.sh: New file.
41305         * tests/test-nl_langinfo.c: New file.
41306
41307         New module 'nl_langinfo'.
41308         * lib/nl_langinfo.c: New file.
41309         * m4/nl_langinfo.m4: New file.
41310         * modules/nl_langinfo: New file.
41311         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41312
41313 2009-12-11  Bruno Haible  <bruno@clisp.org>
41314
41315         Tests for module 'langinfo'.
41316         * modules/langinfo-tests: New file.
41317         * tests/test-langinfo.c: New file.
41318
41319         New module 'langinfo'.
41320         * lib/langinfo.in.h: New file.
41321         * m4/langinfo_h.m4: New file.
41322         * modules/langinfo: New file.
41323         * doc/posix-headers/langinfo.texi: Mention the new module.
41324
41325 2009-12-11  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/config.charset: Untabify.
41328
41329 2009-12-11  Bruno Haible  <bruno@clisp.org>
41330
41331         * modules/unistd-safer (configure.ac): Drop indicator macro.
41332
41333 2009-12-11  Bruno Haible  <bruno@clisp.org>
41334
41335         Move pipe2-safer code to its own file.
41336         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41337         * lib/pipe-safer.c (pipe2_safer): Remove function.
41338         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41339         (Makefile.am): Add it to lib_SOURCES.
41340
41341 2009-12-10  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41344
41345 2009-12-10  Bruno Haible  <bruno@clisp.org>
41346
41347         Declare which arguments expect non-NULL values, for GCC and clang.
41348         * build-aux/arg-nonnull.h: New file.
41349         * modules/arg-nonnull: New file.
41350         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41351         (inet_ntop, inet_pton): Use it.
41352         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41353         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41354         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41355         (open, openat): Use it.
41356         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41357         (fnmatch): Use it.
41358         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41359         (getopt, getopt_long, getopt_long_only): Use it.
41360         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41361         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41362         Use it.
41363         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41364         (iconv_open): Use it.
41365         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41366         (strtoimax, strtoumax): Use it.
41367         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41368         (duplocale): Use it.
41369         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41370         (frexp, frexpl): Use it.
41371         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41372         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41373         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41374         (tsearch, tfind, tdelete, twalk): Use it.
41375         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41377         sigpending): Use it.
41378         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41379         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41380         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41381         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41382         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41383         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41384         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41385         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41386         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41387         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41388         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41389         Use it.
41390         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41391         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41392         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41393         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41394         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41395         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41396         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41397         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41398         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41399         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41400         strtoull, unsetenv): Use it.
41401         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41402         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41403         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41404         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41405         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41406         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41407         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41408         (strcasecmp, strncasecmp): Use it.
41409         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41410         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41411         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41412         rpl_setsockopt): Use it.
41413         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41414         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41415         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41416         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41417         (gettimeofday): Use it.
41418         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41419         (times): Use it.
41420         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41421         (uname): Use it.
41422         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41423         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41424         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41425         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41426         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41427         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41428         unlinkat, write): Use it.
41429         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41430         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41431         * lib/argv-iter.h: Include arg-nonnull.h.
41432         (_ATTRIBUTE_NONNULL_): Remove macro.
41433         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41434         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41435         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41436         optimization.
41437         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41438         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41439         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41440         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41441         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41442         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41443         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41444         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41445         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41446         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41447         * modules/dirent (Depends-on): Add arg-nonnull.
41448         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41449         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41450         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41451         * modules/fnmatch (Depends-on): Add arg-nonnull.
41452         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41453         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41454         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41455         * modules/glob (Depends-on): Add arg-nonnull.
41456         (Makefile.am): Insert arg-nonnull.h into glob.h.
41457         * modules/iconv_open (Depends-on): Add arg-nonnull.
41458         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41459         * modules/inttypes (Depends-on): Add arg-nonnull.
41460         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41461         * modules/locale (Depends-on): Add arg-nonnull.
41462         (Makefile.am): Insert arg-nonnull.h into locale.h.
41463         * modules/math (Depends-on): Add arg-nonnull.
41464         (Makefile.am): Insert arg-nonnull.h into math.h.
41465         * modules/netdb (Depends-on): Add arg-nonnull.
41466         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41467         * modules/search (Depends-on): Add arg-nonnull.
41468         (Makefile.am): Insert arg-nonnull.h into search.h.
41469         * modules/signal (Depends-on): Add arg-nonnull.
41470         (Makefile.am): Insert arg-nonnull.h into signal.h.
41471         * modules/spawn (Depends-on): Add arg-nonnull.
41472         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41473         * modules/stdio (Depends-on): Add arg-nonnull.
41474         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41475         * modules/stdlib (Depends-on): Add arg-nonnull.
41476         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41477         * modules/string (Depends-on): Add arg-nonnull.
41478         (Makefile.am): Insert arg-nonnull.h into string.h.
41479         * modules/strings (Depends-on): Add arg-nonnull.
41480         (Makefile.am): Insert arg-nonnull.h into strings.h.
41481         * modules/sys_socket (Depends-on): Add arg-nonnull.
41482         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41483         * modules/sys_stat (Depends-on): Add arg-nonnull.
41484         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41485         * modules/sys_time (Depends-on): Add arg-nonnull.
41486         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41487         * modules/sys_times (Depends-on): Add arg-nonnull.
41488         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41489         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41490         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41491         * modules/time (Depends-on): Add arg-nonnull.
41492         (Makefile.am): Insert arg-nonnull.h into time.h.
41493         * modules/unistd (Depends-on): Add arg-nonnull.
41494         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41495         * modules/wchar (Depends-on): Add arg-nonnull.
41496         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41497         * modules/argv-iter (Depends-on): Add arg-nonnull.
41498         * tests/test-canonicalize.c (null_ptr): New function.
41499         (main): Use it.
41500         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41501         (main): Use it.
41502         * tests/test-memmem.c (null_ptr): New function.
41503         (main): Use it.
41504         Reported by Jim Meyering.
41505
41506 2009-12-10  Bruno Haible  <bruno@clisp.org>
41507
41508         Use spaces for indentation, not tabs.
41509         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41510         * m4/*.m4: Untabify.
41511         * build-aux/*.h: Untabify.
41512         * tests/**/*.[hc]: Untabify.
41513         * README: New section "Indent with spaces, not TABs", based on
41514         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41515         * NEWS: Mention the change.
41516
41517 2009-12-10  Bruno Haible  <bruno@clisp.org>
41518
41519         pty test: Fix link error.
41520         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41521         test_pty_LDADD.
41522
41523 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41524
41525         * modules/pty: New file.
41526         * modules/pty-tests: New file.
41527         * m4/pty.m4: New file.
41528         * tests/test-pty.c: New file.
41529         * doc/glibc-headers/pty.texi: Modified.
41530         * doc/glibc-functions/forkpty.texi: Modified.
41531         * doc/glibc-functions/openpty.texi: Modified.
41532
41533 2009-12-10  Bruno Haible  <bruno@clisp.org>
41534
41535         Avoid syntax error in C++ mode.
41536         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41537
41538 2009-12-10  Bruno Haible  <bruno@clisp.org>
41539
41540         Use sed with option -e.
41541         * gnulib-tool (func_version, func_emit_copyright_notice,
41542         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41543         option -e to sed.
41544         * modules/link-warning (Makefile.am): Likewise.
41545
41546 2009-12-10  Jim Meyering  <meyering@redhat.com>
41547
41548         mgetgroups: do not write bytes beyond end of malloc'd buffer
41549         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41550         username, we call getgroups with a one-element-shorter buffer,
41551         but still told it the length was original, max_n_groups.
41552
41553 2009-12-09  Eric Blake  <ebb9@byu.net>
41554
41555         cloexec: relax license
41556         * modules/cloexec (Maintainer): Add myself.
41557         (License): Use LGPL, not GPL.
41558
41559         link-warning: optimize generation
41560         * modules/link-warning (Makefile.am): Reduce process usage.
41561
41562 2009-12-09  Bruno Haible  <bruno@clisp.org>
41563
41564         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41565         workaround was added on 2009-11-17.
41566
41567 2009-12-09  Jim Meyering  <meyering@redhat.com>
41568             Bruno Haible  <bruno@clisp.org>
41569
41570         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41571         * modules/link-warning (Makefile.am): Make the comment-removing sed
41572         command more robust in the face of bootstrap-prepended comment lines.
41573
41574 2009-12-09  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41577         most one group.
41578
41579 2009-12-09  Simon Josefsson <simon@josefsson.org>
41580             Bruno Haible  <bruno@clisp.org>
41581
41582         * build-aux/link-warning.h: Add copyright notice.
41583         * modules/link-warning (Makefile.am): Generate link-warning.h from
41584         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41585         * NEWS: Mention change in link-warning module.
41586         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41587         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41588         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41589         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41590         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41591         * modules/math (Makefile.am): Add dependency to math.h.
41592         * modules/search (Makefile.am): Add dependency to search.h.
41593         * modules/signal (Makefile.am): Add dependency to signal.h.
41594         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41595         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41596         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41597         * modules/string (Makefile.am): Add dependency to string.h.
41598         * modules/strings (Makefile.am): Add dependency to strings.h.
41599         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41600         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41601         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41602         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41603         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41604         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41605         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41606         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41607         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41608
41609 2009-12-09  Bruno Haible  <bruno@clisp.org>
41610
41611         fchdir: Optimize away rpl_fstat when possible.
41612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41613         REPLACE_OPEN_DIRECTORY.
41614         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41615
41616 2009-12-09  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/fchdir.c: Update comment.
41619
41620 2009-12-09  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41623
41624 2009-12-08  Eric Blake  <ebb9@byu.net>
41625
41626         fchdir: avoid memory leak on re-registration.
41627         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41628
41629 2009-12-08  Jim Meyering  <meyering@redhat.com>
41630
41631         init.sh: avoid Solaris 10 /bin/sh portability problem
41632         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41633         sourced script:
41634           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41635           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41636           bar
41637         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41638         and two tests used that idiom.
41639         * tests/init.sh: Update suggested usage comments.
41640         (path_prepend_): New function, to be used in place
41641         of the --src-path=DIR option.
41642         (setup_): Move PATH-prepending code into path_prepend_.
41643         * tests/test-pread.sh: Adapt to new usage.
41644         * tests/test-xalloc-die.sh: Likewise.
41645
41646 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41647
41648         * doc/gnulib.texi (Glibc pty.h): Add.
41649         * doc/glibc-functions/forkpty.texi: Add.
41650         * doc/glibc-functions/openpty.texi: Add.
41651         Suggested by Bruno Haible.
41652
41653 2009-12-08  Eric Blake  <ebb9@byu.net>
41654
41655         fchdir: fix logic bugs
41656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41657         * tests/test-fchdir.c (main): Enhance test.
41658         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41659         is in use.
41660
41661         dup2: fix logic bugs
41662         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41663         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41664         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41665         exists.
41666         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41667
41668 2009-12-07  Eric Blake  <ebb9@byu.net>
41669
41670         unlink: fix m4 detection
41671         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41672
41673         unistd-safer: add unit test
41674         * modules/unistd-safer-tests: New file.
41675         * tests/test-dup-safer.c: Likewise.
41676         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41677         * tests/test-dup2.c (setmode): Likewise.
41678         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41679
41680         cloexec: preserve text vs. binary across dup_cloexec
41681         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41682         mode.
41683         * modules/dup2-tests (Depends-on): Add binary-io.
41684         * modules/cloexec-tests (Depends-on): Likewise.
41685         * tests/test-dup2.c (setmode, is_mode): New helpers.
41686         (main): Add tests that translation mode is preserved.
41687         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41688         Reported by Bruno Haible.
41689
41690         mgetgroups: reduce duplicate listings
41691         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41692         resulting array.
41693         * tests/test-chown.h (test_chown): Simplify client.
41694         * tests/test-lchown.h (test_lchown): Likewise.
41695
41696 2009-12-06  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41699         value.
41700
41701 2009-12-06  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/progname.c: Include stdio.h, stdlib.h.
41704         (set_program_name): Reject a NULL argument.
41705
41706 2009-12-05  Eric Blake  <ebb9@byu.net>
41707
41708         pipe2-safer: new module
41709         * modules/pipe2-safer: New file.
41710         * lib/unistd-safer.h (pipe2_safer): New prototype.
41711         * lib/unistd--.h (pipe2): New wrapper.
41712         * lib/pipe-safer.c (pipe2_safer): New function.
41713         * modules/pipe (Depends-on): Add pipe2-safer.
41714         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41715
41716         stdlib-safer: preserve cloexec flag for mkostemp[s]
41717         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41718         fd_safer_flag.
41719
41720         unistd-safer: allow preservation of cloexec status via flag
41721         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41722         prototypes.
41723         * lib/dup-safer.c (dup_safer_flag): New function.
41724         * lib/fd-safer.c (fd_safer_flag): Likewise.
41725         * modules/cloexec (configure.ac): Set witness.
41726
41727         test-dup2: enhance test
41728         * modules/dup2-tests (Depends-on): Add cloexec.
41729         * tests/test-dup2.c (main): Enhance test.
41730
41731         cloexec: add dup_cloexec
41732         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41733         header and comments.
41734         * lib/cloexec.c (set_cloexec_flag): Add comments.
41735         (dup_cloexec): New function, with mingw implementation borrowed
41736         from...
41737         * lib/w32spawn.h (dup_noinherit): ...here.
41738         * modules/execute (Depends-on): Add cloexec.
41739         * modules/pipe (Depends-on): Likewise.
41740         * modules/cloexec (Depends-on): Add dup2.
41741         * modules/cloexec-tests (Files): New file.
41742         * tests/test-cloexec.c: Likewise.
41743
41744         test-xalloc-die: fix test for mingw
41745         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41746         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41747         directory and .exe suffix off argv[0] output.
41748
41749         test-fseeko: fix test for mingw
41750         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41751         than undefining fseek, so test will pass on mingw.
41752
41753 2009-12-05  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/progname.h (set_program_name): Clarify specification.
41756         * lib/progname.c (set_program_name): Likewise.
41757         Reported by Jim Meyering.
41758
41759 2009-12-05  Jim Meyering  <meyering@redhat.com>
41760
41761         maint.mk: backslash-escape parens in default regexp
41762         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41763         backslash-escape the literal parentheses.
41764
41765         maint.mk: news-date-check: use grep -E
41766         * top/maint.mk (today): Define a Make variable, not a...
41767         (news-date-check): ...shell variable.
41768         (news-date-regexp): Use the Make variable.
41769         Use grep's -E option.  Change the failing diagnostic to mention
41770         the variable, $(news-date-regexp).
41771
41772 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41773
41774         maintainer-makefile: allow customization of NEWS entry format
41775         * top/maint.mk (news-date-regexp): New overridable variable.
41776         (news-date-check): Use it.
41777
41778 2009-12-04  Eric Blake  <ebb9@byu.net>
41779
41780         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41781         * lib/mgetgroups.h (xgetgroups): New prototype.
41782         * lib/mgetgroups.c (xgetgroups): New wrapper.
41783         (mgetgroups): Handle ENOSYS.
41784         * modules/mgetgroups (Depends-on): Add realloc.
41785         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41786
41787         mgetgroups: avoid argument promotion issues with -1
41788         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41789         for invalid gid_t.
41790         * tests/test-chown.h (getegid, test_chown): Likewise.
41791         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41792
41793 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41794
41795         exclude: Fix header file problems.
41796         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41797
41798 2009-12-01  Jim Meyering  <meyering@redhat.com>
41799
41800         fts: fts_open: do not let an empty string cause immediate failure
41801         This is required in support of GNU rm, for which the command
41802         "rm A '' B" must process and remove both A and B, in spite of
41803         the empty string argument.
41804         * lib/fts.c (fts_open): Do not let the presence of an empty string
41805         cause fts_open to fail immediately.  Most fts-using tools must be
41806         able to process all arguments, in order, and can be expected to
41807         diagnose such arguments themselves.
41808
41809 2009-11-30  Eric Blake  <ebb9@byu.net>
41810
41811         utimens: fix compilation error
41812         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41813         Declare variable at right scope.
41814
41815 2009-11-29  Jim Meyering  <meyering@redhat.com>
41816
41817         bootstrap: handle perl-5.11's changed --version output
41818         * build-aux/bootstrap (get_version): Handle perl separately,
41819         since perl-5.11's --version output is different.
41820
41821 2009-11-28  Jim Meyering  <meyering@redhat.com>
41822
41823         userspec: depend on the inttostr module, too
41824         * modules/userspec (Depends-on): Add inttostr.
41825
41826         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41827         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41828         number of MAXUID when it evaluates to (uid_t) -1.
41829         Likewise for group ID.  Reported by Matt McCutchen in
41830         <http://savannah.gnu.org/bugs/?28113>
41831
41832         userspec: reformat to use spaces, not TABs
41833         * lib/userspec.c: Expand TABs to spaces.
41834         Add Emacs' "indent-tabs-mode: nil" hint.
41835
41836 2009-11-27  Eric Blake  <ebb9@byu.net>
41837
41838         getopt-gnu: flush out another BSD bug
41839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41840         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41841         flush out BSD bug.
41842         * tests/test-getopt.h (test_getopt): End lists with NULL.
41843         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41844         (test_getopt_long_posix): Enhance test.
41845         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41846         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41847         getopt-gnu.
41848         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41849         Likewise.
41850
41851 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41852
41853         * modules/idpriv-droptemp-tests (Notice): Fix text.
41854
41855 2009-11-27  Jim Meyering  <meyering@redhat.com>
41856
41857         test-xalloc-die: avoid spurious failure due to libtool argv difference
41858         In a libtool-enabled project, this test would fail due to a difference
41859         in the emitted program name, e.g.,
41860         -test-xalloc-die: memory exhausted
41861         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41862         Use program to avoid that.
41863         * modules/xalloc-die-tests (Depends-on): Add progname.
41864         * tests/test-xalloc-die.c: Include progname.h".
41865         (program_name): Remove decl.
41866         (main): Call set_program_name.
41867         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41868
41869 2009-11-26  Richard Jones  <rjones@redhat.com>
41870
41871         w32sock: leave win32 error in place.
41872         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41873
41874 2009-11-26  Eric Blake  <ebb9@byu.net>
41875
41876         init.sh: suggest to use skip_ and fail_ functions in comments
41877         * tests/init.sh: Add a sentence.
41878
41879 2009-11-25  Bruno Haible  <bruno@clisp.org>
41880
41881         init.sh: add documentation in comments
41882         * tests/init.sh: Add some developer and user documentation.
41883
41884 2009-11-26  Jim Meyering  <meyering@redhat.com>
41885
41886         init.sh: accommodate even those who specify bogus srcdir manually
41887         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41888         configure-time tests to be sanitized, so that there is no need to
41889         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41890         (with no double quotes) suffices.  However, since tests may be
41891         invoked manually, and since you may explicitly set srcdir to the
41892         name of a directory containing spaces, do quote its uses here.
41893         * tests/test-pread.sh: Likewise.
41894         Suggested by Bruno Haible.
41895
41896         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41897         * tests/test-pread.sh: Write no data into the pipe, because
41898         test-pread actually reads none.  This avoids a diagnostic,
41899         "bash: echo: write error: Broken pipe", that arises in the unusual
41900         event something is ignoring SIGPIPE, and might be interpreted
41901         as some sort of failure.  Reported by Bruno Haible.
41902
41903 2009-11-25  Jim Meyering  <meyering@redhat.com>
41904
41905         test-pread: cover failure with ESPIPE and EINVAL
41906         * tests/test-pread.c (main): Test for failure, too.
41907         * tests/test-pread.sh: Invoke with stdin on a pipe.
41908         Suggested by Eric Blake.
41909
41910         pread: improvement and fix
41911         * modules/pread (Depends-on): Depend on lseek, for portability to
41912         e.g., mingw.  Suggested by Eric Blake.
41913         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41914
41915         unistd.in.h: correct declaration of pread
41916         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41917         Reported by Richard W.M. Jones.
41918
41919         test-pread.sh: distribute the test script
41920         * modules/pread-tests (Files): Include test-pread.sh.
41921
41922         test-pread.sh: clean up
41923         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41924         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41925         That is unnecessary, since it's always ".".
41926         Suggestion from Eric Blake.
41927
41928         test-pread.sh: make executable
41929         * tests/test-pread.sh: Set executable bit.
41930         Reported by Eric Blake.
41931
41932         correct typo in test-pread.sh
41933         * tests/test-pread.sh: Add #! line.
41934
41935         test pread
41936         * tests/test-pread.c: New file.
41937         * tests/test-pread.sh: Likewise.
41938         * modules/pread-tests: Likewise.
41939
41940         pread: new module
41941         * modules/pread: New file.
41942         * lib/unistd.in.h (pread): Define/declare.
41943         * lib/pread.c (pread): New file.
41944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41945         * modules/unistd (Makefile.am): Substitute witnesses.
41946         * doc/posix-functions/pread.texi (pread): Update.
41947         * MODULES.html.sh: Add pread.
41948
41949 2009-11-25  Jim Meyering  <meyering@redhat.com>
41950
41951         tests/init.sh: new file to be used via most *.sh tests
41952         * tests/init.sh: New file.
41953
41954 2009-11-25  Eric Blake  <ebb9@byu.net>
41955
41956         utimens: work around older Linux failure with symlinks
41957         * lib/utimens.c (lutimensat_works_really): New variable.
41958         (fdutimens, lutimens): Use it to manage kernels that support
41959         nanosecond times on files, but not on symlinks.
41960         Reported by OndÅ™ej Vašík.
41961
41962         utimes: fix configure grammar
41963         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41964
41965 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41966
41967         regex: Fix fastmap for multibyte character ranges.
41968         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41969         characters when a multibyte character range is included.
41970
41971 2009-11-22  Andy Wingo  <wingo@pobox.com>
41972
41973         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41974         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41975
41976 2009-11-24  Bruno Haible  <bruno@clisp.org>
41977
41978         doc: Most *_l functions exist in MacOS X 10.5.
41979         * doc/posix-functions/duplocale.texi: Update platforms list.
41980         * doc/posix-functions/freelocale.texi: Likewise.
41981         * doc/posix-functions/newlocale.texi: Likewise.
41982         * doc/posix-functions/uselocale.texi: Likewise.
41983         * doc/posix-functions/isalnum_l.texi: Likewise.
41984         * doc/posix-functions/isalpha_l.texi: Likewise.
41985         * doc/posix-functions/isblank_l.texi: Likewise.
41986         * doc/posix-functions/iscntrl_l.texi: Likewise.
41987         * doc/posix-functions/isdigit_l.texi: Likewise.
41988         * doc/posix-functions/isgraph_l.texi: Likewise.
41989         * doc/posix-functions/islower_l.texi: Likewise.
41990         * doc/posix-functions/isprint_l.texi: Likewise.
41991         * doc/posix-functions/ispunct_l.texi: Likewise.
41992         * doc/posix-functions/isspace_l.texi: Likewise.
41993         * doc/posix-functions/isupper_l.texi: Likewise.
41994         * doc/posix-functions/iswalnum_l.texi: Likewise.
41995         * doc/posix-functions/iswalpha_l.texi: Likewise.
41996         * doc/posix-functions/iswblank_l.texi: Likewise.
41997         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41998         * doc/posix-functions/iswctype_l.texi: Likewise.
41999         * doc/posix-functions/iswdigit_l.texi: Likewise.
42000         * doc/posix-functions/iswgraph_l.texi: Likewise.
42001         * doc/posix-functions/iswlower_l.texi: Likewise.
42002         * doc/posix-functions/iswprint_l.texi: Likewise.
42003         * doc/posix-functions/iswpunct_l.texi: Likewise.
42004         * doc/posix-functions/iswspace_l.texi: Likewise.
42005         * doc/posix-functions/iswupper_l.texi: Likewise.
42006         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42007         * doc/posix-functions/isxdigit_l.texi: Likewise.
42008         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42009         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42010         * doc/posix-functions/strcoll_l.texi: Likewise.
42011         * doc/posix-functions/strfmon_l.texi: Likewise.
42012         * doc/posix-functions/strftime_l.texi: Likewise.
42013         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42014         * doc/posix-functions/strxfrm_l.texi: Likewise.
42015         * doc/posix-functions/tolower_l.texi: Likewise.
42016         * doc/posix-functions/toupper_l.texi: Likewise.
42017         * doc/posix-functions/towctrans_l.texi: Likewise.
42018         * doc/posix-functions/towlower_l.texi: Likewise.
42019         * doc/posix-functions/towupper_l.texi: Likewise.
42020         * doc/posix-functions/wcscoll_l.texi: Likewise.
42021         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42022         * doc/posix-functions/wctrans_l.texi: Likewise.
42023         * doc/posix-functions/wctype_l.texi: Likewise.
42024         * doc/glibc-functions/strptime_l.texi: Likewise.
42025         * doc/glibc-functions/strtod_l.texi: Likewise.
42026         * doc/glibc-functions/strtof_l.texi: Likewise.
42027         * doc/glibc-functions/strtol_l.texi: Likewise.
42028         * doc/glibc-functions/strtold_l.texi: Likewise.
42029         * doc/glibc-functions/strtoll_l.texi: Likewise.
42030         * doc/glibc-functions/strtoul_l.texi: Likewise.
42031         * doc/glibc-functions/strtoull_l.texi: Likewise.
42032         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42033         * doc/glibc-functions/wcstod_l.texi: Likewise.
42034         * doc/glibc-functions/wcstof_l.texi: Likewise.
42035         * doc/glibc-functions/wcstol_l.texi: Likewise.
42036         * doc/glibc-functions/wcstold_l.texi: Likewise.
42037         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42038         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42039         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42040
42041 2009-11-24  Bruno Haible  <bruno@clisp.org>
42042
42043         duplocale: Fix logic bug.
42044         * lib/duplocale.c: Don't include <langinfo.h>.
42045         (_NL_LOCALE_NAME): Remove macro.
42046         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42047         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42048
42049 2009-11-23  Jim Meyering  <meyering@redhat.com>
42050
42051         test-update-copyright: don't hard-code /usr/bin/perl
42052         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42053         perl to print the current year.  Gilles Espinasse reported that
42054         the replaced use of perl was hard-coded as /usr/bin/perl.
42055
42056 2009-11-23  Bruno Haible  <bruno@clisp.org>
42057
42058         duplocale: Add support for glibc 2.3.x.
42059         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42060
42061 2009-11-22  Bruno Haible  <bruno@clisp.org>
42062
42063         vasnprintf: Tiny optimization.
42064         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42065         MacOS X.
42066
42067 2009-11-22  Bruno Haible  <bruno@clisp.org>
42068
42069         Tests for module 'duplocale'.
42070         * modules/duplocale-tests: New file.
42071         * tests/test-duplocale.c: New file.
42072
42073         New module 'duplocale'.
42074         * m4/duplocale.m4: New file.
42075         * lib/locale.in.h (duplocale): New declaration.
42076         * lib/duplocale.c: New file.
42077         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42078         gl_LOCALE_H_DEFAULTS): New macros.
42079         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42080         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42081         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42082         REPLACE_DUPLOCALE.
42083         * modules/duplocale: New file.
42084         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42085
42086 2009-11-22  Bruno Haible  <bruno@clisp.org>
42087
42088         * modules/locale-tests (configure.ac): Test for newlocale function.
42089         * tests/test-locale.c: When the system has extended locale functions,
42090         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42091
42092         locale: Make locale_t available when possible.
42093         * lib/locale.in.h: Include <xlocale.h> when it exists.
42094         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42095         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42096         * modules/locale (Depends-on): Add extensions.
42097         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42098         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42099
42100 2009-11-22  Bruno Haible  <bruno@clisp.org>
42101
42102         Add comments.
42103         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42104         invocation.
42105         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42106         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42107         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42108
42109 2009-11-22  Bruno Haible  <bruno@clisp.org>
42110
42111         error: account for the possibility of freopen (stdout).
42112         * lib/error.c: Include <unistd.h>.
42113         (flush_stdout): New function, extracted from error and error_at_line.
42114         Determine stdout's fd dynamically.
42115         (error, error_at_line): Invoke flush_stdout.
42116         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42117         * modules/error (Depends-on): Add unistd.
42118
42119 2009-11-22  Bruno Haible  <bruno@clisp.org>
42120
42121         diffseq: Add comment.
42122         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42123
42124 2009-11-22  Jim Meyering  <meyering@redhat.com>
42125
42126         c-stack: avoid defining an unused static function
42127         * lib/c-stack.c (find_stack_direction): Do not define this function
42128         when it will not be used.
42129
42130         diffseq: avoid spurious gcc warnings
42131         * lib/diffseq.h (IF_LINT2): Define.
42132         (compareseq): Use it to initialize two members of "part".
42133         This avoids two used-uninitialized warnings.
42134
42135 2009-11-21  Jim Meyering  <meyering@redhat.com>
42136
42137         c-stack: avoid "ignoring return value of `write'" warning
42138         * lib/c-stack.c: Include "ignore-value.h".
42139         (die): Explicitly ignore each write return value.
42140         * modules/c-stack (Depends-on): Add ignore-value.
42141
42142 2009-11-21  Bruno Haible  <bruno@clisp.org>
42143
42144         diffseq: reduce scope of variable 'best'.
42145         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42146         variable, earlier used for two different purposes.
42147
42148 2009-11-21  Jim Meyering  <meyering@redhat.com>
42149
42150         diffseq: remove useless assignment to "best"
42151         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42152         assignment.  At that point "best" is already guaranteed to be zero.
42153
42154 2009-11-20  Eric Blake  <ebb9@byu.net>
42155
42156         build: mention ftp redirector in release announcements
42157         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42158         values that used to come from cfg.mk; mention FTP redirect URL.
42159         * build-aux/announce-gen: Mention the mirror list.
42160         Suggested by Karl Berry.
42161
42162         nanosleep: improve port to mingw
42163         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42165         LIB_NANOSLEEP, but only when needed.
42166         * modules/select (Link): Document LIBSOCKET.
42167         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42168         enough.
42169
42170         nanosleep: work around cygwin bug
42171         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42172         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42173         bug.
42174         (getnow): Delete, not needed.
42175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42176         LIB_CLOCK_GETTIME.
42177         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42178         clock-time, gettime.
42179         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42180         bug.
42181         * modules/nanosleep-tests: New test.
42182         * tests/test-nanosleep.c: New file.
42183
42184         sleep: work around cygwin bug
42185         * lib/sleep.c (rpl_sleep): Work around the bug.
42186         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42187         (gl_PREREQ_SLEEP): Delete unused macro.
42188         * modules/sleep (Depends-on): Add verify.
42189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42190         * modules/unistd (Makefile.am): Substitute witness.
42191         * lib/unistd.in.h (sleep): Update prototype.
42192         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42193         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42194         * modules/sleep-tests (Depends-on): Check for alarm.
42195
42196 2009-11-20  Jim Meyering  <meyering@redhat.com>
42197
42198         maint.mk: improve sc_prohibit_magic_number_exit
42199         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42200         so it does not match uses like System.exit(1).
42201         Add comments showing how to correct all offenders.
42202
42203 2009-11-19  Eric Blake  <ebb9@byu.net>
42204
42205         xalloc-die-tests: add missing library
42206         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42207
42208         test-xvasprintf: silence compiler warnings
42209         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42210         empty string from gcc.
42211
42212 2009-11-19  Jim Meyering  <meyering@redhat.com>
42213
42214         xfreopen: new module, from coreutils
42215         * modules/xfreopen: New module.
42216         * lib/xfreopen.c: New file.
42217         * lib/xfreopen.h: New file.
42218         * MODULES.html.sh (File stream based Input/Output"): Add it.
42219
42220 2009-11-19  Eric Blake  <ebb9@byu.net>
42221
42222         manywarnings: depend on warnings
42223         * modules/manywarnings (Depends-on): Add warnings.
42224
42225         build: avoid compiler warnings
42226         * lib/select.c (rpl_select): Delete unused variable.
42227         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42228
42229 2009-11-18  Eric Blake  <ebb9@byu.net>
42230
42231         tests: avoid false negative with --with-packager
42232         * tests/test-version-etc.sh: Discard packager information.
42233         * tests/test-argp-version-etc-1.sh: Likewise.
42234         Reported by Mike Frysinger.
42235
42236         utimens: fix regression on Solaris
42237         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42238         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42239         can only change fd timestamps via futimesat.  Instead, use an
42240         additional witness macro to avoid BSD bug.
42241         Reported by Jim Meyering.
42242
42243 2009-11-17  Eric Blake  <ebb9@byu.net>
42244
42245         usleep: use it to simplify tests
42246         * modules/stat-time-tests (Depends-on): Add usleep.
42247         (configure.ac): Drop usleep check.
42248         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42249         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42250         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42251         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42252         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42253         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42254         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42255         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42256         Likewise.
42257         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42258         * tests/test-lchown.h (nap): Likewise.
42259         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42260         * tests/test-stat-time.c (nap): Likewise.
42261         * tests/test-utimens-common.h (nap): Update comments.
42262
42263         usleep: new module
42264         * modules/usleep: New file.
42265         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42266         * lib/usleep.c (usleep): Likewise.
42267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42268         * modules/unistd (Makefile.am): Substitute witnesses.
42269         * lib/unistd.in.h (usleep): Add declaration.
42270         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42271         * MODULES.html.sh (Date and time): Likewise.
42272         * modules/usleep-tests (Depends-on): New test.
42273         * tests/test-usleep.c: New file.
42274
42275         chown: work around OpenBSD bug
42276         * lib/chown.c (rpl_chown): Work around the bug.
42277         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42278         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42279         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42280         * modules/chown (Depends-on): Add stdbool.
42281         * modules/lchown (Depends-on): Likewise.
42282         * doc/posix-functions/chown.texi (chown): Document the bug.
42283         * doc/posix-functions/lchown.texi (lchown): Likewise.
42284         * tests/test-lchown.h (test_chown): Relax test.
42285
42286         mkstemp: avoid conflict with C++ keyword template
42287         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42288         * lib/mkostemp.c (mkostemp): Likewise.
42289         * lib/mkostemps.c (mkostemps): Likewise.
42290         * lib/mkstemp.c (mkstemp): Likewise.
42291         * lib/mkstemps.c (mkstemps): Likewise.
42292
42293         xalloc-die-tests: optimize
42294         * tests/test-xalloc-die.sh: Reduce number of processes.
42295
42296 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42297
42298         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42299         patch from ludo@gnu.org (Ludovic Courtès).
42300
42301 2009-11-17  Jim Meyering  <meyering@redhat.com>
42302
42303         version-etc: use proper license string
42304         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42305         * modules/version-etc-fsf: Likewise.
42306
42307 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42308
42309         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42310         printed to stdout.  Deal with EOL differences.
42311
42312 2009-11-17  Eric Blake  <ebb9@byu.net>
42313
42314         unsetenv: work around Solaris bug
42315         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42316         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42317         Reported by Jim Meyering.
42318
42319         vasnprintf: avoid compiler warnings
42320         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42321         variables.
42322         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42323
42324 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42325
42326         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42327         settings since xalloc-die is no longer the self test,
42328         xalloc-die.sh is.
42329
42330 2009-11-17  Jim Meyering  <meyering@redhat.com>
42331
42332         test-xalloc-die.sh: make the code agree with the commit log
42333         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42334         at the end, just in case you happen to have a test-xalloc-die
42335         program in some other PATH directory.
42336
42337         test-xalloc-die.sh: fix a portability bug
42338         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42339         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42340         Otherwise, argv[0] (as often seen in diagnostics) would be too
42341         system-dependent, sometimes with, and sometimes without the leading "./".
42342
42343         version-etc-fsf: relax license to LGPLv3+
42344         * modules/version-etc-fsf (License): Relax license.
42345
42346 2009-11-16  Eric Blake  <ebb9@byu.net>
42347
42348         xalloc-die-tests: avoid printing null pointer
42349         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42350         shell script.
42351         * tests/test-xalloc-die.c (program_name): Declare.
42352         * tests/test-xalloc-die.sh (tmpfiles): New file.
42353
42354         setenv, unsetenv: work around various bugs
42355         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42356         (setenv) [HAVE_SETENV]: Work around bugs.
42357         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42358         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42359         for bugs.
42360         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42361         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42363         * modules/stdlib (Makefile.am): Update substitutions.
42364         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42365         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42366         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42367         * modules/setenv-tests: New test.
42368         * modules/unsetenv-tests: Likewise.
42369         * tests/test-setenv.c: New file.
42370         * tests/test-unsetenv.c: Likewise.
42371
42372 2009-11-16  Jim Meyering  <meyering@redhat.com>
42373
42374         version-etc: relax license to LGPLv3+
42375         * modules/version-etc (License): Relax license.
42376
42377         better AC_REQUIRE expanded-before-required-warning avoidance
42378         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42379         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42380         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42381         which is no longer needed.
42382
42383 2009-11-16  Eric Blake  <ebb9@byu.net>
42384
42385         test-freading: clean up temporary file
42386         * tests/test-freading.c (main): Remove file on success, and use
42387         ASSERT more liberally.
42388         Reported by Jim Meyering.
42389
42390 2009-11-16  Jim Meyering  <meyering@redhat.com>
42391
42392         avoid new AC_REQUIRE expanded-before-required warnings
42393         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42394         merely using it.
42395         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42396         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42397
42398 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42399
42400         * tests/test-xalloc-die.c: New file.
42401         * modules/xalloc-die-tests: New file.
42402         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42403         XFAIL_TESTS so it can be appended by modules.
42404
42405 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42406
42407         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42408         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42409
42410 2009-11-14  Eric Blake  <ebb9@byu.net>
42411
42412         fnmatch: avoid compiler warning
42413         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42414         to silence compiler warning about mismatch signedness in ?:.
42415         Reported by Robert Millan.
42416
42417         intprops: add double-inclusion guard
42418         * lib/intprops.h: Allow idempotent includes.
42419         Suggested by Bruce Korb.
42420
42421         openat: detect Solaris fchownat bug
42422         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42423         penalizing glibc chownat when only lchownat is broken.
42424         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42425         trailing slash bugs.
42426         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42427         * modules/openat-tests (Files): Include more files.
42428         (Depends-on): Add mgetgroups, sleep, stat-time.
42429         (configure.ac): Add additional checks.
42430         (Makefile.am): Build new test.
42431         * tests/test-fchownat.c: New file.
42432
42433         lchown: detect Solaris and FreeBSD bug
42434         * lib/lchown.c (rpl_lchown): Work around bug.
42435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42437         * modules/unistd (Makefile.am): Populate it.
42438         * lib/unistd.in.h (lchown): Update declaration.
42439         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42440         * modules/lchown-tests: New file.
42441         * tests/test-lchown.h (test_lchown): Likewise.
42442         * tests/test-lchown.c (main): Likewise.
42443
42444         chown: detect Solaris and FreeBSD bug
42445         * lib/chown.c (rpl_chown): Work around bug.
42446         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42447         (gl_PREREQ_CHOWN): Delete.
42448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42449         * modules/unistd (Makefile.am): Populate it.
42450         * lib/unistd.in.h (chown): Update declaration.
42451         * lib/lchown.c (chown): Update client.
42452         * modules/lchown (Depends-on): Add lstat.
42453         * doc/posix-functions/chown.texi (chown): Document the bug.
42454         * doc/posix-functions/getgroups.texi (getgroups): Document
42455         getgroups pitfall.
42456         * modules/chown-tests: New file.
42457         * tests/test-chown.h (test_chown): Likewise.
42458         * tests/test-chown.c (main): Likewise.
42459
42460 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42461
42462         gnulib-tool: correctly detect absence of m4 directories
42463         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42464
42465 2009-11-14  Jim Meyering  <meyering@redhat.com>
42466
42467         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42468         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42469
42470 2009-11-14  John W. Eaton  <jwe@gnu.org>
42471
42472         strftime.h: wrap function declaration in extern "C" block
42473         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42474
42475 2009-11-13  Eric Blake  <ebb9@byu.net>
42476
42477         getgroups: avoid compiler warning
42478         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42479
42480         getgroups: work around FreeBSD bug
42481         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42482         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42483         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42484         * tests/test-getgroups.c (main): Fix buffer overrun.
42485
42486         getgroups: avoid compilation failure
42487         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42488         * modules/getgroups (Depends-on): Add stdint.
42489
42490 2009-11-13  Jim Meyering  <meyering@redhat.com>
42491
42492         test-getgroups: avoid compilation failure
42493         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42494
42495 2009-11-13  Eric Blake  <ebb9@byu.net>
42496
42497         mgetgroups: new module, taken from coreutils
42498         * modules/mgetgroups: New file.
42499         * lib/mgetgroups.h: Likewise.
42500         * lib/mgetgroups.c (mgetgroups): Likewise.
42501         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42502         * MODULES.html.sh (Users and groups): Mention it.
42503
42504         getgroups: don't expose GETGROUPS_T to user
42505         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42506         an element at a time if GETGROUPS_T is wrong size.
42507         * lib/getugroups.h (getugroups): Change signature.
42508         * lib/unistd.in.h (getgroups): Likewise.
42509         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42510         signature needs fixing.
42511         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42512         AC_TYPE_GETGROUPS.
42513         * modules/group-member (Depends-on): Add getgroups.
42514         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42515         (group_member): Rely on getgroups replacement.
42516         * lib/getugroups.c (getugroups): Use gid_t.
42517         * tests/test-getgroups.c (main): Likewise.
42518         * NEWS: Mention the signature change.
42519         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42520         problem with signature.
42521         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42522         GETGROUPS_T is still useful for setgroups.
42523
42524         getgroups, getugroups: provide stubs for mingw
42525         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42526         * lib/getugroups.c (getugroups): Likewise.
42527         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42528         function.  Modernize replacement scheme.
42529         (gl_PREREQ_GETGROUPS): Delete.
42530         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42531         * modules/getgroups (configure.ac): Declare witness.
42532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42533         * modules/unistd (Depends-on): Substitute witness.
42534         * lib/unistd.in.h (getgroups): Declare replacement.
42535
42536         getgroups: avoid calling exit
42537         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42538         drop xalloc.
42539         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42540         dependencies.
42541         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42542         exiting, in the rare case of malloc failure.
42543
42544         getgroups: fix logic error
42545         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42546         has more than 20 groups.
42547         * modules/getgroups-tests: New test.
42548         * tests/test-getgroups.c: New file.
42549
42550 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42551
42552         * tests/test-base64.c: Improve.
42553
42554 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42555
42556         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42557         Blake <ebb9@byu.net>.
42558
42559 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42560
42561         * tests/test-xvasprintf.c: Add %s%s related checks.
42562
42563 2009-11-12  Eric Blake  <ebb9@byu.net>
42564
42565         version-etc: match standards.texi style
42566         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42567         and use <> only for URLs.
42568
42569 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42570
42571         fts: do not fail on a submount during traversal
42572         * lib/fts.c (fts_build): Read the stat info again after opening
42573         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42574         Original report at http://bugzilla.redhat.com/501848.
42575
42576 2009-11-12  Jim Meyering  <meyering@redhat.com>
42577
42578         bootstrap: sync from coreutils
42579         * build-aux/bootstrap (bootstrap_epilogue): New function.
42580         Use git_modules_config in one more place.  This make bootstrap's
42581         --gnulib-srcdir option more useful for testing.
42582
42583         bootstrap: generalize autoheader check
42584         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42585         AC_CONFIG_HEADERS.
42586
42587 2009-11-11  Eric Blake  <ebb9@byu.net>
42588
42589         mkfifoat: use new modules for Solaris and BSD bugs
42590         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42591         * lib/mkfifoat.c (mknodat): Split...
42592         * lib/mknodat.c (mknodat): ...into new file.
42593         * modules/mkfifoat (Files): Ship new file.
42594         (Depends-on): Add mkfifo, mknod.
42595         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42596         (Depends-on): Add symlink.
42597         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42598         redundant with test_mkfifo.h.
42599         (do_mkfifoat, do_mknodat): New helpers.
42600
42601         mknod: new module
42602         * modules/mknod: New file.
42603         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42604         * lib/mknod.c (mknod): Likewise.
42605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42606         defaults.
42607         * modules/sys_stat (Makefile.am): Substitute them.
42608         * lib/sys_stat.in.h (mknod): Declare replacement.
42609         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42610         Document it.
42611         * doc/posix-functions/mknod.texi (mknod): Likewise.
42612         * modules/mknod-tests: New test.
42613         * tests/test-mknod.c: Likewise.
42614
42615         mkfifo: new module
42616         * modules/mkfifo: New file.
42617         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42618         * lib/mkfifo.c (mkfifo): Likewise.
42619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42620         defaults.
42621         * modules/sys_stat (Makefile.am): Substitute them.
42622         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42623         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42624         Document it.
42625         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42626         * modules/mkfifo-tests: New test.
42627         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42628         from test-mkfifoat.c.
42629         * tests/test-mkfifo.c: New file.
42630
42631         readlink: detect FreeBSD bug
42632         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42633         slash on symlink.
42634         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42635         * tests/test-readlink.h (test_readlink): Enhance test.
42636
42637         symlink: detect FreeBSD bug
42638         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42639         slash on symlink.
42640         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42641         * tests/test-symlink.h (test_symlink): Enhance test.
42642
42643 2009-11-10  Eric Blake  <ebb9@byu.net>
42644
42645         link: detect FreeBSD bug
42646         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42647         symlink.
42648         * doc/posix-functions/link.texi (link): Document the bug.
42649         * tests/test-link.h (test_link): Enhance test.
42650         * tests/test-linkat.c (main): Update caller.
42651
42652         unlink, remove: detect FreeBSD bug
42653         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42654         slash on symlink.
42655         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42656         * doc/posix-functions/remove.texi (remove): Likewise.
42657         * tests/test-unlink.h (test_unlink): Enhance test.
42658         * tests/test-remove.c (main): Likewise.
42659
42660 2009-11-09  Eric Blake  <ebb9@byu.net>
42661
42662         rename: detect FreeBSD bug
42663         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42664         slash on symlink.
42665         * modules/renameat-tests (Depends-on): Add filenamecat.
42666         * tests/test-rename.h (test_rename): Allow one more errno.
42667         * tests/test-renameat.c (main): Likewise.
42668         * doc/posix-functions/rename.texi (rename): Document the bug.
42669
42670         open: detect FreeBSD bug
42671         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42672         symlink.
42673         * doc/posix-functions/open.texi (open): Document the bug.
42674         * doc/posix-functions/utimes.texi (utimes): Likewise.
42675         * tests/test-open.h (test_open): Add parameters, and test symlink
42676         handling.
42677         * tests/test-open.c (main): Adjust caller.
42678         * tests/test-fcntl-safer.c (main): Likewise.
42679         * modules/open-tests (Depends-on): Add stdbool, symlink.
42680         * modules/fcntl-safer-tests (Depends-on): Likewise.
42681         * tests/test-openat.c (main): Add test-open tests.
42682
42683         stat: detect FreeBSD bug
42684         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42685         symlink.
42686         * doc/posix-functions/stat.texi (stat): Document the bug.
42687         * tests/test-stat.h (test_stat_func): Add argument.
42688         * tests/test-stat.c (main): Adjust caller.
42689         * tests/test-fstatat.c (main): Likewise.
42690         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42691         Reported by Jim Meyering.
42692
42693 2009-11-09  James Youngman  <jay@gnu.org>
42694
42695         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42696         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42697
42698 2009-11-08  Jim Meyering  <meyering@redhat.com>
42699
42700         utimens: remove invalid futimesat call
42701         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42702         It used the file descriptor of the target file as the DIR_FD
42703         parameter and NULL as the file name.  That caused failure with
42704         errno == EFAULT on FreeBSD-8.0-rc2
42705
42706 2009-11-07  Eric Blake  <ebb9@byu.net>
42707
42708         fflush, freadseek: use fseeko, not fseek
42709         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42710         (clear_ungetc_buffer): Avoid potential problems on large files.
42711         * lib/freadseek.c (freadseek): Likewise.
42712         * modules/freadseek (Depends-on): Add fseeko.
42713         * modules/fseek (configure.ac): Set a witness.
42714         * tests/test-fflush.c (main): Use fseeko.
42715         * tests/test-fpurge.c (fseek): Disable link warning.
42716         * tests/test-freadable.c (fseek): Likewise.
42717         * tests/test-freading.c (fseek): Likewise.
42718         * tests/test-fseeko.c (fseek): Likewise.
42719         * tests/test-ftell.c (fseek): Likewise.
42720         * tests/test-ftello.c (fseek): Likewise.
42721         * tests/test-fwritable.c (fseek): Likewise.
42722         * tests/test-fwriting.c (fseek): Likewise.
42723
42724 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42725
42726         * modules/memchr (Depends-on): Drop getpagesize dependency.
42727
42728 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42729
42730         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42731         Reported by Ludovic Courtès.
42732         * build-aux/pmccabe2html: Improve example usage.
42733         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42734
42735 2009-11-06  Jim Meyering  <meyering@redhat.com>
42736
42737         do-release-commit-and-tag: New module.
42738         Automate the release-commit and tag process.
42739         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42740         * modules/do-release-commit-and-tag: New file.
42741         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42742
42743 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42744
42745         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42746         because test-select.c uses inet_pton.
42747
42748 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42749
42750         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42751         GETADDRINFO_LIB.  Bump serial number.
42752         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42753         Suggested by Eric Blake <ebb9@byu.net>.
42754
42755 2009-11-05  Eric Blake  <ebb9@byu.net>
42756
42757         strtod: detect darwin bug
42758         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42759         Reported by Leo Davis.
42760
42761         freopen-safer: new module
42762         * modules/freopen-safer: New module.
42763         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42764         * lib/freopen-safer.c (freopen_safer): New file.
42765         * lib/stdio-safer.h (freopen_safer): New declaration.
42766         * lib/stdio--.h (freopen): New override.
42767         * MODULES.html.sh (File stream based Input/Output): Mention it.
42768         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42769         freopen-safer module.
42770         * doc/posix-functions/stderr.texi (stderr): Likewise.
42771         * doc/posix-functions/stdin.texi (stdin): Likewise.
42772         * doc/posix-functions/stdout.texi (stdout): Likewise.
42773         * modules/freopen-safer-tests: New test.
42774         * tests/test-reopen-safer.c: New file.
42775
42776 2009-11-05  Jim Meyering  <meyering@redhat.com>
42777
42778         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42779         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42780
42781 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42782
42783         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42784
42785 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42786
42787         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42788
42789 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42790
42791         Fix link error.
42792         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42793         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42794
42795 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42796
42797         * tests/test-func.c: Also test value of __func__.
42798
42799 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42800
42801         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42802         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42803
42804 2009-11-05  Bruno Haible  <bruno@clisp.org>
42805
42806         Fix link error.
42807         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42808         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42809         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42810
42811 2009-11-05  Bruno Haible  <bruno@clisp.org>
42812
42813         Tests for module 'inet_pton'.
42814         * modules/inet_pton-tests: New file.
42815         * tests/test-inet_pton.c: New file.
42816
42817 2009-11-05  Bruno Haible  <bruno@clisp.org>
42818
42819         Tests for module 'inet_ntop'.
42820         * modules/inet_ntop-tests: New file.
42821         * tests/test-inet_ntop.c: New file.
42822
42823 2009-11-04  Eric Blake  <ebb9@byu.net>
42824
42825         stdlib-safer: wrap all mkstemp variants
42826         * modules/mkostemp (configure.ac): Set witness.
42827         * modules/mkostemps (configure.ac): Likewise.
42828         * modules/mkstemps (configure.ac): Likewise.
42829         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42830         (mkstemps_safer): Wrap more functions.
42831         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42832         wrapping.
42833         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42834         (mkstemps_safer): Implement the wrappers.
42835
42836         mkstemps, mkostemps: new modules
42837         * modules/mkostemps: New module.
42838         * modules/mkstemps: Likewise.
42839         * lib/mkostemps.c (mkostemps): New file.
42840         * lib/mkstemps.c (mkstemps): Likewise.
42841         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42842         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42844         * modules/stdlib (Makefile.am): Substitute them.
42845         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42846         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42847         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42848         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42849         * MODULES.html.sh (File system functions): Mention them.
42850
42851         tempname: resync from glibc
42852         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42853         same values for __GT_FILE as glibc.  Abort even when assertions
42854         are disabled.
42855         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42856         match its value otherwise.  Allow idempotent inclusion.
42857         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42858         * lib/mkostemp.c (mkostemp): Likewise.
42859         * lib/mkstemp.c (mkstemp): Likewise.
42860         * lib/tmpfile.c (tmpfile): Likewise.
42861         * NEWS: Document this.
42862
42863         utimens: fix use of futimens on older Linux
42864         * lib/utimens.c (fdutimens): Use updated, rather than original,
42865         timespec to avoid bug in older Linux kernel.
42866         Reported by Simon Josefsson.
42867
42868 2009-11-04  Bruno Haible  <bruno@clisp.org>
42869
42870         Make num_processors more flexible and consistent.
42871         * lib/nproc.h (enum nproc_query): New type.
42872         (num_processors): Add a 'query' argument.
42873         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42874         (num_processors): Add a 'query' argument. Test the value of the
42875         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42876         mingw, count the number of CPUs available for the current process.
42877         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42878         Check for sched_getaffinity and sched_getaffinity_np.
42879         * modules/nproc (Depends-on): Add c-ctype, extensions.
42880         * NEWS: Mention the change.
42881
42882 2009-11-03  Bruno Haible  <bruno@clisp.org>
42883
42884         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42885
42886 2009-11-03  Jim Meyering  <meyering@redhat.com>
42887
42888         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42889         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42890         if it is defined.
42891
42892 2009-11-02  Eric Blake  <ebb9@byu.net>
42893
42894         mktime, timegm: share common declaration
42895         * lib/mktime-internal.h: New file.
42896         * lib/mktime.c: Use it rather than open-coding a declaration.
42897         * lib/timegm.c: Likewise.
42898         * modules/mktime (Files): Ship it.
42899         * modules/timegm (Files): Likewise.
42900         Suggested by Bruno Haible.
42901
42902         test-update-copyright: update test to match script changes
42903         * tests/test-update-copyright.sh: Avoid hard-coding perl
42904         location.  Don't update *.bak created by earlier runs.
42905
42906 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42907             Simon Josefsson  <simon@josefsson.org>
42908             Bruno Haible  <bruno@clisp.org>
42909
42910         Fix link error on Solaris 8.
42911         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42912         also in libnsl. Define also INET_PTON_LIB.
42913         * modules/inet_pton (Link): New section.
42914
42915 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42916             Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42919         * modules/inet_ntop (Link): New section.
42920         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42921
42922 2009-11-02  Eric Blake  <ebb9@byu.net>
42923
42924         maint: avoid compiler warnings in m4 macros
42925         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42927
42928 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42929
42930         * m4/pmccabe2html.m4: Remove file.
42931         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42932         function.  Change maintainer.
42933         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42934         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42935         Courtès).
42936
42937 2009-10-31  Eric Blake  <ebb9@byu.net>
42938
42939         fseeko: fix m4 regression
42940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42941         regression from 2009-10-27.
42942         Reported by Ralf Wildenhues.
42943
42944 2009-10-31  Jim Meyering  <meyering@redhat.com>
42945
42946         inttostr: aesthetics and improved (compile-time) safety
42947         Define inttype_is_signed rather than inttype_is_unsigned,
42948         since the sole use is via "#if inttype_is_signed".
42949         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42950         inttype_is_unsigned.
42951         * lib/offtostr.c (inttype_is_signed): Likewise.
42952         * lib/uinttostr.c (inttype_is_signed): Likewise.
42953         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42954         * lib/inttostr.c (inttostr): Use verify to cross-check the
42955         inttype_is_signed value and the signedness of the actual type.
42956         * modules/inttostr (Depends-on): Add verify.
42957
42958 2009-10-30  Eric Blake  <ebb9@byu.net>
42959
42960         build: avoid compiler warnings
42961         * lib/fchmodat.c (lchmod): Mark unused variables.
42962         * lib/getopt.c (_getopt_initialize): Likewise.
42963         * lib/mktime.c (__mktime_internal): Provide prototype.
42964         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42965         older gcc that do not understand #pragma GCC diagnostic.
42966         * lib/uinttostr.c (inttype_is_unsigned): Define.
42967         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42968
42969 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42970
42971         stat: fix compilation on AIX
42972         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42973         only see struct stat64.
42974
42975 2009-10-30  Eric Blake  <ebb9@byu.net>
42976
42977         exclude: make more robust
42978         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42979         rather than masking a coding bug.
42980         Suggested by Bruno Haible.
42981
42982 2009-10-30  Jim Meyering  <meyering@redhat.com>
42983
42984         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42985         Rather than putting #!/usr/bin/perl on the first line,
42986         start with a variant of what's recommended by "man perlrun" that
42987         invokes the first "perl" program from your shell's search path.
42988         * build-aux/gitlog-to-changelog: Replace #!... as above.
42989         Add a "Local Variables" perl mode setting.
42990         Prompted by a patch from Ludovic Courtès.
42991         Improved by Eric Blake.
42992         * build-aux/useless-if-before-free: Likewise.
42993         * build-aux/announce-gen: Likewise.
42994         * build-aux/update-copyright: Likewise.
42995
42996 2009-10-29  Eric Blake  <ebb9@byu.net>
42997
42998         filenamecat-lgpl: adjust clients
42999         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43000         filenamecat.
43001         * modules/renameat (Depends-on): Likewise.
43002
43003         filenamecat: split into filenamecat-lgpl
43004         * modules/filenamecat-lgpl: New module.
43005         * modules/filenamecat (Files): Move library-safe files into
43006         filenamecat-lgpl.
43007         (Depends-on): Add filenamecat-lgpl.
43008         (configure.ac): Declare witness.
43009         * lib/filenamecat.h (file_name_concat): Only declare when using
43010         GPL module.
43011         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43012         Move...
43013         * lib/filenamecat-lgpl.c: ...into new file.
43014         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43015         (gl_FILE_NAME_CONCAT): Use it.
43016         * MODULES.html.sh (File system functions): Mention new module.
43017
43018         argp: avoid memory leak
43019         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43020         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43021         base_name, since the latter malloc()s and can call exit().
43022         Leak introduced 2006-07-03.
43023
43024         dirname-lgpl: adjust clients that don't need full dirname
43025         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43026         * modules/filenamecat (Depends-on): Likewise.
43027         * modules/linkat (Depends-on): Likewise.
43028         * modules/mkancesdirs (Depends-on): Likewise.
43029         * modules/mkdir (Depends-on): Likewise.
43030         * modules/openat (Depends-on): Likewise.
43031         * modules/savewd (Depends-on): Likewise.
43032         * modules/rename (Depends-on): Likewise.
43033         (License): Relax license.
43034         * modules/mkdir-tests (Depends-on): Drop progname.
43035         (Makefile.am): Delete unneeded LDADD.
43036         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43037
43038         dirname: split into dirname-lgpl
43039         * modules/dirname-lgpl: New module.
43040         * modules/dirname (Files): Move library-safe files into
43041         dirname-lgpl.
43042         (Depends-on): Add dirname-lgpl.
43043         (configure.ac): Declare witness.
43044         * modules/double-slash-root (License): Relax license.
43045         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43046         module.
43047         * lib/dirname.c (dir_len, mdir_name): Move...
43048         * lib/dirname-lgpl.c: ...into new file.
43049         * lib/basename.c (last_component, base_len): Move...
43050         * lib/basename-lgpl.c: ...into new file.
43051         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43052         (gl_DIRNAME): Use it.
43053         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43054         Mention new module.
43055         * modules/dirname-tests (Depends-on): Add progname.
43056         * tests/test-dirname.c (program_name): Delete.
43057
43058         mkdir: make safe for libraries
43059         * modules/mkdir (Depends-on): Drop xalloc.
43060         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43061         exit.
43062
43063         tests: avoid some compiler warnings
43064         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43065         literals.
43066         * tests/test-memchr.c (main): Avoid type mismatch.
43067         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43068         * tests/test-base64.c (main): Likewise.
43069         * tests/test-getdelim.c (main): Likewise.
43070         * tests/test-gethostname.c (main): Likewise.
43071         * tests/test-getline.c (main): Likewise.
43072         * tests/test-netinet_in.c (main): Likewise.
43073         * tests/test-select.c (open_server_socket, main): Likewise.
43074         * tests/test-select-stdin.c (main): Likewise.
43075         * tests/test-sockets.c (main): Likewise.
43076         * tests/test-strsignal.c (main): Likewise.
43077         * tests/test-sys_select.c (main): Likewise.
43078         * tests/test-sys_socket.c (main): Likewise.
43079         * tests/test-u64.c (main): Likewise.
43080         * tests/test-xfprintf-posix.c (main): Likewise.
43081         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43082
43083         sockets: avoid compiler warning
43084         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43085
43086         maint: detect usage(1) and other suspicious exits
43087         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43088
43089 2009-10-29  Jim Meyering  <meyering@redhat.com>
43090
43091         timespec: long-to-int truncation could make timespec_cmp malfunction
43092         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43093         a multiple of 2^32 nanoseconds as no difference.
43094
43095 2009-10-28  Jim Meyering  <meyering@redhat.com>
43096
43097         fprintftime: wrap macro code argument in "do {...} while(0)"
43098         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43099         cpy macro must be a statement that can be followed by a semicolon.
43100         Now that the else clause contains a comment and is hence longer
43101         than one line, I require curly braces.  That in turn requires
43102         that we wrap this code block in the standard do...while(0).
43103
43104         fprintftime: remove stray semicolon from previous change
43105         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43106
43107         fprintftime: avoid a warning about ignored fwrite return value
43108         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43109         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43110         that is unsafe.
43111         * modules/fprintftime (Depends-on): Add ignore-value.
43112
43113         exclude: avoid an unwarranted warning
43114         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43115
43116 2009-10-27  Eric Blake  <ebb9@byu.net>
43117
43118         fseek: avoid compilation failure when fflush is replaced
43119         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43120         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43121         module is in use.
43122         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43123         module is not in use; since REPLACE_FSEEK worked otherwise.
43124         (GNULIB_FTELLO): Likewise for ftell.
43125         Reported by Ian Beckwith and others.
43126
43127 2009-10-27  Bruno Haible  <bruno@clisp.org>
43128
43129         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43130         Reported by Jim Meyering.
43131
43132 2009-10-27  Jim Meyering  <jim@meyering.net>
43133             Bruno Haible  <bruno@clisp.org>
43134
43135         Avoid warning despite dropping the return value of fwrite.
43136         * lib/unicodeio.c: Include ignore-value.h.
43137         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43138         * modules/unicodeio (Depends-on): Add ignore-value.
43139
43140 2009-10-26  Eric Blake  <ebb9@byu.net>
43141
43142         areadlinkat: fix fallback path
43143         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43144         pointer and zero.
43145
43146 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43147
43148         Use a better IO block size for modern systems
43149         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43150         * lib/md2.c: Likewise.
43151         * lib/md4.c: Likewise.
43152         * lib/md5.c: Likewise.
43153         * lib/sha1.c: Likewise.
43154         * lib/sha256.c: Likewise.
43155         * lib/sha512.c: Likewise.
43156
43157 2009-10-22  Eric Blake  <ebb9@byu.net>
43158
43159         tests: avoid several compiler warnings
43160         * tests/test-getcwd.c (main): Avoid buffer underflow.
43161         * tests/test-getdate.c (main): String literals are not safe with
43162         putenv, so use setenv.  Declare unused argument.
43163         * modules/getdate-tests (Depends-on): Add setenv.
43164         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43165         problems with string literals in char *.
43166         * tests/test-hash.c (main): Avoid shadowing declaration.
43167         (insert_new): Treat string literals as char const *.
43168         * tests/test-getopt.h (test_getopt): Likewise.
43169         (getopt_loop): Alter types to minimize casting elsewhere.
43170         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43171         (test_getopt_long_posix): Likewise.
43172         (do_getopt_long): Add wrapper to minimize casting.
43173         * tests/test-atexit.c (clear_temp_file): Use void.
43174         * tests/test-areadlink-with-size.c (main): Declare unused
43175         arguments.
43176         * tests/test-areadlink.c (main): Likewise.
43177         * tests/test-areadlinkat-with-size.c (main): Likewise.
43178         * tests/test-areadlinkat.c (main): Likewise.
43179         * tests/test-canonicalize-lgpl.c (main): Likewise.
43180         * tests/test-canonicalize.c (main): Likewise.
43181         * tests/test-dirent-safer.c (main): Likewise.
43182         * tests/test-dirname.c (main): Likewise.
43183         * tests/test-dup2.c (main): Likewise.
43184         * tests/test-fchdir.c (main): Likewise.
43185         * tests/test-fcntl-h.c (main): Likewise.
43186         * tests/test-fcntl-safer.c (main): Likewise.
43187         * tests/test-fdopendir.c (main): Likewise.
43188         * tests/test-fdutimensat.c (main): Likewise.
43189         * tests/test-fflush.c (main): Likewise.
43190         * tests/test-filenamecat.c (main): Likewise.
43191         * tests/test-filevercmp.c (main): Likewise.
43192         * tests/test-fopen-safer.c (main): Likewise.
43193         * tests/test-fopen.c (main): Likewise.
43194         * tests/test-fpending.c (main): Likewise.
43195         * tests/test-fpurge.c (main): Likewise.
43196         * tests/test-freading.c (main): Likewise.
43197         * tests/test-fstatat.c (main): Likewise.
43198         * tests/test-fsync.c (main): Likewise.
43199         * tests/test-futimens.c (main): Likewise.
43200         * tests/test-getndelim2.c (main): Likewise.
43201         * tests/test-gettimeofday.c (main): Likewise.
43202         * tests/test-getopt.c (main): Likewise.
43203         * tests/test-i-ring.c (main): Likewise.
43204         * tests/test-inttypes.c (main): Likewise.
43205         * tests/test-link.c (main): Likewise.
43206         * tests/test-lstat.c (main): Likewise.
43207         * tests/test-math.c (main): Likewise.
43208         * tests/test-md5.c (main): Likewise.
43209         * tests/test-memchr2.c (main): Likewise.
43210         * tests/test-memrchr.c (main): Likewise.
43211         * tests/test-mkdir.c (main): Likewise.
43212         * tests/test-mkdirat.c (main): Likewise.
43213         * tests/test-mkfifoat.c (main): Likewise.
43214         * tests/test-open.c (main): Likewise.
43215         * tests/test-openat-safer.c (main): Likewise.
43216         * tests/test-openat.c (main): Likewise.
43217         * tests/test-quotearg.c (main): Likewise.
43218         * tests/test-rawmemchr.c (main): Likewise.
43219         * tests/test-readlink.c (main): Likewise.
43220         * tests/test-remove.c (main): Likewise.
43221         * tests/test-rename.c (main): Likewise.
43222         * tests/test-renameat.c (main): Likewise.
43223         * tests/test-rmdir.c (main): Likewise.
43224         * tests/test-sha1.c (main): Likewise.
43225         * tests/test-signal.c (main): Likewise.
43226         * tests/test-sigaction.c (main): Likewise.
43227         * tests/test-stat.c (main): Likewise.
43228         * tests/test-stat-time.c (main): Likewise.
43229         * tests/test-stddef.c (main): Likewise.
43230         * tests/test-stdint.c (main): Likewise.
43231         * tests/test-stdio.c (main): Likewise.
43232         * tests/test-stdlib.c (main): Likewise.
43233         * tests/test-strchrnul.c (main): Likewise.
43234         * tests/test-strerror.c (main): Likewise.
43235         * tests/test-string.c (main): Likewise.
43236         * tests/test-strtod.c (main): Likewise.
43237         * tests/test-strverscmp.c (main): Likewise.
43238         * tests/test-symlink.c (main): Likewise.
43239         * tests/test-symlinkat.c (main): Likewise.
43240         * tests/test-sys_stat.c (main): Likewise.
43241         * tests/test-sys_time.c (main): Likewise.
43242         * tests/test-time.c (main): Likewise.
43243         * tests/test-unistd.c (main): Likewise.
43244         * tests/test-unlink.c (main): Likewise.
43245         * tests/test-unlinkat.c (main): Likewise.
43246         * tests/test-utimens.c (main): Likewise.
43247         * tests/test-utimensat.c (main): Likewise.
43248         * tests/test-version-etc.c (main): Likewise.
43249         * tests/test-wchar.c (main): Likewise.
43250         * tests/test-wctype.c (main): Likewise.
43251         * tests/test-xprintf-posix.c (main): Likewise.
43252         * tests/test-posixtm.c (main): Likewise.
43253         (STREQ): Delete unused macro.
43254         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43255         shadowed variables.
43256         * tests/test-memchr.c (main): Likewise.
43257
43258 2009-10-21  Eric Blake  <ebb9@byu.net>
43259
43260         areadlinkat: avoid failure on older glibc
43261         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43262         rather than mis-comparing 0 against FUNC_RESULT of char*.
43263
43264 2009-10-21  Bruno Haible  <bruno@clisp.org>
43265
43266         * modules/stpncpy (License): Relicense under LGPLv2+.
43267         Reported by David Lutterkort <lutter@redhat.com>.
43268
43269 2009-10-20  Eric Blake  <ebb9@byu.net>
43270
43271         utimensat: work around Solaris 9 bug
43272         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43273         has trailing slash bugs.
43274         * tests/test-lutimens.h (test_lutimens): Enhance test.
43275         * tests/test-utimens.h (test_utimens): Likewise.
43276         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43277         * doc/posix-functions/utimes.texi (utimes): Likewise.
43278         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43279         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43280         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43281         * doc/posix-functions/futimens.texi (futimens): Likewise.
43282
43283         fdutimensat: new module
43284         * modules/fdutimensat: New file.
43285         * lib/fdutimensat.c (fdutimensat): Likewise.
43286         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43287         * MODULES.html.sh (File system functions): Mention module.
43288         * modules/fdutimensat-tests: New test.
43289         * tests/test-fdutimensat.c: Likewise.
43290
43291         doc: regenerate INSTALL
43292         * doc/INSTALL: Reflect recent autoconf update.
43293         * doc/INSTALL.ISO: Likewise.
43294         * doc/INSTALL.UTF-8: Likewise.
43295
43296 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43297
43298         acl: warn if ACL support is not detected
43299         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43300
43301 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43302
43303         * lib/nproc.h: Add extern "C" block for C++.
43304
43305 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43306             Bruno Haible  <bruno@clisp.org>
43307
43308         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43309         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43310         * doc/posix-functions/isalpha.texi: Likewise.
43311         * doc/posix-functions/isblank.texi: Likewise.
43312         * doc/posix-functions/iscntrl.texi: Likewise.
43313         * doc/posix-functions/isdigit.texi: Likewise.
43314         * doc/posix-functions/isgraph.texi: Likewise.
43315         * doc/posix-functions/islower.texi: Likewise.
43316         * doc/posix-functions/isprint.texi: Likewise.
43317         * doc/posix-functions/ispunct.texi: Likewise.
43318         * doc/posix-functions/isspace.texi: Likewise.
43319         * doc/posix-functions/isupper.texi: Likewise.
43320         * doc/posix-functions/isxdigit.texi: Likewise.
43321
43322 2009-10-18  Bruno Haible  <bruno@clisp.org>
43323
43324         Tests for module 'isblank'.
43325         * modules/isblank-tests: New file.
43326         * tests/test-isblank.c: New file.
43327
43328         New module 'isblank'.
43329         * lib/isblank.c: New file.
43330         * m4/isblank.m4: New file.
43331         * modules/isblank: New file.
43332         * doc/posix-functions/isblank.texi: Mention the new module.
43333
43334 2009-10-18  Bruno Haible  <bruno@clisp.org>
43335
43336         New module 'ctype'.
43337         * lib/ctype.in.h: New file.
43338         * m4/ctype.m4: New file.
43339         * modules/ctype: New file.
43340         * doc/posix-headers/ctype.texi: Mention the new module.
43341
43342 2009-10-18  Jim Meyering  <meyering@redhat.com>
43343
43344         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43345         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43346         right after its initialization, rather than farther down.
43347         Keeping these in close proximity makes it easier to ensure
43348         that each such variable is initialized.  E.g.,
43349
43350             LIB_CLOCK_GETTIME=
43351             AC_SUBST([LIB_CLOCK_GETTIME])
43352
43353         This change also increments these serial numbers.
43354         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43355         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43357
43358 2009-10-18  Bruno Haible  <bruno@clisp.org>
43359
43360         Don't let environment variables perturb build.
43361         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43362         (gl_PREREQ_GETHRXTIME): ... not here.
43363
43364 2009-10-18  Bruno Haible  <bruno@clisp.org>
43365
43366         Avoid symlink attack in localcharset module.
43367         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43368         (O_NOFOLLOW): Define fallback.
43369         (get_charset_aliases): Don't open the file if it is a symbolic link.
43370         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43371         gl_FCNTL_H.
43372         (gl_FCNTL_H): Require it.
43373         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43374         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43375         Reported by Fergal Glynn <fglynn@veracode.com>.
43376
43377 2009-10-18  Bruno Haible  <bruno@clisp.org>
43378
43379         Implement nproc for mingw.
43380         * lib/nproc.c: Include <windows.h>
43381         (num_processors): On native Windows platforms, try GetSystemInfo.
43382
43383 2009-10-18  Bruno Haible  <bruno@clisp.org>
43384
43385         Implement nproc for IRIX.
43386         * lib/nproc.c: Include <sys/sysmp.h>.
43387         (num_processors): On IRIX systems, try sysmp.
43388         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43389
43390 2009-10-18  Bruno Haible  <bruno@clisp.org>
43391
43392         Implement nproc for HP-UX.
43393         * lib/nproc.c: Include <sys/pstat.h>
43394         (num_processors): On HP-UX systems, try pstat_getdynamic.
43395         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43396         pstat_getdynamic.
43397
43398 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43399             Bruno Haible  <bruno@clisp.org>
43400
43401         Implement nproc for NetBSD, OpenBSD.
43402         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43403         (ARRAY_SIZE): New macro.
43404         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43405         * m4/nproc.m4: New file.
43406         * modules/nproc (Files): Add m4/nproc.m4.
43407         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43408         (Makefile.am): Instead, augment lib_SOURCES.
43409
43410 2009-10-18  Bruno Haible  <bruno@clisp.org>
43411
43412         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43413         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43414         sys/param.h.
43415
43416 2009-10-16  Eric Blake  <ebb9@byu.net>
43417
43418         utimensat: new module
43419         * modules/utimensat: New file.
43420         * lib/utimensat.c (utimensat): Likewise.
43421         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43422         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43423         so we can work around Linux bugs.
43424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43425         * modules/sys_stat (Makefile.am): Substitute them.
43426         * lib/sys_stat.in.h (utimensat): Declare it.
43427         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43428         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43429         * modules/utimensat-tests: New test.
43430         * tests/test-utimensat.c: Likewise.
43431
43432         utimens: let lutimens work on non-symlinks
43433         * lib/utimens.c (lutimens): Fall back to utimens rather than
43434         failing with ENOSYS, when file is not a symlink.
43435         (utimens): Reduce redirection.
43436         * tests/test-lutimens.h (test_lutimens): Update test to cover
43437         non-symlinks.
43438         * tests/test-utimens.h (test_utimens): Update test to cover
43439         symlinks.
43440         * tests/test-utimens.c (main): Update caller.
43441
43442         utimens: cache whether utimensat syscall works
43443         * lib/utimens.c (utimensat_works_really): New cache variable.
43444         (fdutimens, lutimens): Use it to avoid failing syscall.
43445
43446         test-stat-time, test-utimens: improve portability
43447         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43448         ext4 on alpha, and for cygwin.
43449         * tests/test-utimens-common.h: New file.
43450         (nap): Factor delays into single function.
43451         * tests/test-lutimens.h (test_lutimens): Use new header.
43452         * tests/test-futimens.h (test_futimens): Likewise.
43453         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43454         timestamps to occur from same machine, as was done previously for
43455         test_utimens.
43456         * modules/utimens-tests (Files): Ship new file.
43457         * modules/futimens-tests (Files): Likewise.
43458         Reported in part by Jim Meyering.
43459
43460         sys_stat: sort replacement declarations
43461         * lib/sys_stat.in.h: Sort declarations.
43462         * lib/futimens.c (futimens): Fix typo.
43463
43464 2009-10-15  Jim Meyering  <meyering@redhat.com>
43465
43466         don't let environment settings perturb build
43467         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43468         could cause a configure-time and/or build-time malfunction.
43469         Typically, a configure-time function-in-library test is performed
43470         via code like this:
43471
43472           LIB_VAR=
43473           AC_SUBST([LIB_VAR])
43474           prefix_saved_LIBS=$LIBS
43475             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43476                        [test "$ac_cv_search_FUNC" = "none required" ||
43477                         LIB_VAR=$ac_cv_search_FUNC])
43478           LIBS=$prefix_saved_LIBS
43479
43480         However, in each of the files affected by this change, the LIB_VAR=
43481         initialization was omitted.  Thus, when set in the environment, its
43482         value would propagate into generated Makefiles when FUNC is not found
43483         in LIB_NAME.
43484         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43485         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43487
43488 2009-10-14  Eric Blake  <ebb9@byu.net>
43489
43490         fchdir: avoid infinite recursion in mingw
43491         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43492         recursing.
43493
43494         test-stat-time: port to mingw
43495         * tests/test-stat-time.c (force_unlink): Return a value.
43496         (test_ctime) [W32]: Fix compilation error.
43497         (nap): Don't call usleep with too large an argument.  Use
43498         force_unlink.
43499         * doc/pastposix-functions/usleep.texi (usleep): Document the
43500         portability issue.
43501
43502 2009-10-13  Jim Meyering  <meyering@redhat.com>
43503
43504         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43505         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43506         * modules/pipe-filter-ii: Likewise.
43507         * modules/sys_socket-tests: Likewise.
43508         * modules/tsearch-tests: Likewise.
43509         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43510         (check): Depend on it.
43511
43512 2009-10-12  Eric Blake  <ebb9@byu.net>
43513
43514         utimens-tests: port to NFS file systems
43515         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43516         comparisons to avoid spurious failures from timestamp drift
43517         between NFS machines.
43518
43519 2009-10-12  Eric Blake  <ebb9@byu.net>
43520
43521         stat-time-tests: minor cleanups
43522         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43523         * tests/test-stat-time.c (nap): Separate assignment from call.
43524         Suggested by Paolo Bonzini and Bruno Haible.
43525
43526         sys_stat: guarantee struct timespec
43527         * lib/sys_stat.in.h (includes): Always include <time.h>
43528         * modules/sys_stat (Depends-on): Add time.
43529         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43530         mode_t permission values.
43531         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43532         get at subsecond timestamps.
43533
43534 2009-10-10  Eric Blake  <ebb9@byu.net>
43535
43536         futimens: new module
43537         * modules/futimens: New file.
43538         * lib/futimens.c (futimens): Likewise.
43539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43540         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43541         we can work around Linux bugs.
43542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43543         * modules/sys_stat (Makefile.am): Substitute them.
43544         * lib/sys_stat.in.h (futimens): Declare it.
43545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43546         * doc/posix-functions/futimens.texi (futimens): Likewise.
43547         * modules/futimens-tests: New test.
43548         * tests/test-futimens.c: Likewise.
43549
43550         utimens: introduce fdutimens
43551         * lib/utimens.h (fdutimens): New prototype.
43552         * lib/utimens.c (gl_futimens): Move guts...
43553         (fdutimens): ...to new interface.
43554         * tests/test-utimens.c (do_fdutimens): Use it.
43555
43556         utimens: add UTIME_NOW and UTIME_OMIT support
43557         * lib/utimens.c (validate_timespec, update_timespec): New helper
43558         functions.
43559         (gl_futimens, lutimens): Use them.
43560         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43561         stdbool, sys_stat.
43562         (Link): Mention resulting library dependency.
43563         * modules/utimecmp (Link): Likewise.
43564         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43565         (Makefile.am): Pick up library dependency.
43566         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43567         definition.
43568         * tests/test-sys_stat.c: Test the definitions.
43569         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43570         * NEWS: Document library dependency.
43571
43572         utimecmp: support symlink timestamps
43573         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43574         hashing when possible.  Use pathconf when available.
43575         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43576         * modules/utimecmp (Depends-on): Add lstat.
43577
43578         utimens: add lutimens interface
43579         * lib/utimens.c (lutimens): New function.
43580         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43581         * lib/utimens.h (lutimens): Declare new interface.
43582         * tests/test-utimens.c (main): Enhance test.
43583         * tests/test-lutimens.h (test_lutimens): New file.
43584         * modules/utimens-tests (Files): Distribute it.
43585         (Depends-on): Add symlink.
43586         (configure.ac): Check for usleep.
43587
43588         utimens: validate futimens usage
43589         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43590         fewer syscalls on failure later on.  Avoid compiler warning on
43591         mingw.
43592         * modules/utimens (Depends-on): Add dup2.
43593
43594         utimens: add test
43595         * modules/utimens-tests: New test.
43596         * tests/test-utimens.h: New file.
43597         * tests/test-futimens.h: Likewise.
43598         * tests/test-utimens.c: Likewise.
43599
43600         doc: mention timestamp portability issues
43601         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43602         instead.
43603         * doc/posix-functions/utime.texi (utime): Likewise.
43604         * doc/posix-functions/utimes.texi (utimes): Likewise.
43605         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43606         instead.
43607         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43608         module.
43609         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43610         Mention weakness with symlink timestamps.
43611         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43612         to utimensat/futimens instead.
43613         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43614
43615         test-dup2: enhance test
43616         * tests/test-dup2.c (main): Also check AT_FDCWD.
43617
43618         test-stat-time: avoid more spurious failures
43619         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43620         xfs; and avoid race if the two timestamps cross quantization edge.
43621
43622         relocatable: prefer 'file system' over 'filesystem'
43623         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43624         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43625         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43626         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43627         * lib/relocatable.c (compute_curr_prefix): Likewise.
43628
43629 2009-10-10  Jim Meyering  <meyering@redhat.com>
43630
43631         stat-time-tests: check for the usleep function
43632         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43633
43634 2009-10-10  Bruno Haible  <bruno@clisp.org>
43635
43636         * modules/xnanosleep: Put the Link section after the Include section.
43637
43638 2009-10-09  Eric Blake  <ebb9@byu.net>
43639
43640         dup2: work around FreeBSD 6.1 bug
43641         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43642         * doc/posix-functions/dup2.texi (dup2): Document it.
43643         Reported by Nelson H. F. Beebe and Jim Meyering.
43644
43645         test-stat-time: port to buggy NFS clients
43646         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43647         (test_ctime): Also skip test if mtime and ctime are skewed.
43648
43649         maint: prefer 'file system' over 'filesystem'
43650         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43651         * doc/posix-functions/lstat.texi (lstat): Likewise.
43652         * lib/file-has-acl.c (file_has_acl): Likewise.
43653         * lib/fwriteerror.c [TEST]: Likewise.
43654         * tests/test-areadlink.h (test_areadlink): Likewise.
43655         * tests/test-areadlinkat-with-size.c (main): Likewise.
43656         * tests/test-areadlinkat.c (main): Likewise.
43657         * tests/test-canonicalize-lgpl.c (main): Likewise.
43658         * tests/test-canonicalize.c (main): Likewise.
43659         * tests/test-fstatat.c (main): Likewise.
43660         * tests/test-linkat.c (main): Likewise.
43661         * tests/test-lstat.h (test_lstat_func): Likewise.
43662         * tests/test-mkdir.h (test_mkdir): Likewise.
43663         * tests/test-readlink.h (test_readlink): Likewise.
43664         * tests/test-remove.c (main): Likewise.
43665         * tests/test-rename.h (test_rename): Likewise.
43666         * tests/test-renameat.c (main): Likewise.
43667         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43668         * tests/test-symlink.h (test_symlink): Likewise.
43669         * tests/test-symlinkat.c (main): Likewise.
43670         * tests/test-unlink.h (test_unlink_func): Likewise.
43671         * tests/test-unlinkat.c (main): Likewise.
43672
43673         maint: make realtime library usage explicit
43674         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43675         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43676         * modules/settime (Link): Likewise.
43677         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43678
43679         test-stat-time: speed up execution
43680         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43681         warning on mingw.
43682         (nap): New helper function.
43683         (prepare_test): Use it to reduce sleep time.
43684         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43685         execution.
43686         * modules/stat-time-tests (configure.ac): Check for usleep.
43687
43688 2009-10-09  Jim Meyering  <meyering@redhat.com>
43689
43690         selinux-h: always use getfilecon wrappers
43691         * lib/getfilecon.c: New file.
43692         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43693         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43694         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43695         (fgetfilecon): Provide a stub.
43696         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43697         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43698         file unconditionally.
43699         When <selinux/selinux.h> is found, arrange to use wrappers.
43700         * modules/selinux-h (Files): Add getfilecon.c.
43701         (Makefile.am): Substitute include-next-related bits
43702         into the now-always-generated selinux/selinux.h file.
43703         * doc/glibc-functions/lgetfilecon.texi: New file.
43704         * doc/glibc-functions/fgetfilecon.texi: New file.
43705         * doc/glibc-functions/getfilecon.texi: New file.
43706         * doc/glibc-functions/getfilecon-desc.texi: New file.
43707         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43708         which to pull in the new files.
43709         * MODULES.html.sh (Misc): Add selinux-h.
43710
43711 2009-10-08  Jim Meyering  <meyering@redhat.com>
43712
43713         unistd: fix comment typo
43714         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43715
43716 2009-10-08  Eric Blake  <ebb9@byu.net>
43717
43718         areadlink: use SIZE_MAX consistently
43719         * modules/areadlink (Depends-on): Add stdint.
43720         * modules/areadlink-with-size (Depends-on): Likewise.
43721         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43722         gives NULL; drop sys/types, since unistd gives size_t; and add
43723         stdint for SIZE_MAX.
43724         (SIZE_MAX): Rely on headers.
43725         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43726         and add stdint.
43727         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43728         (SIZE_MAX): Likewise.
43729         (INITIAL_BUF_SIZE): Turn into enum.
43730         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43731
43732 2009-10-08  Jim Meyering  <meyering@redhat.com>
43733
43734         areadlinkat: avoid compilation failure
43735         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43736         Fix typo in comment.
43737
43738 2009-10-07  Eric Blake  <ebb9@byu.net>
43739
43740         areadlinkat-with-size: new module
43741         * modules/areadlinkat-with-size: New module.
43742         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43743         * lib/areadlink.h (areadlinkat): Declare it.
43744         * MODULES.html.sh (File system functions): Mention it.
43745         * modules/areadlinkat-with-size-tests: New test.
43746         * tests/test-areadlinkat-with-size.c: New file.
43747
43748         xreadlinkat: new module
43749         * modules/xreadlinkat: New module.
43750         * lib/xreadlinkat.c (xreadlinkat): New file.
43751         * lib/xreadlink.h (xreadlinkat): Declare it.
43752         * MODULES.html.sh (File system functions): Mention it.
43753
43754         areadlinkat: new module
43755         * lib/at-func.c (FUNC_FAIL): New define.
43756         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43757         * modules/areadlinkat: New module.
43758         * lib/linkat.c (areadlinkat): Move...
43759         * lib/areadlinkat.c (areadlinkat): ...to new file.
43760         * lib/areadlink.h (areadlinkat): Declare it.
43761         * modules/linkat (Depends-on): Add areadlinkat.
43762         * MODULES.html.sh (File system functions): Mention it.
43763         * modules/areadlinkat-tests: New test.
43764         * tests/test-areadlinkat.c: New file.
43765
43766         areadlink, areadlink-with-size: add tests
43767         * modules/areadlink-tests: New test.
43768         * modules/areadlink-with-size-tests: Likewise.
43769         * tests/test-areadlink.h: New file.
43770         * tests/test-areadlink.c: Likewise.
43771         * tests/test-areadlink-with-size.c: Likewise.
43772
43773         maint: minor cleanups
43774         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43775         _UNUSED_PARAMETER_ instead.
43776         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43777         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43778         * modules/linkat-tests (Files): Distribute test-link.h.
43779
43780         openat, utimens: whitespace cleanup
43781         * lib/openat.c: Prefer space throughout, rather than mix of 8
43782         spaces vs. tabs.
43783         * lib/at-func.c: Likewise.
43784         * lib/utimens.c: Likewise.
43785
43786         openat: avoid using wrong fd
43787         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43788         working directory chooses same fd.
43789         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43790
43791         mkdir, mkdirat: fix cygwin 1.5.x bug
43792         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43793         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43794         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43795         bug.
43796         (gl_PREREQ_MKDIR): Delete unused macro.
43797         * modules/mkdir (Files): Track file rename.
43798         (configure.ac): Update macro name.
43799         * modules/openat (Depends-on): Add mkdir.
43800         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43801
43802         mkdir, mkdirat: add tests
43803         * modules/mkdir-tests: New test.
43804         * tests/test-mkdir.h: New file.
43805         * tests/test-mkdir.c: Likewise.
43806         * tests/test-mkdirat.c: Likewise.
43807         * modules/openat-tests (Files): Add new files.
43808         (Makefile.am): Run new test.
43809
43810 2009-10-06  Eric Blake  <ebb9@byu.net>
43811
43812         doc: tweak *at function documentation
43813         * doc/posix-functions/faccessat.texi (faccessat): Mention
43814         known issue with replacement.
43815         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43816         * doc/posix-functions/linkat.texi (linkat): Likewise.
43817         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43818         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43819         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43820         * doc/posix-functions/renameat.texi (renameat): Likewise.
43821         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43822
43823         openat: fix GNU/Hurd bug in unlinkat
43824         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43825         broken.
43826         * doc/posix-functions/unlink.texi (unlink): Document this.
43827         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43828
43829         fdopendir: fix GNU/Hurd bug
43830         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43831         allowing non-directory fds.
43832         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43833         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43834         * modules/dirent (Makefile.am): Substitute it.
43835         * lib/dirent.in.h (fdopendir): Declare replacement.
43836         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43837         * tests/test-fdopendir.c (main): Test something other than
43838         /dev/null, since on Hurd that behaves like a directory.
43839
43840         test-symlink: port to GNU/Hurd
43841         * tests/test-symlink.h (test_symlink): Relax expected errno.
43842
43843         doc: tweak more cygwin information
43844         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43845         now compatible with glibc.
43846         * doc/posix-functions/getopt.texi (getopt): Likewise.
43847
43848         getopt-gnu: add another test
43849         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43850         guarantee behavior relied on by m4.
43851         * tests/test-getopt.c (main): Use it.
43852         * modules/getopt-posix-tests (Depends-on): Add setenv.
43853         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43854
43855         getopt: fix compilation on darwin
43856         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43857         include.
43858         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43859         Reported by Ludovic Courtès.
43860
43861 2009-10-06  Bruno Haible  <bruno@clisp.org>
43862
43863         * modules/size_max (Description): Discourage its use.
43864         Reported by Simon Josefsson.
43865
43866 2009-10-06  Jim Meyering  <meyering@redhat.com>
43867
43868         linkat: avoid compilation failure
43869         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43870
43871 2009-10-05  Eric Blake  <ebb9@byu.net>
43872
43873         linkat: support Linux 2.6.17
43874         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43875         linkat on Linux, but allow cache variable override.
43876         * lib/linkat.c (rpl_linkat): Define override.
43877         * modules/linkat (Depends-on): Add symlinkat.
43878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43879         * modules/unistd (Makefile.am): Substitute it.
43880         * lib/unistd.in.h (linkat): Declare replacement.
43881         Reported by Pádraig Brady.
43882
43883         quotearg: port test to systems with C.UTF-8 locale
43884         * tests/test-quotearg.c (struct result_strings): Add another
43885         member, differentiating between C.ASCII and C.UTF-8 handling.
43886         (compare_strings): Add parameter.
43887         (main): Adjust all callers.
43888
43889         getopt: avoid clash with FreeBSD _getopt_internal
43890         * lib/getopt.in.h (_getopt_internal): Override the name.
43891         * lib/getopt_int.h (includes): Pick up any overrides.
43892         Reported by Reuben Thomas.
43893
43894         hash: allow C89 compilation
43895         * lib/hash.c (check_tuning): Move declaration before statement.
43896         Reported by Reuben Thomas.
43897
43898 2009-10-05  Karl Berry  <karl@gnu.org>
43899
43900         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43901
43902 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43903             Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/uname.c (uname): Use a table-driven algorithm to compute
43906         Windows NT versions.
43907
43908 2009-10-04  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43911         program_invocation_short_name.
43912         * modules/progname (configure.ac): Test for presence of
43913         program_invocation_short_name.
43914         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43915
43916 2009-10-04  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/progname.c (set_program_name): Fix comment.
43919         Reported by Jim Meyering.
43920
43921 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43922             Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/uname.c: Include <string.h>.
43925         (uname): Do only one call to GetVersionEx in the common case.
43926
43927 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43928             Bruno Haible  <bruno@clisp.org>
43929
43930         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43931         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43932         (uname): Add support for Windows CE and various non-x86 CPU types.
43933
43934 2009-10-03  Bruno Haible  <bruno@clisp.org>
43935
43936         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43937         invocation to tests/configure.ac.
43938         Reported by Ian Beckwith <ianb@erislabs.net>.
43939
43940 2009-10-02  Eric Blake  <ebb9@byu.net>
43941
43942         fchdir: avoid compiler warning
43943         * lib/fchdir.c (canonicalize_file_name)
43944         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43945
43946         test-open: support mingw errno values
43947         * tests/test-open.h (test_open): Relax test.
43948         * tests/test-fopen.h (test_fopen): Likewise.
43949         * tests/test-openat-safer.c (main): Likewise.
43950
43951         open: fix opening directory on mingw
43952         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43953
43954         test-open: on GNU/Hurd, /dev/null is a directory
43955         * tests/test-fopen.h (main): Rename...
43956         (test_fopen): ...to this.  Use a guaranteed non-directory when
43957         confirming open behavior on trailing slash.
43958         * tests/test-openat-safer.c (main): Likewise.
43959         * tests/test-open.h (main): Likewise....
43960         (test_open): ...to this.
43961         * tests/test-fopen.c (main): Adjust caller.
43962         * tests/test-fopen-safer.c (main): Likewise.
43963         * tests/test-open.c (main): Likewise.
43964         * tests/test-fcntl-safer.c (main): Likewise.
43965         Reported by Samuel Thibault.
43966
43967         rename, fchdir: don't ignore chdir failure
43968         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43969         * lib/rename.c (rpl_rename) [W32]: Likewise.
43970         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43971         an empty destination directory if source cannot be renamed,
43972         although there is still possibility for failure.
43973         * doc/posix-functions/rename.texi (rename): Document the race.
43974         Reported by Jim Meyering.
43975
43976         maint: cleanup whitespace in recent commits
43977         * lib/rename.c (rpl_rename): Remove tabs.
43978         * tests/test-link.h (test_link): Likewise.
43979         * lib/fchdir.c (get_name): Likewise.
43980         Reported by Jim Meyering.
43981
43982 2009-10-02  Ben Pfaff  <blp@gnu.org>
43983
43984         relocatable-prog-wrapper: Add missing dependency on
43985         double-slash-root.
43986         * modules/relocatable-prog-wrapper: Add dependency.
43987         Reported by Ian Beckwith <ianb@erislabs.net>.
43988
43989 2009-10-02  Eric Blake  <ebb9@byu.net>
43990
43991         renameat: fix Solaris bugs
43992         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43993         needed fixing.
43994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43995         * modules/stdio (Makefile.am): Substitute it.
43996         * lib/stdio.in.h (renameat): Declare replacement.
43997         * lib/renameat.c (rpl_renameat): Implement fix.
43998
43999         renameat: new module
44000         * modules/renameat: New file.
44001         * lib/renameat.c (renameat): Likewise.
44002         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44004         * modules/stdio (Makefile.am): Substitute them.
44005         * lib/stdio.in.h (renameat): Declare it.
44006         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44007         * doc/posix-functions/renameat.texi (renameat): Likewise.
44008         * modules/renameat-tests: New test.
44009         * tests/test-renameat.c: Likewise.
44010
44011         rename: fix mingw bugs
44012         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44013         directory overwrite bugs.
44014
44015         rename: fix another cygwin 1.5 bug
44016         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44017         checks.
44018         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44019         unnecessary cygwin workarounds.  Also work around bug with moving
44020         full directory onto an empty one.
44021         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44022
44023         rename-dest-slash: merge into rename module
44024         * modules/rename-dest-slash (Status): Mark obsolete.
44025         (Depends-on): Add rename.
44026         (Files): Let rename do it all.
44027         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44028         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44029         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44030         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44031         * lib/rename.c (rpl_rename): Update comments.
44032
44033         rename: fix cygwin 1.5.x bugs
44034         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44035         * lib/rename.c (rpl_rename): Work around them.
44036         * modules/rename (Depends-on): Add same-inode.
44037
44038         rename: fix Solaris 10 bug
44039         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44040         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44041         was the only bug.
44042
44043         rename: fix Solaris 9 bug
44044         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44045         on non-directory.  Avoid calling exit.
44046         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44047         strdup.
44048         * modules/rename-tests (Depends-on): Drop lstat.
44049         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44050         (gl_PREREQ_RENAME): Delete unused macro.
44051
44052         rename-dest-slash: fix NetBSD bug
44053         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44054         links.
44055         * modules/rename-dest-slash (Depends-on): Add same-inode.
44056
44057         rename-tests: new test, exposes several platform bugs
44058         * modules/rename-tests: New file.
44059         * tests/test-rename.h: Likewise.
44060         * tests/test-rename.c: Likewise.
44061         * doc/posix-functions/rename.texi (rename): Improve documentation,
44062         including bugs that will eventually be fixed in gnulib.
44063
44064 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44065
44066         * lib/uname.c: Include <stdlib.h>
44067         (uname): Assume version info is available.
44068
44069 2009-10-02  Jim Meyering  <meyering@redhat.com>
44070
44071         gnu-web-doc-update: correct --help output
44072         * build-aux/gnu-web-doc-update: Make --help output relevant.
44073
44074         gnu-web-doc-update: add standard options
44075         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44076
44077         gnu-web-doc-update: New module.
44078         Use this script to automatically update the on-line web documentation
44079         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44080         * modules/gnu-web-doc-update: New file, from coreutils.
44081         * build-aux/gnu-web-doc-update: New script.
44082
44083 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44084
44085         link: LoadLibrary is not needed.
44086         * lib/link.c: Use GetModuleHandle.
44087
44088 2009-10-01  Eric Blake  <ebb9@byu.net>
44089
44090         getopt: bump serial number
44091         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44092         change.
44093
44094         tests: tighten link, rmdir, and remove tests
44095         * tests/test-link.h (includes): No need to use <config.h> here.
44096         Clean up if directory hard link was created, otherwise test for
44097         trailing '.'.
44098         * tests/test-linkat.c (main): Simplify.
44099         * tests/test-remove.c (main): Enhance test for trailing '.'.
44100         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44101
44102 2009-10-01  Jim Meyering  <meyering@redhat.com>
44103
44104         maint.mk: requiring "make major" was annoying, for a "minor" release.
44105         What is intended is "stable", to contrast with alpha and beta,
44106         so require "make stable", not "make major".
44107         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44108         (get_tool_versions): Likewise.
44109         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44110
44111 2009-09-30  Ben Pfaff  <blp@gnu.org>
44112
44113         Fix broken build of replacement for Windows tmpfile().
44114         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44115         flags argument added along with the 'mkostemp' module.
44116
44117 2009-09-28  Bruno Haible  <bruno@clisp.org>
44118
44119         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44120         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44121         to 'remove_elt'.
44122         (gl_list_remove): Update.
44123         * lib/gl_list.c (gl_list_remove): Update.
44124         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44125         to 'remove_elt'.
44126         (gl_oset_remove): Update.
44127         * lib/gl_list.c (gl_oset_remove): Update.
44128         Reported by Eric Blake.
44129
44130 2009-09-28  Eric Blake  <ebb9@byu.net>
44131
44132         doc: mention yet more cygwin 1.7 status
44133         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44134         cygwin.
44135         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44136         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44137
44138         argp: fix test failure
44139         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44140         that are not upper-case.  Pass correct range to tolower.
44141
44142 2009-09-27  Jim Meyering  <meyering@redhat.com>
44143
44144         test-yesno: work around sparc-dash here-document infelicity
44145         Without this change, the literal \177 byte in a here document
44146         would make dash 0.5.5.1-3 access uninitialized memory.
44147         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44148         Instead, use a marker, "@", and filter through tr to create the desired
44149         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44150
44151 2009-09-27  Bruno Haible  <bruno@clisp.org>
44152
44153         Disable untested support for new flavours of ACLs on AIX.
44154         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44155         progress.
44156         * lib/set-mode-acl.c (qset_acl): Likewise.
44157
44158 2008-12-07  Bruno Haible  <bruno@clisp.org>
44159
44160         Add support for new flavours of ACLs on AIX. (Untested.)
44161         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44162         (file_has_acl): Add support for newer AIX.
44163         * lib/set-mode-acl.c (qset_acl): Likewise.
44164         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44165         Rainer Tammer <tammer@tammer.net>.
44166
44167 2009-09-26  Eric Blake  <ebb9@byu.net>
44168
44169         argp: fix compilation of getopt
44170         * lib/getopt.in.h (includes): Use different guard than glibc.
44171         Reported by Sergey Poznyakoff.
44172
44173         doc: mention more cygwin 1.7 status
44174         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44175         bug.
44176         * doc/posix-functions/execl.texi (execl): Likewise.
44177         * doc/posix-functions/execle.texi (execle): Likewise.
44178         * doc/posix-functions/execlp.texi (execlp): Likewise.
44179         * doc/posix-functions/execv.texi (execv): Likewise.
44180         * doc/posix-functions/execve.texi (execve): Likewise.
44181         * doc/posix-functions/execvp.texi (execvp): Likewise.
44182         * doc/glibc-functions/canonicalize_file_name.texi
44183         (canonicalize_file_name): Cygwin 1.7 now provides this.
44184         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44185         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44186         on AT_SYMLINK_NOFOLLOW.
44187
44188 2009-09-24  Eric Blake  <ebb9@byu.net>
44189
44190         test-linkat: make test more robust
44191         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44192
44193         getopt: fix inclusion guards for cygwin
44194         * modules/getopt-posix (Depends-on): Add include-next.
44195         (Makefile.am): Substitute more items in replacement header.
44196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44197         <getopt.h>.
44198         * lib/getopt.in.h (includes): Use split inclusion guard, and
44199         prefer <getopt.h> over include <unistd.h> when one is present.
44200         (option): Also override name of 'struct option'.
44201
44202         same-inode: revert prior change; it is not yet ready
44203         * NEWS: Undo mention of this change.
44204         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44205         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44206         * lib/cycle-check.c (cycle_check): Likewise.
44207         * lib/same.c (same_name): Likewise.
44208         * lib/at-func2.c (at_func2): Likewise.
44209
44210 2009-09-23  Eric Blake  <ebb9@byu.net>
44211
44212         linkat: new module
44213         * modules/linkat: New file.
44214         * lib/at-func2.c (at_func2): Likewise.
44215         * lib/linkat.c (linkat): Likewise.
44216         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44217         * lib/openat-priv.h (at_func2): Add declaration.
44218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44219         * modules/unistd (Makefile.am): Substitute them.
44220         * lib/unistd.in.h (linkat): Declare it.
44221         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44222         * doc/posix-functions/linkat.texi (linkat): Likewise.
44223         * doc/posix-functions/link.texi (link): Tweak wording.
44224         * tests/test-link.c (main): Move guts...
44225         * tests/test-link.h (test_link): ...into new file.
44226         * modules/linkat-tests: New test.
44227         * tests/test-linkat.c: Likewise.
44228         * modules/link-tests (Files): Ship new file.
44229         (Depends-on): Add stdbool.
44230
44231         dirname: add library-safe mdir_name
44232         * lib/dirname.h (mdir_name): New prototype.
44233         * lib/dirname.c (dir_name): Move guts...
44234         (mdir_name): ...to new function that avoids xalloc_die.
44235
44236         fchdir: another mingw fix
44237         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44238         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44239         on mingw (where it has not yet been ported), and make it optional
44240         elsewhere.
44241         (_gl_register_fd): Use it.
44242
44243         same-inode: make SAME_INODE tri-state, to port to mingw
44244         * NEWS: Mention this change.
44245         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44246         st_ino always being 0.
44247         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44248         * lib/cycle-check.c (cycle_check): Likewise.
44249         * lib/same.c (same_name): Likewise.
44250
44251         lstat: avoid mingw compilation error
44252         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44253         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44254         lstat ourselves.
44255         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44256         was adequate.
44257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44258         the checks for lstat.
44259         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44260
44261         link: fix test failure on Solaris 9
44262         * lib/link.c (rpl_link): Don't assume link will catch bogus
44263         trailing slash on source.
44264
44265         test-symlinkat: enhance test
44266         * tests/test-readlink.c (main): Move guts...
44267         * tests/test-readlink.h (test_readlink): ...into new file.
44268         * tests/test-symlink.c (main): Move guts...
44269         * tests/test-symlink.h (test_symlink): ...into new file.
44270         * tests/test-symlinkat.c (main): Use new files for further
44271         coverage.
44272         (do_symlink, do_readlink): New helper functions.
44273         * modules/symlink-tests (Files): Ship new file.
44274         (Depends-on): Add stdbool.
44275         * modules/readlink-tests (Files): Ship new file.
44276         (Depends-on): Add stdbool.
44277         * modules/symlinkat-tests (Files): Use new files.
44278
44279 2009-09-23  Eric Blake  <ebb9@byu.net>
44280
44281         readlink: document portability issue with symlink length
44282         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44283         systems have bogus st_size on symlinks, and mention the
44284         areadlink-with-size module.
44285         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44286         * doc/posix-functions/readlink.texi (readlink): Mention the
44287         areadlink module, and ERANGE failure.
44288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44289         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44290
44291         readlink: fix Solaris 9 bug with trailing slash
44292         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44293         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44294         * doc/posix-functions/readlink.texi (readlink): Document this.
44295         * modules/readlink-tests: New test.
44296         * tests/test-readlink.c: Likewise.
44297
44298         readlink: fix cygwin 1.5.x bug with return type
44299         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44300         * lib/unistd.in.h (readlink): Use ssize_t.
44301         * lib/readlink.c (readlink): Likewise.
44302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44303         * modules/unistd (Makefile.am): Substitute it.
44304         * lib/unistd.in.h (readlink): Declare replacement.
44305         * doc/posix-functions/readlink.texi (readlink): Document this.
44306
44307         symlink: use throughout gnulib
44308         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44309         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44310         symlink is not used.
44311         * modules/symlinkat (Depends-on): Add symlink.
44312         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44313         * modules/canonicalize-tests (Depends-on): Likewise.
44314         * modules/lstat-tests (Depends-on): Likewise.
44315         * modules/openat-tests (Depends-on): Likewise.
44316         * modules/remove-tests (Depends-on): Likewise.
44317         * modules/rmdir-tests (Depends-on): Likewise.
44318         * modules/unlink-tests (Depends-on): Likewise.
44319         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44320         * tests/test-canonicalize.c (symlink): Likewise.
44321         * tests/test-fstatat.c (symlink): Likewise.
44322         * tests/test-lstat.c (symlink): Likewise.
44323         * tests/test-remove.c (symlink): Likewise.
44324         * tests/test-rmdir.c (symlink): Likewise.
44325         * tests/test-unlink.c (symlink): Likewise.
44326         * tests/test-unlinkat.c (symlink): Likewise.
44327
44328         symlink: new module, for Solaris 9 bug
44329         * modules/symlink: New file.
44330         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44331         * lib/symlink.c: Likewise.
44332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44333         * modules/unistd (Makefile.am): Substitute them.
44334         * lib/unistd.in.h (symlink): Declare replacement.
44335         * MODULES.html.sh (File system functions): Mention it.
44336         * doc/posix-functions/symlink.texi (symlink): Likewise.
44337         * modules/symlink-tests: New test.
44338         * tests/test-symlink.c: Likewise.
44339
44340 2009-09-23  Bruno Haible  <bruno@clisp.org>
44341
44342         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44343         when needed.
44344         Test case: gnulib-tool --import --with-tests atexit inttypes.
44345         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44346
44347 2009-09-23  Bruno Haible  <bruno@clisp.org>
44348
44349         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44350         subcommand, not in a subshell.
44351
44352 2009-09-22  Eric Blake  <ebb9@byu.net>
44353
44354         unistd: sort replacement declarations
44355         * lib/unistd.in.h: Sort declarations.
44356
44357         open, openat: minor optimization
44358         * lib/open.c (open): If open succeeded, len is non-zero.
44359         * lib/openat.c (rpl_openat): Likewise.
44360
44361         link-follow: ensure correct result
44362         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44363         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44364         distinguish between possible failures.
44365
44366 2009-09-21  Eric Blake  <ebb9@byu.net>
44367
44368         fts: avoid compiler warning
44369         * lib/fts.c (dirent_inode_sort_may_be_useful)
44370         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44371
44372 2009-09-19  Bruno Haible  <bruno@clisp.org>
44373
44374         * lib/progreloc.c (canonicalize_file_name): New declaration.
44375
44376 2009-09-19  Eric Blake  <ebb9@byu.net>
44377
44378         link: fix quoting
44379         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44380
44381         openat: fix openat bugs on Solaris 9
44382         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44383         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44384         * modules/openat (Depends-on): Add open.
44385         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44386         * modules/fcntl-h (Makefile.am): Substitute it.
44387         * lib/fcntl.in.h (openat): Declare replacement.
44388         * doc/posix-functions/openat.texi (openat): Document this.
44389
44390         openat: move fstatat and unlinkat into correct files
44391         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44392         compiled.
44393         * lib/openat.c (fstatat, unlinkat): Move...
44394         * lib/fstatat.c (fstatat): ...into correct files.
44395         * lib/unlinkat.c (unlinkat): Likewise.
44396
44397         openat: fix unlinkat bugs on Solaris 9
44398         * lib/unlinkat.c (unlinkat): New file.
44399         * modules/openat (Depends-on): Add unlink.
44400         (Files): Distribute it.
44401         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44402         trailing slash behavior is broken.
44403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44404         * modules/unistd (Makefile.am): Substitute it.
44405         * lib/unistd.in.h (unlinkat): Declare replacement.
44406         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44407
44408         openat: fix fstatat bugs on Solaris 9
44409         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44410         stat.
44411         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44412
44413         test-unlinkat: enhance test, to expose Solaris 9 bug
44414         * tests/test-unlink.c (main): Factor guts...
44415         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44416         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44417         * tests/test-rmdir.c (main): Adjust caller.
44418         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44419         (unlinker): New helper function.
44420         (rmdirat): Enhance check.
44421         * modules/rmdir-tests (Depends-on): Add stdbool.
44422         * modules/unlink-tests (Depends-on): Likewise.
44423         (Files): Add test-unlink.h.
44424         * modules/openat-tests (Files): Likewise.
44425         (Depends-on): Add unlinkdir.
44426
44427         test-fstatat: new test, to expose Solaris 9 bugs
44428         * tests/test-stat.c (main): Factor guts...
44429         * tests/test-stat.h (test_stat_func): ...into new file.
44430         * tests/test-lstat.c (main): Factor guts...
44431         * tests/test-lstat.h (test_lstat_func): ...into new file.
44432         * tests/test-fstatat.c: New file.
44433         * modules/stat-tests (Files): Add test-stat.h.
44434         * modules/lstat-tests (Files): Add test-lstat.h.
44435         (Depends-on): Add stdbool.
44436         * modules/openat-tests (Depends-on): Add pathmax.
44437         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44438         (Makefile.am): Run new test.
44439
44440         remove: new module, for mingw and Solaris 9 bugs
44441         * modules/remove: New file.
44442         * lib/remove.c: Likewise.
44443         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44445         * modules/stdio (Makefile.am): Use them.
44446         * lib/stdio.in.h (remove): Declare replacement.
44447         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44448         * doc/posix-functions/remove.texi (remove): Likewise.
44449         * modules/remove-tests: New test.
44450         * tests/test-remove.c: Likewise.
44451
44452         unlink: new module, for Solaris 9 bug
44453         * modules/unlink: New file.
44454         * lib/unlink.c: Likewise.
44455         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44457         * modules/unistd (Makefile.am): Use them.
44458         * lib/unistd.in.h (stat): Declare replacement.
44459         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44460         * doc/posix-functions/unlink.texi (unlink): Likewise.
44461         * modules/unlink-tests: New test.
44462         * tests/test-unlink.c: Likewise.
44463
44464         lstat: fix Solaris 9 bug
44465         * lib/lstat.c (lstat): Also check for trailing slash on
44466         non-symlink, non-directories.  Use stat module to simplify logic.
44467         * doc/posix-functions/lstat.texi (lstat): Document it.
44468         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44469         (configure.ac): Check for symlink.
44470         * tests/test-lstat.c (main): Add more tests.
44471
44472         stat: add as dependency to other modules
44473         * modules/chown (Depends-on): Add stat.
44474         * modules/euidaccess (Depends-on): Likewise.
44475         * modules/fchdir (Depends-on): Likewise.
44476         * modules/isdir (Depends-on): Likewise.
44477         * modules/link (Depends-on): Likewise.
44478         * modules/lstat (Depends-on): Likewise.
44479         * modules/mkdir-p (Depends-on): Likewise.
44480         * modules/modechange (Depends-on): Likewise.
44481         * modules/open (Depends-on): Likewise.
44482         * modules/readlink (Depends-on): Likewise.
44483         * modules/same (Depends-on): Likewise.
44484
44485         stat: fix Solaris 9 bug
44486         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44487         slash.
44488         * lib/stat.c (rpl_stat): Work around it.
44489         * doc/posix-functions/stat.texi (stat): Update documentation.
44490
44491         stat: new module, for mingw bug
44492         * modules/stat: New file.
44493         * lib/stat.c: Likewise.
44494         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44496         * modules/sys_stat (Makefile.am): Use them.
44497         * lib/sys_stat.in.h (stat): Declare replacement.
44498         * lib/openat.c (fstatat): Deal with lstat and stat being function
44499         macros.
44500         * modules/openat (Depends-on): Add inline.
44501         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44502         * doc/posix-functions/stat.texi (stat): Likewise.
44503         * modules/stat-tests: New test.
44504         * tests/test-stat.c: Likewise.
44505
44506 2009-09-19  Jim Meyering  <meyering@redhat.com>
44507
44508         syntax-check: detect unnecessary inclusion of canonicalize.h
44509         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44510
44511 2009-09-19  Eric Blake  <ebb9@byu.net>
44512
44513         canonicalize-lgpl: adjust clients to use correct header
44514         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44515         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44516         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44517         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44518         * lib/progreloc.c (includes): Likewise.
44519
44520 2009-09-19  Jim Meyering  <meyering@redhat.com>
44521
44522         test-posixtm.c: correct a comment
44523         * tests/test-posixtm.c: Correct first-line comment.
44524         Spotted by Eric Blake.
44525
44526 2009-09-16  Jim Meyering  <meyering@redhat.com>
44527
44528         posixtm-tests: make T const-correct; add a test case
44529         * tests/test-posixtm.c (T): Declare const.
44530         Add a test for -(2^31+1).
44531         Remove useless can-succeed-only-in-2002 test.
44532
44533         posixtm-tests: adjust the sole failing test
44534         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44535         expected output matches what mktime now produces.  Cross-checked via
44536         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44537
44538         posixtm: move #ifdef'd tests into a new module
44539         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44540         * tests/test-posixtm.c: ... this new file.
44541         * modules/posixtm-tests: New module.
44542
44543 2009-09-19  Eric Blake  <ebb9@byu.net>
44544
44545         openat: simplify use of at-func.c
44546         * lib/at-func.c (includes): Include prerequisites here, to
44547         simplify requirements on client files.
44548         * lib/openat-priv.h: Add double-inclusion guard.
44549         * lib/faccessat.c (includes): Simplify.
44550         * lib/fchmodat.c (includes): Likewise.
44551         * lib/fchownat.c (includes): Likewise.
44552         * lib/mkdirat.c (includes): Likewise.
44553         * lib/mkfifoat.c (includes): Likewise.
44554         * lib/symlinkat.c (includes): Likewise.
44555
44556         openat: allow return of fd 0
44557         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44558         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44559         unistd-safer.
44560         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44561         <fcntl.h>; this module does not leak fds.
44562         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44563         must be allowed to return 0, leaving openat_safer to add the
44564         safety.
44565         (openat_permissive): Avoid writing to just-opened fd 2 if
44566         restoring the current directory fails.
44567         * lib/openat-die.c (openat_restore_fail): Add comment.
44568         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44569         (save_cwd): Guarantee safe fd, but without use of open_safer.
44570         * tests/test-openat.c: New test.
44571         * modules/openat-tests (Files, Makefile.am): Distribute and build
44572         new file.
44573
44574         relocatable-prog-wrapper: fix build
44575         * modules/relocatable-prog-wrapper (Files): Update name of
44576         canonicalize m4 file, broken on 2009-09-17.
44577         Reported by emad hajjar <aleppos@hotmail.com>.
44578
44579 2009-09-19  Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44582         * lib/safe-alloc.c: Likewise.
44583         Reported by Ian Beckwith <ianb@erislabs.net>.
44584
44585 2009-09-18  Bruno Haible  <bruno@clisp.org>
44586
44587         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44588         Reported by <erobles@sensacd.com.mx>.
44589
44590 2009-09-17  Eric Blake  <ebb9@byu.net>
44591
44592         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44593         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44594         slashes when checking if last component is missing.
44595         * tests/test-canonicalize.c (main): Test this.
44596
44597         canonicalize, canonicalize-lgpl: honor // if distinct from /
44598         * modules/canonicalize (Files): Add double-slash-root.m4.
44599         * modules/canonicalize-lgpl (Files): Likewise.
44600         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44601         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44602         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44603         fallback definition.
44604         (canonicalize_filename_mode): Use it to protect //.
44605         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44606         (__realpath): Likewise.
44607         * tests/test-canonicalize.c (main): Test this.
44608         * tests/test-canonicalize-lgpl.c (main): Likewise.
44609         * modules/canonicalize-tests (Depends-on): Add same-inode.
44610         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44611
44612         canonicalize-lgpl: fix glibc bug with trailing slash
44613         * m4/canonicalize-lgpl.m4: Move contents...
44614         * m4/canonicalize.m4: ...here.
44615         (gl_CANONICALIZE_LGPL): Factor realpath check...
44616         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44617         glibc 2.3.5 bug, fixed 2005-04-27.
44618         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44619         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44620         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44621         * modules/canonicalize-lgpl (Files): Manage file rename.
44622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44623         * modules/stdlib (Makefile.am): Substitute witness.
44624         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44625         is needed.
44626         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44627         replacement is required.
44628         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44629         * doc/glibc-functions/canonicalize_file_name.texi
44630         (canonicalize_file_name): Document this.
44631         * doc/posix-functions/realpath.texi (realpath): Likewise.
44632
44633         canonicalize-lgpl: reject non-directory with trailing slash
44634         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44635         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44636         catches failures in glibc 2.3.5.
44637         * tests/test-canonicalize.c (main): Likewise.
44638
44639         canonicalize-lgpl: use native realpath if it works
44640         * lib/canonicalize-lgpl.c (realpath): Guard with
44641         FUNC_REALPATH_WORKS.
44642         * lib/stdlib.in.h (realpath): Make declaration optional based on
44643         HAVE_REALPATH.
44644         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44645         native realpath works.
44646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44647         * modules/stdlib (Makefile.am): Substitute witness.
44648
44649         canonicalize, canonicalize-lgpl: use <stdlib.h>
44650         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44651         (Include): Mention <stdlib.h>.
44652         (configure.ac): Mention functions we provide.
44653         * modules/canonicalize (configure.ac): Likewise.
44654         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44655         realpath if canonicalize_file_name is missing.
44656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44657         * modules/stdlib (Makefile.am): Substitute witnesses.
44658         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44659         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44660         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44661         * NEWS: Document this.
44662         * doc/glibc-functions/canonicalize_file_name.texi
44663         (canonicalize_file_name): Likewise.
44664         * doc/posix-functions/realpath.texi (realpath): Likewise.
44665         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44666
44667         test-canonicalize: consolidate into single C program
44668         * tests/test-canonicalize.sh: Delete; move setup into...
44669         * tests/test-canonicalize.c (main): ...the program, making it
44670         easier to run in debugger.  Add some tests.
44671         * modules/canonicalize-tests (Files): Remove unused file.
44672         (Depends-on): Add progname.
44673         (configure.ac, Makefile.am): Simplify.
44674
44675         test-canonicalize-lgpl: consolidate into single C program
44676         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44677         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44678         easier to run in debugger.  Add some tests.
44679         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44680         (configure.ac, Makefile.am): Simplify.
44681
44682         canonicalize: avoid resolvepath
44683         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44684         unnecessary checks.
44685         * lib/canonicalize.c (includes): Simplify.
44686         (canonicalize_file_name): Drop resolvepath implementation.
44687         * modules/canonicalize (Depends-on): Drop filenamecat.
44688
44689         canonicalize: don't lose errno
44690         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44691         over calls to free.
44692
44693         canonicalize: simplify errno handling
44694         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44695         assignment.
44696
44697         canonicalize, canonicalize-lgpl: update module dependencies
44698         * modules/canonicalize (Depends-on): Add extensions, lstat,
44699         pathmax, stdlib.
44700         (Files): Drop pathmax.h.
44701         (configure.ac): Adjust macro name.
44702         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44703         lstat, stdlib, sys_stat.
44704         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44705         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44706         extensions.
44707         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44708         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44709         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44710         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44711         declaration, if available.
44712         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44713         we can rely on the readlink module.
44714         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44715         (includes): Use <unistd.h> unconditionally.
44716
44717 2009-09-17  Eric Blake  <ebb9@byu.net>
44718
44719         maint: make Include sections of modules consistent
44720         * modules/alloca: Use only header name; no need to list #include.
44721         * modules/alloca-opt: Likewise.
44722         * modules/arpa_inet: Likewise.
44723         * modules/canon-host: Likewise.
44724         * modules/configmake: Likewise.
44725         * modules/dirent: Likewise.
44726         * modules/eealloc: Likewise.
44727         * modules/environ: Likewise.
44728         * modules/fchdir: Likewise.
44729         * modules/fcntl: Likewise.
44730         * modules/fcntl-h: Likewise.
44731         * modules/gethrxtime: Likewise.
44732         * modules/gettime: Likewise.
44733         * modules/ignore-value: Likewise.
44734         * modules/inet_ntop: Likewise.
44735         * modules/inet_pton: Likewise.
44736         * modules/inttypes: Likewise.
44737         * modules/isnand-nolibm: Likewise.
44738         * modules/isnanf-nolibm: Likewise.
44739         * modules/mbchar: Likewise.
44740         * modules/mbfile: Likewise.
44741         * modules/mbiter: Likewise.
44742         * modules/mbuiter: Likewise.
44743         * modules/netdb: Likewise.
44744         * modules/netinet_in: Likewise.
44745         * modules/nproc: Likewise.
44746         * modules/pagealign_alloc: Likewise.
44747         * modules/poll: Likewise.
44748         * modules/printf-frexp: Likewise.
44749         * modules/pthread: Likewise.
44750         * modules/putenv: Likewise.
44751         * modules/random_r: Likewise.
44752         * modules/relocatable-prog: Likewise.
44753         * modules/search: Likewise.
44754         * modules/select: Likewise.
44755         * modules/selinux-h: Likewise.
44756         * modules/settime: Likewise.
44757         * modules/signal: Likewise.
44758         * modules/size_max: Likewise.
44759         * modules/socklen: Likewise.
44760         * modules/ssize_t: Likewise.
44761         * modules/stdarg: Likewise.
44762         * modules/stdbool: Likewise.
44763         * modules/stddef: Likewise.
44764         * modules/stdint: Likewise.
44765         * modules/stdio: Likewise.
44766         * modules/stdlib: Likewise.
44767         * modules/string: Likewise.
44768         * modules/strings: Likewise.
44769         * modules/sys_file: Likewise.
44770         * modules/sys_ioctl: Likewise.
44771         * modules/sys_select: Likewise.
44772         * modules/sys_socket: Likewise.
44773         * modules/sys_stat: Likewise.
44774         * modules/sys_time: Likewise.
44775         * modules/sys_times: Likewise.
44776         * modules/sys_utsname: Likewise.
44777         * modules/sys_wait: Likewise.
44778         * modules/sysexits: Likewise.
44779         * modules/time: Likewise.
44780         * modules/times: Likewise.
44781         * modules/tmpfile: Likewise.
44782         * modules/trim: Likewise.
44783         * modules/unistd: Likewise.
44784         * modules/wchar: Likewise.
44785         * modules/wctype: Likewise.
44786
44787 2009-09-17  Bruno Haible  <bruno@clisp.org>
44788
44789         Make getdate.y compile on QNX and NetBSD 5 / i386.
44790         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44791         TIME_T_FITS_IN_LONG_INT.
44792         * lib/getdate.y (long_time_t): New type.
44793         (relative_time): Change type of 'seconds' field to long_time_t.
44794         (get_date): Update types of local variables. Check against overflow
44795         during conversion from long_time_t to time_t.
44796         Reported by Matt Kraai <kraai@ftbfs.org>
44797         and Hasso Tepper <hasso@netbsd.org>.
44798
44799 2009-09-17  Bruno Haible  <bruno@clisp.org>
44800
44801         * modules/COPYING: Update copyright years.
44802         * modules/README: Likeiwse.
44803         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44804         Reported by Ian Beckwith <ianb@erislabs.net>.
44805
44806 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44807
44808         * users.txt: Update references for gnuit package.
44809
44810 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44811
44812         * m4/getdelim.m4: Fix typo in copyright line.
44813
44814 2009-09-17  Bruno Haible  <bruno@clisp.org>
44815
44816         * lib/atoll.c: Use the standard header with GPL copyright.
44817         * lib/argz.in.h: Likewise.
44818         * lib/glob.c: Likewise.
44819         * lib/glob-libc.h: Likewise.
44820         * lib/random_r.c: Likewise.
44821         * lib/siglist.h: Likewise.
44822         * lib/strsignal.c: Likewise.
44823         Reported by Ian Beckwith <ianb@erislabs.net>.
44824
44825 2009-09-17  Eric Blake  <ebb9@byu.net>
44826
44827         rmdir: ensure correct dependency order
44828         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44829
44830 2009-09-17  Bruno Haible  <bruno@clisp.org>
44831
44832         Disable assertion that fails on NetBSD 5 / i386.
44833         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44834         Reported by Sam Steingold <sds@gnu.org>
44835         and Hasso Tepper <hasso@netbsd.org>.
44836
44837 2009-09-16  Eric Blake  <ebb9@byu.net>
44838
44839         unlinkdir: port to mingw
44840         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44841         on which no one can unlink a directory.
44842
44843         stdlib: sort witness names
44844         * modules/stdlib (Makefile.am): Sort replacements.
44845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44846         * lib/stdlib.in.h: Likewise.
44847
44848         parse-duration-tests: avoid link failure
44849         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44850         LIBINTL.
44851         Reported by Tom G. Christensen.
44852
44853         openat-tests: ensure unlinkat behaves like rmdir
44854         * tests/test-rmdir.c (main): Factor guts...
44855         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44856         * modules/rmdir-tests (Files): Ship new file.
44857         * modules/openat-tests: New test.
44858         * tests/test-unlinkat.c: Likewise.
44859
44860         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44861         * modules/rmdir-errno (Status, Notice): Now obsolete.
44862
44863         rmdir: work around cygwin 1.5.x and mingw bugs
44864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44865         * lib/rmdir.c (rmdir): Work around it.
44866         * modules/rmdir (Status, Notice): No longer obsolete.
44867         (Files): Add dos.m4.
44868         (Depends-on): Add unistd.
44869         (configure.ac): Set witnesses.
44870         (License): Relax to LGPLv2+.
44871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44872         * modules/unistd (Makefile.am): Substitute witnesses.
44873         * lib/unistd.in.h (rmdir): Declare replacement.
44874         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44875         * modules/rmdir-tests: New tests.
44876         * tests/test-rmdir.c: Likewise.
44877
44878 2009-09-15  Eric Blake  <ebb9@byu.net>
44879
44880         fchdir: improve use of replacement functions
44881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44884         REPLACE_CLOSEDIR.
44885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44886         * modules/sys_stat (Makefile.am): Substitute correct witness.
44887         * modules/dirent (Makefile.am): Likewise.
44888         * modules/unistd (Makefile.am): Likewise.
44889         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44890         * lib/unistd.in.h (dup): Likewise.
44891         * lib/sys_stat.in.h (fstat): Likewise.
44892
44893         maint: ignore gnulib-tool temp files
44894         * .gitignore: Ignore files created during gnulib-tool --test.
44895
44896 2009-09-13  Jim Meyering  <meyering@redhat.com>
44897
44898         posixtm: don't reject a time that specify "60" as the number of seconds
44899         * lib/posixtm.c (posixtime): The code to reject invalid dates
44900         would also reject a time specified with the .60 suffix.
44901         But POSIX allows that, in order to accommodate leap seconds.
44902         So don't reject it.
44903         (main): Adjust tests accordingly.
44904         * modules/posixtm (Depends-on): Add stpcpy.
44905
44906 2009-09-11  Jim Meyering  <meyering@redhat.com>
44907
44908         announce-gen: include [$release_type] in emitted Subject:
44909         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44910         e.g., [stable] in the emitted Subject: line.
44911
44912 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44913
44914         Remove obsolete macros from several modules.
44915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44916         obsolete Autoconf macros with their modern counterparts.
44917         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44918         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44920         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44921         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44922         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44924         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44925         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44926         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44927         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44929         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44930         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44931         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44932         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44933         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44934         * m4/time_r.m4 (gl_TIME_R): Likewise.
44935         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44936         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44937         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44938
44939         Fix copyright header in build-aux scripts.
44940         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44941         recommendation.
44942         * build-aux/ncftpput-ftp: Likewise.
44943         * build-aux/update-copyright: Likewise.
44944
44945 2009-09-09  Eric Blake  <ebb9@byu.net>
44946
44947         test-link: allow Linux choice of errno
44948         * tests/test-link.c (main): Relax test for alternate error.
44949
44950         strndup: fix improper m4 caching
44951         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44952         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44953         (gl_PREREQ_STRNDUP): Delete.
44954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44955         * modules/string (Makefile.am): Substitute it.
44956         * lib/string.in.h (strndup): Modernize prototype.
44957
44958         getcwd: port to mingw
44959         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44960         different from the POSIX assumptions made throughout the getcwd
44961         module; fortunately, the mingw getcwd does not need replacement.
44962         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44963         * modules/getcwd-tests: New test.
44964         * tests/test-getcwd.c: Likewise.
44965
44966         link: fix platform bugs
44967         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44968         * lib/link.c (link): Work around them.  Fix related mingw bug.
44969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44970         * modules/unistd (Makefile.am): Substitute it.
44971         * lib/unistd.in.h (link): Declare replacement.
44972         * doc/posix-functions/link.texi (link): Document this.
44973         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44974
44975         test-link: consolidate into single C program, test more cases
44976         * tests/test-link.sh: Delete.
44977         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44978         at least Cygwin and Solaris.
44979         * modules/link-tests (Files): Remove unused file.
44980         (Depends-on): Add errno, sys_stat.
44981         (Makefile.am): Simplify.
44982
44983 2009-09-08  Bruno Haible  <bruno@clisp.org>
44984
44985         Work around towlower, towupper bug on mingw.
44986         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44987         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44988         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44989         * doc/posix-functions/towupper.texi: Likewise.
44990         Reported by Eric Blake.
44991
44992 2009-09-08  Jim Meyering  <meyering@redhat.com>
44993
44994         build: don't try to run autoheader if we don't use it
44995         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44996         is not used in configure.ac.
44997
44998 2009-09-08  Eric Blake  <ebb9@byu.net>
44999
45000         euidaccess: fix compilation error
45001         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45002
45003         rawmemchr: relax license
45004         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45005         okay.
45006         Reported by Jim Meyering.
45007
45008         mkfifoat: new module
45009         * modules/mkfifoat: New file.
45010         * lib/mkfifoat.c: Likewise.
45011         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45013         * modules/sys_stat (Makefile.am): Use them.
45014         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45015         * MODULES.html.sh (File system functions): Mention module.
45016         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45017         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45018         * modules/mkfifoat-tests: New test.
45019         * tests/test-mkfifoat.c: Likewise.
45020
45021         strchrnul: relax license
45022         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45023         okay.
45024         Reported by Jim Meyering.
45025
45026 2009-09-08  Eric Blake  <ebb9@byu.net>
45027
45028         fstatat: fix compilation on Solaris
45029         * lib/fstatat.c (includes): Add fcntl.h.
45030         Reported by Pádraig Brady.
45031
45032 2009-09-07  Eric Blake  <ebb9@byu.net>
45033
45034         rename: modernize replacement
45035         * modules/rename (Depends-on): Add stdio.
45036         (configure.ac): Declare witness.
45037         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45038         stdio take care of replacement.
45039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45040         * modules/stdio (Makefile.am): Substitute them.
45041         * lib/stdio.in.h (rename): Declare replacement.
45042         * lib/rename.c (includes): Allow cross-compilation to non-windows
45043         machines.
45044         * doc/posix-functions/rename.texi (rename): Improve
45045         documentation.
45046
45047         stdio: sort witness names
45048         * modules/stdio (Makefile.am): Sort replacements.
45049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45050         * lib/stdio.in.h: Likewise.
45051
45052         getcwd: minor cleanups
45053         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45054         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45055
45056         openat: provide more convenience names
45057         * modules/faccessat (configure.ac): Add C witness.
45058         * lib/unistd.in.h (readlinkat): Fix typo.
45059         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45060         convenience wrappers.
45061         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45062         wrappers in syntax checks.
45063
45064 2009-09-06  Eric Blake  <ebb9@byu.net>
45065
45066         doc: fix comments in recent patches
45067         * lib/faccessat.c: Mention correct function.
45068         * lib/fchmodat.c: Likewise.
45069         * lib/fchownat.c: Likewise.
45070         * lib/symlinkat.c: Likewise.
45071         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45072         constants.
45073
45074         faccessat, symlinkat: continue cleanup of previous patch
45075         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45076         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45077         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45079         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45080         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45081         set.
45082
45083 2009-09-06  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45086         (fstatat): Declare if GNULIB_FSTATAT is set.
45087         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45088         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45089         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45090         * modules/fcntl-h (Files): Remove m4/openat.m4.
45091         * modules/sys_stat (Files): Remove m4/openat.m4.
45092         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45093         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45094         * modules/unistd (Files): Remove m4/openat.m4.
45095         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45096         GNULIB_OPENAT.
45097         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45098         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45100         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45101         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45102         gl_OPENAT_DEFAULTS.
45103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45104         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45105         Don't require gl_OPENAT_DEFAULTS.
45106         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45107         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45108         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45109         (gl_OPENAT_DEFAULTS): Remove macro.
45110
45111 2009-09-06  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/openat (configure.ac): Remove unneeded witness.
45114
45115 2009-09-06  Bruno Haible  <bruno@clisp.org>
45116
45117         Set errno to ENOSYS when a function is entirely unsupported.
45118         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45119         EOPNOTSUPP.
45120         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45121         * modules/chown (Depends-on): Remove errno.
45122
45123 2009-09-06  Bruno Haible  <bruno@clisp.org>
45124
45125         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45126
45127 2009-09-06  Bruno Haible  <bruno@clisp.org>
45128
45129         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45130
45131 2009-09-06  Ben Pfaff  <blp@gnu.org>
45132             Bruno Haible  <bruno@clisp.org>
45133
45134         Work around a glibc bug in strtok_r.
45135         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45136         Undefine if UNDEFINE_STRTOK_R is set.
45137         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45139         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45140         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45141         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45142         UNDEFINE_STRTOK_R.
45143         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45144
45145 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45146
45147         exclude: minor fix
45148         * lib/exclude.c: Include wctype.h
45149
45150 2009-09-06  Akim Demaille  <demaille@gostai.com>
45151
45152         bootstrap: improve error message
45153         * build-aux/bootstrap (find_tool): Upon failure, report the list
45154         of candidates.
45155         Honor the initial value of the envvar.
45156
45157 2009-09-05  Eric Blake  <ebb9@byu.net>
45158
45159         symlinkat: new module
45160         * modules/symlinkat: New file.
45161         * lib/symlinkat.c: Likewise.
45162         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45164         * modules/unistd (Makefile.am): Use them.
45165         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45166         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45167         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45168         * MODULES.html.sh (File system functions): Mention module.
45169         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45170         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45171         * modules/symlinkat-tests: New test.
45172         * tests/test-symlinkat.c: Likewise.
45173
45174         test-openat-safer: add more checks
45175         * tests/test-openat-safer.c (main): Check more code paths.
45176
45177 2009-09-05  Jim Meyering  <meyering@redhat.com>
45178
45179         syntax-check: detect unnecessary inclusion of openat.h
45180         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45181
45182 2009-09-05  Bruno Haible  <bruno@clisp.org>
45183
45184         Support towlower, towupper.
45185         * doc/posix-functions/towlower.texi: Mention module wctype.
45186         * doc/posix-functions/towupper.texi: Likewise.
45187         * lib/wctype.in.h (towlower, towupper): New functions.
45188         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45189         (ASSERT): New macro.
45190         (e): New variable.
45191         (main): Test also towlower, towupper. Test WEOF argument.
45192         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45193
45194 2009-09-05  Bruno Haible  <bruno@clisp.org>
45195
45196         Fix conversion behaviour when the input is invalid.
45197         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45198         mark occurring in first pass of indirect conversion.
45199         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45200         input.
45201         Found by clang's static analyzer.
45202
45203 2009-09-05  Bruno Haible  <bruno@clisp.org>
45204
45205         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45206         where direct conversion is possible.
45207
45208 2009-09-04  Eric Blake  <ebb9@byu.net>
45209
45210         openat: fail with ENOENT on empty name
45211         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45212         buffer.
45213
45214         link-follow: fix logic bug in prior patch
45215         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45216         reversed sense of yes and no in prior patch.  Avoid confusing
45217         compilation failure with desired semantics.
45218
45219         link-follow: accommodate mingw and cross-compilation
45220         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45221         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45222         cross-compilation results to -1, to make linkat easier to
45223         implement when cross-compiling.  Trivially support mingw.
45224         * modules/link-follow (configure.ac): Call new name.
45225         * NEWS: Mention this.
45226
45227 2009-09-03  Eric Blake  <ebb9@byu.net>
45228
45229         faccessat: compile replacement
45230         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45231         needed.
45232
45233         fts: fix compilation error
45234         * lib/fts.c (includes): Re-add "openat.h", for
45235         openat_needs_fchdir.
45236
45237         faccessat: new module
45238         * modules/faccessat: New file.
45239         * lib/faccessat.c: Likewise.
45240         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45242         * modules/unistd (Makefile.am): Use it.
45243         * lib/unistd.in.h (faccessat): Declare it.
45244         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45245         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45246         * MODULES.html.sh (File system functions): Mention it.
45247         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45248         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45249
45250         euidaccess: prefer POSIX over non-standard implementation
45251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45252         * lib/euidaccess.c (euidaccess): Use it if available.
45253
45254         openat: make template easier to use
45255         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45256         AT_FUNC_F2 to be undefined.
45257         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45258         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45259         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45260         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45261         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45262         Likewise.
45263         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45264         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45265         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45266         Likewise.
45267
45268         openat: declare in POSIX headers
45269         * NEWS: Mention this.
45270         * modules/openat (configure.ac): Declare witnesses.
45271         (Depends-on): Add fcntl-h, sys_stat, unistd.
45272         (Include): Mention correct headers.
45273         * modules/fcntl-h (Depends-on): Add link-warning.
45274         (Files): Add openat.m4.
45275         (Makefile.am): Substitute witnesses.
45276         * modules/sys_stat (Files, Makefile.am): Likewise.
45277         * modules/unistd (Files, Makefile.am): Likewise.
45278         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45279         (gl_OPENAT_DEFAULTS): New macro.
45280         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45283         (SYS_STAT_H): Remove unused variable.
45284         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45285         * lib/fcntl--.h (includes): Remove unneeded header.
45286         * lib/openat-safer.c (includes): Likewise.
45287         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45288         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45289         appropriate headers.
45290         (__OPENAT_PREFIX): Delete.
45291         * lib/fcntl.in.h (openat): Provide declaration.
45292         (AT_FDCWD): Fix Solaris bug.
45293         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45294         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45295         * lib/fchmodat.c (includes):  Adjust to find declaration.
45296         * lib/fchownat.c (includes): Likewise.
45297         * lib/mkdirat.c (includes): Likewise.
45298         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45299         still visible.
45300
45301 2009-09-02  Eric Blake  <ebb9@byu.net>
45302
45303         errno: use consistently
45304         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45305         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45306         * lib/canonicalize.c (ELOOP): Likewise.
45307         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45308         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45309         * lib/lchown.c (EOPNOTSUPP): Likewise.
45310         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45311         * lib/savewd.c (ESTALE): Likewise.
45312         * lib/settime.c (ENOSYS): Likewise.
45313         * lib/utimens.c (ENOSYS): Likewise.
45314         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45315         * lib/chdir-safer.c (ELOOP): Likewise.
45316         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45317         * modules/c-stack (Depends-on): Add errno.
45318         * modules/canonicalize (Depends-on): Likewise.
45319         * modules/chdir-safer (Depends-on): Likewise.
45320         * modules/fdopendir (Depends-on): Likewise.
45321         * modules/inet_ntop (Depends-on): Likewise.
45322         * modules/inet_pton (Depends-on): Likewise.
45323         * modules/lchown (Depends-on): Likewise.
45324         * modules/openat (Depends-on): Likewise.
45325         * modules/savewd (Depends-on): Likewise.
45326         * modules/settime (Depends-on): Likewise.
45327         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45328
45329         fts: avoid leaking fds
45330         * modules/fts (Depends-on): Add cloexec.
45331         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45332         flag.
45333
45334         fts: make directory fds more robust
45335         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45336         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45337
45338         backupfile, chdir-long, fts, savedir: make safer
45339         * lib/backupfile.c (includes): Use "dirent--.h", since
45340         numbered_backup can write to stderr during readdir.
45341         * lib/savedir.c (includes): Likewise.
45342         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45343         emulation can write to stderr on failure.
45344         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45345         * lib/getcwd.c: Document why opendir_safer is unused.
45346         * lib/glob.c: Likewise.
45347         * lib/scandir.c: Likewise.
45348         * lib/openat-proc.c: Likewise, for open_safer.
45349         * modules/backupfile (Depends-on): Add dirent-safer.
45350         * modules/savedir (Depends-on): Likewise.
45351         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45352         * modules/chdir-long (Depends-on): Add openat-safer.
45353
45354         openat-safer: new module
45355         * modules/openat-safer: New file.
45356         * lib/openat-safer.c: Likewise.
45357         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45358         * lib/fcntl-safer.h (openat_safer): Declare.
45359         * lib/fcntl--.h (openat): Override.
45360         * MODULES.html.sh (File descriptor based I/O): Mention it.
45361         * lib/openat.h: Add double-inclusion guards.
45362         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45363         "fcntl--.h", so we can implement openat.
45364         * modules/openat-safer-tests: New test.
45365         * tests/test-openat-safer.c: New file.
45366
45367         dirent-safer: new module
45368         * modules/dirent-safer: New file.
45369         * lib/dirent--.h: Likewise.
45370         * lib/dirent-safer.h: Likewise.
45371         * lib/opendir-safer.c: Likewise.
45372         * m4/dirent-safer.m4: Likewise.
45373         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45374         * modules/dirent-safer-tests: New test.
45375         * tests/test-dirent-safer.c: New file.
45376         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45377
45378         fdopendir: optimize on mingw
45379         * lib/unistd.in.h (_gl_directory_name): New prototype.
45380         * lib/fchdir.c (_gl_directory_name): Implement it.
45381         (fchdir): Use it to simplify implementation.
45382         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45383         fchdir, when available, to avoid calling [f]chdir().
45384
45385         fdopendir: split into its own module
45386         * lib/openat.c (fdopendir): Move...
45387         * lib/fdopendir.c: ...into new file.
45388         * modules/fdopendir: New module.
45389         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45390         * modules/openat (Depends-on): Add fdopendir.
45391         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45392         fdopendir here.
45393         * modules/savedir (Depends-on): Only need fdopendir, not full
45394         openat.
45395         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45396         * lib/openat.h (fdopendir): Drop prototype.
45397         * lib/dirent.in.h (fdopendir): Provide prototype.
45398         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45399         * modules/dirent (Makefile.am): Substitute them.
45400         * MODULES.html.sh (File system functions): Mention it.
45401         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45402         * modules/fdopendir-tests: New file.
45403         * tests/test-fdopendir.c: Likewise.
45404
45405         fchdir: use more consistent macro convention
45406         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45407         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45408         REPLACE_FCHDIR, rather than relying on config.h macros.
45409         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45410         inside a single make-time REPLACE_FCHDIR block, rather than using
45411         the config.h FCHDIR_REPLACEMENT.
45412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45413         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45414         Manage fstat replacement.
45415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45416         REPLACE_FCHDIR.
45417         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45418         (Makefile.am): Substitute REPLACE_FCHDIR.
45419         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45420         FCHDIR_REPLACEMENT.
45421         * lib/dup-safer.c (dup_safer): Likewise.
45422         * lib/dup2.c (rpl_dup2): Likewise.
45423         * lib/dup3.c (rpl_dup3): Likewise.
45424         * lib/open.c (rpl_open): Likewise.
45425
45426         fchdir: simplify error handling, and support dup3
45427         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45428         stdbool, malloc-posix, realloc-posix.
45429         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45430         (ensure_dirs_slot): Return false on allocation failure.
45431         (rpl_dup2): Delete.
45432         (_gl_register_dup): New function.
45433         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45434         (_gl_register_fd): Close fd on allocation failure.
45435         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45436         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45437         prototype.
45438         (rpl_dup2_fchdir): Delete prototype.
45439         * lib/open.c (open): Update caller.
45440         * lib/dup2.c (dup2): Track fchdir metadata.
45441         * lib/dup3.c (dup3): Likewise.
45442         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45444
45445 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45446
45447         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45448         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45449         don't pass arguments to AC_OUTPUT.
45450
45451 2009-09-02  Bruno Haible  <bruno@clisp.org>
45452
45453         * modules/mkdtemp (License): Relicense under LGPLv2+.
45454         Reported by Paolo Bonzini.
45455
45456 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45457
45458         Replace uses of obsolete autoconf macros in Jim's modules.
45459         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45460         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45461         can evoke a warning from autoconf when run with -Wobsolete
45462         enabled.  They were declared obsolete for good reasons (see
45463         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45464         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45465         should not continue using the deprecated macros.
45466         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45467         obsolete Autoconf macros with modern counterparts.
45468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45469         * m4/dos.m4 (gl_AC_DOS): Likewise.
45470         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45472         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45473         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45475         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45476         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45477         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45478         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45479         Likewise.
45480         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45481         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45482         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45483         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45484         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45485         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45486
45487 2009-09-01  Eric Blake  <ebb9@byu.net>
45488
45489         fchdir: fix off-by-one bug in previous patch
45490         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45491         (_gl_unregister_fd): Delete useless if.
45492
45493 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45494
45495         maint.mk: sort the list of syntax-check rules
45496         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45497         easier to get a sense of progress when the rules are run sequentially
45498         and take a long time.
45499
45500 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45501
45502         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45503         * modules/netinet_in: Likewise.
45504         * modules/sys_file: Likewise.
45505         * modules/sys_ioctl: Likewise.
45506         * modules/sys_select: Likewise.
45507         * modules/sys_socket: Likewise.
45508         * modules/sys_stat: Likewise.
45509         * modules/sys_time: Likewise.
45510         * modules/sys_times: Likewise.
45511         * modules/sys_utsname: Likewise.
45512         * modules/sys_wait: Likewise.
45513
45514 2009-09-01  Jim Meyering  <meyering@redhat.com>
45515
45516         fts: help ensure that return values are not ignored
45517         * lib/fts_.h (__GNUC_PREREQ): Define.
45518         (__attribute_warn_unused_result__): Define.
45519         (fts_children, fts_close, fts_open, fts_read): Declare with
45520         __attribute_warn_unused_result__.
45521
45522         fts: fts_close now fails also when closing a dir file descriptor fails
45523         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45524         and propagate to caller, along with errno.
45525
45526         announce-gen: correct formatting in --help output
45527         * build-aux/announce-gen (usage): Move the one-line description in
45528         --help output "up", to where it belongs, just after Usage:.
45529
45530 2009-08-31  Eric Blake  <ebb9@byu.net>
45531
45532         fchdir: port to mingw
45533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45534         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45535         opened, then use a substitute.
45536         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45537         replacement.
45538         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45539         (_gl_register_fd): No need to check stat if open already filters
45540         all directories.
45541         (fchdir): Fix error condition to match POSIX.
45542         * modules/fchdir (Depends-on): Add sys_stat.
45543         * doc/posix-functions/open.texi (open): Document the limitation.
45544         * modules/fchdir-tests: New file.
45545         * tests/test-fchdir.c: Likewise.
45546
45547         canonicalize: allow cross-testing from cygwin to mingw
45548         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45549         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45550         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45551         Likewise.
45552         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45553         target does not support symlinks.
45554         * tests/test-canonicalize-lgpl.sh: Likewise.
45555
45556         chown: avoid compilation warning on mingw
45557         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45558         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45559         mingw.
45560         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45561         * modules/chown (Depends-on): Add errno.
45562
45563 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45564
45565         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45566         command.
45567
45568 2009-08-31  Jim Meyering  <meyering@redhat.com>
45569
45570         canonicalize: remove useless initialization
45571         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45572         initialization of local, "end".
45573
45574 2009-08-30  Bruno Haible  <bruno@clisp.org>
45575
45576         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45577         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45578         ENOSYS.
45579
45580 2009-08-30  Bruno Haible  <bruno@clisp.org>
45581
45582         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45583         /usr/xpg4/bin/tr when it exists.
45584         * tests/test-pipe-filter-gi1.sh: Likewise.
45585
45586 2009-08-30  Bruno Haible  <bruno@clisp.org>
45587
45588         Work around deficient /usr/bin/id program on Solaris.
45589         * tests/test-file-has-acl.sh (ID): New variable.
45590         * tests/test-set-mode-acl.sh (ID): Likewise.
45591         * tests/test-copy-acl.sh (ID): Likewise.
45592         * tests/test-copy-file.sh (ID): Likewise.
45593
45594 2009-08-30  Bruno Haible  <bruno@clisp.org>
45595
45596         New module 'xstriconveh'.
45597         * lib/xstriconveh.h: New file.
45598         * lib/xstriconveh.c: New file.
45599         * modules/xstriconveh: New file.
45600
45601 2009-08-30  Bruno Haible  <bruno@clisp.org>
45602
45603         Make it easier to use mem_cd_iconveh.
45604         * lib/striconveh.h (iconveh_t): New type.
45605         (iconveh_open, iconveh_close): New declarations.
45606         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45607         with a single 'const iconveh_t *' argument.
45608         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45609         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45610         with a single 'const iconveh_t *' argument.
45611         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45612         * tests/test-striconveh.c (main): Update.
45613         * NEWS: Mention the change.
45614
45615 2009-08-30  Bruno Haible  <bruno@clisp.org>
45616
45617         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45618         problem.
45619
45620 2009-08-30  Bruno Haible  <bruno@clisp.org>
45621
45622         Work around iconv_open problem on Solaris.
45623         * lib/iconv_open-solaris.gperf: New file.
45624         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45626         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45627         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45628         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45629         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45630
45631 2009-08-29  Jim Meyering  <meyering@redhat.com>
45632
45633         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45634         * top/maint.mk (cvs-check): Remove target; it was just an alias
45635         to the better-named vc-diff-check.
45636         (maintainer-distcheck): Remove rule.  It was used only from
45637         the (alpha/beta/major) target, and all of its commands but one
45638         were coreutils-specific.
45639         (vc-dist): Remove rule.
45640         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45641         Run vc-diff-check, not vc-dist.
45642         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45643
45644 2009-08-27  Bruno Haible  <bruno@clisp.org>
45645
45646         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45647         of 0.
45648
45649 2009-08-27  Bruno Haible  <bruno@clisp.org>
45650
45651         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45652         compilers.
45653         * doc/func.texi: Document the SunPRO C bug.
45654
45655 2009-08-27  Bruno Haible  <bruno@clisp.org>
45656
45657         Fix link error on Solaris.
45658         * tests/test-parse-duration.c (xstrdup): Remove function.
45659
45660 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45661
45662         ignore-value: handle pointer types, too
45663         * lib/ignore-value.h (__attribute__): Remove definition.
45664         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45665         of a more concise and more-often effective "(void) i" statement.
45666         (ignore_ptr): New function to suppress warnings from functions that
45667         return pointers, and to make it explicit that one function doesn't
45668         handle all cases.
45669
45670 2009-08-25  Bruno Haible  <bruno@clisp.org>
45671
45672         dup2: work around a Linux bug.
45673         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45674         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45675         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45676         Reported by Simon Josefsson.
45677
45678 2009-08-25  Jim Meyering  <meyering@redhat.com>
45679
45680         libguestfs uses gnulib
45681         * users.txt: Add libguestfs.
45682
45683 2009-08-24  Eric Blake  <ebb9@byu.net>
45684
45685         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45686         * lib/pipe2.c (includes): Add binary-io.h.
45687         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45688
45689 2009-08-24  Bruno Haible  <bruno@clisp.org>
45690
45691         Tolerate declared but missing accept4 syscall.
45692         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45693         available.
45694         * lib/sys_socket.in.h (accept4): If the function is already present,
45695         override it.
45696         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45697         * modules/accept4 (Makefile.am): Compile accept4.c always.
45698         Reported by Paolo Bonzini and Eric Blake.
45699
45700 2009-08-23  Bruno Haible  <bruno@clisp.org>
45701
45702         New module 'accept4'.
45703         * lib/sys_socket.in.h (accept4): New declaration.
45704         * lib/accept4.c: New file.
45705         * m4/accept4.m4: New file.
45706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45707         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45708         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45709         HAVE_ACCEPT4.
45710         * modules/accept4: New file.
45711         * doc/glibc-functions/accept4.texi: Mention the new module.
45712
45713 2009-08-24  Jim Meyering  <meyering@redhat.com>
45714
45715         progname: also set global program_invocation_name, when possible
45716         Before this change, a libtool-enabled program that calls glibc's
45717         error function would report the program name as
45718         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45719         * modules/progname (configure.ac): Check for a declaration of
45720         program_invocation_name.
45721         * lib/progname.c:  Include <errno.h>.
45722         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45723         Set program_invocation_name.
45724
45725 2009-08-23  Bruno Haible  <bruno@clisp.org>
45726
45727         * lib/dup3.c: Include <string.h>.
45728
45729 2009-08-23  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45732         * lib/pipe2.c (pipe2): Likewise.
45733         Suggested by Eric Blake.
45734
45735 2009-08-23  Bruno Haible  <bruno@clisp.org>
45736
45737         Tolerate declared but missing dup3 syscall.
45738         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45739         * lib/unistd.in.h (dup3): If the function is already present,
45740         override it.
45741         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45742         * modules/dup3 (Makefile.am): Compile dup3.c always.
45743         Reported by Paolo Bonzini.
45744
45745 2009-08-23  Bruno Haible  <bruno@clisp.org>
45746
45747         Tolerate declared but missing pipe2 syscall.
45748         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45749         available.
45750         * lib/unistd.in.h (pipe2): If the function is already present,
45751         override it.
45752         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45753         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45754         Reported by Paolo Bonzini.
45755
45756 2009-08-23  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/pipe2.c (pipe2): Move #ifs inside function.
45759
45760 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45761
45762         quotearg: document limitations of quote_these_too
45763         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45764         those limitations are created.
45765         * lib/quotearg.h (set_char_quoting): Document that digits and
45766         letters that are special after backslash are not permitted.
45767         (quotearg_char): Cross-reference set_char_quoting documentation.
45768
45769 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45770
45771         quotearg: implement custom_quoting_style
45772         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45773         right_quote fields.
45774         (set_custom_quoting): New public function.
45775         (quotearg_buffer_restyled): Add left_quote and right_quote
45776         arguments, handle them very much like locale quoting, and update
45777         all uses.
45778         (quotearg_n_custom): New public function.
45779         (quotearg_n_custom_mem): New public function.
45780         (quotearg_custom): New public function.
45781         (quotearg_custom_mem): New public function.
45782         * lib/quotearg.h: Prototype and document new public functions.
45783         (enum quoting_style): For escape_quoting_style and
45784         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45785         ignored even though they're otherwise like c_quoting_style.
45786         Add custom_quoting_style member and document with comparison to
45787         clocale_quoting_style.
45788         * tests/test-quotearg.c (custom_quotes): New array.
45789         (custom_results): New array.
45790         (main): Extend to test custom quoting.
45791
45792 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45793
45794         quotearg: fix right quote escaping when it's in quote_these_too
45795         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45796         quote, be sure to prepend only one backslash.
45797         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45798         (main): Test it.
45799
45800 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45801
45802         quotearg-tests: test escaping of embedded locale quotes
45803         * tests/test-quotearg.c (struct result_strings): Add member for
45804         new input.
45805         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45806         (inputs): Add new input.
45807         (results_g): Add expected results.
45808         (flag_results): Likewise.
45809         (locale_results): Likewise.
45810         (compare_strings): Check those.
45811
45812 2009-08-23  Bruno Haible  <bruno@clisp.org>
45813
45814         Tests for module 'dup3'.
45815         * modules/dup3-tests: New file.
45816         * tests/test-dup3.c: New file.
45817
45818         New module 'dup3'.
45819         * lib/unistd.in.h (dup3): New declaration.
45820         * lib/dup3.c: New file.
45821         * m4/dup3.m4: New file.
45822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45823         HAVE_DUP3.
45824         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45825         * modules/dup3: New file.
45826         * doc/glibc-functions/dup3.texi: Mention the new module.
45827
45828 2009-08-23  Bruno Haible  <bruno@clisp.org>
45829
45830         Tweak the dup2 test.
45831         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45832         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45833         the test file is still empty. Fix argument order of lseek.
45834
45835 2009-08-23  Bruno Haible  <bruno@clisp.org>
45836
45837         Avoid test link errors when the modules getopt-gnu, gettext are used.
45838         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45840
45841 2009-08-23  Bruno Haible  <bruno@clisp.org>
45842
45843         Fix getdtablesize() on mingw.
45844         * lib/getdtablesize.c (getdtablesize): Implement differently.
45845         * lib/unistd.in.h (getdtablesize): Improve comment.
45846
45847 2009-08-23  Bruno Haible  <bruno@clisp.org>
45848
45849         New module 'mkostemp'.
45850         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45851         * lib/stdlib.in.h (mksotemp): New declaration.
45852         * lib/mkostemp.c: New file, from glibc with modifications.
45853         * lib/tempname.h (GT_FILE): Remove outdated comment.
45854         (gen_tempname): Add flags argument.
45855         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45856         (__GT_FILE): Map to 1.
45857         (small_open, large_open): Remove macros.
45858         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45859         * lib/mkstemp.c (mkstemp): Update.
45860         * lib/mkdtemp.c (mkdtemp): Likewise.
45861         * m4/mkostemp.m4: New file.
45862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45863         HAVE_MKOSTEMP.
45864         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45865         HAVE_MKOSTEMP.
45866         * modules/mkostemp: New file, based on modules/mkstemp.
45867         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45868         * NEWS: Mention the change.
45869
45870 2009-08-23  Bruno Haible  <bruno@clisp.org>
45871
45872         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45873         Reported by Eric Blake.
45874
45875 2009-08-23  Bruno Haible  <bruno@clisp.org>
45876
45877         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45878         Reported by Eric Blake.
45879
45880 2009-08-23  Bruno Haible  <bruno@clisp.org>
45881
45882         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45883         * modules/pipe2 (Depends-on): Likewise.
45884
45885 2009-08-23  Eric Blake  <ebb9@byu.net>
45886
45887         fcntl-h: add O_TTY_INIT support
45888         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45889         * tests/test-fcntl-h.c (o): Test it.
45890         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45891
45892         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45893         * modules/fcntl: Move <fcntl.h> header replacement...
45894         * modules/fcntl-h: ...to new name, so as not to collide with
45895         like-named function.
45896         * tests/test-fcntl.c: Rename...
45897         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45898         * modules/fcntl-tests: Rename...
45899         * modules/fcntl-h-tests: ...to this.  Update test file name.
45900         * modules/chdir-long (Depends-on): Update clients.
45901         * modules/chdir-safer (Depends-on): Likewise.
45902         * modules/fcntl-safer (Depends-on): Likewise.
45903         * modules/fts (Depends-on): Likewise.
45904         * modules/mkancesdirs (Depends-on): Likewise.
45905         * modules/mkdir-p (Depends-on): Likewise.
45906         * modules/open (Depends-on): Likewise.
45907         * modules/savewd (Depends-on): Likewise.
45908         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45909         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45910
45911 2009-08-22  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/binary-io (License): Relicense under LGPL.
45914         * modules/pipe2 (License): Likewise.
45915
45916 2009-08-22  Bruno Haible  <bruno@clisp.org>
45917
45918         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45919         return value.
45920         * lib/pipe-filter-gi.c (filter_init): Likewise.
45921         Reported by Eric Blake.
45922
45923 2009-08-22  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45926         * modules/pipe (Depends-on): Add pipe2.
45927
45928 2009-08-22  Bruno Haible  <bruno@clisp.org>
45929
45930         Tests for module 'pipe2'.
45931         * modules/pipe2-tests: New file.
45932         * tests/test-pipe2.c: New file.
45933
45934         New module 'pipe2'.
45935         * lib/unistd.in.h (pipe2): New declaration.
45936         * lib/pipe2.c: New file.
45937         * m4/pipe2.m4: New file.
45938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45939         HAVE_PIPE2.
45940         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45941         * modules/pipe2: New file.
45942         * doc/glibc-functions/pipe2.texi: Mention the new module.
45943
45944 2009-08-22  Bruno Haible  <bruno@clisp.org>
45945
45946         Reference some new glibc functions.
45947         * doc/glibc-functions/accept4.texi: New file.
45948         * doc/glibc-functions/dup3.texi: New file.
45949         * doc/glibc-functions/mkostemp.texi: New file.
45950         * doc/glibc-functions/pipe2.texi: New file.
45951         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45952         (Glibc sys/socket.h): Refer to accept4.
45953         (Glibc unistd.h): Refer to dup3, pipe2.
45954         Reported by Eric Blake.
45955
45956 2009-08-22  Jim Meyering  <meyering@redhat.com>
45957             Bruno Haible  <bruno@clisp.org>
45958
45959         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45960         This makes it so packages using automake-1.11's silent-rules option
45961         can print e.g., a single "GEN    configmake.h" line, rather than
45962         the 30+ statements that perform the job.  If you want to see the
45963         actual commands, you can still run "make V=1".
45964         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45965         so that make output is abbreviated when those variables are defined
45966         appropriately.
45967         * modules/argz: Likewise.
45968         * modules/arpa_inet: Likewise.
45969         * modules/byteswap: Likewise.
45970         * modules/configmake: Likewise.
45971         * modules/dirent: Likewise.
45972         * modules/errno: Likewise.
45973         * modules/fcntl: Likewise.
45974         * modules/float: Likewise.
45975         * modules/fnmatch: Likewise.
45976         * modules/getopt-posix: Likewise.
45977         * modules/glob: Likewise.
45978         * modules/iconv_open: Likewise.
45979         * modules/inttypes: Likewise.
45980         * modules/localcharset: Likewise.
45981         * modules/locale: Likewise.
45982         * modules/math: Likewise.
45983         * modules/netdb: Likewise.
45984         * modules/netinet_in: Likewise.
45985         * modules/poll: Likewise.
45986         * modules/posix_spawnp-tests: Likewise.
45987         * modules/sched: Likewise.
45988         * modules/search: Likewise.
45989         * modules/selinux-h: Likewise.
45990         * modules/signal: Likewise.
45991         * modules/spawn: Likewise.
45992         * modules/stdarg: Likewise.
45993         * modules/stdbool: Likewise.
45994         * modules/stddef: Likewise.
45995         * modules/stdint: Likewise.
45996         * modules/stdio: Likewise.
45997         * modules/stdlib: Likewise.
45998         * modules/string: Likewise.
45999         * modules/strings: Likewise.
46000         * modules/sys_file: Likewise.
46001         * modules/sys_ioctl: Likewise.
46002         * modules/sys_select: Likewise.
46003         * modules/sys_socket: Likewise.
46004         * modules/sys_stat: Likewise.
46005         * modules/sys_time: Likewise.
46006         * modules/sys_times: Likewise.
46007         * modules/sys_utsname: Likewise.
46008         * modules/sys_wait: Likewise.
46009         * modules/sysexits: Likewise.
46010         * modules/time: Likewise.
46011         * modules/unistd: Likewise.
46012         * modules/wchar: Likewise.
46013         * modules/wctype: Likewise.
46014
46015 2009-08-22  Jim Meyering  <meyering@redhat.com>
46016
46017         announce-gen: detect write failure
46018         * build-aux/announce-gen: Add Coda at end.
46019         Remove equivalent-but-more-verbose block at top.
46020
46021 2009-08-19  Akim Demaille  <demaille@gostai.com>
46022
46023         bootstrap: --help to stdout.
46024         * bootstrap (usage): Don't send --help to stderr.
46025         Use a here doc instead of a long string.
46026
46027 2009-08-21  Eric Blake  <ebb9@byu.net>
46028
46029         test-popen-safer: split from test-popen
46030         * tests/test-popen.c (main): Move...
46031         * tests/test-popen.h: ...into new file.
46032         * tests/test-popen-safer2.c: New file.
46033         * modules/popen-tests (Files): Add test-popen.h.
46034         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46035         Suggested by Bruno Haible.
46036
46037         test-fcntl-safer: split from test-open
46038         * tests/test-open.c (main): Move...
46039         * tests/test-open.h: ...into new file.
46040         * tests/test-fcntl-safer.c: New file.
46041         * modules/open-tests (Files): Add test-open.h.
46042         * modules/fcntl-safer-tests: New file.
46043         Suggested by Bruno Haible.
46044
46045         test-fopen-safer: split from test-fopen
46046         * tests/test-fopen.c (main): Move...
46047         * tests/test-fopen.h: ...into new file.
46048         * tests/test-fopen-safer.c: New file.
46049         * modules/fopen-tests (Files): Add test-fopen.h.
46050         * modules/fopen-safer-tests: New file.
46051         Suggested by Bruno Haible.
46052
46053 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46054
46055         popen-safer: test O_CLOEXEC at run-time.
46056         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46057
46058 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46059
46060         fcntl: move more flags to the header
46061         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46062         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46063         * lib/fcntl.in.h: Do both things here.
46064
46065 2009-08-21  Jim Meyering  <meyering@redhat.com>
46066
46067         consistently remove $@-t before redirecting to it
46068         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46069         * modules/alloca-opt: Likewise.
46070         * modules/byteswap: Likewise.
46071         * modules/fnmatch: Likewise.
46072         * modules/getopt-posix: Likewise.
46073         * modules/glob: Likewise.
46074         * modules/poll: Likewise.
46075         * modules/posix_spawnp-tests: Likewise.
46076         * modules/sys_socket: Likewise.
46077         * modules/sysexits: Likewise.
46078
46079 2009-08-21  Eric Blake  <ebb9@byu.net>
46080
46081         popen: simplify access to original popen
46082         * lib/popen.c (rpl_popen): No need to worry about popen being a
46083         macro.
46084         Reported by Bruno Haible.
46085
46086 2009-08-20  Eric Blake  <ebb9@byu.net>
46087
46088         build: avoid some compiler warnings
46089         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46090         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46091         type.
46092         (new_exclude_segment, excluded_file_pattern_p)
46093         (excluded_file_name_p): Reduce scope.
46094         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46095         old-style declaration.
46096
46097 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46098
46099         * tests/test-exclude1.sh: Handle Windows EOL.
46100         * tests/test-exclude2.sh: Likewise.
46101         * tests/test-exclude3.sh: Likewise.
46102         * tests/test-exclude4.sh: Likewise.
46103         * tests/test-exclude5.sh: Likewise.
46104         * tests/test-exclude6.sh: Likewise.
46105         * tests/test-exclude7.sh: Likewise.
46106
46107 2009-08-19  Akim Demaille  <demaille@gostai.com>
46108
46109         bootstrap: find sha1sum when named gsha1sum.
46110         * bootstrap (find_tool): New.
46111         ($SHA1SUM): New.
46112         Use it.
46113
46114 2009-08-20  Jim Meyering  <meyering@redhat.com>
46115
46116         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46117         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46118         expression that converts "." in a file name to "\." in the resulting
46119         regexp.  Start with a dummy statement, so that prior shell variable
46120         definitions are expanded portably.  Reported by Simon Josefsson.
46121
46122 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46123
46124         Fix polling for writeability of a screen buffer.
46125         * lib/poll.c: Distinguish input and screen buffers for the
46126         Win32 implementation.
46127         * lib/select.c: Likewise.
46128
46129 2009-08-19  Eric Blake  <ebb9@byu.net>
46130
46131         popen-safer: prevent popen from clobbering std descriptors
46132         * modules/popen-safer: New file.
46133         * lib/popen-safer.c: Likewise.
46134         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46135         * lib/stdio--.h (popen): Provide override.
46136         * lib/stdio-safer.h (popen_safer): Provide declaration.
46137         * tests/test-popen.c (includes): Partially test this.
46138         * modules/popen-safer-tests: New file, for more tests.
46139         * tests/test-popen-safer.c: Likewise.
46140         * MODULES.html.sh (file stream based Input/Output): Mention it.
46141
46142         tests: test some of the *-safer modules
46143         * modules/fopen-safer (Depends-on): Add fopen.
46144         * modules/fcntl-safer (Depends-on): Add fcntl.
46145         * modules/stdlib-safer (Depends-on): Add stdlib.
46146         (configure.ac): Set indicator.
46147         * modules/unistd-safer (configure.ac): Likewise.
46148         * modules/tmpfile-safer (configure.ac): Likewise.
46149         (Depends-on): Add tmpfile.
46150         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46151         active.
46152         * tests/test-fopen.c (includes): Test safer versions when they are
46153         in use.
46154         * tests/test-open.c (includes): Likewise.
46155
46156         popen: fix cygwin 1.5 bug when stdin closed
46157         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46158         * modules/popen: New file.
46159         * modules/popen-tests: Likewise.
46160         * tests/test-popen.c: Likewise.
46161         * m4/popen.m4: Likewise.
46162         * lib/popen.c: Likewise.
46163         * lib/stdio.in.h (popen): New declaration.
46164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46165         * modules/stdio (Makefile.am): Likewise.
46166         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46167
46168 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46169
46170         maint.mk: give full control over update-copyright exclusions
46171         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46172         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46173         (update-copyright): Don't force inclusion of top-level
46174         ChangeLog.  Don't force exclusion of all COPYING files, but make
46175         them the default exclusion instead.
46176
46177 2009-08-16  Bruno Haible  <bruno@clisp.org>
46178
46179         Fix test failures on Solaris 10.
46180         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46181         tests when Solaris iconv() is used.
46182         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46183         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46184         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46185         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46186         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46187
46188 2009-08-16  Bruno Haible  <bruno@clisp.org>
46189
46190         Fix test failures on Solaris 10.
46191         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46192         'tr' program and pass it as first argument.
46193         * tests/test-pipe-filter-gi1.sh: Likewise.
46194         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46195         program as first argument.
46196         * tests/test-pipe-filter-gi1.c (main): Likewise.
46197
46198 2009-08-16  Eric Blake  <ebb9@byu.net>
46199
46200         fpurge: fix previous commits
46201         * modules/fpurge (Makefile.am): Make replacement conditional,
46202         partially reverting 2007-04-29 change; missed in previous
46203         attempt.
46204         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46205         is missing.
46206
46207 2009-08-16  Bruno Haible  <bruno@clisp.org>
46208
46209         Clarify fpurge's effect on the file position.
46210         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46211         * tests/test-fpurge.c (main): Make a second pass for checking the file
46212         position.
46213
46214 2009-08-16  Bruno Haible  <bruno@clisp.org>
46215
46216         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46217         declaration of fpurge is missing.
46218         * tests/test-fpurge.c (main): Check that the file has not more contents
46219         than expected. Close the file before removing it.
46220
46221 2009-08-15  Eric Blake  <ebb9@byu.net>
46222
46223         fpurge: don't wrap working cygwin implementation
46224         * lib/fpurge.c (fpurge): Fix comment typo.
46225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46226         1.7 to avoid replacement.
46227         * tests/test-fpurge.c (main): Enhance test.
46228
46229 2009-08-15  Eric Blake  <ebb9@byu.net>
46230         and Jim Meyering  <meyering@redhat.com>
46231
46232         test-update-copyright: skip if perl is insufficient
46233         * tests/test-update-copyright.sh: Failure to run maintainer tool
46234         should not cause testsuite failure on cygwin 1.5.
46235
46236 2009-08-14  Eric Blake  <ebb9@byu.net>
46237
46238         doc: mention more functions added in cygwin 1.7.0
46239         * doc/posix-headers/limits.texi (limits.h): Update for recent
46240         cygwin additions.
46241         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46242         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46243         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46244         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46245         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46246
46247 2009-08-14  Eric Blake  <ebb9@byu.net>
46248
46249         maint.mk: simplify update-copyright rule
46250         * top/maint.mk (update-copyright-local): Delete, and document how
46251         to do it in cfg.mk instead.
46252         (update-copyright-exclude-regexp): Delete, and document how to do
46253         it in .x-update-copyright instead.
46254         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46255         exclude ChangeLog.
46256
46257 2009-08-14  Bruno Haible  <bruno@clisp.org>
46258
46259         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46260
46261 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46262
46263         maint.mk: support update-copyright-env
46264         * top/maint.mk (update-copyright-env): Define place-holder.
46265         (update-copyright): Expand $(update-copyright-env) before
46266         invoking update-copyright.
46267
46268 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46269
46270         update-copyright: implement forced reformatting
46271         * build-aux/update-copyright: Implement and document
46272         UPDATE_COPYRIGHT_FORCE.
46273         * tests/test-update-copyright.sh: Test it.
46274
46275 2009-08-14  Eric Blake  <ebb9@byu.net>
46276         and Bruno Haible  <bruno@clisp.org>
46277
46278         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46279         * tests/test-locale.c: Revert previous patch related to NULL.
46280         * tests/test-stdio.c: Likewise.
46281         * tests/test-stdlib.c: Likewise.
46282         * tests/test-string.c: Likewise.
46283         * tests/test-unistd.c: Likewise.
46284         * modules/time-tests (Depends-on): Add verify.
46285         * modules/wchar-tests (Depends-on): Likewise.
46286         * tests/test-time.c: Test for NULL compliance.
46287         * tests/test-wchar.c: Likewise.
46288         * modules/locale (Depends-on): Add stddef.
46289         * modules/stdio (Depends-on): Likewise.
46290         * modules/stdlib (Depends-on): Likewise.
46291         * modules/string (Depends-on): Likewise.
46292         * modules/time (Depends-on): Likewise.
46293         * modules/unistd (Depends-on): Likewise.
46294         * modules/wchar (Depends-on): Likewise.
46295         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46296         * lib/stdlib.in.h (includes): Likewise.
46297         * lib/string.in.h (includes): Likewise.
46298         * lib/time.in.h (includes): Likewise.
46299         * lib/unistd.in.h (includes): Likewise.
46300         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46301         replaced.
46302         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46303         * m4/stddef_h.m4: New file.
46304         * modules/stddef: Likewise.
46305         * lib/stddef.in.h: Likewise.
46306         * modules/stddef-tests: Likewise.
46307         * tests/test-stddef.c: Likewise.
46308         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46309         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46310         * doc/posix-headers/locale.texi (locale.h): Likewise.
46311         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46312         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46313         * doc/posix-headers/string.texi (string.h): Likewise.
46314         * doc/posix-headers/time.texi (time.h): Likewise.
46315         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46316         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46317
46318 2009-08-14  Eric Blake  <ebb9@byu.net>
46319
46320         doc: improve git diff of texinfo files
46321         * .gitattributes: Add rule for *.texi files, with hint on how to
46322         use it.
46323         Copied from m4, and based on a report by Bruno Haible.
46324
46325 2009-08-14  Bruno Haible  <bruno@clisp.org>
46326
46327         Disable multithread support by default on Cygwin 1.5.x for real.
46328         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46329
46330 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46331
46332         update-copyright: much ado about intervals
46333         * build-aux/update-copyright: Implement and document
46334         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46335         of copyright year intervals.
46336         Also, document UPDATE_COPYRIGHT_YEAR.
46337         * tests/test-update-copyright.sh: Test it.
46338
46339         update-copyright: convert 2-digit to 4-digit years
46340         * build-aux/update-copyright: Implement and document.
46341         * tests/test-update-copyright.sh: Update.
46342
46343 2009-08-14  Jim Meyering  <meyering@redhat.com>
46344
46345         test-exclude: avoid coreutils "make check" failure
46346         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46347         just as in test-argmatch.c.
46348
46349 2009-08-13  Eric Blake  <ebb9@byu.net>
46350
46351         test-dup2: fix bad assumption
46352         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46353         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46354
46355         test-version-etc: fix CRLF portability issue
46356         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46357         recognize \r.
46358         * tests/test-argp-version-etc-1.sh: Likewise.
46359
46360         getopt: update client modules
46361         * modules/argp (Depends-on): Use getopt-gnu.
46362         * modules/git-merge-changelog (Depends-on): Likewise.
46363         * modules/long-options (Depends-on): Likewise.
46364         * modules/xstrtol (Depends-on): Likewise.
46365
46366 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46367
46368         * tests/test-version-etc.sh: Don't fail on different
46369         project/version.  Don't fail on CRLF differences.  Rewrite to use
46370         multiple -e instead of multiple sed forks, suggested by Eric Blake
46371         <ebb9@byu.net>.
46372         * tests/test-argp-version-etc-1.sh: Likewise.
46373
46374 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46375
46376         * tests/test-version-etc.sh: Don't fail on different
46377         project/version.
46378
46379 2009-08-12  Bruno Haible  <bruno@clisp.org>
46380
46381         Tests for modules 'getopt-posix', 'getopt-gnu'.
46382         * modules/getopt-posix-tests: New file.
46383         * tests/test-getopt.c: New file.
46384         * tests/test-getopt.h: New file.
46385         * tests/test-getopt_long.h: New file.
46386
46387         New modules 'getopt-posix', 'getopt-gnu'.
46388         * modules/getopt-gnu: New file, renamed from modules/getopt.
46389         * modules/getopt-posix: New file.
46390         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46391         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46392         (gl_GETOPT): Remove macro.
46393         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46394         Disable the test against BSD systems that declare optreset. Test
46395         against mingw bug. Test against lack of support of optional arguments
46396         on many platforms.
46397         * doc/glibc-headers/getopt.texi: Update module name and list of
46398         relevant platforms.
46399         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46400         'getopt-gnu' and more portability problems.
46401         * NEWS: Mention the changes.
46402
46403 2009-08-12  Bruno Haible  <bruno@clisp.org>
46404
46405         Ensure that optarg etc. get declared by <unistd.h>.
46406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46407         AC_USE_SYSTEM_EXTENSIONS.
46408         * modules/getopt (Depends-on): Add 'extensions'.
46409
46410 2009-08-12  Bruno Haible  <bruno@clisp.org>
46411
46412         Avoid test link errors.
46413         * modules/pipe-filter-ii-tests (Makefile.am): Define
46414         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46415         * modules/pipe-filter-gi-tests (Makefile.am): Define
46416         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46418
46419 2009-08-12  Bruno Haible  <bruno@clisp.org>
46420
46421         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46422         gl_GETOPT_SUBSTITUTE before.
46423         (gl_GETOPT): Use it.
46424         * m4/argp.m4 (gl_ARGP): Update.
46425         Reported by Sergey Poznyakoff.
46426
46427         * m4/getopt.m4: Reorder macros.
46428         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46429         (gl_GETOPT_SUBSTITUTE): Remove macro.
46430
46431 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46432
46433         Minor improvement in gitlog-to-changelog
46434
46435         * build-aux/gitlog-to-changelog: New option `--format' makes
46436         output format string configurable.
46437
46438 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46439
46440         Optimize exclude: use hash tables for non-wildcard patterns.
46441
46442         * lib/exclude.c: Include hash.h and mbuiter.h
46443         (struct exclude_pattern, exclude_segment): New data types.
46444         (struct exclude): Rewrite.
46445         (fnmatch_pattern_has_wildcards): New function.
46446         (new_exclude_segment, free_exclude_segment): New functions.
46447         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46448         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46449         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46450         * modules/exclude: Depend on hash and mbuiter.
46451
46452         * modules/exclude-tests: New file.
46453         * tests/test-exclude.c: New file.
46454         * tests/test-exclude1.sh: New file.
46455         * tests/test-exclude2.sh: New file.
46456         * tests/test-exclude3.sh: New file.
46457         * tests/test-exclude4.sh: New file.
46458         * tests/test-exclude5.sh: New file.
46459         * tests/test-exclude6.sh: New file.
46460         * tests/test-exclude7.sh: New file.
46461
46462 2009-08-12  Bruno Haible  <bruno@clisp.org>
46463
46464         Ensure that getopt() gets declared by <unistd.h>.
46465         * lib/unistd.in.h: Conditionally include getopt.h.
46466         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46467         Set GNULIB_UNISTD_H_GETOPT.
46468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46469         GNULIB_UNISTD_H_GETOPT.
46470         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46471
46472 2009-08-12  Bruno Haible  <bruno@clisp.org>
46473
46474         Clarify logic.
46475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46476         gl_replace_getopt instead of GETOPT_H.
46477
46478 2009-08-12  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/getopt.m4: Add comments.
46481
46482 2009-08-12  Bruno Haible  <bruno@clisp.org>
46483
46484         Disable multithread support by default on Cygwin 1.5.x.
46485         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46486         set gl_use_threads=no if not specified otherwise.
46487
46488 2009-08-11  Bruno Haible  <bruno@clisp.org>
46489
46490         Avoid compilation error on NetBSD 5.0.
46491         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46492         * tests/test-stdio.c: Likewise.
46493         * tests/test-stdlib.c: Likewise.
46494         * tests/test-string.c: Likewise.
46495         * tests/test-unistd.c: Likewise.
46496         Reported by Greg Troxel <gdt@ir.bbn.com>
46497         at <https://savannah.gnu.org/support/?106973>.
46498
46499 2009-08-11  Bruno Haible  <bruno@clisp.org>
46500
46501         * modules/dup2-tests (Depends-on): Remove close.
46502
46503         Undo 2009-07-19 commit.
46504         * modules/acl-tests (Depends-on): Remove close.
46505         * modules/binary-io-tests (Depends-on): Likewise.
46506         * modules/closein-tests (Depends-on): Likewise.
46507         * modules/flock-tests (Depends-on): Likewise.
46508         * modules/fsync-tests (Depends-on): Likewise.
46509         * modules/lseek-tests (Depends-on): Likewise.
46510         * modules/pipe-tests (Depends-on): Likewise.
46511         * modules/posix_spawn-tests (Depends-on): Likewise.
46512         * modules/posix_spawnp-tests (Depends-on): Likewise.
46513         * modules/stat-time-tests (Depends-on): Likewise.
46514         * modules/yesno-tests (Depends-on): Likewise.
46515
46516 2009-08-10  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46519
46520 2009-08-10  Bruno Haible  <bruno@clisp.org>
46521
46522         Fix a gcc warning.
46523         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46524
46525 2009-08-10  Bruno Haible  <bruno@clisp.org>
46526
46527         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46528         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46529         not only the first time.
46530         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46531         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46532         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46533         is 1, not only the the first time.
46534
46535 2009-08-10  Bruno Haible  <bruno@clisp.org>
46536
46537         Make it possible to use module 'gethostname' without module 'close'.
46538         * lib/unistd.in.h (close): Evoke a link error only if
46539         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46541         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46542         * modules/unistd (Makefile.am): Substitute
46543         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46544         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46545         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46546         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46547         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46548         * modules/sys_ioctl (Makefile.am): Substitute
46549         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46550         * modules/socket (configure.ac): On native Windows, set
46551         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46552         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46553         Reported by Sam Steingold <sds@gnu.org>.
46554
46555 2009-08-10  Bruno Haible  <bruno@clisp.org>
46556
46557         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46558         * modules/ioctl (configure.ac): Likewise.
46559
46560 2009-08-10  Bruno Haible  <bruno@clisp.org>
46561
46562         Avoid collision between gnulib wrapper and libintl wrapper.
46563         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46564         already defined in intl/printf.c.
46565         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46566         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46567
46568 2009-08-09  Bruno Haible  <bruno@clisp.org>
46569
46570         Make <sys/select.h> really self-contained, also on Solaris 10.
46571         * lib/sys_select.in.h: Include <string.h>.
46572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46573         Solaris 10 problem.
46574         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46575         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46576         Reported by Jim Meyering.
46577
46578 2009-08-09  Bruno Haible  <bruno@clisp.org>
46579
46580         Avoid warnings from 'aclocal' that are due to a use of macro name
46581         AM_XGETTEXT_OPTION that is not defined in automake.
46582         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46583         automake.
46584         * modules/error (configure.ac): Likewise.
46585         * modules/propername (configure.ac): Likewise.
46586         * modules/vasprintf (configure.ac): Likewise.
46587         * modules/verror (configure.ac): Likewise.
46588         * modules/xprintf (configure.ac): Likewise.
46589         * modules/xvasprintf (configure.ac): Likewise.
46590
46591 2009-08-08  Bruno Haible  <bruno@clisp.org>
46592
46593         Avoid compilation error in C++ mode.
46594         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46595         Reported by Sam Steingold <sds@gnu.org>.
46596
46597 2009-08-08  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46600         for the various Unix platforms.
46601         * doc/posix-headers/limits.texi: Update platforms list regarding
46602         HOST_NAME_MAX.
46603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46604
46605 2009-08-07  Jim Meyering  <meyering@redhat.com>
46606
46607         selinux-at: fix typo in a comment
46608         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46609         Spotted by Paolo Bonzini.
46610
46611         selinux-at: remove redundant m4 code, add documentation
46612         * modules/selinux-at (configure.ac): Remove redundant code.
46613         LIB_SELINUX is already set via the dependent module, selinux-h.
46614         (Include): Add quotes around selinux-at.h.
46615         * lib/selinux-at.h: Add documentation.
46616         Reported by Bruno Haible in
46617         http://marc.info/?l=gnulib-bug&m=124958988300749
46618
46619 2009-08-07  Bruno Haible  <bruno@clisp.org>
46620
46621         Avoid link error on MacOS X 10.3 and 10.4.
46622         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46623         on non-ELF systems.
46624         * lib/argp-pv.c (argp_program_version): Likewise.
46625         Reported by Simon Josefsson.
46626
46627 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46628
46629         * tests/test-version-etc.sh: Use $EXEEXT.
46630
46631 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46632
46633         update-copyright: update documentation to point to maint.mk
46634         * build-aux/update-copyright: Here.
46635
46636 2009-08-06  Jim Meyering  <meyering@redhat.com>
46637
46638         maint.mk: support update-copyright-local
46639         * top/maint.mk (update-copyright-local): Define place-holder.
46640         (update-copyright): Depend on $(update-copyright-local).
46641
46642 2009-08-06  Jim Meyering  <meyering@redhat.com>
46643
46644         selinux-at: new module
46645         Initially written for coreutils, this module will soon be
46646         used by findutils, too.
46647         * MODULES.html.sh [Misc]: Add selinux-at.
46648         * lib/selinux-at.h: New file, from coreutils.
46649         * lib/selinux-at.c: Likewise.
46650         * modules/selinux-at: Likewise.
46651         (License): Change from LGPL to GPL, since it depends
46652         on the GPL'd openat module.
46653
46654         doc: update README
46655         * README: Remove references to cogito.
46656         Remove cvs-repo-updating instructions from 2007.
46657         Don't imply that CVS is better if you have limited disk space.
46658
46659 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46660
46661         update-copyright: support C-style comments
46662         * build-aux/update-copyright: Implement and document.
46663         * tests/test-update-copyright.sh: Test.
46664
46665 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46666
46667         update-copyright: support omitted "(C)"
46668         * build-aux/update-copyright: Implement and document.  Also,
46669         allow variable whitespace before "(C)".
46670         * tests/test-update-copyright.sh: Test.
46671
46672 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46673
46674         update-copyright: don't trip on non-FSF copyright statements
46675         * build-aux/update-copyright: Fix so that the first correctly
46676         formatted FSF copyright statement is recognized no matter what
46677         appears before it.  Update documentation.
46678         * tests/test-update-copyright.sh: Test that.
46679
46680 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46681
46682         update-copyright: clean up code a little
46683         * build-aux/update-copyright: Append "_re" to the name of any
46684         variable holding a regular expression.
46685         Replace "old" and "new" with "stmt" in variable names.
46686         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46687         handled correctly.
46688         Format code more consistently.
46689
46690 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46691
46692         update-copyright-tests: improve portability
46693         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46694         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46695
46696 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46697
46698         update-copyright: support @copyright{} and &copy;
46699         * build-aux/update-copyright: Implement and document.
46700         * tests/test-update-copyright.sh: Test.
46701
46702 2009-08-04  Jim Meyering  <meyering@redhat.com>
46703
46704         update-copyright-tests: correctly test EOL=\r\n handling
46705         * tests/test-update-copyright.sh: Put \r at the end of some lines
46706         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46707
46708         maint.mk: make update-copyright exclusion list more configurable
46709         * top/maint.mk (update-copyright): Default to excluding COPYING,
46710         but allow an override, in case someone does want to update that file.
46711
46712         maint.mk: don't update copyright date in COPYING
46713         * top/maint.mk (update-copyright): Exclude COPYING.
46714
46715         maint.mk: add a copyright-updating rule
46716         * top/maint.mk (update-copyright): New rule.
46717         Derived from coreutils/Makefile.am.
46718
46719         update-copyright: rename some variables
46720         * build-aux/update-copyright: Rename a few variables for clarity.
46721         Tweak syntax.  List Joel E. Denny as coauthor.
46722
46723 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46724
46725         update-copyright: fix bug for 2-digit last year and add tests
46726         * build-aux/update-copyright: Fix bug.
46727         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46728         specified.
46729         * modules/update-copyright-tests: New
46730         * tests/test-update-copyright.sh: New.
46731
46732 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46733
46734         update-copyright: handle leading tabs in line prefix
46735         * build-aux/update-copyright: Count leading tabs as 8 spaces
46736         when computing margin.  This helps with the formatting of
46737         ChangeLogs, for example.
46738         Fix documentation a little.
46739
46740 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46741
46742         update-copyright: support EOL=\r\n
46743         * build-aux/update-copyright: Implement that.
46744
46745 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46746
46747         update-copyright: automatically format copyright statements
46748         * build-aux/update-copyright: Implement that.
46749         Also, be a little more predictable and safer by always failing
46750         when the full copyright format is not perfectly recognized as an
46751         unbroken whole.  Discussed at
46752         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46753         Rewrite documentation.
46754
46755 2009-08-03  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46758
46759 2009-08-02  Bruno Haible  <bruno@clisp.org>
46760
46761         Tests for module 'uname'.
46762         * modules/uname-tests: New file.
46763         * tests/test-uname.c: New file.
46764
46765         New module 'uname'.
46766         * lib/uname.c: New file.
46767         * m4/uname.m4: New file.
46768         * modules/uname: New file.
46769         * doc/posix-functions/uname.texi: Mention the new module.
46770
46771 2009-08-02  Bruno Haible  <bruno@clisp.org>
46772
46773         Tests for module 'sys_utsname'.
46774         * modules/sys_utsname-tests: New file.
46775         * tests/test-sys_utsname.c: New file.
46776
46777         New module 'sys_utsname'.
46778         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46779         * m4/sys_utsname_h.m4: New file.
46780         * modules/sys_utsname: New file.
46781         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46782
46783 2009-08-02  Bruno Haible  <bruno@clisp.org>
46784
46785         Implicitly initialize the sockets library.
46786         * lib/gethostname.c: Include sockets.h.
46787         (rpl_gethostname): Invoke gl_sockets_startup.
46788         * lib/socket.c: Include sockets.h.
46789         (rpl_socket): Invoke gl_sockets_startup.
46790         * modules/gethostname (Depends-on): Add sockets.
46791         * modules/socket (Depends-on): Likewise.
46792         * tests/test-poll.c: Don't include sockets.h.
46793         (main): Don't invoke gl_sockets_startup.
46794         * tests/test-select.c: Don't include sockets.h.
46795         (main): Don't invoke gl_sockets_startup.
46796
46797 2009-08-02  Bruno Haible  <bruno@clisp.org>
46798
46799         Allow multiple calls to gl_sockets_startup.
46800         * lib/sockets.c (initialized_sockets_version): New variable.
46801         (gl_sockets_startup): Do nothing if already called for this or a higher
46802         version.
46803         (gl_sockets_cleanup): Reset initialized_sockets_version.
46804
46805 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46806
46807         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46808         different project/version.
46809
46810 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46811             Bruno Haible  <bruno@clisp.org>
46812
46813         Tests for module 'pipe-filter-gi'.
46814         * modules/pipe-filter-gi-tests: New file.
46815         * tests/test-pipe-filter-gi1.sh: New file.
46816         * tests/test-pipe-filter-gi1.c: New file.
46817         * tests/test-pipe-filter-gi2.sh: New file.
46818         * tests/test-pipe-filter-gi2-main.c: New file.
46819         * tests/test-pipe-filter-gi2-child.c: New file.
46820
46821         New module 'pipe-filter-gi'.
46822         * lib/pipe-filter-gi.c: New file.
46823         * modules/pipe-filter-gi: New file.
46824
46825 2009-08-02  Bruno Haible  <bruno@clisp.org>
46826             Paolo Bonzini  <bonzini@gnu.org>
46827
46828         Tests for module 'pipe-filter-ii'.
46829         * modules/pipe-filter-ii-tests: New file.
46830         * tests/test-pipe-filter-ii1.sh: New file.
46831         * tests/test-pipe-filter-ii1.c: New file.
46832         * tests/test-pipe-filter-ii2.sh: New file.
46833         * tests/test-pipe-filter-ii2-main.c: New file.
46834         * tests/test-pipe-filter-ii2-child.c: New file.
46835
46836         New module 'pipe-filter-ii'.
46837         * lib/pipe-filter.h: New file.
46838         * lib/pipe-filter-ii.c: New file.
46839         * lib/pipe-filter-aux.h: New file.
46840         * modules/pipe-filter-ii: New file.
46841
46842 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46843
46844         * lib/gc-libgcrypt.c: Change copyright to FSF.
46845         * lib/gc-gnulib.c: Likewise.
46846
46847 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46848
46849         * lib/gethostname.c: Include limits.h.
46850
46851 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46852             Bruno Haible  <bruno@clisp.org>
46853
46854         Ensure HOST_NAME_MAX as part of the gethostname module.
46855         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46856         define also HOST_NAME_MAX.
46857         * tests/test-gethostname.c: Include <limits.h>.
46858         (main): Check also HOST_NAME_MAX.
46859         * doc/posix-headers/limits.texi: Document the mingw problem.
46860
46861 2009-08-02  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46864         Add comments.
46865
46866 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46867
46868         * lib/gethostname.c: Add Windows wrapper.
46869         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46870         * modules/gethostname: Depend on sys_socket & errno, for also
46871         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46872         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46873
46874 2009-07-31  Jim Meyering  <meyering@redhat.com>
46875
46876         getloadavg: fix symbol name in comment
46877         * lib/getloadavg.c: Correct a typo I introduced when adding
46878         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46879         Matt Kraai spotted the problem.
46880
46881 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46882
46883         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46884         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46885         code also if ! defined N_NAME_POINTER.
46886         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46887         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46888         but the n_name member is a 12-byte array.
46889
46890 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46891
46892         update-copyright: generalize comment handling
46893         * build-aux/update-copyright: Handle copyright statements
46894         within more comment styles.
46895         Document usage.
46896         Report any file with an external copyright holder or parse failure.
46897
46898 2009-07-29  Jim Meyering  <meyering@redhat.com>
46899
46900         mktime: correct setting of REPLACE_MKTIME
46901         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46902
46903         update-copyright: new module
46904         * modules/update-copyright: New file.
46905         * build-aux/update-copyright: New file.
46906         * MODULES.html.sh (maint+release support): Add update-copyright.
46907
46908 2009-07-27  Bruno Haible  <bruno@clisp.org>
46909
46910         Fix compilation error when <ctime> is used and mktime is replaced.
46911         * lib/time.in.h (mktime): New declaration.
46912         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46913         REPLACE_MKTIME instead of defining mktime in config.h.
46914         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46915         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46916         Reported by Ross McFarland <rwmcfa1@neces.com>.
46917
46918 2009-07-27  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46921         Reported by Matt Kraai <mkraai@beckman.com>.
46922
46923 2009-07-25  Jim Meyering  <meyering@redhat.com>
46924
46925         maint.mk: avoid warnings about missing files
46926         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46927         diagnostic when .prev-version does not exist.
46928         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46929         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46930         nonexistent cfg.mk.
46931         Suggestions from Simon Josefsson.
46932
46933 2009-07-25  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46936         defined as macros. Needed on QNX 6.4.1.
46937         Reported by Matt Kraai <mkraai@beckman.com>.
46938
46939 2009-07-23  Jim Meyering  <meyering@redhat.com>
46940
46941         maint.mk: invoke "make dist" with a working value of XZ_OPT
46942         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46943
46944 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46945
46946         Make fseeko.c compile on QNX.
46947         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46948
46949 2009-07-22  Peter Simons  <simons@cryp.to>
46950
46951         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46952         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46953         * lib/md4.h: Likewise.
46954         * lib/md5.h: Likewise.
46955         * lib/sha1.h: Likewise.
46956         * lib/sha256.h: Likewise.
46957         * lib/sha512.h: Likewise.
46958
46959         tests-sha1: don't assign literal string to 'char *' variable
46960         * tests/test-sha1.c (main): Declare locals with "const" to match
46961         attributes of the right hand side.
46962
46963 2009-07-21  Eric Blake  <ebb9@byu.net>
46964
46965         dup2: fix more mingw problems
46966         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46967         fd to itself.
46968         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46969         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46970         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46971         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46972         care of mingw bugs.
46973
46974 2009-07-21  Jim Meyering  <meyering@redhat.com>
46975
46976         vc-list-files: avoid failure when /bin/sh is dash
46977         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46978         On some Debian based systems, /bin/sh is a symlink to dash, and running
46979         this command would omit the "/" following each 'tests' prefix:
46980           dash -x build-aux/vc-list-files -C . tests
46981         That is because bash and dash work differently:
46982           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46983           bash ok
46984           dash odd
46985
46986 2009-07-21  Eric Blake  <ebb9@byu.net>
46987
46988         dup2-tests: test previous patch
46989         * modules/dup2-tests: New file.
46990         * tests/test-dup2.c: Likewise.
46991         * tests/test-open.c (main): Avoid unspecified behavior.
46992         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46993         test.
46994
46995         dup2: work around mingw and cygwin 1.5 bug
46996         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46998         * modules/unistd (Makefile.am): Substitute it.
46999         * lib/unistd.in.h (dup2): Declare the replacement.
47000         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47001         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47002         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47003         * modules/execute (Depends-on): Add dup2.
47004         * modules/fseterr (Depends-on): Likewise.
47005         * modules/pipe (Depends-on): Likewise.
47006         * modules/posix_spawn-internal (Depends-on): Likewise.
47007
47008 2009-07-21  Bruno Haible  <bruno@clisp.org>
47009
47010         * modules/.gitattributes: New file.
47011
47012 2009-07-20  Bruno Haible  <bruno@clisp.org>
47013
47014         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47015         (main): Use it.
47016
47017 2009-07-20  Eric Blake  <ebb9@byu.net>
47018
47019         test-pipe: make a bit more robust.
47020         * tests/test-pipe.c (myerr): Allow error messages regardless of
47021         what we do to stderr.
47022         (test_pipe): Rearrange to avoid deadlock.
47023         (child_main): Try a larger read, to ensure we avoided deadlock.
47024         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47025         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47026         if misused.
47027
47028 2009-07-19  Jim Meyering  <meyering@redhat.com>
47029
47030         fts: avoid false-positive cycle-detection
47031         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47032         for each new command line argument.
47033
47034 2009-07-19  Bruno Haible  <bruno@clisp.org>
47035
47036         Fix build error on mingw with the modules sys_select and unistd.
47037         * modules/acl-tests (Depends-on): Add close.
47038         * modules/binary-io-tests (Depends-on): Likewise.
47039         * modules/closein-tests (Depends-on): Likewise.
47040         * modules/flock-tests (Depends-on): Likewise.
47041         * modules/fsync-tests (Depends-on): Likewise.
47042         * modules/lseek-tests (Depends-on): Likewise.
47043         * modules/pipe-tests (Depends-on): Likewise.
47044         * modules/posix_spawn-tests (Depends-on): Likewise.
47045         * modules/posix_spawnp-tests (Depends-on): Likewise.
47046         * modules/stat-time-tests (Depends-on): Likewise.
47047         * modules/yesno-tests (Depends-on): Likewise.
47048
47049 2009-07-19  Bruno Haible  <bruno@clisp.org>
47050
47051         Unify conditionals.
47052         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47053         macros, not at the compiler macros.
47054         * lib/pipe.c: Likewise.
47055         * lib/execute.c: Likewise.
47056         * lib/spawni.c: Likewise.
47057
47058 2009-07-19  Bruno Haible  <bruno@clisp.org>
47059
47060         Fix handling of closed stdin/stdout/stderr on mingw.
47061         * lib/w32spawn.h: Include unistd.h.
47062         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47063         file descriptor with O_NOINHERIT flag.
47064         (fd_safer_noinherit): New function, based on fd-safer.c.
47065         (dup_safer_noinherit): New function, based on dup-safer.c.
47066         (undup_safer_noinherit): New function.
47067         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47068         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47069         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47070         instead of fd_safer.
47071         * tests/test-pipe.c: Include <windows.h>.
47072         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47073         result.
47074
47075         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47076         from main.
47077         (test_pipe): Pass an extra argument for disambiguation.
47078         (main): Invoke parent_main or child_main.
47079
47080         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47081         consistently.
47082
47083 2009-07-18  Eric Blake  <ebb9@byu.net>
47084
47085         test-pipe: fix mingw build
47086         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47087
47088 2009-07-18  Bruno Haible  <bruno@clisp.org>
47089
47090         * modules/pipe-tests (Makefile.am): Fix typo.
47091
47092 2009-07-18  Eric Blake  <ebb9@byu.net>
47093
47094         error: fix mingw build
47095         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47096         Reported by Bruno Haible.
47097
47098         error: avoid undefined use of stdout
47099         * lib/error.c (error, error_at_line): Check that fd 1 is open
47100         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47101         is handling faults and the close_stdout module wants to report the
47102         detection of closed stdout as an error.
47103
47104 2009-07-17  Eric Blake  <ebb9@byu.net>
47105
47106         pipe: be robust in face of closed fds
47107         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47108         should cause child to misbehave.
47109         * modules/pipe-tests: New module.
47110         * tests/test-pipe.c: New file.
47111         * tests/test-pipe.sh: New file.
47112         Reported by Akim Demaille.
47113
47114 2009-07-14  Bruno Haible  <bruno@clisp.org>
47115
47116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47117         Reported by anonymous kc.
47118
47119 2009-07-07  Jim Meyering  <meyering@redhat.com>
47120
47121         maint.mk: don't look for translatable strings in *.m4 or *.mk
47122         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47123         when searching for translatable strings.
47124
47125 2009-07-05  Jim Meyering  <meyering@redhat.com>
47126
47127         remove superfluous parentheses in STREQ definition
47128         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47129         * lib/getugroups.c (STREQ): Likewise.
47130         * lib/fnmatch.c (STREQ): Likewise.
47131         Spotted by Bruno Haible.
47132
47133 2009-07-04  Jim Meyering  <meyering@redhat.com>
47134
47135         argv-iter: new module
47136         * MODULES.html.sh: Add argv-iter.
47137         * lib/argv-iter.c, lib/argv-iter.h: New files.
47138         * modules/argv-iter: New file.
47139         * modules/argv-iter-tests: New file.
47140         * tests/test-argv-iter.c: Test it.
47141
47142 2009-07-04  Bruno Haible  <bruno@clisp.org>
47143
47144         Fix assertion.
47145         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47146         contains more exact copies of a given entry than file2, leave the extra
47147         copies unpaired rather than aborting.
47148         Reported by Eric Blake.
47149
47150 2009-07-02  Bruno Haible  <bruno@clisp.org>
47151
47152         Speedup git-merge-changelog for git cherry-pick.
47153         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47154         (entries_mapping_get): New function, extracted from compute_mapping.
47155         (entries_mapping_reverse_get): New function.
47156         (compute_mapping): Add a 'full' argument. Return the result in a
47157         'struct entries_mapping'.
47158         (main): Update. Access the mappings through entries_mapping_get.
47159         Reported by Eric Blake.
47160
47161 2009-07-02  Bruno Haible  <bruno@clisp.org>
47162
47163         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47164         best_i.
47165
47166 2009-07-02  Bruno Haible  <bruno@clisp.org>
47167
47168         Speed up approximate search for matching ChangeLog entries.
47169         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47170         argument. Call fstrcmp_bounded instead of fstrcmp.
47171         (compute_mapping, try_split_merged_entry, main): Update callers.
47172
47173 2009-07-02  Bruno Haible  <bruno@clisp.org>
47174
47175         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47176
47177 2009-06-30  Bruno Haible  <bruno@clisp.org>
47178
47179         Reduce the number of uc_is_cased calls.
47180         * lib/unicase.h (casing_suffix_context_t): Add
47181         'first_char_except_ignorable' field.
47182         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47183         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47184         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47185         Update initializer.
47186         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47187         case-ignorable characters.
47188         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47189         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47190         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47191         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47192         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47193
47194 2009-06-30  Bruno Haible  <bruno@clisp.org>
47195
47196         Tests for module 'unicase/ignorable'.
47197         * modules/unicase/ignorable-tests: New file.
47198         * tests/unicase/test-ignorable.c: New file, generated by
47199         gen-uni-tables.
47200
47201         Tests for module 'unicase/cased'.
47202         * modules/unicase/cased-tests: New file.
47203         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47204         * tests/unicase/test-predicate-part1.h: New file, derived from
47205         tests/unictype/test-predicate-part1.h.
47206         * tests/unicase/test-predicate-part2.h: New file, same as
47207         tests/unictype/test-predicate-part2.h.
47208
47209         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47210         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47211         (output_casing_properties): New function.
47212         (main): Call it.
47213         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47214         * lib/unicase/cased.c: Include unictype/bitmap.h.
47215         (uc_is_cased): Define through a bitmap lookup.
47216         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47217         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47218         (uc_is_case_ignorable): Define through a bitmap lookup.
47219         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47220         lib/unictype/bitmap.h.
47221         (Depends-on): Add inline. Clean up.
47222         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47223         lib/unictype/bitmap.h.
47224         (Depends-on): Add inline. Clean up.
47225         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47226         recognition.
47227         * tests/unicase/test-u16-tolower.c (main): Likewise.
47228         * tests/unicase/test-u32-tolower.c (main): Likewise.
47229
47230 2009-06-30  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47233         * lib/unicase/u16-casemap.c: Likewise.
47234         * lib/unicase/u32-casemap.c: Likewise.
47235
47236 2009-06-29  Bruno Haible  <bruno@clisp.org>
47237
47238         Define u32_casefold as a wrapper around u32_ct_casefold.
47239         * lib/unicase/u32-casefold.c: Update.
47240         * modules/unicase/u32-casefold (Depends-on): Add
47241         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47242         unicase/empty-suffix-context. Clean up.
47243
47244         Define u16_casefold as a wrapper around u16_ct_casefold.
47245         * lib/unicase/u16-casefold.c: Update.
47246         * modules/unicase/u16-casefold (Depends-on): Add
47247         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47248         unicase/empty-suffix-context. Clean up.
47249
47250         Define u8_casefold as a wrapper around u8_ct_casefold.
47251         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47252         * lib/unicase/u8-casefold.c: Update.
47253         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47254         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47255
47256         Define u32_totitle as a wrapper around u32_ct_totitle.
47257         * lib/unicase/u32-totitle.c: Update.
47258         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47259         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47260
47261         Define u16_totitle as a wrapper around u16_ct_totitle.
47262         * lib/unicase/u16-totitle.c: Update.
47263         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47264         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47265
47266         Define u8_totitle as a wrapper around u8_ct_totitle.
47267         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47268         functions.
47269         (FUNC): Delegate to U_CT_TOTITLE.
47270         * lib/unicase/u8-totitle.c: Update.
47271         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47272         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47273
47274         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47275         invocation.
47276         * modules/unicase/u32-tolower (Depends-on): Add
47277         unicase/empty-prefix-context, unicase/empty-suffix-context.
47278
47279         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47280         invocation.
47281         * modules/unicase/u16-tolower (Depends-on): Add
47282         unicase/empty-prefix-context, unicase/empty-suffix-context.
47283
47284         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47285         * modules/unicase/u8-tolower (Depends-on): Add
47286         unicase/empty-prefix-context, unicase/empty-suffix-context.
47287
47288         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47289         invocation.
47290         * modules/unicase/u32-toupper (Depends-on): Add
47291         unicase/empty-prefix-context, unicase/empty-suffix-context.
47292
47293         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47294         invocation.
47295         * modules/unicase/u16-toupper (Depends-on): Add
47296         unicase/empty-prefix-context, unicase/empty-suffix-context.
47297
47298         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47299         * modules/unicase/u8-toupper (Depends-on): Add
47300         unicase/empty-prefix-context, unicase/empty-suffix-context.
47301
47302         New module 'unicase/u32-ct-casefold'.
47303         * lib/unicase/u32-ct-casefold.c: New file.
47304         * modules/unicase/u32-ct-casefold: New file.
47305
47306         New module 'unicase/u16-ct-casefold'.
47307         * lib/unicase/u16-ct-casefold.c: New file.
47308         * modules/unicase/u16-ct-casefold: New file.
47309
47310         New module 'unicase/u8-ct-casefold'.
47311         * lib/unicase/u8-ct-casefold.c: New file.
47312         * lib/unicase/u-ct-casefold.h: New file, derived from
47313         lib/unicase/u-casefold.h.
47314         * modules/unicase/u8-ct-casefold: New file.
47315
47316         New module 'unicase/u32-ct-totitle'.
47317         * lib/unicase/u32-ct-totitle.c: New file.
47318         * modules/unicase/u32-ct-totitle: New file.
47319
47320         New module 'unicase/u16-ct-totitle'.
47321         * lib/unicase/u16-ct-totitle.c: New file.
47322         * modules/unicase/u16-ct-totitle: New file.
47323
47324         New module 'unicase/u8-ct-totitle'.
47325         * lib/unicase/u8-ct-totitle.c: New file.
47326         * lib/unicase/u-ct-totitle.h: New file, derived from
47327         lib/unicase/u-totitle.h.
47328         * modules/unicase/u8-ct-totitle: New file.
47329
47330         New module 'unicase/u32-ct-tolower'.
47331         * lib/unicase/u32-ct-tolower.c: New file.
47332         * modules/unicase/u32-ct-tolower: New file.
47333
47334         New module 'unicase/u16-ct-tolower'.
47335         * lib/unicase/u16-ct-tolower.c: New file.
47336         * modules/unicase/u16-ct-tolower: New file.
47337
47338         New module 'unicase/u8-ct-tolower'.
47339         * lib/unicase/u8-ct-tolower.c: New file.
47340         * modules/unicase/u8-ct-tolower: New file.
47341
47342         New module 'unicase/u32-ct-toupper'.
47343         * lib/unicase/u32-ct-toupper.c: New file.
47344         * modules/unicase/u32-ct-toupper: New file.
47345
47346         New module 'unicase/u16-ct-toupper'.
47347         * lib/unicase/u16-ct-toupper.c: New file.
47348         * modules/unicase/u16-ct-toupper: New file.
47349
47350         New module 'unicase/u8-ct-toupper'.
47351         * lib/unicase/u8-ct-toupper.c: New file.
47352         * modules/unicase/u8-ct-toupper: New file.
47353
47354         Add context arguments to u*_casemap functions.
47355         * lib/unicase/unicasemap.h: Include unicase.h.
47356         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47357         suffix_context arguments.
47358         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47359         functions.
47360         (FUNC): Add prefix_context and suffix_context arguments. Use
47361         uc_is_cased and uc_is_case_ignorable.
47362         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47363         * lib/unicase/u16-casemap.c: Likewise.
47364         * lib/unicase/u32-casemap.c: Likewise.
47365         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47366         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47367         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47368         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47369         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47370         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47371
47372         New module 'unicase/u32-suffix-context'.
47373         * lib/unicase/u32-suffix-context.c: New file.
47374         * modules/unicase/u32-suffix-context: New file.
47375
47376         New module 'unicase/u16-suffix-context'.
47377         * lib/unicase/u16-suffix-context.c: New file.
47378         * modules/unicase/u16-suffix-context: New file.
47379
47380         New module 'unicase/u8-suffix-context'.
47381         * lib/unicase/u8-suffix-context.c: New file.
47382         * lib/unicase/u-suffix-context.h: New file.
47383         * modules/unicase/u8-suffix-context: New file.
47384
47385         New module 'unicase/empty-suffix-context'.
47386         * lib/unicase/empty-suffix-context.c: New file.
47387         * modules/unicase/empty-suffix-context: New file.
47388
47389         New module 'unicase/u32-prefix-context'.
47390         * lib/unicase/u32-prefix-context.c: New file.
47391         * modules/unicase/u32-prefix-context: New file.
47392
47393         New module 'unicase/u16-prefix-context'.
47394         * lib/unicase/u16-prefix-context.c: New file.
47395         * modules/unicase/u16-prefix-context: New file.
47396
47397         New module 'unicase/u8-prefix-context'.
47398         * lib/unicase/u8-prefix-context.c: New file.
47399         * lib/unicase/u-prefix-context.h: New file.
47400         * lib/unicase/context.h: New file.
47401         * modules/unicase/u8-prefix-context: New file.
47402
47403         New module 'unicase/empty-prefix-context'.
47404         * lib/unicase/empty-prefix-context.c: New file.
47405         * modules/unicase/empty-prefix-context: New file.
47406
47407         New module 'unicase/ignorable'.
47408         * lib/unicase/ignorable.c: New file.
47409         * modules/unicase/ignorable: New file.
47410
47411         New module 'unicase/cased'.
47412         * lib/unicase/caseprop.h: New file.
47413         * lib/unicase/cased.c: New file.
47414         * modules/unicase/cased: New file.
47415
47416         New functions for case mapping of substrings.
47417         * lib/unicase.h (casing_prefix_context_t): New type.
47418         (unicase_empty_prefix_context): New variable.
47419         (u8_casing_prefix_context, u16_casing_prefix_context,
47420         u32_casing_prefix_context, u8_casing_prefixes_context,
47421         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47422         declarations.
47423         (casing_suffix_context_t): New type.
47424         (unicase_empty_suffix_context): New variable.
47425         (u8_casing_suffix_context, u16_casing_suffix_context,
47426         u32_casing_suffix_context, u8_casing_suffixes_context,
47427         u16_casing_suffixes_context, u32_casing_suffixes_context,
47428         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47429         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47430         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47431         declarations.
47432
47433 2009-06-28  Jim Meyering  <meyering@redhat.com>
47434
47435         boostrap: indent only with spaces
47436         * build-aux/bootstrap: Indent only with spaces, never TABs.
47437
47438         bootstrap: split long lines
47439         * build-aux/bootstrap: Keep line length < 80.
47440
47441         bootstrap: sync from coreutils
47442         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47443         just as autoreconf does.  Verify a list of prerequisite
47444         package-name,version-number pairs if defined in bootstrap.conf.
47445         Refer to README-prereq, if prerequisites are not satisfied.
47446
47447 2009-06-27  Eric Blake  <ebb9@byu.net>
47448
47449         tests: add test for bogus NULL definition
47450         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47451         * tests/test-stdlib.c: Likewise.
47452         * tests/test-string.c: Likewise.
47453         * tests/test-locale.c: Likewise.
47454         * tests/test-unistd.c: Likewise.
47455         * modules/stdio-tests (Depends-on): Add verify.
47456         * modules/stdlib-tests (Depends-on): Likewise.
47457         * modules/string-tests (Depends-on): Likewise.
47458         * modules/locale-tests (Depends-on): Likewise.
47459         * modules/unistd-tests (Depends-on): Likewise.
47460
47461 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47462
47463         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47464         self-explaining comment.
47465         * m4/selinux-selinux-h: Update serial.
47466         (gl_LIBSELINUX): New macro, adding a warning for missing development
47467         packages to code extracted from...
47468         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47469         Add warning for missing development packages here, too.
47470
47471 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47472
47473         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47474
47475 2009-06-25  Eric Blake  <ebb9@byu.net>
47476
47477         version-etc: fix regression
47478         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47479         gcc.
47480         (version_etc): Use it, to catch bugs with trailing NULL.
47481         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47482         (version_etc_va): Fix logic bug.
47483         * modules/version-etc-tests: Add test.
47484         * tests/test-version-etc.c: New file.
47485         * tests/test-version-etc.sh: Likewise.
47486
47487 2009-06-25  Sam Steingold  <sds@gnu.org>
47488
47489         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47490         mbtowc declaration.
47491
47492 2009-06-25  Eric Blake  <ebb9@byu.net>
47493
47494         fpurge: migrate into <stdio.h>
47495         * lib/fpurge.h: Delete...
47496         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47497         * lib/fpurge.c (fpurge): Change declaring header.
47498         * modules/fpurge (Files): Drop deleted file.
47499         (Depends-on): Add stdio.
47500         (configure.ac): Set witness.
47501         * modules/stdio (Makefile.am): Support fpurge macros.
47502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47503         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47504         * lib/fflush.c: Update client.
47505         * tests/test-fpurge.c: Likewise.
47506         * NEWS: Mention the change.
47507
47508 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47509
47510         * lib/argp-version-etc.c (program_authors): Add const
47511         qualifier.
47512         * lib/version-etc.c: Fix typos in the comments.
47513         * modules/argp-version-etc: Depends on version-etc.
47514
47515 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47516
47517         argp-version-etc: new module.
47518
47519         * lib/argp-version-etc.c: New file.
47520         * lib/argp-version-etc.h: New file.
47521         * modules/argp-version-etc: New file.
47522         * modules/argp-version-etc-tests: New file.
47523         * tests/test-argp-version-etc.c: New test.
47524         * tests/test-argp-version-etc-1.sh: New test.
47525
47526 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47527
47528         Provide additional interfaces and documentation for version-etc
47529         module.
47530
47531         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47532         interfaces.
47533         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47534         prototypes.
47535
47536 2009-06-24  Bruno Haible  <bruno@clisp.org>
47537
47538         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47539         HAVE_LIB${NAME} macro.
47540         Reported by Sam Steingold <sds@gnu.org>.
47541
47542 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47543
47544         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47545         needed.
47546
47547 2009-06-21  Bruno Haible  <bruno@clisp.org>
47548
47549         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47550         work.
47551         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47552         together with LIB${NAME}, LTLIB${NAME}.
47553         Reported by Sam Steingold <sds@gnu.org>.
47554
47555 2009-06-20  Jim Meyering  <meyering@redhat.com>
47556
47557         tests: make sc_require_test_exit_idiom more generic
47558         * top/maint.mk (Exit_witness_file): New overridable variable.
47559         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47560         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47561
47562 2009-06-19  Jim Meyering  <meyering@redhat.com>
47563
47564         hash: reverse order of src/dst parameters in an internal interface
47565         * lib/hash.c (transfer_entries): Reverse order of parameters to
47566         put DST before SRC.  Adjust callers.
47567
47568         tests: test-hash: avoid wholesale duplication
47569         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47570         Instead, use a loop and add a single conditional.
47571
47572         tests: test-hash: allow seed selection via a command line argument
47573         * tests/test-hash.c (get_seed): New function.
47574         (main): Use it.
47575
47576 2009-06-19  Eric Blake  <ebb9@byu.net>
47577
47578         hash: avoid memory leak on allocation failure
47579         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47580         failure.  Factor repeated algorithm...
47581         (transfer_entries): ...into new helper routine.
47582         (hash_delete): React to hash_rehash return value.
47583
47584         hash: reduce memory pressure in hash_rehash no-op case
47585         * lib/hash.c (next_prime): Avoid overflow.
47586         (hash_initialize): Factor bucket size computation...
47587         (compute_bucket_size): ...into new helper function.
47588         (hash_rehash): Use new function and open coding to reduce memory
47589         pressure, and avoid a memory leak in USE_OBSTACK code.
47590         Reported by Jim Meyering.
47591
47592 2009-06-18  Eric Blake  <ebb9@byu.net>
47593
47594         hash: make rotation more obvious
47595         * modules/hash (Depends-on): Add bitrotate and stdint.
47596         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47597         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47598         (SIZE_MAX): Rely on headers for definition.
47599         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47600         (raw_hasher): Use rotr_sz.
47601         Suggested by Jim Meyering.
47602
47603         hash: fix memory leak in last patch
47604         * lib/hash.c (hash_rehash): Avoid memory leak.
47605
47606         hash: avoid no-op rehashing
47607         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47608
47609         hash: provide default callback functions
47610         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47611         (hash_initialize): Use them as defaults.
47612         * tests/test-hash.c (main): Test this.
47613
47614         hash: minor optimization
47615         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47616         when possible.
47617         (hash_initialize): Document this promise.
47618         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47619         * tests/test-hash.c (hash_compare_strings): Test this.
47620
47621 2009-06-18  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47624         going to be replaced anyway.
47625
47626 2009-06-18  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47629         in one place.
47630         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47631         be replaced anyway.
47632
47633 2009-06-18  Eric Blake  <ebb9@byu.net>
47634
47635         hash: check for resize before insertion
47636         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47637         threshold before insertion, so that a pathological hash_rehash
47638         that fills every bucket can still trigger another rehash.
47639
47640 2009-06-18  Jim Meyering  <meyering@redhat.com>
47641
47642         hash-tests: add a loop around the small tests
47643         * tests/test-hash.c (main): Repeat small tests with selected
47644         small initial table sizes.
47645
47646 2009-06-17  Eric Blake  <ebb9@byu.net>
47647
47648         hash: minor cleanups
47649         * lib/hash.h (hash_entry): Make opaque, by moving...
47650         * lib/hash.c (hash_entry): ...here.
47651         (hash_insert): Clarify restrictions on what can be inserted.
47652         (hash_get_next): Clarify when it is safe to remove an element
47653         during traversal.
47654         (check_tuning): Skip verification when tuning is known safe.
47655         (hash_initialize): Clarify restrictions on tuning.
47656
47657 2009-06-17  Jim Meyering  <jim@meyering.net>
47658         and Eric Blake  <ebb9@byu.net>
47659
47660         hash-tests: new module
47661         * modules/hash-tests: New file.
47662         * tests/test-hash.c: New file.
47663
47664 2009-06-17  Eric Blake  <ebb9@byu.net>
47665
47666         strstr-simple: document new module
47667         * MODULES.html.sh: Document new module.
47668
47669         strstr, strcasestr: replace on platforms with broken memchr
47670         * modules/strstr: Split into...
47671         * modules/strstr-simple: ...new module that does not care about
47672         performance, but does care about glibc bug.
47673         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47674         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47675         if platform memchr is broken, per Debian bug 521737.
47676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47677         memchr.
47678         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47679         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47680         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47681         * modules/mountlist (Depends-on): Add strstr-simple.
47682         * modules/gen-uni-tables (Depends-on): Likewise.
47683         * modules/argz (Depends-on): Add strstr.
47684
47685 2009-06-17  Bruno Haible  <bruno@clisp.org>
47686
47687         * modules/posix_spawn-internal (Depends-on): Add errno.
47688
47689 2009-06-17  Bruno Haible  <bruno@clisp.org>
47690
47691         Define missing ESTALE on Interix 3.5.
47692         * lib/errno.in.h (ESTALE): Assign a value if missing.
47693         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47695         missing.
47696         * doc/posix-headers/errno.texi: Mention the Interix bug.
47697         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47698
47699 2009-06-15  Eric Blake  <ebb9@byu.net>
47700
47701         memchr, memchr2: add valgrind exception
47702         * lib/memchr.valgrind: New file.
47703         * lib/memchr2.valgrind: New file.
47704         * modules/memchr (Files): Distribute valgrind file.
47705         * modules/memchr2 (Files): Likewise.
47706
47707         docs: memchr is no longer obsolete
47708         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47709         * lib/string.in.h (memchr): Simplify logic.
47710
47711 2009-06-14  Jim Meyering  <meyering@redhat.com>
47712
47713         link-follow: fix the "checking..." message to not mention trailing slash
47714         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47715         never considered trailing slashes.
47716
47717 2009-06-14  Bruno Haible  <bruno@clisp.org>
47718
47719         * m4/memchr.m4: Mention also the bug on IA-64.
47720         * doc/posix-functions/memchr.texi: Likewise.
47721
47722 2009-06-12  Eric Blake  <ebb9@byu.net>
47723
47724         memchr: detect broken x86_64 and alpha implementations
47725         * modules/memchr-tests (Depends-on): Move mmap detection...
47726         * modules/memchr (Depends-on): ...here.
47727         (configure.ac): Set indicator.
47728         * lib/string.in.h (memchr): Declare replacement.
47729         * modules/string (Makefile.am): Trigger replacement.
47730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47731         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47732         bugs.
47733         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47734         * modules/getpagesize (License): Relax license.
47735
47736 2009-06-11  Bruno Haible  <bruno@clisp.org>
47737
47738         * lib/idpriv.h: Add more references.
47739
47740 2009-06-08  Bruno Haible  <bruno@clisp.org>
47741
47742         Tests for module 'idpriv-droptemp'.
47743         * modules/idpriv-droptemp-tests: New file.
47744         * tests/test-idpriv-droptemp.sh: New file.
47745         * tests/test-idpriv-droptemp.su.sh: New file.
47746         * tests/test-idpriv-droptemp.c: New file.
47747
47748         New module 'idpriv-droptemp'.
47749         * lib/idpriv-droptemp.c: New file.
47750         * modules/idpriv-droptemp: New file.
47751
47752 2009-06-08  Bruno Haible  <bruno@clisp.org>
47753
47754         Tests for module 'idpriv-drop'.
47755         * modules/idpriv-drop-tests: New file.
47756         * tests/test-idpriv-drop.sh: New file.
47757         * tests/test-idpriv-drop.su.sh: New file.
47758         * tests/test-idpriv-drop.c: New file.
47759
47760         New module 'idpriv-drop'.
47761         * lib/idpriv.h: New file.
47762         * lib-idpriv-drop.c: New file.
47763         * m4/idpriv.m4: New file.
47764         * modules/idpriv-drop: New file.
47765
47766 2009-06-08  Bruno Haible  <bruno@clisp.org>
47767
47768         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47769         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47770         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47771         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47772         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47773         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47774         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47775
47776 2009-06-08  Eric Blake  <ebb9@byu.net>
47777
47778         test-strstr: use memory fence, when possible
47779         * tests/test-strstr.c (main): Use memory fence, in order to be
47780         more likely to trigger Debian bug 521737.
47781         * modules/strstr-tests (Files): Pull in additional files.
47782
47783         memchr: no longer obsolete, for wider field testing
47784         * modules/memchr (Status, Notice): Delete, this module is no
47785         longer obsolete.
47786         * modules/vasnprintf (Depends-on): Add memchr.
47787
47788 2009-06-07  Jim Meyering  <meyering@redhat.com>
47789
47790         hash: declare some functions with the warn_unused_result attribute
47791         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47792
47793 2009-06-07  Bruno Haible  <bruno@clisp.org>
47794
47795         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47796         Reported by Eric Blake.
47797
47798 2009-06-06  Eric Blake  <ebb9@byu.net>
47799
47800         test-alignof: fix typo with long double
47801         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47802         compiler error.
47803
47804 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47805
47806         Escape non-texinfo { and }s.
47807         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47808         markup error.
47809
47810 2009-06-04  Jim Meyering  <meyering@redhat.com>
47811
47812         gitlog-to-changelog: don't infloop on an empty commit log
47813         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47814         Reported by Boris Petersen <transacid@centerim.org>.
47815
47816 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47817
47818         version-etc: extend for packagers
47819         Add three new configure options, intended for packagers:
47820           --with-packager="packager name"
47821           --with-packager-version="packager-specific version"
47822           --with-packager-bug-reports="packager bug reporting"
47823         An example with coreutils:
47824           $ ./configure \
47825             --with-packager=Gentoo \
47826             --with-packager-bug-report=http://bugs.gentoo.org/ \
47827             --with-packager-version="patchset 1.6"
47828           $ ./src/ls --version | head -n2
47829           ls (GNU coreutils) 7.1-dirty
47830           Packaged by Gentoo (patchset 1.6)
47831         Note that the bug reporting info via --help doesn't show up because
47832         coreutils uses its own custom emit_bug_reporting_address() implementation
47833         in src/system.h.  If it didn't, it'd look like:
47834           $ ./src/ls --help | tail -n4
47835           Report bugs to <bug-coreutils@gnu.org>.
47836           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47837           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47838           General help using GNU software: <http://www.gnu.org/gethelp/>.
47839         * lib/version-etc.c: Print new information, if provided.
47840         * m4/version-etc.m4: New file.
47841         * modules/version-etc (Files): Add m4/version-etc.m4.
47842         (configure.ac): Add gl_VERSION_ETC.
47843
47844 2009-05-31  Bruno Haible  <bruno@clisp.org>
47845
47846         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47847         and 'int64_t'.
47848         * modules/alignof-tests (Dependencies): Add stdint.
47849         Reported by Eric Blake.
47850
47851 2009-05-31  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47854         restriction due to compiler bugs.
47855         Reported by Eric Blake.
47856
47857 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47858             Bruno Haible  <bruno@clisp.org>
47859
47860         Fix test-alignof failure.
47861         * lib/alignof.h (alignof_slot): New macro.
47862         (alignof_type): New macro, with the same semantics as the previous
47863         'alignof'.
47864         (alignof): Alias to alignof_slot.
47865         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47866         check that the results are usable as constant expressions.
47867
47868 2009-05-31  Bruno Haible  <bruno@clisp.org>
47869
47870         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47871         * tests/test-memchr.c (main): Check that memchr does not read past the
47872         first occurrence of the byte.
47873         * tests/test-strstr.c (main): Update comment.
47874         Suggested by Eric Blake.
47875
47876 2009-05-30  Bruno Haible  <bruno@clisp.org>
47877
47878         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47879         detail how to use dumpbin.
47880         Reported by David Byron <dbyron@dbyron.com>.
47881
47882 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47883
47884         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47885
47886 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47887
47888         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47889
47890 2009-05-28  Bruno Haible  <bruno@clisp.org>
47891
47892         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47893         build-aux/ files.
47894
47895 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47896
47897         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47898
47899 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47900
47901         * gnulib-tool (sed_transform_main_lib_file)
47902         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47903         regexps.
47904
47905 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47906
47907         * tests/test-strstr.c: Add another self-test.
47908         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47909         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47910
47911 2009-05-23  Bruno Haible  <bruno@clisp.org>
47912
47913         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47914         change.
47915
47916 2009-05-21  Bruno Haible  <bruno@clisp.org>
47917
47918         Simplify use of mode_t varargs.
47919         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47920         uses 'mode_t' or 'int'.
47921         * lib/openat.c (openat): Likewise.
47922         * lib/open-safer.c (open_safer): Likewise.
47923         * m4/mode_t.m4: New file.
47924         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47925         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47926         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47927         * modules/open (Files): Add m4/mode_t.m4.
47928         * modules/openat (Files): Likewise.
47929         * modules/fcntl-safer (Files): Likewise.
47930         Suggested by Eric Blake.
47931
47932 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47933
47934         * doc/glibc-functions/fallocate.texi: New file.
47935         * doc/gnulib.texi: Include it.
47936
47937 2009-05-21  Eric Blake  <ebb9@byu.net>
47938             Bruno Haible  <bruno@clisp.org>
47939
47940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47941         invocations.
47942         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47943
47944 2009-05-21  Eric Blake  <ebb9@byu.net>
47945             Bruno Haible  <bruno@clisp.org>
47946
47947         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47948         include_next. Fix of 2008-11-20 commit.
47949         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47950         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47951         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47952         NEXT_MATH_H.
47953         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47954         instead of NEXT_MATH_H.
47955
47956 2009-05-21  Bruno Haible  <bruno@clisp.org>
47957
47958         Avoid redefinition warnings for SIZE_MAX.
47959         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47960         Reported by Simon Josefsson.
47961
47962 2009-05-21  Bruno Haible  <bruno@clisp.org>
47963
47964         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47965         AC_CACHE_VAL.
47966
47967 2009-05-20  Bruno Haible  <bruno@clisp.org>
47968
47969         Make zeroptr.h work on mingw.
47970         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47971         mprotect.
47972         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47973         * modules/memchr2-tests (configure.ac): Likewise.
47974         * modules/memcmp-tests (configure.ac): Likewise.
47975         * modules/memmem-tests (configure.ac): Likewise.
47976         * modules/memrchr-tests (configure.ac): Likewise.
47977         Reported by Simon Josefsson.
47978
47979 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47980
47981         * tests/test-glob.c: Include string.h for strcmp prototype.
47982
47983 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47984
47985         * modules/getdelim (Depends-on): Add explicit stdint, although it
47986         was implicitly already pulled in via realloc-posix.
47987         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47988
47989 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47990
47991         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47992         G. Christensen" <tgc@jupiterrise.com>.
47993         * m4/sys_socket_h.m4: Check for sa_family_t.
47994         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47995         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47996         * tests/test-sys_socket.c: Check that sa_family_t works.
47997
47998 2009-05-18  Eric Blake  <ebb9@byu.net>
47999
48000         maint.mk: allow gnulib_dir in VPATH build
48001         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48002
48003 2009-05-15  Jim Meyering  <meyering@redhat.com>
48004
48005         maint.mk: Give gnulib_dir a default definition.
48006         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48007         Thus, most packages no longer need to specify this variable in cfg.mk
48008
48009 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48010
48011         rename.m4: fix typos that would make non-mingw cross-configure fail
48012         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48013
48014 2009-05-13  Eric Blake  <ebb9@byu.net>
48015
48016         mmap-anon: avoid out-of-order autoconf expansion
48017         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48018         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48019         * modules/memchr-tests (Depends-on): Add extensions.
48020         * modules/memchr2-tests (Depends-on): Add extensions.
48021         * modules/memcmp-tests (Depends-on): Add extensions.
48022         * modules/memmem-tests (Depends-on): Add extensions.
48023         * modules/memrchr-tests (Depends-on): Add extensions.
48024
48025 2009-05-13  Bruno Haible  <bruno@clisp.org>
48026
48027         Make some tests ISO C 99 compliant.
48028         * tests/zerosize-ptr.h: New file.
48029         * tests/test-memchr.c: Include zerosize-ptr.h.
48030         (main): Use a zero-size object pointer instead of NULL.
48031         * tests/test-memchr2.c: Include zerosize-ptr.h.
48032         (main): Use a zero-size object pointer instead of NULL.
48033         * tests/test-memcmp.c: Include zerosize-ptr.h.
48034         (main): Use a zero-size object pointer instead of NULL.
48035         * tests/test-memmem.c: Include zerosize-ptr.h.
48036         (main): Use a zero-size object pointer instead of NULL.
48037         * tests/test-memrchr.c: Include zerosize-ptr.h.
48038         (main): Use a zero-size object pointer instead of NULL.
48039         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48040         m4/mmap-anon.m4.
48041         (Depends-on): Add getpagesize.
48042         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48043         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48044         m4/mmap-anon.m4.
48045         (Depends-on): Add getpagesize.
48046         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48047         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48048         m4/mmap-anon.m4.
48049         (Depends-on): Add getpagesize.
48050         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48051         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48052         m4/mmap-anon.m4.
48053         (Depends-on): Add getpagesize.
48054         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48055         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48056         m4/mmap-anon.m4.
48057         (Depends-on): Add getpagesize.
48058         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48059
48060 2009-05-12  Bruno Haible  <bruno@clisp.org>
48061
48062         Tests for module 'alignof'.
48063         * modules/alignof-tests: New file.
48064         * tests/test-alignof.c: New file.
48065
48066 2009-05-12  Bruno Haible  <bruno@clisp.org>
48067
48068         Fix alignof macro.
48069         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48070         vendor compilers that are always correct.
48071
48072 2009-05-12  Bruno Haible  <bruno@clisp.org>
48073
48074         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48075         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48076         not whether its fully works.
48077
48078 2009-05-12  Bruno Haible  <bruno@clisp.org>
48079
48080         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48081
48082 2009-05-12  Jim Meyering  <meyering@redhat.com>
48083
48084         * top/maint.mk: Adjust backslash alignment.
48085
48086 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48087
48088         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48089
48090 2009-05-11  Eric Blake  <ebb9@byu.net>
48091
48092         argp: avoid undefined behavior
48093         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48094         macros.
48095
48096 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48097
48098         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48099         user.name to prevent git commit from complaining.
48100
48101 2009-05-10  Bruno Haible  <bruno@clisp.org>
48102
48103         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48104         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48105         it rewrites every file name only once.
48106         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48107
48108 2009-05-08  Bruno Haible  <bruno@clisp.org>
48109
48110         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48111         instead of 'max'.
48112
48113 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48114
48115         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48116         sockaddr_storage test.
48117
48118 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48119
48120         * modules/sys_socket (Makefile.am): Substitute
48121         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48122         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48123         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48124         * tests/test-sys_socket.c: Check sockaddr_storage.
48125
48126 2009-05-08  Bruno Haible  <bruno@clisp.org>
48127
48128         New module 'alignof'.
48129         * lib/alignof.h: New file.
48130         * modules/alignof: New file.
48131
48132 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48133             Bruno Haible  <bruno@clisp.org>
48134
48135         Fix test-file-has-acl on FreeBSD.
48136         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48137         mask is implicitly added.
48138         * tests/test-file-has-acl.c: Include <signal.h>.
48139         (main): Terminate the test after 5 seconds.
48140         * modules/acl-tests (configure.ac): Check for alarm function.
48141
48142 2009-05-04  Bruno Haible  <bruno@clisp.org>
48143
48144         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48145         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48146         * modules/errno (configure.ac): Drop AC_REQUIRE.
48147         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48148         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48149
48150 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48151
48152         * modules/glob-tests: New module.
48153         * tests/test-glob.c: Add.
48154
48155 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48156
48157         * modules/fnmatch-tests: New module.
48158         * tests/test-fnmatch.c: Add.
48159
48160 2009-05-04  Eric Blake  <ebb9@byu.net>
48161
48162         maint: make the new no-submodule-changes rule VPATH-safe
48163         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48164
48165 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48166             Bruno Haible  <bruno@clisp.org>
48167
48168         acl: Fix infinite loop on FreeBSD.
48169         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48170         of return value from acl_get_entry.
48171         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48172         Likewise.
48173
48174 2009-05-03  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/acl-internal.h (acl_entries): Clarify return value.
48177         * lib/acl_entries.c (acl_entries): Likewise.
48178
48179 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48180
48181         Bug fix in acl module.
48182         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48183
48184 2009-05-03  Bruno Haible  <bruno@clisp.org>
48185
48186         Create gperf-generated file in the source dir, not in the build dir.
48187         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48188         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48189         * modules/unicase/locale-language (unicase/locale-languages.h):
48190         Likewise.
48191         * modules/unicase/special-casing (unicase/special-casing-table.h):
48192         Likewise.
48193         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48194         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48195         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48196         Reported by Ralf Wildenhues.
48197
48198 2009-05-03  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/fnmatch (Description, configure.ac): Taken from
48201         fnmatch-posix.
48202         * modules/fnmatch-posix: Turn into a symbolic reference to the
48203         'fnmatch' module, and deprecate.
48204         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48205
48206 2009-05-03  Bruno Haible  <bruno@clisp.org>
48207
48208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48209         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48210         Reported by Ralf Wildenhues.
48211
48212 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48213
48214         * m4/fnmatch.m4: Fix fnmatch re-define.
48215
48216 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48217
48218         priv-set: new module and tests; adapt write-any-file
48219         * lib/priv-set.c: New file.
48220         * lib/priv-set.h: New file.
48221         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48222         * lib/write-any-file.c: Simplify by using priv-set module.
48223         * m4/priv-set.m4: New file.
48224         * modules/priv-set: New file.
48225         * modules/unlinkdir: Add dependency on priv-set module.
48226         * modules/write-any-file: Likewise.
48227
48228         Tests for module 'priv-set'.
48229         * modules/priv-set-tests: New file.
48230         * tests/test-priv-set.c: New file.
48231
48232 2009-05-03  Jim Meyering  <meyering@redhat.com>
48233             Bruno Haible  <bruno@clisp.org>
48234
48235         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48236         use the converted UTF-8 variant of the name instead.
48237
48238 2009-05-03  Jim Meyering  <meyering@redhat.com>
48239
48240         tests: tighten some getdate tests
48241         * tests/test-getdate.c (main): Tighten tests: require equality,
48242         not just greater than.  Set TZ envvar to UTC0.
48243
48244 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48245
48246         getdate: correctly interpret "next monday" when run on a Monday
48247         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48248         that e.g., "next tues" (when run on a tuesday) results in a date
48249         that is one week in the future, and not today's date.
48250         I.e., add a week when the wday is the same as the current one.
48251         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48252         and earlier by Martin Bernreuther and Jan Minář.
48253         * tests/test-getdate.c (main): Check that "next DAY" is always in
48254         the future and that "last DAY" is always in the past.
48255
48256 2009-05-02  Jim Meyering  <meyering@redhat.com>
48257
48258         build: ensure that a release build fails when a submodule is unclean
48259         * top/maint.mk (no-submodule-changes): New rule.
48260         (alpha beta major): Depend on it.
48261
48262 2009-05-02  Bruno Haible  <bruno@clisp.org>
48263
48264         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48265         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48266         shell variable gl_fnmatch_required to detect which variant is
48267         requested.
48268         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48269         gl_FUNC_FNMATCH_POSIX.
48270         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48271         exclude fnmatch-posix.
48272
48273 2009-05-02  Bruno Haible  <bruno@clisp.org>
48274
48275         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48276         * modules/mbsrtowcs (License): Change to LGPLv2+.
48277         * modules/strnlen1 (License): Likewise.
48278         Reported by Simon Josefsson.
48279
48280 2009-05-02  Bruno Haible  <bruno@clisp.org>
48281
48282         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48283         "cross".
48284         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48285         gnulib-tool was called with option --source-base=lib.
48286
48287 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48288
48289         Use automake *-local hooks without commands, for extensibility.
48290         * modules/localcharset (Makefile.am): Rename install-exec-local
48291         rule to install-exec-localcharset, and make it a prerequisite of
48292         install-exec-local.  Likewise, rename the uninstall-local rule to
48293         uninstall-localcharset, and make it a prerequisite of the former.
48294
48295 2009-05-01  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48298         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48299         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48301         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48302         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48303         m4/locale-zh.m4, m4/codeset.m4.
48304
48305         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48306         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48307         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48308         m4/locale-zh.m4.
48309
48310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48311         REPLACE_WCRTOMB if mbstate_t must be replaced.
48312         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48313         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48314
48315 2009-05-01  Bruno Haible  <bruno@clisp.org>
48316
48317         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48318         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48319         dngettext, dcngettext, textdomain, bindtextdomain,
48320         bind_textdomain_codeset): Undefine before redefining.
48321
48322 2009-04-30  Bruno Haible  <bruno@clisp.org>
48323
48324         Fix bug introduced on 2009-04-25.
48325         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48326         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48327         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48328         is defined.
48329         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48330         is defined.
48331         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48332         is defined.
48333         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48334
48335 2009-04-28  Bruno Haible  <bruno@clisp.org>
48336
48337         Comment tweaks.
48338         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48339         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48340         * lib/unicase.h (u*_casexfrm): Likewise.
48341         Reported by Paolo Bonzini.
48342
48343 2009-04-28  Bruno Haible  <bruno@clisp.org>
48344
48345         Fix a compilation error.
48346         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48347         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48348         Reported by Jim Meyering.
48349
48350 2009-04-27  Bruno Haible  <bruno@clisp.org>
48351
48352         New module 'libunistring'.
48353         * modules/libunistring: New file.
48354         * m4/libunistring.m4: New file.
48355         * MODULES.html.sh (Unicode string functions): Add it.
48356
48357 2009-04-27  Eric Blake  <ebb9@byu.net>
48358
48359         maint.mk: allow package-specific header to provide <config.h>
48360         * top/maint.mk (sc_require_config_h): New variable.
48361         (sc_require_config_h, sc_require_config_h_first): Use it.
48362
48363 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48364
48365         * top/maint.mk (sc_avoid_if_before_free): Except
48366         useless-if-before-free script.
48367
48368 2009-04-27  Eric Blake  <ebb9@byu.net>
48369
48370         maintainer-makefile: depend on all required helper scripts
48371         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48372         useless-if-before-free.
48373         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48374         version, rather than assuming gnulib checkout is available.
48375         Reported by Simen Josefsson.
48376
48377 2009-04-26  Bruno Haible  <bruno@clisp.org>
48378
48379         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48380         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48381         "../" or "..".
48382
48383 2009-04-26  Bruno Haible  <bruno@clisp.org>
48384
48385         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48386         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48387         AC_LIB_HAVE_LINKFLAGS.
48388
48389 2009-04-26  Bruno Haible  <bruno@clisp.org>
48390
48391         Simplify calling convention of u*_conv_from_encoding.
48392         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48393         u32_conv_from_encoding): Expect a resultbuf argument and return the
48394         result directly as a pointer.
48395         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48396         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48397         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48398         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48399         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48400         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48401         Update.
48402         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48403         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48404         * lib/vasnprintf.c (VASNPRINTF): Update.
48405         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48406         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48407         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48408         * NEWS: Mention the change.
48409
48410 2009-04-26  Bruno Haible  <bruno@clisp.org>
48411
48412         Simplify calling convention of u*_conv_to_encoding.
48413         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48414         u32_conv_to_encoding): Expect a resultbuf argument and return the
48415         result directly as a pointer.
48416         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48417         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48418         freeing scaled_offsets if mem_iconveha failed.
48419         * lib/unicase/u-casexfrm.h (FUNC): Update.
48420         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48421         * lib/vasnprintf.c (VASNPRINTF): Update.
48422         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48423         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48424         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48425         * NEWS: Mention the change.
48426
48427 2009-04-26  Bruno Haible  <bruno@clisp.org>
48428
48429         Avoid test failures on AIX and OSF/1.
48430         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48431         malloc(0).
48432         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48433         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48434         Likewise.
48435         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48436         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48437         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48438         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48439         * doc/posix-functions/malloc.texi: Document the portability problem
48440         related to malloc(0).
48441
48442 2009-04-26  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48445         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48446         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48447
48448 2009-04-25  Bruno Haible  <bruno@clisp.org>
48449
48450         Avoid link error when creating a namespace clean library.
48451         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48452         as macro with arguments if already defined as an alias.
48453         * lib/signbitf.c (gl_signbitf): Don't undefine.
48454         * lib/signbitd.c (gl_signbitd): Don't undefine.
48455         * lib/signbitl.c (gl_signbitl): Don't undefine.
48456
48457 2009-04-25  Jim Meyering  <meyering@redhat.com>
48458
48459         vc-list-files: fix another quoting bug
48460         * build-aux/vc-list-files: Avoid sed backslash expansion
48461         of pathological directory names.
48462
48463 2009-04-25  Eric Blake  <ebb9@byu.net>
48464
48465         vc-list-files: fix shell quoting error
48466         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48467         timestamp.
48468
48469 2009-04-25  Jim Meyering  <meyering@redhat.com>
48470
48471         vc-list-files: restore lost functionality with subdir argument
48472         * build-aux/vc-list-files: When given a non-"." sub-directory
48473         argument, substitute the $dir/ prefix back onto each resulting name.
48474         Otherwise, coreutils' root_tests check would fail.
48475
48476 2009-04-24  Eric Blake  <ebb9@byu.net>
48477
48478         vc-list-files: ignore git symlinks
48479         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48480         than ls-files, to ignore git symlinks.
48481
48482         maint.mk: import improvements from m4
48483         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48484         (move_if_change): Delete unused macro.
48485         (news-date-check, vc-diff-check): Support VPATH builds.
48486         (announcement): Likewise.  Split --bootstrap-tools list...
48487         (boostrap-tools): ...into separate list, which can be overridden
48488         in cfg.mk.
48489         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48490         requiring dependency on useless-if-before-free module.
48491         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48492         Support VPATH builds.
48493
48494 2009-04-24  Jim Meyering  <meyering@redhat.com>
48495
48496         maint.mk: remove coreutils-specific rules and variables
48497         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48498         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48499         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48500
48501         maint.mk: remove obsolete rule
48502         * top/maint.mk (rel-check): Remove rule.
48503         (WGET, WGETFLAGS): Remove now-unused variables.
48504
48505 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48506
48507         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48508         consistency.
48509
48510         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48511         '$(PATH_SEPARATOR)' instead of ':'.
48512
48513 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48514
48515         * lib/getopt1.c (main): Use 'const' for static array.
48516
48517 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48518
48519         * top/maint.mk: Sync with coreutils.
48520         * NEWS: Explain incompatibilities.
48521
48522 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48523             Bruno Haible  <bruno@clisp.org>
48524
48525         Fix cross-compilation results.
48526         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48527         statement, as third argument of AC_TRY_RUN.
48528         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48529         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48530         Likewise.
48531         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48532         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48533         Likewise.
48534         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48535         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48536         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48537
48538 2009-04-20  Bruno Haible  <bruno@clisp.org>
48539
48540         Avoid test failure on mingw.
48541         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48542
48543 2009-04-20  Bruno Haible  <bruno@clisp.org>
48544
48545         Avoid compilation error on mingw.
48546         * modules/localename-tests (Depends-on): Add locale.
48547
48548 2009-04-19  Bruno Haible  <bruno@clisp.org>
48549
48550         Support for building a shared library on Windows platforms.
48551         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48552         (main): Test the presence of UNINORM_NFC here.
48553         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48554         (main): Test the presence of UNINORM_NFD here.
48555         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48556         (main): Test the presence of UNINORM_NFKC here.
48557         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48558         (main): Test the presence of UNINORM_NFKD here.
48559
48560 2009-04-19  Bruno Haible  <bruno@clisp.org>
48561
48562         Avoid a compiler warning.
48563         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48564         Change type of variable 'sequence'.
48565
48566 2009-04-19  Bruno Haible  <bruno@clisp.org>
48567
48568         * modules/configmake (Makefile.am): When the contents of configmake.h
48569         does not change, arrange to preserve its modification time.
48570
48571 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48572
48573         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48574         gettext domain.
48575
48576 2009-04-16  Jim Meyering  <meyering@redhat.com>
48577
48578         useless-if-before-free: improve conversion code
48579         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48580         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48581
48582 2009-04-14  Bruno Haible  <bruno@clisp.org>
48583
48584         * modules/fcntl (Depends-on): Add extensions.
48585         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48586
48587 2009-04-12  Ben Pfaff  <blp@gnu.org>
48588
48589         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48590         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48591
48592 2009-03-20  Ben Pfaff  <blp@gnu.org>
48593
48594         Make rename replace existing destinations on Windows.
48595         * m4/rename.m4: Add test for Mingw.
48596         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48597         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48598         * doc/posix-functions/rename.texi: Document.
48599
48600 2009-04-10  Bruno Haible  <bruno@clisp.org>
48601
48602         New include file "iconveh.h".
48603         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48604         * lib/striconveh.h: Include it.
48605         (enum iconv_ilseq_handler): Remove definition.
48606         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48607         striconveh.h.
48608         * lib/striconveha.c: Include striconveh.h.
48609         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48610         * modules/striconveh (Files): Add lib/iconveh.h.
48611         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48612         lib/striconveh.h.
48613
48614 2009-04-10  Bruno Haible  <bruno@clisp.org>
48615
48616         * lib/uniconv.h: Update comment.
48617
48618 2009-04-10  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48621         always.
48622         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48623         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48624         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48625         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48626         "unistring-notinline.h", so that the function gets defined always.
48627         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48628         * lib/unistr/u8-uctomb.c: Likewise.
48629         * lib/unistr/u16-mbtouc.c: Likewise.
48630         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48631         * lib/unistr/u16-uctomb.c: Likewise.
48632         * lib/unistr/u32-mbtouc.c: Likewise.
48633         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48634         * lib/unistr/u32-uctomb.c: Likewise.
48635
48636 2009-04-10  Bruno Haible  <bruno@clisp.org>
48637
48638         Mark 'utime' obsolete.
48639         * modules/utime (Status, Notice): New sections.
48640         Suggested by Jim Meyering.
48641
48642         Fix cross-compile guess for utime test.
48643         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48644         autoconf.
48645         * doc/posix-functions/utime.texi: Give more precisions.
48646         Reported by Jan <ipif@ymail.com>.
48647
48648 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48649
48650         filevercmp: correct today's change
48651         * lib/filevercmp.c: Also handle coreutils' test inputs.
48652         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48653
48654         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48655         for reporting it.
48656         * lib/filevercmp.c: Special handle for "", "." and "..".
48657         * tests/test-filevercmp.c: Enlarge the set suite.
48658
48659 2009-04-07  Jim Meyering  <meyering@redhat.com>
48660
48661         useless-if-before-free: show how to remove braced useless free, too
48662         * build-aux/useless-if-before-free: still only in a comment, though.
48663
48664 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48665
48666         maint.mk: import changes to syntax-check macros from coreutils
48667         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48668         Use them in the relevant macros.
48669
48670 2009-04-06  Bruno Haible  <bruno@clisp.org>
48671
48672         Fix unportable use of bit-fields.
48673         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48674         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48675         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48676
48677 2009-04-06  Bruno Haible  <bruno@clisp.org>
48678
48679         Avoid test failures on AIX and OSF/1.
48680         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48681         that malloc(0) = NULL.
48682         * tests/unicase/test-u8-tolower.c (check): Likewise.
48683         * tests/unicase/test-u8-totitle.c (check): Likewise.
48684         * tests/unicase/test-u8-toupper.c (check): Likewise.
48685         * tests/unicase/test-u16-casefold.c (check): Likewise.
48686         * tests/unicase/test-u16-tolower.c (check): Likewise.
48687         * tests/unicase/test-u16-totitle.c (check): Likewise.
48688         * tests/unicase/test-u16-toupper.c (check): Likewise.
48689         * tests/unicase/test-u32-casefold.c (check): Likewise.
48690         * tests/unicase/test-u32-tolower.c (check): Likewise.
48691         * tests/unicase/test-u32-totitle.c (check): Likewise.
48692         * tests/unicase/test-u32-toupper.c (check): Likewise.
48693         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48694         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48695         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48696         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48697         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48698         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48699         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48700         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48701         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48702         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48703         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48704         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48705
48706 2009-04-05  Bruno Haible  <bruno@clisp.org>
48707
48708         Work around an autoconf limitation.
48709         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48710         comment line if it would be longer than 3 KB.
48711
48712 2009-04-05  Bruno Haible  <bruno@clisp.org>
48713
48714         Avoid test failure with libiconv-1.13.
48715         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48716         of the expected test results.
48717
48718 2009-04-05  Bruno Haible  <bruno@clisp.org>
48719
48720         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48721         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48722         that it should be installed.
48723
48724 2009-04-05  Bruno Haible  <bruno@clisp.org>
48725
48726         * gnulib-tool: New option --copy-file.
48727         (func_usage): Document it.
48728         (func_dest_tmpfilename): Moved out of func_import.
48729         (func_add_file, func_update_file): New functions, extracted from
48730         func_import.
48731         (func_import): Update.
48732
48733 2009-04-05  Karl Berry  <karl@gnu.org>
48734
48735         * README: prominently mention gnulib-tool.
48736         Rearrange sections so getting the code is near the top.
48737
48738 2009-04-05  Bruno Haible  <bruno@clisp.org>
48739
48740         * lib/unicase.h: Mention u*_cmp2.
48741         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48742         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48743         * lib/unicase/ulc-casecmp.c: Likewise.
48744         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48745         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48746         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48747         unistr/u8-cmp.
48748         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48749         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48750         unistr/u16-cmp.
48751         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48752         unistr/u32-cmp.
48753
48754         * lib/uninorm.h: Mention u*_cmp2.
48755         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48756         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48757         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48758         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48759         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48760         unistr/u8-cmp.
48761         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48762         unistr/u16-cmp.
48763         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48764         unistr/u32-cmp.
48765
48766         New module 'unistr/u32-cmp2'.
48767         * lib/unistr/u32-cmp2.c: New file.
48768         * modules/unistr/u32-cmp2: New file.
48769
48770         New module 'unistr/u16-cmp2'.
48771         * lib/unistr/u16-cmp2.c: New file.
48772         * modules/unistr/u16-cmp2: New file.
48773
48774         New module 'unistr/u8-cmp2'.
48775         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48776         * lib/unistr/u8-cmp2.c: New file.
48777         * lib/unistr/u-cmp2.h: New file.
48778         * modules/unistr/u8-cmp2: New file.
48779
48780 2009-04-05  Bruno Haible  <bruno@clisp.org>
48781
48782         * lib/unictype.h (uc_property_is_valid): New macro.
48783         * tests/unictype/test-pr_byname.c (main): Use it.
48784
48785         * lib/unistr.h: Doc fixes.
48786         * lib/uniconv.h: Doc fixes.
48787         * lib/unictype.h: Doc fixes.
48788
48789 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48790
48791         Port coreutils 7.2 to Solaris 8.
48792
48793         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48794         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48795         for Solaris 8.  This is a bit of a hack, as it means it's the
48796         caller's responsibility to add -lnsl if needed, but most likely it
48797         won't be needed since only getaddrinfo uses this and getaddrinfo
48798         isn't needed on Solaris 8.
48799
48800         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48801         problem to Solaris 8 encountered with coreutils 7.2, which
48802         resulted in a message "fnmatch.c:292: warning: passing argument 4
48803         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48804         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48805
48806 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48807
48808         * m4/ld-version-script.m4: Add FIXME comment.
48809
48810 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48811
48812         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48813         SOVERSION variable.
48814
48815 2009-04-02  Bruno Haible  <bruno@clisp.org>
48816
48817         * Makefile (info, html, dvi, pdf): Combine the rules.
48818         Suggested by Jim Meyering.
48819
48820 2009-04-01  Bruno Haible  <bruno@clisp.org>
48821
48822         * Makefile (info, html, dvi, pdf): New targets.
48823         Reported by Reuben Thomas <rrt@sc3d.org>.
48824
48825 2009-04-01  Bruno Haible  <bruno@clisp.org>
48826
48827         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48828         can be put into PATH.
48829         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48830
48831 2009-04-01  Bruno Haible  <bruno@clisp.org>
48832
48833         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48834
48835 2009-04-01  Bruno Haible  <bruno@clisp.org>
48836
48837         Rename module 'visibility'.
48838         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48839         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48840         * doc/gnulib.texi: Update.
48841         * MODULES.html.sh (Misc): Update.
48842         * NEWS: Mention the change.
48843
48844 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48845
48846         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48847         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48848         Eric Blake <ebb9@byu.net> for review.
48849         * MODULES.html.sh: Add lib-msvc-compat.
48850         * doc/gnulib.texi: Link to new section.
48851         * m4/ld-output-def.m4: New file.
48852         * doc/ld-output-def.texi: New file.
48853
48854 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48855
48856         Rename ld-version-script to lib-symbol-versions.  Suggested by
48857         Bruno Haible <bruno@clisp.org>.
48858         * modules/ld-version-script: Renamed to lib-symbol-versions.
48859         * doc/ld-version-script.texi: Fix module name.
48860         * MODULES.html.sh: Add lib-symbol-versions.
48861
48862 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48863
48864         * modules/u64-tests: New file.
48865         * tests/test-u64.c: New file.
48866
48867 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48868
48869         * MODULES.html.sh: Mention u64.
48870         * modules/u64: New module.
48871         * modules/crypto/sha512: Depend on u64 module instead of providing
48872         u64.h.
48873
48874 2009-03-27  Eric Blake  <ebb9@byu.net>
48875
48876         test-strerror: make debugging EAI_SYSTEM easier
48877         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48878         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48879         failure was EAI_SYSTEM.
48880
48881 2009-03-25  Bruno Haible  <bruno@clisp.org>
48882
48883         Fix a problem with --enable-relocatable on Solaris 7.
48884         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48885         since 2008-02-24.
48886
48887 2009-03-25  Eric Blake  <ebb9@byu.net>
48888
48889         test-sockets: avoid gcc warning
48890         * tests/test-sockets.c (main): Silence compiler warning.
48891
48892 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48893
48894         New modules nproc, pthread, contributed by Glen Lenker.
48895
48896         * MODULES.html.sh: Add pthread, nproc.
48897         * lib/nproc.c: New file.
48898         * lib/nproc.h: New file.
48899         * lib/pthread.in.h: New file.
48900         * m4/pthread.m4: New file.
48901         * modules/nproc: New file.
48902         * modules/pthread: New file.
48903
48904 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48905
48906         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48907         New variable.
48908
48909 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48910
48911         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48912         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48913         * tests/test-filevercmp.c: Add tests for backup suffixes.
48914
48915 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48916
48917         * modules/stdlib (Depends-on): Add stdint, needed when defining
48918         struct random_data on, for example, HP-UX 10.20.  Reported by
48919         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48920
48921 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48922
48923         * lib/readline.c (readline): Call fflush on stdout after printing
48924         prompt.
48925
48926 2009-03-20  Bruno Haible  <bruno@clisp.org>
48927
48928         Remove dependency from 'close' module to -lws2_32 on native Windows.
48929         * lib/close-hook.h: New file.
48930         * lib/close-hook.c: New file.
48931         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48932         w32sock.h.
48933         (_gl_close_fd_maybe_socket): Remove function.
48934         (rpl_close): Invoke execute_all_close_hooks instead of
48935         _gl_close_fd_maybe_socket.
48936         * lib/sockets.c: Include close-hook.h, w32sock.h.
48937         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48938         (close_sockets_hook): New variable.
48939         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48940         (gl_sockets_cleanup): Unregister it.
48941         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48942         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48943         * modules/close-hook: New file.
48944         * modules/close (Files): Remove lib/w32sock.h.
48945         (Depends-on): Add close-hook.
48946         (Link): Remove section.
48947         * modules/sockets (Files): Add lib/w32sock.h.
48948         (Depends-on): Add close-hook.
48949         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48950         invocation.
48951         * NEWS: Mention that LIB_CLOSE is gone.
48952
48953 2009-03-23  Eric Blake  <ebb9@byu.net>
48954
48955         signal-tests: test previous patch
48956         * tests/test-signal.c: New file.
48957         * modules/signal-tests: Likewise.
48958
48959         signal.h: always support 'volatile sig_atomic_t'
48960         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48961         (gl_SIGNAL_H_DEFAULTS): Add a default.
48962         * modules/signal (Makefile.am): Substitute if needed.
48963         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48964         users can blindly add volatile.
48965         * doc/posix-headers/signal.texi (signal.h): Document it.
48966         Reported by Matthew Woehlke.
48967
48968 2009-03-23  Jim Meyering  <meyering@redhat.com>
48969
48970         pathmax: PATH_MAX: use pathconf only when available
48971         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48972         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48973         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48974         This avoids a link failure in a PSP cross-compilation environment
48975         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48976
48977         * lib/vasnprintf.c (divide): Fix typo in comment.
48978
48979 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48980
48981         * gnulib-tool (func_filter_filelist): Fix comment.
48982
48983 2009-03-20  Bruno Haible  <bruno@clisp.org>
48984
48985         Make sockets.h self-contained.
48986         * lib/sockets.c: Include sockets.h first.
48987         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48988
48989 2009-03-19  Eric Blake  <ebb9@byu.net>
48990
48991         doc: mention more functions added in cygwin 1.7.0
48992         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48993         addition.
48994         * doc/posix-functions/log2f.texi: Likewise.
48995
48996 2009-03-19  Jim Meyering  <meyering@redhat.com>
48997
48998         fsusage: avoid syntax error due to statement-before-declaration
48999         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49000         after all declarations.  Reported by Matthew Woehlke in
49001         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49002
49003 2009-03-18  Eric Blake  <ebb9@byu.net>
49004
49005         build-aux/compile: sync from automake
49006         * build-aux/compile: New file, from automake.
49007         * config/srclist.txt: Mention build-aux/compile.
49008
49009 2009-03-17  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/git-merge-changelog.c: Fix typo in comment.
49012         Reported by Reuben Thomas <rrt@sc3d.org>.
49013
49014 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49015
49016         * m4/regex.m4: update and improve help for
49017         --without-included-regex.
49018
49019 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49020
49021         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49022         failure on missing include files.
49023
49024 2009-03-17  Eric Blake  <ebb9@byu.net>
49025
49026         doc: mention more functions added in cygwin 1.7.0
49027         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49028         addition.
49029         * doc/posix-functions/fwscanf.texi: Likewise.
49030         * doc/posix-functions/swprintf.texi: Likewise.
49031         * doc/posix-functions/swscanf.texi: Likewise.
49032         * doc/posix-functions/vfwprintf.texi: Likewise.
49033         * doc/posix-functions/vfwscanf.texi: Likewise.
49034         * doc/posix-functions/vswprintf.texi: Likewise.
49035         * doc/posix-functions/vswscanf.texi: Likewise.
49036         * doc/posix-functions/vwprintf.texi: Likewise.
49037         * doc/posix-functions/vwscanf.texi: Likewise.
49038         * doc/posix-functions/wcscasecmp.texi: Likewise.
49039         * doc/posix-functions/wcsdup.texi: Likewise.
49040         * doc/posix-functions/wcsftime.texi: Likewise.
49041         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49042         * doc/posix-functions/wprintf.texi: Likewise.
49043         * doc/posix-functions/wscanf.texi: Likewise.
49044         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49045
49046 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49047
49048         maint.mk: really add $(AM_MAKEFLAGS)
49049         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49050         was inadvertently omitted in the last commit.
49051         Spotted by Bruno Haible.
49052
49053         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49054         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49055         $(AM_MAKEFLAGS)' rather than plain `make'.
49056
49057         gnulib-tool: execute $MAKE not make
49058         * gnulib-tool: Default $MAKE to 'make'.
49059         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49060         than make.  Initialize $MAKE in the do-autobuild script.
49061
49062         gnulib-tool: use $MAKE not make in generated files
49063         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49064         make, in generated files.  Initialize $MAKE in the do-autobuild
49065         script.
49066
49067         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49068
49069         GNUmakefile: disable parallelism only for multiple, recursive targets
49070         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49071         additions in the Makefile.
49072         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49073         by Automake.
49074         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49075         are listed on the command line and at least one of them is
49076         listed in $(ALL_RECURSIVE_TARGETS).
49077
49078 2009-03-14  Bruno Haible  <bruno@clisp.org>
49079
49080         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49081         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49082         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49083         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49084         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49085         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49086         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49087         unistr/u8-uctomb.
49088         * modules/unistr/u8-strchr (Depends-on): Likewise.
49089         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49090         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49091         unistr/u16-uctomb.
49092         * modules/unistr/u16-strchr (Depends-on): Likewise.
49093         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49094
49095 2009-03-12  Bruno Haible  <bruno@clisp.org>
49096
49097         Work around select() bug on Interix 3.5.
49098         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49099         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49100         * m4/select.m4: New file.
49101         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49102         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49103         * modules/select (Files): Add m4/select.m4.
49104         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49105         * modules/nanosleep (Depends-on): Add select.
49106         * modules/poll (Depends-on): Likewise.
49107         * doc/posix-functions/select.texi: Mention the Interix bug.
49108         Reported by Markus Duft <mduft@gentoo.org>.
49109
49110         * lib/select.c: Renamed from lib/winsock-select.c.
49111         * modules/select (Files): Add lib/select.c, remove
49112         lib/winsock-select.c.
49113         (configure.ac): Update.
49114
49115 2009-03-12  Jim Meyering  <meyering@redhat.com>
49116
49117         avoid gcc warnings about unused macro definitions
49118         * lib/readtokens.c (STREQ): Remove unused definition.
49119         * lib/xmalloc.c (SIZE_MAX): Likewise.
49120         * lib/openat-die.c (N_): Likewise.
49121         * lib/mountlist.c (SIZE_MAX): Remove definition.
49122         Instead, include <stdint.h>.
49123         * lib/readutmp.c: Likewise.
49124         * modules/readutmp (Depends-on): Add stdint.
49125         * modules/mountlist (Depends-on): Add stdint.
49126         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49127
49128 2009-03-10  Bruno Haible  <bruno@clisp.org>
49129
49130         Tests for module 'mbmemcasecoll'.
49131         * modules/mbmemcasecoll-tests: New file.
49132         * tests/test-mbmemcasecoll1.sh: New file.
49133         * tests/test-mbmemcasecoll2.sh: New file.
49134         * tests/test-mbmemcasecoll3.sh: New file.
49135         * tests/test-mbmemcasecoll.c: New file.
49136
49137         New module 'mbmemcasecoll'.
49138         * lib/mbmemcasecoll.h: New file.
49139         * lib/mbmemcasecoll.c: New file.
49140         * modules/mbmemcasecoll: New file.
49141
49142         * tests/test-mbmemcasecmp.h: New file, extracted from
49143         tests/test-mbmemcasecmp.c.
49144         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49145         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49146         (main): Update.
49147         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49148
49149 2009-03-09  Bruno Haible  <bruno@clisp.org>
49150
49151         Tests for module 'mbmemcasecmp'.
49152         * modules/mbmemcasecmp-tests: New file.
49153         * tests/test-mbmemcasecmp1.sh: New file.
49154         * tests/test-mbmemcasecmp2.sh: New file.
49155         * tests/test-mbmemcasecmp3.sh: New file.
49156         * tests/test-mbmemcasecmp.c: New file.
49157
49158         New module 'mbmemcasecmp'.
49159         * lib/mbmemcasecmp.h: New file.
49160         * lib/mbmemcasecmp.c: New file.
49161         * modules/mbmemcasecmp: New file.
49162
49163 2009-03-09  Bruno Haible  <bruno@clisp.org>
49164
49165         Tests for module 'unicase/ulc-casecoll'.
49166         * modules/unicase/ulc-casecoll-tests: New file.
49167         * tests/unicase/test-ulc-casecoll1.sh: New file.
49168         * tests/unicase/test-ulc-casecoll2.sh: New file.
49169         * tests/unicase/test-ulc-casecoll.c: New file.
49170
49171         New module 'unicase/ulc-casecoll'.
49172         * lib/unicase.h (ulc_casecoll): New declaration.
49173         * lib/unicase/ulc-casecoll.c: New file.
49174         * modules/unicase/ulc-casecoll: New file.
49175
49176         New module 'unicase/ulc-casexfrm'.
49177         * lib/unicase.h (ulc_casexfrm): New declaration.
49178         * lib/unicase/ulc-casexfrm.c: New file.
49179         * modules/unicase/ulc-casexfrm: New file.
49180
49181 2009-03-09  Bruno Haible  <bruno@clisp.org>
49182
49183         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49184         invocations.
49185
49186         * m4/mbscasecmp.m4: Remove file.
49187         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49188         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49189
49190         * m4/mbscasestr.m4: Remove file.
49191         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49192         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49193
49194         * m4/mbschr.m4: Remove file.
49195         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49196         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49197
49198         * m4/mbscspn.m4: Remove file.
49199         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49200         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49201
49202         * m4/mbslen.m4: Remove file.
49203         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49204         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49205
49206         * m4/mbsncasecmp.m4: Remove file.
49207         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49208         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49209
49210         * m4/mbsnlen.m4: Remove file.
49211         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49212         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49213
49214         * m4/mbspbrk.m4: Remove file.
49215         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49216         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49217
49218         * m4/mbspcasecmp.m4: Remove file.
49219         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49220         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49221
49222         * m4/mbsrchr.m4: Remove file.
49223         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49224         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49225
49226         * m4/mbssep.m4: Remove file.
49227         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49228         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49229
49230         * m4/mbsspn.m4: Remove file.
49231         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49232         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49233
49234         * m4/mbsstr.m4: Remove file.
49235         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49236         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49237
49238         * m4/mbstok_r.m4: Remove file.
49239         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49240         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49241
49242         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49243
49244         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49245         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49246
49247         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49248
49249 2009-03-08  Bruno Haible  <bruno@clisp.org>
49250
49251         Tests for module 'unicase/ulc-casecmp'.
49252         * modules/unicase/ulc-casecmp-tests: New file.
49253         * tests/unicase/test-ulc-casecmp1.sh: New file.
49254         * tests/unicase/test-ulc-casecmp2.sh: New file.
49255         * tests/unicase/test-ulc-casecmp.c: New file.
49256
49257         New module 'unicase/ulc-casecmp'.
49258         * lib/unicase.h (ulc_casecmp): New declaration.
49259         * lib/unicase/ulc-casecmp.c: New file.
49260         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49261         'const SRC_UNIT *'.
49262         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49263         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49264         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49265         * modules/unicase/ulc-casecmp: New file.
49266
49267         Tests for module 'unicase/u32-is-cased'.
49268         * modules/unicase/u32-is-cased-tests: New file.
49269         * tests/unicase/test-u32-is-cased.c: New file.
49270
49271         Tests for module 'unicase/u16-is-cased'.
49272         * modules/unicase/u16-is-cased-tests: New file.
49273         * tests/unicase/test-u16-is-cased.c: New file.
49274
49275         Tests for module 'unicase/u8-is-cased'.
49276         * modules/unicase/u8-is-cased-tests: New file.
49277         * tests/unicase/test-u8-is-cased.c: New file.
49278         * tests/unicase/test-is-cased.h: New file.
49279
49280         New module 'unicase/u32-is-cased'.
49281         * lib/unicase/u32-is-cased.c: New file.
49282         * modules/unicase/u32-is-cased: New file.
49283
49284         New module 'unicase/u16-is-cased'.
49285         * lib/unicase/u16-is-cased.c: New file.
49286         * modules/unicase/u16-is-cased: New file.
49287
49288         New module 'unicase/u8-is-cased'.
49289         * lib/unicase/u8-is-cased.c: New file.
49290         * lib/unicase/u-is-cased.h: New file.
49291         * modules/unicase/u8-is-cased: New file.
49292
49293         Tests for module 'unicase/u32-is-casefolded'.
49294         * modules/unicase/u32-is-casefolded-tests: New file.
49295         * tests/unicase/test-u32-is-casefolded.c: New file.
49296
49297         Tests for module 'unicase/u16-is-casefolded'.
49298         * modules/unicase/u16-is-casefolded-tests: New file.
49299         * tests/unicase/test-u16-is-casefolded.c: New file.
49300
49301         Tests for module 'unicase/u8-is-casefolded'.
49302         * modules/unicase/u8-is-casefolded-tests: New file.
49303         * tests/unicase/test-u8-is-casefolded.c: New file.
49304         * tests/unicase/test-is-casefolded.h: New file.
49305
49306         New module 'unicase/u32-is-casefolded'.
49307         * lib/unicase/u32-is-casefolded.c: New file.
49308         * modules/unicase/u32-is-casefolded: New file.
49309
49310         New module 'unicase/u16-is-casefolded'.
49311         * lib/unicase/u16-is-casefolded.c: New file.
49312         * modules/unicase/u16-is-casefolded: New file.
49313
49314         New module 'unicase/u8-is-casefolded'.
49315         * lib/unicase/u8-is-casefolded.c: New file.
49316         * modules/unicase/u8-is-casefolded: New file.
49317
49318         Tests for module 'unicase/u32-is-titlecase'.
49319         * modules/unicase/u32-is-titlecase-tests: New file.
49320         * tests/unicase/test-u32-is-titlecase.c: New file.
49321
49322         Tests for module 'unicase/u16-is-titlecase'.
49323         * modules/unicase/u16-is-titlecase-tests: New file.
49324         * tests/unicase/test-u16-is-titlecase.c: New file.
49325
49326         Tests for module 'unicase/u8-is-titlecase'.
49327         * modules/unicase/u8-is-titlecase-tests: New file.
49328         * tests/unicase/test-u8-is-titlecase.c: New file.
49329         * tests/unicase/test-is-titlecase.h: New file.
49330
49331         New module 'unicase/u32-is-titlecase'.
49332         * lib/unicase/u32-is-titlecase.c: New file.
49333         * modules/unicase/u32-is-titlecase: New file.
49334
49335         New module 'unicase/u16-is-titlecase'.
49336         * lib/unicase/u16-is-titlecase.c: New file.
49337         * modules/unicase/u16-is-titlecase: New file.
49338
49339         New module 'unicase/u8-is-titlecase'.
49340         * lib/unicase/u8-is-titlecase.c: New file.
49341         * modules/unicase/u8-is-titlecase: New file.
49342
49343         Tests for module 'unicase/u32-is-lowercase'.
49344         * modules/unicase/u32-is-lowercase-tests: New file.
49345         * tests/unicase/test-u32-is-lowercase.c: New file.
49346
49347         Tests for module 'unicase/u16-is-lowercase'.
49348         * modules/unicase/u16-is-lowercase-tests: New file.
49349         * tests/unicase/test-u16-is-lowercase.c: New file.
49350
49351         Tests for module 'unicase/u8-is-lowercase'.
49352         * modules/unicase/u8-is-lowercase-tests: New file.
49353         * tests/unicase/test-u8-is-lowercase.c: New file.
49354         * tests/unicase/test-is-lowercase.h: New file.
49355
49356         New module 'unicase/u32-is-lowercase'.
49357         * lib/unicase/u32-is-lowercase.c: New file.
49358         * modules/unicase/u32-is-lowercase: New file.
49359
49360         New module 'unicase/u16-is-lowercase'.
49361         * lib/unicase/u16-is-lowercase.c: New file.
49362         * modules/unicase/u16-is-lowercase: New file.
49363
49364         New module 'unicase/u8-is-lowercase'.
49365         * lib/unicase/u8-is-lowercase.c: New file.
49366         * modules/unicase/u8-is-lowercase: New file.
49367
49368         Tests for module 'unicase/u32-is-uppercase'.
49369         * modules/unicase/u32-is-uppercase-tests: New file.
49370         * tests/unicase/test-u32-is-uppercase.c: New file.
49371
49372         Tests for module 'unicase/u16-is-uppercase'.
49373         * modules/unicase/u16-is-uppercase-tests: New file.
49374         * tests/unicase/test-u16-is-uppercase.c: New file.
49375
49376         Tests for module 'unicase/u8-is-uppercase'.
49377         * modules/unicase/u8-is-uppercase-tests: New file.
49378         * tests/unicase/test-u8-is-uppercase.c: New file.
49379         * tests/unicase/test-is-uppercase.h: New file.
49380
49381         New module 'unicase/u32-is-uppercase'.
49382         * lib/unicase/u32-is-uppercase.c: New file.
49383         * modules/unicase/u32-is-uppercase: New file.
49384
49385         New module 'unicase/u16-is-uppercase'.
49386         * lib/unicase/u16-is-uppercase.c: New file.
49387         * modules/unicase/u16-is-uppercase: New file.
49388
49389         New module 'unicase/u8-is-uppercase'.
49390         * lib/unicase/u8-is-uppercase.c: New file.
49391         * modules/unicase/u8-is-uppercase: New file.
49392
49393         New module 'unicase/u32-is-invariant'.
49394         * lib/unicase/u32-is-invariant.c: New file.
49395         * modules/unicase/u32-is-invariant: New file.
49396
49397         New module 'unicase/u16-is-invariant'.
49398         * lib/unicase/u16-is-invariant.c: New file.
49399         * modules/unicase/u16-is-invariant: New file.
49400
49401         New module 'unicase/u8-is-invariant'.
49402         * lib/unicase/u8-is-invariant.c: New file.
49403         * lib/unicase/invariant.h: New file.
49404         * lib/unicase/u-is-invariant.h: New file.
49405         * modules/unicase/u8-is-invariant: New file.
49406
49407         Tests for module 'unicase/u32-casecoll'.
49408         * modules/unicase/u32-casecoll-tests: New file.
49409         * tests/unicase/test-u32-casecoll.c: New file.
49410
49411         Tests for module 'unicase/u16-casecoll'.
49412         * modules/unicase/u16-casecoll-tests: New file.
49413         * tests/unicase/test-u16-casecoll.c: New file.
49414
49415         Tests for module 'unicase/u8-casecoll'.
49416         * modules/unicase/u8-casecoll-tests: New file.
49417         * tests/unicase/test-u8-casecoll.c: New file.
49418
49419         New module 'unicase/u32-casecoll'.
49420         * lib/unicase/u32-casecoll.c: New file.
49421         * modules/unicase/u32-casecoll: New file.
49422
49423         New module 'unicase/u16-casecoll'.
49424         * lib/unicase/u16-casecoll.c: New file.
49425         * modules/unicase/u16-casecoll: New file.
49426
49427         New module 'unicase/u8-casecoll'.
49428         * lib/unicase/u8-casecoll.c: New file.
49429         * lib/unicase/u-casecoll.h: New file.
49430         * modules/unicase/u8-casecoll: New file.
49431
49432         New module 'unicase/u32-casexfrm'.
49433         * lib/unicase/u32-casexfrm.c: New file.
49434         * modules/unicase/u32-casexfrm: New file.
49435
49436         New module 'unicase/u16-casexfrm'.
49437         * lib/unicase/u16-casexfrm.c: New file.
49438         * modules/unicase/u16-casexfrm: New file.
49439
49440         New module 'unicase/u8-casexfrm'.
49441         * lib/unicase/u8-casexfrm.c: New file.
49442         * lib/unicase/u-casexfrm.h: New file.
49443         * modules/unicase/u8-casexfrm: New file.
49444
49445         Tests for module 'unicase/u32-casecmp'.
49446         * modules/unicase/u32-casecmp-tests: New file.
49447         * tests/unicase/test-u32-casecmp.c: New file.
49448
49449         Tests for module 'unicase/u16-casecmp'.
49450         * modules/unicase/u16-casecmp-tests: New file.
49451         * tests/unicase/test-u16-casecmp.c: New file.
49452
49453         Tests for module 'unicase/u8-casecmp'.
49454         * modules/unicase/u8-casecmp-tests: New file.
49455         * tests/unicase/test-u8-casecmp.c: New file.
49456         * tests/unicase/test-casecmp.h: New file.
49457
49458         New module 'unicase/u32-casecmp'.
49459         * lib/unicase/u32-casecmp.c: New file.
49460         * modules/unicase/u32-casecmp: New file.
49461
49462         New module 'unicase/u16-casecmp'.
49463         * lib/unicase/u16-casecmp.c: New file.
49464         * modules/unicase/u16-casecmp: New file.
49465
49466         New module 'unicase/u8-casecmp'.
49467         * lib/unicase/u8-casecmp.c: New file.
49468         * lib/unicase/u-casecmp.h: New file.
49469         * modules/unicase/u8-casecmp: New file.
49470
49471         Tests for module 'unicase/u32-casefold'.
49472         * modules/unicase/u32-casefold-tests: New file.
49473         * tests/unicase/test-u32-casefold.c: New file.
49474
49475         Tests for module 'unicase/u16-casefold'.
49476         * modules/unicase/u16-casefold-tests: New file.
49477         * tests/unicase/test-u16-casefold.c: New file.
49478
49479         Tests for module 'unicase/u8-casefold'.
49480         * modules/unicase/u8-casefold-tests: New file.
49481         * tests/unicase/test-u8-casefold.c: New file.
49482
49483         New module 'unicase/u32-casefold'.
49484         * lib/unicase/u32-casefold.c: New file.
49485         * modules/unicase/u32-casefold: New file.
49486
49487         New module 'unicase/u16-casefold'.
49488         * lib/unicase/u16-casefold.c: New file.
49489         * modules/unicase/u16-casefold: New file.
49490
49491         New module 'unicase/u8-casefold'.
49492         * lib/unicase/u8-casefold.c: New file.
49493         * lib/unicase/u-casefold.h: New file.
49494         * modules/unicase/u8-casefold: New file.
49495
49496         New module 'unicase/tocasefold'.
49497         * lib/unicase/casefold.h: New file.
49498         * lib/unicase/tocasefold.c: New file.
49499         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49500         * modules/unicase/tocasefold: New file.
49501
49502         Tests for module 'unicase/u32-totitle'.
49503         * modules/unicase/u32-totitle-tests: New file.
49504         * tests/unicase/test-u32-totitle.c: New file.
49505
49506         Tests for module 'unicase/u16-totitle'.
49507         * modules/unicase/u16-totitle-tests: New file.
49508         * tests/unicase/test-u16-totitle.c: New file.
49509
49510         Tests for module 'unicase/u8-totitle'.
49511         * modules/unicase/u8-totitle-tests: New file.
49512         * tests/unicase/test-u8-totitle.c: New file.
49513
49514         New module 'unicase/u32-totitle'.
49515         * lib/unicase/u32-totitle.c: New file.
49516         * modules/unicase/u32-totitle: New file.
49517
49518         New module 'unicase/u16-totitle'.
49519         * lib/unicase/u16-totitle.c: New file.
49520         * modules/unicase/u16-totitle: New file.
49521
49522         New module 'unicase/u8-totitle'.
49523         * lib/unicase/u8-totitle.c: New file.
49524         * lib/unicase/u-totitle.h: New file.
49525         * modules/unicase/u8-totitle: New file.
49526
49527         Tests for module 'unicase/u32-tolower'.
49528         * modules/unicase/u32-tolower-tests: New file.
49529         * tests/unicase/test-u32-tolower.c: New file.
49530
49531         Tests for module 'unicase/u16-tolower'.
49532         * modules/unicase/u16-tolower-tests: New file.
49533         * tests/unicase/test-u16-tolower.c: New file.
49534
49535         Tests for module 'unicase/u8-tolower'.
49536         * modules/unicase/u8-tolower-tests: New file.
49537         * tests/unicase/test-u8-tolower.c: New file.
49538
49539         New module 'unicase/u32-tolower'.
49540         * lib/unicase/u32-tolower.c: New file.
49541         * modules/unicase/u32-tolower: New file.
49542
49543         New module 'unicase/u16-tolower'.
49544         * lib/unicase/u16-tolower.c: New file.
49545         * modules/unicase/u16-tolower: New file.
49546
49547         New module 'unicase/u8-tolower'.
49548         * lib/unicase/u8-tolower.c: New file.
49549         * modules/unicase/u8-tolower: New file.
49550
49551         Tests for module 'unicase/u32-toupper'.
49552         * modules/unicase/u32-toupper-tests: New file.
49553         * tests/unicase/test-u32-toupper.c: New file.
49554
49555         Tests for module 'unicase/u16-toupper'.
49556         * modules/unicase/u16-toupper-tests: New file.
49557         * tests/unicase/test-u16-toupper.c: New file.
49558
49559         Tests for module 'unicase/u8-toupper'.
49560         * modules/unicase/u8-toupper-tests: New file.
49561         * tests/unicase/test-u8-toupper.c: New file.
49562
49563         New module 'unicase/u32-toupper'.
49564         * lib/unicase/u32-toupper.c: New file.
49565         * modules/unicase/u32-toupper: New file.
49566
49567         New module 'unicase/u16-toupper'.
49568         * lib/unicase/u16-toupper.c: New file.
49569         * modules/unicase/u16-toupper: New file.
49570
49571         New module 'unicase/u8-toupper'.
49572         * lib/unicase/u8-toupper.c: New file.
49573         * modules/unicase/u8-toupper: New file.
49574
49575         New module 'unicase/u32-casemap'.
49576         * lib/unicase/u32-casemap.c: New file.
49577         * modules/unicase/u32-casemap: New file.
49578
49579         New module 'unicase/u16-casemap'.
49580         * lib/unicase/u16-casemap.c: New file.
49581         * modules/unicase/u16-casemap: New file.
49582
49583         New module 'unicase/u8-casemap'.
49584         * lib/unicase/unicasemap.h: New file.
49585         * lib/unicase/u8-casemap.c: New file.
49586         * lib/unicase/u-casemap.h: New file.
49587         * modules/unicase/u8-casemap: New file.
49588
49589         New module 'unicase/special-casing'.
49590         * lib/unicase/special-casing.h: New file.
49591         * lib/unicase/special-casing.c: New file.
49592         * lib/unicase/special-casing-table.gperf: New file, generated by
49593         gen-uni-tables.c.
49594         * modules/unicase/special-casing: New file.
49595
49596         Tests for module 'unicase/locale-language'.
49597         * modules/unicase/locale-language-tests: New file.
49598         * tests/unicase/test-locale-language.sh: New file.
49599         * tests/unicase/test-locale-language.c: New file.
49600
49601         New module 'unicase/locale-language'.
49602         * lib/unicase/locale-language.c: New file.
49603         * lib/unicase/locale-languages.gperf: New file.
49604         * modules/unicase/locale-language: New file.
49605
49606         Generate more tables for case conversion and case folding.
49607         * lib/gen-uni-tables.c (SCC_*): New enum items.
49608         (struct special_casing_rule): New type.
49609         (casing_rules, num_casing_rules, allocated_casing_rules): New
49610         variables.
49611         (add_casing_rule, fill_casing_rules): New functions.
49612         (struct casefold_rule): New type.
49613         (casefolding_rules, num_casefolding_rules,
49614         allocated_casefolding_rules): New variables.
49615         (fill_casefolding_rules): New function.
49616         (unicode_casefold): New variable.
49617         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49618         sort_casing_rules, output_casing_rules): New functions.
49619         (main): Accept to more arguments: SpecialCasing.txt and
49620         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49621         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49622         Output mapping for casefolding.
49623
49624         * lib/unicase.h: Include stdbool.h, uninorm.h.
49625         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49626         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49627         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49628         arguments.
49629         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49630         resultp arguments.
49631         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49632         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49633         resultp arguments.
49634         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49635         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49636         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49637         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49638         declarations.
49639         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49640
49641 2009-03-08  Bruno Haible  <bruno@clisp.org>
49642
49643         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49644         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49645         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49646         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49647
49648 2009-03-07  Bruno Haible  <bruno@clisp.org>
49649
49650         Adjust u*_normcmp, u*_normcoll API.
49651         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49652         u16_normcoll, u32_normcoll): Change failure conventions.
49653         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49654         errno and return -1.
49655         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49656
49657 2009-03-07  Bruno Haible  <bruno@clisp.org>
49658
49659         Tests for module 'uninorm/u32-normcoll'.
49660         * modules/uninorm/u32-normcoll-tests: New file.
49661         * tests/uninorm/test-u32-normcoll.c: New file.
49662
49663         Tests for module 'uninorm/u16-normcoll'.
49664         * modules/uninorm/u16-normcoll-tests: New file.
49665         * tests/uninorm/test-u16-normcoll.c: New file.
49666
49667         Tests for module 'uninorm/u8-normcoll'.
49668         * modules/uninorm/u8-normcoll-tests: New file.
49669         * tests/uninorm/test-u8-normcoll.c: New file.
49670
49671 2009-03-07  Bruno Haible  <bruno@clisp.org>
49672
49673         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49674         tests/uninorm/test-u32-normcmp.c.
49675         * tests/uninorm/test-u32-normcmp.c: Include it.
49676         (test_nonascii): New function, extracted from main. Add some more
49677         tests.
49678         (main): Invoke test_ascii and test_nonascii.
49679         * modules/uninorm/u32-normcmp-tests (Files): Add
49680         tests/uninorm/test-u32-normcmp.h.
49681         (Depends-on): Remove uninorm/u32-normcmp.
49682
49683         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49684         tests/uninorm/test-u16-normcmp.c.
49685         * tests/uninorm/test-u16-normcmp.c: Include it.
49686         (test_nonascii): New function, extracted from main. Add some more
49687         tests.
49688         (main): Invoke test_ascii and test_nonascii.
49689         * modules/uninorm/u16-normcmp-tests (Files): Add
49690         tests/uninorm/test-u16-normcmp.h.
49691         (Depends-on): Remove uninorm/u16-normcmp.
49692
49693         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49694         tests/uninorm/test-u8-normcmp.c.
49695         * tests/uninorm/test-u8-normcmp.c: Include it.
49696         (test_nonascii): New function, extracted from main. Add some more
49697         tests.
49698         (main): Invoke test_ascii and test_nonascii.
49699         * modules/uninorm/u8-normcmp-tests (Files): Add
49700         tests/uninorm/test-u8-normcmp.h.
49701         (Depends-on): Remove uninorm/u8-normcmp.
49702
49703 2009-03-07  Bruno Haible  <bruno@clisp.org>
49704
49705         New module 'uninorm/u32-normcoll'.
49706         * lib/uninorm/u32-normcoll.c: New file.
49707         * modules/uninorm/u32-normcoll: New file.
49708
49709         New module 'uninorm/u16-normcoll'.
49710         * lib/uninorm/u16-normcoll.c: New file.
49711         * modules/uninorm/u16-normcoll: New file.
49712
49713         New module 'uninorm/u8-normcoll'.
49714         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49715         declarations.
49716         * lib/uninorm/u8-normcoll.c: New file.
49717         * lib/uninorm/u-normcoll.h: New file.
49718         * modules/uninorm/u8-normcoll: New file.
49719
49720         New module 'uninorm/u32-normxfrm'.
49721         * lib/uninorm/u32-normxfrm.c: New file.
49722         * modules/uninorm/u32-normxfrm: New file.
49723
49724         New module 'uninorm/u16-normxfrm'.
49725         * lib/uninorm/u16-normxfrm.c: New file.
49726         * modules/uninorm/u16-normxfrm: New file.
49727
49728         New module 'uninorm/u8-normxfrm'.
49729         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49730         declarations.
49731         * lib/uninorm/u8-normxfrm.c: New file.
49732         * lib/uninorm/u-normxfrm.h: New file.
49733         * modules/uninorm/u8-normxfrm: New file.
49734
49735 2009-03-07  Bruno Haible  <bruno@clisp.org>
49736
49737         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49738         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49739         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49740
49741 2009-03-07  Bruno Haible  <bruno@clisp.org>
49742
49743         New module 'memxfrm'.
49744         * lib/memxfrm.h: New file.
49745         * lib/memxfrm.c: New file.
49746         * modules/memxfrm: New file.
49747
49748 2009-03-07  Bruno Haible  <bruno@clisp.org>
49749
49750         New module 'memcmp2'.
49751         * lib/memcmp2.h: New file.
49752         * lib/memcmp2.c: New file.
49753         * modules/memcmp2: New file.
49754
49755 2009-03-07  Bruno Haible  <bruno@clisp.org>
49756
49757         Tests for module 'uninorm/decomposing-form'.
49758         * modules/uninorm/decomposing-form-tests: New file.
49759         * tests/uninorm/test-decomposing-form.c: New file.
49760
49761         New module 'uninorm/decomposing-form'.
49762         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49763         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49764         Add 'decomposing_variant' field.
49765         * lib/uninorm/decomposing-form.c: New file.
49766         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49767         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49768         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49769         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49770         * modules/uninorm/decomposing-form: New file.
49771         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49772         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49773
49774 2009-03-07  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49777         strings.
49778
49779 2009-03-06  Bruno Haible  <bruno@clisp.org>
49780
49781         Tests for module 'uninorm/u32-normcmp'.
49782         * tests/uninorm/test-u32-normcmp.c: New file.
49783         * modules/uninorm/u32-normcmp-tests: New file.
49784
49785         Tests for module 'uninorm/u16-normcmp'.
49786         * tests/uninorm/test-u16-normcmp.c: New file.
49787         * modules/uninorm/u16-normcmp-tests: New file.
49788
49789         Tests for module 'uninorm/u8-normcmp'.
49790         * tests/uninorm/test-u8-normcmp.c: New file.
49791         * modules/uninorm/u8-normcmp-tests: New file.
49792
49793         New module 'uninorm/u32-normcmp'.
49794         * lib/uninorm/u32-normcmp.c: New file.
49795         * modules/uninorm/u32-normcmp: New file.
49796
49797         New module 'uninorm/u16-normcmp'.
49798         * lib/uninorm/u16-normcmp.c: New file.
49799         * modules/uninorm/u16-normcmp: New file.
49800
49801         New module 'uninorm/u8-normcmp'.
49802         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49803         declarations.
49804         * lib/uninorm/u8-normcmp.c: New file.
49805         * lib/uninorm/u-normcmp.h: New file.
49806         * modules/uninorm/u8-normcmp: New file.
49807
49808 2009-03-06  Bruno Haible  <bruno@clisp.org>
49809
49810         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49811         Reported by Eric Blake.
49812
49813 2009-03-06  Eric Blake  <ebb9@byu.net>
49814             Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49817         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49818         condition.
49819         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49820         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49821         condition.
49822         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49823
49824 2009-03-06  Eric Blake  <ebb9@byu.net>
49825
49826         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49827         to avoid compiler warnings.
49828         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49829
49830 2009-03-05  Bruno Haible  <bruno@clisp.org>
49831
49832         * tests/test-ftell.c (main): Disable test beyond end of file on
49833         FreeMiNT.
49834         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49835
49836 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49837
49838         * lib/filevercmp.c: Move hidden files up in ordering.
49839         * tests/test-filevercmp.c: Add tests for hidden files.
49840
49841 2009-03-04  Bruno Haible  <bruno@clisp.org>
49842
49843         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49844         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49845         AM_CFLAGS.
49846         Reported by Simon Josefsson.
49847
49848 2009-03-03  Bruno Haible  <bruno@clisp.org>
49849
49850         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49851         Reported by Simon Josefsson.
49852
49853         * doc/ld-version-script.texi: Update node reference.
49854
49855 2009-03-03  Bruno Haible  <bruno@clisp.org>
49856
49857         * modules/visibility (License): Change to 'unlimited'.
49858         Suggested by Simon Josefsson.
49859
49860 2009-03-03  Jim Meyering  <meyering@redhat.com>
49861
49862         unlinkdir: cannot_unlink_dir may modify process state
49863         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49864         it's neither thread-safe nor appropriate for use in a library.
49865
49866 2009-03-03  Eric Blake  <ebb9@byu.net>
49867
49868         test-closein: silence test under Darwin
49869         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49870         care if it dies from EPIPE or EBADF.
49871
49872 2009-03-03  Bruno Haible  <bruno@clisp.org>
49873
49874         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49875         earlier.
49876         * doc/visibility.texi: Fix @node and @section.
49877
49878 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49879
49880         * doc/gnulib.texi: Link to sections for ld version script and
49881         visibility.
49882         * doc/visibility.texi: Add @node and @section.
49883         * modules/ld-version-script: New module.
49884         * m4/ld-version-script.m4: New file.
49885         * doc/ld-version-script.texi: New file.
49886
49887 2009-03-02  David Lutterkort  <lutter@redhat.com>
49888
49889         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49891
49892 2009-03-02  Bruno Haible  <bruno@clisp.org>
49893
49894         * doc/visibility.texi: Mention libtool's -export-symbols option.
49895
49896 2009-03-02  Jim Meyering  <meyering@redhat.com>
49897
49898         announce-gen: new option: --no-print-checksums
49899         * build-aux/announce-gen (usage): Describe it.
49900         (print_checksums): Print a newline here, not in the [*] footnote.
49901         (main): Honor it.
49902
49903 2009-03-01  Bruno Haible  <bruno@clisp.org>
49904
49905         Use socklen_t in the native Windows replacements prototypes.
49906         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49907         instead of 'int'.
49908         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49909         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49910         * modules/getsockopt (Depends-on): Add socklen.
49911         * modules/setsockopt (Depends-on): Add socklen.
49912
49913 2009-03-01  Bruno Haible  <bruno@clisp.org>
49914
49915         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49916         least 4.2.
49917
49918 2009-03-01  Eric Blake  <ebb9@byu.net>
49919             Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49922         error messages.
49923         * lib/wait-process.c (wait_subprocess): Omit error message about
49924         deadly signal sent to the child of termsigp != NULL.
49925
49926 2009-03-01  Eric Blake  <ebb9@byu.net>
49927
49928         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49929
49930 2009-03-01  Bruno Haible  <bruno@clisp.org>
49931
49932         Avoid a gcc warning.
49933         * tests/test-sched.c (b): Make global.
49934         Reported by Eric Blake.
49935
49936 2009-01-19  Martin Lambers  <marlam@marlam.de>
49937
49938         Provide POSIX semantics for socket timeout options on W32.
49939         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49940         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49941         * modules/setsockopt: Depend on sys_time module for struct timeval.
49942         * modules/getsockopt: Depend on sys_time module for struct timeval.
49943
49944 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49945
49946         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49947         __USE_GNU, for consistency with netdb.in.h.
49948         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49949
49950 2009-03-01  Bruno Haible  <bruno@clisp.org>
49951
49952         More support for FreeMiNT.
49953         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49954         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49955
49956 2009-03-01  Bruno Haible  <bruno@clisp.org>
49957
49958         More support for FreeMiNT.
49959         * lib/fpurge.c (fpurge): Correct last commit.
49960         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49961
49962 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49963
49964         Fix unportable awk script in vc-list-files.
49965         * build-aux/vc-list-files: In the replacement awk script, use
49966         substr with a second argument of 1, not zero.
49967         Report by Simon Josefsson.
49968
49969 2009-02-28  Bruno Haible  <bruno@clisp.org>
49970
49971         More support for FreeMiNT.
49972         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49973         to FreeMiNT today.
49974         * lib/fwriting.c (fwriting): Likewise.
49975         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49976
49977 2009-02-28  Bruno Haible  <bruno@clisp.org>
49978
49979         * tests/test-freadseek.c (main): Disable test beyond end of file on
49980         FreeMiNT.
49981         * tests/test-ftello.c (main): Likewise.
49982         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49983
49984 2009-02-28  Bruno Haible  <bruno@clisp.org>
49985
49986         Add tentative support for FreeMiNT.
49987         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49988         * lib/fpurge.c (fpurge): Likewise.
49989         * lib/freadable.c (freadable): Likewise.
49990         * lib/freading.c (freading): Likewise.
49991         * lib/freadptr.c (freadptr): Likewise.
49992         * lib/freadseek.c (freadptrinc): Likewise.
49993         * lib/fseeko.c (rpl_fseeko): Likewise.
49994         * lib/fseterr.c (fseterr): Likewise.
49995         * lib/fwritable.c (fwritable): Likewise.
49996         * lib/fwriting.c (fwriting): Likewise.
49997         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49998         Hourihane.
49999         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50000
50001 2009-02-28  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50004         SIGCHLD.
50005         Reported by Jim Meyering.
50006
50007 2009-02-28  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50010         Mention the results of these tests on various platforms.
50011         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50012         order.
50013         * doc/posix-functions/printf.texi: Likewise.
50014         * doc/posix-functions/snprintf.texi: Likewise.
50015         * doc/posix-functions/sprintf.texi: Likewise.
50016         * doc/posix-functions/vfprintf.texi: Likewise.
50017         * doc/posix-functions/vprintf.texi: Likewise.
50018         * doc/posix-functions/vsnprintf.texi: Likewise.
50019         * doc/posix-functions/vsprintf.texi: Likewise.
50020         * doc/glibc-functions/obstack_printf.texi: Likewise.
50021         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50022
50023 2009-02-28  Bruno Haible  <bruno@clisp.org>
50024
50025         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50026         Reported by Loïc Minier <lool@dooz.org>.
50027
50028 2009-02-27  Bruno Haible  <bruno@clisp.org>
50029
50030         * gnulib-tool (func_import): Make the sed expression used to create the
50031         sed script for updating the .gitignore file POSIX compliant.
50032         Reported by Eric Blake.
50033
50034 2009-02-27  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool (sed): Don't alias as "sed --posix".
50037         Reported by Eric Blake.
50038
50039 2009-02-27  Bruno Haible  <bruno@clisp.org>
50040
50041         Avoid test link errors.
50042         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50043         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50044         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50045         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50047
50048 2009-02-27  Bruno Haible  <bruno@clisp.org>
50049
50050         Avoid spurious "(cached)" in configure output.
50051         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50052         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50053         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50054         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50055         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50056         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50057         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50058         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50059         Reported by Eric Blake.
50060
50061 2009-02-27  Eric Blake  <ebb9@byu.net>
50062
50063         printf: fix regression in previous patch
50064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50065
50066 2009-02-27  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50069         value.
50070         * lib/stdint.in.h: Likewise.
50071         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50072
50073 2009-02-27  Eric Blake  <ebb9@byu.net>
50074
50075         doc: mention more functions added in cygwin 1.7.0
50076         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50077         addition.
50078         * doc/posix-functions/open_wmemstream.texi: Likewise.
50079         * doc/posix-functions/wcsnlen.texi: Likewise.
50080         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50081         * doc/posix-functions/wcstod.texi: Likewise.
50082         * doc/posix-functions/wcstof.texi: Likewise.
50083         * doc/posix-functions/wcstoimax.texi: Likewise.
50084         * doc/posix-functions/wcstok.texi: Likewise.
50085         * doc/posix-functions/wcstoumax.texi: Likewise.
50086
50087         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50089         * doc/posix-functions/fprintf.texi: Update.
50090         * doc/posix-functions/printf.texi: Update.
50091         * doc/posix-functions/snprintf.texi: Update.
50092         * doc/posix-functions/sprintf.texi: Update.
50093         * doc/posix-functions/vfprintf.texi: Update.
50094         * doc/posix-functions/vprintf.texi: Update.
50095         * doc/posix-functions/vsnprintf.texi: Update.
50096         * doc/posix-functions/vsprintf.texi: Update.
50097         * doc/glibc-functions/obstack_printf.texi: Update.
50098         * doc/glibc-functions/obstack_vprintf.texi: Update.
50099
50100 2009-02-26  Eric Blake  <ebb9@byu.net>
50101
50102         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50103         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50104         compilation bug by using runtime conversion.
50105         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50106         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50107         * modules/ceill-tests (Files): Use nan.h.
50108         * modules/floorl-tests (Files): Likewise.
50109         * modules/frexpl-tests (Files): Likewise.
50110         * modules/isnanl-tests (Files): Likewise.
50111         * modules/ldexpl-tests (Files): Likewise.
50112         * modules/roundl-tests (Files): Likewise.
50113         * modules/truncl-tests (Files): Likewise.
50114         * tests/test-ceill.c (main): Use a working NaN.
50115         * tests/test-floorl.c (main): Likewise.
50116         * tests/test-frexpl.c (main): Likewise.
50117         * tests/test-isnan.c (test_long_double): Likewise.
50118         * tests/test-isnanl.h (main): Likewise.
50119         * tests/test-ldexpl.h (main): Likewise.
50120         * tests/test-roundl.h (main): Likewise.
50121         * tests/test-truncl.h (main): Likewise.
50122         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50123
50124 2009-02-26  Eric Blake  <ebb9@byu.net>
50125             Bruno Haible  <bruno@clisp.org>
50126
50127         Work around a *printf bug with %ls on Solaris.
50128         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50129         precision is specified, sprintf stops converting the wide string
50130         argument when the number of bytes that have been produced by this
50131         conversion equals or exceeds the precision.
50132         * doc/posix-functions/fprintf.texi: Update.
50133         * doc/posix-functions/printf.texi: Update.
50134         * doc/posix-functions/snprintf.texi: Update.
50135         * doc/posix-functions/sprintf.texi: Update.
50136         * doc/posix-functions/vfprintf.texi: Update.
50137         * doc/posix-functions/vprintf.texi: Update.
50138         * doc/posix-functions/vsnprintf.texi: Update.
50139         * doc/posix-functions/vsprintf.texi: Update.
50140         * doc/glibc-functions/obstack_printf.texi: Update.
50141         * doc/glibc-functions/obstack_vprintf.texi: Update.
50142
50143 2009-02-26  Eric Blake  <ebb9@byu.net>
50144
50145         stdlib: favor compiler check of random.h
50146         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50147         to avoid an ObjC random.h installed by Swarm.
50148
50149 2009-02-26  Bruno Haible  <bruno@clisp.org>
50150
50151         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50152         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50153         Reported by Gary V. Vaughan <gary@gnu.org>.
50154
50155 2009-02-26  Bruno Haible  <bruno@clisp.org>
50156
50157         Fix *printf behaviour regarding the %ls directive.
50158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50159         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50160         NEED_PRINTF_DIRECTIVE_LS.
50161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50162         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50164         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50165         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50166         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50167         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50172         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50176         * doc/posix-functions/fprintf.texi: Update.
50177         * doc/posix-functions/printf.texi: Update.
50178         * doc/posix-functions/snprintf.texi: Update.
50179         * doc/posix-functions/sprintf.texi: Update.
50180         * doc/posix-functions/vfprintf.texi: Update.
50181         * doc/posix-functions/vprintf.texi: Update.
50182         * doc/posix-functions/vsnprintf.texi: Update.
50183         * doc/posix-functions/vsprintf.texi: Update.
50184         * doc/glibc-functions/obstack_printf.texi: Update.
50185         * doc/glibc-functions/obstack_vprintf.texi: Update.
50186         Reported by Eric Blake.
50187
50188 2009-02-25  Bruno Haible  <bruno@clisp.org>
50189
50190         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50191         with known value.
50192         Reported by Gary V. Vaughan <gary@gnu.org>.
50193
50194 2009-02-25  Bruno Haible  <bruno@clisp.org>
50195
50196         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50197         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50198         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50199         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50200         Reported by Gary V. Vaughan <gary@gnu.org>.
50201
50202 2009-02-25  Bruno Haible  <bruno@clisp.org>
50203
50204         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50205         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50206         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50207         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50208         Reported by Gary V. Vaughan <gary@gnu.org>.
50209
50210 2009-02-25  Eric Blake  <ebb9@byu.net>
50211
50212         tests: skip fseek/ftell tests if ungetc is broken
50213         * m4/ungetc.m4: New file.
50214         * modules/fseek-tests: Split test, so ungetc dependency is
50215         separate from rest of test.
50216         * modules/fseeko-tests: Likewise.
50217         * modules/ftell-tests: Likewise.
50218         * modules/ftello-tests: Likewise.
50219         * tests/test-fseek.c (main): Isolate ungetc dependency.
50220         * tests/test-fseeko.c (main): Likewise.
50221         * tests/test-ftell.c (main): Likewise.
50222         * tests/test-ftello.c (main): Likewise.
50223         * tests/test-fseek2.sh: New file.
50224         * tests/test-fseeko2.sh: Likewise.
50225         * tests/test-ftell2.sh: Likewise.
50226         * tests/test-ftello2.sh: Likewise.
50227
50228 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50229
50230         test-getaddrinfo: fix usage of skip return code 77
50231         * tests/test-gettaddrinfo.c: Return skip code 77 only
50232         for first occurrence of skip (4x77 is not 77)
50233
50234 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50235
50236         strtod: avoid C99 decl-after-statement
50237         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50238
50239 2009-02-24  Eric Blake  <ebb9@byu.net>
50240
50241         strtod: detect HP-UX 11.31 bug
50242         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50243         Reported by Gary V. Vaughan.
50244
50245 2009-02-23  Bruno Haible  <bruno@clisp.org>
50246
50247         Fix invalid read past end of memory block.
50248         * lib/vasnprintf.c (DCHAR_SET): Define.
50249         (local_wcslen): Define only when needed.
50250         (local_strnlen, local_wcsnlen): New functions.
50251         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50252         directives that involve a conversion ourselves.
50253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50254         wcsnlen, mbrtowc, wcrtomb.
50255         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50256         * tests/test-vasprintf-posix.c (test_function): Likewise.
50257         * tests/test-snprintf-posix.h (test_function): Likewise.
50258         * tests/test-sprintf-posix.h (test_function): Likewise.
50259         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50260
50261 2009-02-22  Bruno Haible  <bruno@clisp.org>
50262
50263         Implement new clarified decomposition of Hangul syllables.
50264         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50265         of type LTV, return only a pairwise decomposition.
50266         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50267         Likewise.
50268         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50269         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50270         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50271
50272 2009-02-22  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50275         zero-length results and shrink excess allocated memory.
50276         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50277         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50278         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50279         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50280         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50281         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50282         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50283         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50284         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50285         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50286         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50287         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50288
50289 2009-02-21  Bruno Haible  <bruno@clisp.org>
50290
50291         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50292         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50293         spaces after a period. Put a space between a macro name and its
50294         argument list. Trivial rewordings.
50295         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50296         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50297         (main): Return 0 explicitly.
50298
50299 2009-02-21  Bruno Haible  <bruno@clisp.org>
50300
50301         Tests for module 'uninorm/filter'.
50302         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50303         * modules/uninorm/filter-tests: New file.
50304
50305         New module 'uninorm/filter'.
50306         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50307         uninorm_filter_flush, uninorm_filter_free): New declarations.
50308         * lib/uninorm/uninorm-filter.c: New file.
50309         * modules/uninorm/filter: New file.
50310
50311 2009-02-21  Bruno Haible  <bruno@clisp.org>
50312
50313         Tests for module 'uninorm/nfkc'.
50314         * tests/uninorm/test-nfkc.c: New file.
50315         * tests/uninorm/test-u8-nfkc.c: New file.
50316         * tests/uninorm/test-u16-nfkc.c: New file.
50317         * tests/uninorm/test-u32-nfkc.c: New file.
50318         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50319         * tests/uninorm/test-u32-nfkc-big.c: New file.
50320         * modules/uninorm/nfkc-tests: New file.
50321
50322         New module 'uninorm/nfkc'.
50323         * lib/uninorm/nfkc.c: New file.
50324         * modules/uninorm/nfkc: New file.
50325
50326         Tests for module 'uninorm/nfkd'.
50327         * tests/uninorm/test-nfkd.c: New file.
50328         * tests/uninorm/test-u8-nfkd.c: New file.
50329         * tests/uninorm/test-u16-nfkd.c: New file.
50330         * tests/uninorm/test-u32-nfkd.c: New file.
50331         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50332         * tests/uninorm/test-u32-nfkd-big.c: New file.
50333         * modules/uninorm/nfkd-tests: New file.
50334
50335         New module 'uninorm/nfkd'.
50336         * lib/uninorm/nfkd.c: New file.
50337         * modules/uninorm/nfkd: New file.
50338
50339         Tests for module 'uninorm/nfc'.
50340         * tests/uninorm/test-nfc.c: New file.
50341         * tests/uninorm/test-u8-nfc.c: New file.
50342         * tests/uninorm/test-u16-nfc.c: New file.
50343         * tests/uninorm/test-u32-nfc.c: New file.
50344         * tests/uninorm/test-u32-nfc-big.sh: New file.
50345         * tests/uninorm/test-u32-nfc-big.c: New file.
50346         * modules/uninorm/nfc-tests: New file.
50347
50348         New module 'uninorm/nfc'.
50349         * lib/uninorm/nfc.c: New file.
50350         * modules/uninorm/nfc: New file.
50351
50352         Tests for module 'uninorm/nfd'.
50353         * tests/uninorm/test-nfd.c: New file.
50354         * tests/uninorm/test-u8-nfd.c: New file.
50355         * tests/uninorm/test-u16-nfd.c: New file.
50356         * tests/uninorm/test-u32-nfd.c: New file.
50357         * tests/uninorm/test-u32-nfd-big.sh: New file.
50358         * tests/uninorm/test-u32-nfd-big.c: New file.
50359         * tests/uninorm/test-u32-normalize-big.h: New file.
50360         * tests/uninorm/test-u32-normalize-big.c: New file.
50361         * tests/uninorm/NormalizationTest.txt: New file, created from
50362         Unicode 5.1.0 NormalizationTest.txt.
50363         * modules/uninorm/nfd-tests: New file.
50364
50365         New module 'uninorm/nfd'.
50366         * lib/uninorm/nfd.c: New file.
50367         * modules/uninorm/nfd: New file.
50368
50369         New module 'uninorm/u32-normalize'.
50370         * lib/uninorm/u32-normalize.c: New file.
50371         * modules/uninorm/u32-normalize: New file.
50372
50373         New module 'uninorm/u16-normalize'.
50374         * lib/uninorm/u16-normalize.c: New file.
50375         * modules/uninorm/u16-normalize: New file.
50376
50377         New module 'uninorm/u8-normalize'.
50378         * lib/uninorm/u8-normalize.c: New file.
50379         * lib/uninorm/normalize-internal.h: New file.
50380         * lib/uninorm/u-normalize-internal.h: New file.
50381         * modules/uninorm/u8-normalize: New file.
50382
50383         New module 'uninorm/decompose-internal'.
50384         * lib/uninorm/decompose-internal.c: New file.
50385         * modules/uninorm/decompose-internal: New file.
50386
50387         Tests for module 'uninorm/composition'.
50388         * tests/uninorm/test-composition.c: New file.
50389         * modules/uninorm/composition-tests: New file.
50390
50391         New module 'uninorm/composition'.
50392         * lib/uninorm/composition.c: New file.
50393         * lib/uninorm/composition-table.gperf: New file, generated by
50394         gen-uni-tables.
50395         * modules/uninorm/composition: New file.
50396
50397         Tests for module 'uninorm/compat-decomposition'.
50398         * tests/uninorm/test-compat-decomposition.c: New file.
50399         * modules/uninorm/compat-decomposition-tests: New file.
50400
50401         New module 'uninorm/compat-decomposition'.
50402         * lib/uninorm/decompose-internal.h: New file.
50403         * lib/uninorm/compat-decomposition.c: New file.
50404         * modules/uninorm/compat-decomposition: New file.
50405
50406         Tests for module 'uninorm/canonical-decomposition'.
50407         * tests/uninorm/test-canonical-decomposition.c: New file.
50408         * modules/uninorm/canonical-decomposition-tests: New file.
50409
50410         New module 'uninorm/canonical-decomposition'.
50411         * lib/uninorm/canonical-decomposition.c: New file.
50412         * modules/uninorm/canonical-decomposition: New file.
50413
50414         Tests for module 'uninorm/decomposition'.
50415         * tests/uninorm/test-decomposition.c: New file.
50416         * modules/uninorm/decomposition-tests: New file.
50417
50418         New module 'uninorm/decomposition'.
50419         * lib/uninorm/decomposition.c: New file.
50420         * modules/uninorm/decomposition: New file.
50421
50422         New module 'uninorm/decomposition-table'.
50423         * lib/uninorm/decomposition-table.h: New file.
50424         * lib/uninorm/decomposition-table.c: New file.
50425         * lib/uninorm/decomposition-table1.h: New file, generated by
50426         gen-uni-tables.
50427         * lib/uninorm/decomposition-table2.h: New file, generated by
50428         gen-uni-tables.
50429         * modules/uninorm/decomposition-table: New file.
50430
50431         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50432         (UC_DECOMP_*): New enumeration items.
50433         (get_decomposition): New function.
50434         (struct decomp_table): New type.
50435         (output_decomposition, output_decomposition_tables): New functions.
50436         (unicode_composition_exclusions): New variable.
50437         (fill_composition_exclusions, debug_output_composition_tables): New
50438         functions.
50439         (main): Accept one more argument. Invoke fill_composition_exclusions.
50440         Output decomposition and composition tables.
50441
50442         New module 'uninorm/base'.
50443         * lib/uninorm.h: New file.
50444         * lib/unictype.h: Update comment.
50445         * modules/uninorm/base: New file.
50446
50447 2009-02-21  David Lutterkort  <lutter@redhat.com>
50448
50449         Tests for module 'safe-alloc'.
50450         * tests/test-safe-alloc.c: New file.
50451         * modules/safe-alloc-tests: New file.
50452
50453         New module 'safe-alloc'.
50454         * lib/safe-alloc.h: New file.
50455         * lib/safe-alloc.c: New file.
50456         * m4/safe-alloc.m4: New file.
50457         * modules/safe-alloc: New file.
50458         * doc/safe-alloc.texi: New file.
50459         * doc/gnulib.texi: Include it.
50460         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50461         safe-alloc.
50462
50463 2009-02-18  Bruno Haible  <bruno@clisp.org>
50464
50465         Fix link error on non-glibc systems.
50466         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50467         variable.
50468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50469
50470 2009-02-18  Jim Meyering  <meyering@redhat.com>
50471
50472         fts: avoid used-uninitialized error due to recent change
50473         * lib/fts.c (fts_read): Guard uses of the new member,
50474         parent->fts_n_dirs_remaining, since it's not relevant for
50475         the parent of a directory specified on the command-line.
50476
50477 2009-02-17  James Youngman  <jay@gnu.org>
50478             Bruno Haible  <bruno@clisp.org>
50479
50480         * m4/include_next.m4: Reformulate comment.
50481
50482 2009-02-16  Jim Meyering  <meyering@redhat.com>
50483
50484         fts: add #if guards so that the fts_lgpl module still builds
50485         * lib/fts.c: Guard just-added hash-table-using parts with
50486         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50487         Reported by Simon Josefsson.
50488
50489 2009-02-15  Bruno Haible  <bruno@clisp.org>
50490
50491         * modules/array-mergesort-tests: New file.
50492         * tests/test-array-mergesort.c: New file.
50493
50494         New module 'array-mergesort'.
50495         * modules/array-mergesort: New file.
50496         * lib/array-mergesort.h: New file.
50497
50498 2009-02-15  Bruno Haible  <bruno@clisp.org>
50499
50500         Fix 2009-02-07 commit.
50501         * lib/gen-uni-tables.c (output_predicate, output_category,
50502         output_combclass, output_bidi_category, output_decimal_digit,
50503         output_digit, output_numeric, output_mirror, output_scripts,
50504         output_ident_category, output_simple_mapping): Fix format directives.
50505         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50506
50507 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50508
50509         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50510         fixes are available from IBM.
50511
50512 2009-02-13  Jim Meyering  <meyering@redhat.com>
50513
50514         fts: arrange not to stat non-directories in more cases
50515         This makes GNU find (when it doesn't need to stat each file)
50516         *much* more efficient at traversing reiserfs file systems.
50517         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50518         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50519         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50520         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50521         (leaf_optimization_applies): New function.
50522         (LCO_hash, LCO_compare): New helper functions.
50523         (link_count_optimize_ok): New function.
50524         (fts_stat): Initialize new member (if dir).
50525         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50526         we've just stat'ed a directory.  Skip the stat call when possible.
50527         ---
50528         Note this AFS-related exchange:
50529         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50530         and note find's pioctl call in find/fstype.c.
50531         But that is necessary only if you want to enable the
50532         optimization for AFS, and for now, I don't.
50533
50534         fts: move a function definition "up" (no semantic change)
50535         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50536         "up" to precede upcoming use of a related function.
50537
50538 2009-02-11  Jim Meyering  <meyering@redhat.com>
50539
50540         fts: correct internal computation of nlinks (optimization-related)
50541         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50542         whether the current entry is a directory, so don't test it.
50543
50544 2009-02-10  Bruno Haible  <bruno@clisp.org>
50545
50546         Tests for module 'uniwbrk/ulc-wordbreaks'.
50547         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50548         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50549         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50550
50551         Tests for module 'uniwbrk/u32-wordbreaks'.
50552         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50553         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50554
50555         Tests for module 'uniwbrk/u16-wordbreaks'.
50556         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50557         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50558
50559         Tests for module 'uniwbrk/u8-wordbreaks'.
50560         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50561         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50562
50563 2009-02-10  Bruno Haible  <bruno@clisp.org>
50564
50565         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50566         property.
50567         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50568         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50569         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50570
50571 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50572
50573         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50574         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50575
50576 2009-02-10  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50579         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50580         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50581         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50582         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50583         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50584
50585 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50586
50587         * lib/sockets.h (gl_fd_to_handle): New function.
50588
50589         * tests/test-sockets.c: Call gl_fd_to_handle.
50590
50591 2009-02-09  Bruno Haible  <bruno@clisp.org>
50592
50593         * doc/havelib.texi: Document the conventions on bi-arch systems.
50594
50595 2009-02-08  Bruno Haible  <bruno@clisp.org>
50596
50597         Document the AC_LIB_LINKFLAGS macro.
50598         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50599         * doc/gnulib.texi: Include it.
50600
50601 2009-02-08  Bruno Haible  <bruno@clisp.org>
50602
50603         Fix wrong order of sections, compared to TOC.
50604         * doc/gnulib.texi: Include relocatable-maint.texi after the
50605         "Regular expressions" node, not before.
50606
50607 2009-02-08  Bruno Haible  <bruno@clisp.org>
50608
50609         Tests for module 'unicase/totitle'.
50610         * modules/unicase/totitle-tests: New file.
50611
50612         Tests for module 'unicase/tolower'.
50613         * modules/unicase/tolower-tests: New file.
50614
50615         Tests for module 'unicase/toupper'.
50616         * modules/unicase/toupper-tests: New file.
50617         * tests/unicase/test-mapping-part1.h: New file.
50618         * tests/unicase/test-mapping-part2.h: New file.
50619
50620         New module 'unicase/totitle'.
50621         * modules/unicase/totitle: New file.
50622         * lib/unicase/totitle.c: New file.
50623
50624         New module 'unicase/tolower'.
50625         * modules/unicase/tolower: New file.
50626         * lib/unicase/tolower.c: New file.
50627
50628         New module 'unicase/toupper'.
50629         * modules/unicase/toupper: New file.
50630         * lib/unicase/toupper.c: New file.
50631         * lib/unicase/simple-mapping.h: New file.
50632
50633         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50634         (mapping_table): New structure.
50635         (output_simple_mapping): New function.
50636         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50637         * modules/gen-uni-tables (Description): Update.
50638         * lib/unicase/toupper.h: New file, automatically generated by
50639         gen-uni-tables.
50640         * lib/unicase/tolower.h: New file, automatically generated by
50641         gen-uni-tables.
50642         * lib/unicase/totitle.h: New file, automatically generated by
50643         gen-uni-tables.
50644         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50645         gen-uni-tables.
50646         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50647         gen-uni-tables.
50648         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50649         gen-uni-tables.
50650
50651         New module 'unicase/base'.
50652         * modules/unicase/base: New file.
50653         * lib/unicase.h: New file.
50654
50655 2009-02-08  Bruno Haible  <bruno@clisp.org>
50656
50657         New module 'uniwbrk/ulc-wordbreaks'.
50658         * modules/uniwbrk/ulc-wordbreaks: New file.
50659         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50660
50661         New module 'uniwbrk/u32-wordbreaks'.
50662         * modules/uniwbrk/u32-wordbreaks: New file.
50663         * lib/uniwbrk/u32-wordbreaks.c: New file.
50664
50665         New module 'uniwbrk/u16-wordbreaks'.
50666         * modules/uniwbrk/u16-wordbreaks: New file.
50667         * lib/uniwbrk/u16-wordbreaks.c: New file.
50668
50669         New module 'uniwbrk/u8-wordbreaks'.
50670         * modules/uniwbrk/u8-wordbreaks: New file.
50671         * lib/uniwbrk/u8-wordbreaks.c: New file.
50672         * lib/uniwbrk/u-wordbreaks.h: New file.
50673
50674         New module 'uniwbrk/table'.
50675         * modules/uniwbrk/table: New file.
50676         * lib/uniwbrk/wbrktable.h: New file.
50677         * lib/uniwbrk/wbrktable.c: New file.
50678
50679         New module 'uniwbrk/wordbreak-property'.
50680         * modules/uniwbrk/wordbreak-property: New file.
50681         * lib/uniwbrk/wordbreak-property.c: New file.
50682
50683         * lib/gen-uni-tables.c (WBP_*): New enum items.
50684         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50685         (unicode_org_wbp): New variable.
50686         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50687         New functions.
50688         (wbp_table): New structure.
50689         (output_wbp, output_wbrk_tables): New functions.
50690         (main): Accept additional argument. Invoke fill_org_wbp,
50691         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50692         output_wbrk_tables.
50693         * modules/gen-uni-tables (Description): Update.
50694         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50695         gen-uni-tables.
50696
50697         New module 'uniwbrk/base'.
50698         * modules/uniwbrk/base: New file.
50699         * lib/uniwbrk.h: New file.
50700
50701 2009-02-08  Bruno Haible  <bruno@clisp.org>
50702
50703         Update to Unicode 5.1.0.
50704         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50705         U+2185..U+2188.
50706         (is_property_default_ignorable_code_point): Don't include characters
50707         of category Cc or Cs and not-a-characters.
50708         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50709         U+0D79, U+109E, U+109F, U+A60C.
50710         * lib/unictype/bidi_of.h: Regenerated.
50711         * lib/unictype/blocks.h: Regenerated.
50712         * lib/unictype/categ_C.h: Regenerated.
50713         * lib/unictype/categ_Cf.h: Regenerated.
50714         * lib/unictype/categ_Cn.h: Regenerated.
50715         * lib/unictype/categ_L.h: Regenerated.
50716         * lib/unictype/categ_Ll.h: Regenerated.
50717         * lib/unictype/categ_Lm.h: Regenerated.
50718         * lib/unictype/categ_Lo.h: Regenerated.
50719         * lib/unictype/categ_Lu.h: Regenerated.
50720         * lib/unictype/categ_M.h: Regenerated.
50721         * lib/unictype/categ_Mc.h: Regenerated.
50722         * lib/unictype/categ_Me.h: Regenerated.
50723         * lib/unictype/categ_Mn.h: Regenerated.
50724         * lib/unictype/categ_N.h: Regenerated.
50725         * lib/unictype/categ_Nd.h: Regenerated.
50726         * lib/unictype/categ_Nl.h: Regenerated.
50727         * lib/unictype/categ_No.h: Regenerated.
50728         * lib/unictype/categ_P.h: Regenerated.
50729         * lib/unictype/categ_Pd.h: Regenerated.
50730         * lib/unictype/categ_Pe.h: Regenerated.
50731         * lib/unictype/categ_Pf.h: Regenerated.
50732         * lib/unictype/categ_Pi.h: Regenerated.
50733         * lib/unictype/categ_Po.h: Regenerated.
50734         * lib/unictype/categ_Ps.h: Regenerated.
50735         * lib/unictype/categ_S.h: Regenerated.
50736         * lib/unictype/categ_Sk.h: Regenerated.
50737         * lib/unictype/categ_Sm.h: Regenerated.
50738         * lib/unictype/categ_So.h: Regenerated.
50739         * lib/unictype/categ_of.h: Regenerated.
50740         * lib/unictype/combining.h: Regenerated.
50741         * lib/unictype/ctype_alnum.h: Regenerated.
50742         * lib/unictype/ctype_alpha.h: Regenerated.
50743         * lib/unictype/ctype_graph.h: Regenerated.
50744         * lib/unictype/ctype_lower.h: Regenerated.
50745         * lib/unictype/ctype_print.h: Regenerated.
50746         * lib/unictype/ctype_punct.h: Regenerated.
50747         * lib/unictype/ctype_upper.h: Regenerated.
50748         * lib/unictype/decdigit.h: Regenerated.
50749         * lib/unictype/digit.h: Regenerated.
50750         * lib/unictype/mirror.h: Regenerated.
50751         * lib/unictype/numeric.h: Regenerated.
50752         * lib/unictype/pr_alphabetic.h: Regenerated.
50753         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50754         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50755         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50756         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50757         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50758         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50759         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50760         * lib/unictype/pr_combining.h: Regenerated.
50761         * lib/unictype/pr_dash.h: Regenerated.
50762         * lib/unictype/pr_decimal_digit.h: Regenerated.
50763         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50764         * lib/unictype/pr_deprecated.h: Regenerated.
50765         * lib/unictype/pr_diacritic.h: Regenerated.
50766         * lib/unictype/pr_extender.h: Regenerated.
50767         * lib/unictype/pr_format_control.h: Regenerated.
50768         * lib/unictype/pr_grapheme_base.h: Regenerated.
50769         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50770         * lib/unictype/pr_grapheme_link.h: Regenerated.
50771         * lib/unictype/pr_id_continue.h: Regenerated.
50772         * lib/unictype/pr_id_start.h: Regenerated.
50773         * lib/unictype/pr_ideographic.h: Regenerated.
50774         * lib/unictype/pr_ignorable_control.h: Regenerated.
50775         * lib/unictype/pr_lowercase.h: Regenerated.
50776         * lib/unictype/pr_math.h: Regenerated.
50777         * lib/unictype/pr_numeric.h: Regenerated.
50778         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50779         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50780         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50781         * lib/unictype/pr_other_id_continue.h: Regenerated.
50782         * lib/unictype/pr_other_lowercase.h: Regenerated.
50783         * lib/unictype/pr_other_math.h: Regenerated.
50784         * lib/unictype/pr_punctuation.h: Regenerated.
50785         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50786         * lib/unictype/pr_soft_dotted.h: Regenerated.
50787         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50788         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50789         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50790         * lib/unictype/pr_uppercase.h: Regenerated.
50791         * lib/unictype/pr_xid_continue.h: Regenerated.
50792         * lib/unictype/pr_xid_start.h: Regenerated.
50793         * lib/unictype/pr_zero_width.h: Regenerated.
50794         * lib/unictype/scripts.h: Regenerated.
50795         * lib/unictype/scripts_byname.gperf: Regenerated.
50796         * lib/unictype/sy_java_ident.h: Regenerated.
50797         * lib/unilbrk/lbrkprop1.h: Regenerated.
50798         * lib/unilbrk/lbrkprop2.h: Regenerated.
50799         * tests/unictype/test-categ_C.c: Regenerated.
50800         * tests/unictype/test-categ_Cf.c: Regenerated.
50801         * tests/unictype/test-categ_Cn.c: Regenerated.
50802         * tests/unictype/test-categ_L.c: Regenerated.
50803         * tests/unictype/test-categ_Ll.c: Regenerated.
50804         * tests/unictype/test-categ_Lm.c: Regenerated.
50805         * tests/unictype/test-categ_Lo.c: Regenerated.
50806         * tests/unictype/test-categ_Lu.c: Regenerated.
50807         * tests/unictype/test-categ_M.c: Regenerated.
50808         * tests/unictype/test-categ_Mc.c: Regenerated.
50809         * tests/unictype/test-categ_Me.c: Regenerated.
50810         * tests/unictype/test-categ_Mn.c: Regenerated.
50811         * tests/unictype/test-categ_N.c: Regenerated.
50812         * tests/unictype/test-categ_Nd.c: Regenerated.
50813         * tests/unictype/test-categ_Nl.c: Regenerated.
50814         * tests/unictype/test-categ_No.c: Regenerated.
50815         * tests/unictype/test-categ_P.c: Regenerated.
50816         * tests/unictype/test-categ_Pd.c: Regenerated.
50817         * tests/unictype/test-categ_Pe.c: Regenerated.
50818         * tests/unictype/test-categ_Pf.c: Regenerated.
50819         * tests/unictype/test-categ_Pi.c: Regenerated.
50820         * tests/unictype/test-categ_Po.c: Regenerated.
50821         * tests/unictype/test-categ_Ps.c: Regenerated.
50822         * tests/unictype/test-categ_S.c: Regenerated.
50823         * tests/unictype/test-categ_Sk.c: Regenerated.
50824         * tests/unictype/test-categ_Sm.c: Regenerated.
50825         * tests/unictype/test-categ_So.c: Regenerated.
50826         * tests/unictype/test-ctype_alnum.c: Regenerated.
50827         * tests/unictype/test-ctype_alpha.c: Regenerated.
50828         * tests/unictype/test-ctype_graph.c: Regenerated.
50829         * tests/unictype/test-ctype_lower.c: Regenerated.
50830         * tests/unictype/test-ctype_print.c: Regenerated.
50831         * tests/unictype/test-ctype_punct.c: Regenerated.
50832         * tests/unictype/test-ctype_upper.c: Regenerated.
50833         * tests/unictype/test-decdigit.h: Regenerated.
50834         * tests/unictype/test-digit.h: Regenerated.
50835         * tests/unictype/test-numeric.h: Regenerated.
50836         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50837         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50838         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50839         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50840         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50841         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50842         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50843         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50844         * tests/unictype/test-pr_combining.c: Regenerated.
50845         * tests/unictype/test-pr_dash.c: Regenerated.
50846         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50847         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50848         * tests/unictype/test-pr_deprecated.c: Regenerated.
50849         * tests/unictype/test-pr_diacritic.c: Regenerated.
50850         * tests/unictype/test-pr_extender.c: Regenerated.
50851         * tests/unictype/test-pr_format_control.c: Regenerated.
50852         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50853         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50854         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50855         * tests/unictype/test-pr_id_continue.c: Regenerated.
50856         * tests/unictype/test-pr_id_start.c: Regenerated.
50857         * tests/unictype/test-pr_ideographic.c: Regenerated.
50858         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50859         * tests/unictype/test-pr_lowercase.c: Regenerated.
50860         * tests/unictype/test-pr_math.c: Regenerated.
50861         * tests/unictype/test-pr_numeric.c: Regenerated.
50862         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50863         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50864         Regenerated.
50865         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50866         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50867         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50868         * tests/unictype/test-pr_other_math.c: Regenerated.
50869         * tests/unictype/test-pr_punctuation.c: Regenerated.
50870         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50871         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50872         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50873         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50874         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50875         * tests/unictype/test-pr_uppercase.c: Regenerated.
50876         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50877         * tests/unictype/test-pr_xid_start.c: Regenerated.
50878         * tests/unictype/test-pr_zero_width.c: Regenerated.
50879
50880         Update to Unicode 5.1.0.
50881         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50882         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50883         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50884         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50885         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50886         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50887         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50888         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50889         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50890         (nonspacing_table_ind): Update.
50891         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50892
50893         Update to Unicode 5.1.0.
50894         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50895         code transform.
50896         * lib/uniname/uniname.c (unicode_character_name,
50897         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50898         * lib/uniname/uninames.h: Regenerated.
50899         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50900
50901 2009-02-07  Bruno Haible  <bruno@clisp.org>
50902
50903         Merge gen-ctype and gen-lbrk into a single program.
50904         * lib/gen-uni-tables.c: New file, incorporating
50905         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50906         Add directory prefixes to the names of the generated files.
50907         * lib/unictype/gen-ctype.c: Remove file.
50908         * lib/unilbrk/gen-lbrk.c: Remove file.
50909         * modules/gen-uni-tables: New file.
50910         * modules/unictype/gen-ctype: Remove file.
50911         * modules/unilbrk/gen-lbrk: Remove file.
50912
50913 2009-02-07  Bruno Haible  <bruno@clisp.org>
50914
50915         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50916
50917         New module 'unistr/u32-strcoll'.
50918         * modules/unistr/u32-strcoll: New file.
50919         * lib/unistr/u32-strcoll.c: New file.
50920
50921         New module 'unistr/u16-strcoll'.
50922         * modules/unistr/u16-strcoll: New file.
50923         * lib/unistr/u16-strcoll.c: New file.
50924
50925         New module 'unistr/u8-strcoll'.
50926         * modules/unistr/u8-strcoll: New file.
50927         * lib/unistr/u8-strcoll.c: New file.
50928         * lib/unistr/u-strcoll.h: New file.
50929
50930 2009-02-07  Bruno Haible  <bruno@clisp.org>
50931
50932         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50933         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50934         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50935         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50936         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50937         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50938
50939 2009-02-07  Bruno Haible  <bruno@clisp.org>
50940
50941         Make 64-bit clean.
50942         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50943         output_combclass, output_bidi_category, output_decimal_digit,
50944         output_digit, output_numeric, output_mirror, output_scripts,
50945         output_ident_category): Use proper width specifier in format strings.
50946
50947 2009-02-07  Bruno Haible  <bruno@clisp.org>
50948
50949         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50950         failure behaviour.
50951
50952 2009-02-07  Jim Meyering  <meyering@redhat.com>
50953
50954         regex: avoid compilation failure with upcoming gcc-4.4
50955         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50956         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50957         "... error: integer overflow in preprocessor expression".
50958
50959 2009-02-05  Ben Pfaff  <blp@gnu.org>
50960
50961         Fix link errors on Windows when close module is used.
50962         * modules/close: Add $(LIB_CLOSE) to Link section.
50963         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50964         $(LIB_CLOSE) on Windows.
50965
50966 2009-02-05  Jim Meyering  <meyering@redhat.com>
50967
50968         still avoid unused-parameter warnings, but do it cleanly
50969         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50970         (get_fs_usage): Cast to void instead.
50971         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50972         (dev_from_mount_options, read_file_system_list): Cast to void.
50973         Prompted by Bruno Haible.
50974
50975 2009-02-04  Jim Meyering  <meyering@redhat.com>
50976
50977         fsusage.c: correct copyright year
50978         * lib/fsusage.c: Reflect year in which the change is pushed into
50979
50980         avoid misc. warnings
50981         * lib/fsusage.c (UNUSED_PARAM): Define.
50982         (get_fs_usage): Mark parameter "disk" as unused.
50983         * lib/getugroups.c (getgrent): Use "void" in prototype.
50984         * lib/mountlist.c: Mark unused parameters.
50985         (read_file_system_list): Declare a local with "const".
50986         * lib/nanosleep.c (getnow): Declare static.
50987         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50988
50989         dirfd: set errno upon failure
50990         * lib/dirfd.c: Include <errno.h>.
50991         Set errno to ENOTSUP when returning -1.
50992         * modules/dirfd (Depends-on): Add errno.
50993         Suggested by John Kodis <kodis@comcast.net>.
50994
50995 2009-02-01  Bruno Haible  <bruno@clisp.org>
50996
50997         Don't assume sizeof (long) >= sizeof (void *).
50998         * lib/memcmp.c: Include stdint.h.
50999         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51000         srcp2 to 'const byte *'.
51001         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51002         types to uintptr_t.
51003         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51004         * modules/memcmp (Depends-on): Add stdint.
51005         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51006
51007 2009-01-30  Eric Blake  <ebb9@byu.net>
51008
51009         fix more require-before-expand issues
51010         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51011         expand, AC_PROG_AWK.
51012         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51013
51014 2009-01-28  Eric Blake  <ebb9@byu.net>
51015
51016         version-etc: use consistent URL formatting
51017         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51018         Improve formatting.  Use fputs for string without %.
51019
51020 2009-01-28  Jim Meyering  <meyering@redhat.com>
51021
51022         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51023         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51024         "underquoted definition of NAME" from autoconf-2.59.
51025
51026 2009-01-28  Bruno Haible  <bruno@clisp.org>
51027
51028         * doc/gnulib.texi: Add "Obsolete modules" to index.
51029
51030 2009-01-28  Jim Meyering  <meyering@redhat.com>
51031
51032         useless-if-before-free: recognize more variants
51033         * build-aux/useless-if-before-free: Also recognize e.g.,
51034         if (NULL != p) free (p);
51035
51036 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51037
51038         test-getaddrinfo: skip (don't fail) this test when there's no network
51039         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51040         on the presumption that it means you lack network access.
51041
51042 2009-01-26  Jim Meyering  <meyering@redhat.com>
51043
51044         fflush: avoid warnings on modern systems
51045         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51046         pos and result, into scopes where they're used.
51047
51048 2009-01-26  Eric Blake  <ebb9@byu.net>
51049
51050         Silence warning reintroduced by recent extensions patch.
51051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51052         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51053         autoconf.
51054
51055         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51056         * m4/00gnulib.m4: New file.
51057         * gnulib-tool (func_get_filelist): Always use it.
51058         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51059         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51060
51061 2009-01-25  Bruno Haible  <bruno@clisp.org>
51062
51063         Make test-quotearg work on MacOS X and AIX.
51064         * tests/test-quotearg.sh: New file.
51065         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51066         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51067         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51068         include <libintl.h>.
51069         (fake_locale): Remove variable.
51070         (gettext, dgettext, dcgettext): Remove functions.
51071         (main): Instead of setting a fake locale, set a real locale. Call
51072         textdomain and bindtextdomain.
51073         * modules/quotearg-tests (Files): Add the new files.
51074         (Depends-on): Add gettext, setenv, unsetenv.
51075         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51076         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51077         Augment TESTS_ENVIRONMENT.
51078
51079 2009-01-25  Bruno Haible  <bruno@clisp.org>
51080
51081         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51082         fr_FR.ISO8859-1 locale on MacOS X.
51083         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51084         ja_JP.eucJP locale on MacOS X.
51085         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51086         zh_CN.GB18030 locale on MacOS X.
51087
51088 2009-01-25  Bruno Haible  <bruno@clisp.org>
51089
51090         Avoid link errors on MacOS X 10.3.
51091         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51092         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51093
51094 2009-01-25  Bruno Haible  <bruno@clisp.org>
51095
51096         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51097         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51098         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51099         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51100         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51101         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51102         posix_spawnattr_init, posix_spawnattr_setsigmask,
51103         posix_spawnattr_setflags, posix_spawnattr_destroy.
51104
51105         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51106         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51107         * modules/execute (Files): Remove m4/posix_spawn.m4.
51108         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51109         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51110         posix_spawnattr_init, posix_spawnattr_setsigmask,
51111         posix_spawnattr_setflags, posix_spawnattr_destroy.
51112
51113 2009-01-25  Bruno Haible  <bruno@clisp.org>
51114
51115         * lib/glthread/threadlib.c: Include <stdlib.h>.
51116
51117 2009-01-25  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/glthread/threadlib.c (dummy): New declaration.
51120
51121 2009-01-25  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51124         multibyte characters also for the GB18030 encoding. Don't crash when
51125         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51126
51127 2009-01-25  Bruno Haible  <bruno@clisp.org>
51128
51129         Avoid redefining 'struct random_data' on OSF/1 5.1.
51130         * lib/stdlib.in.h: Include <random.h> if it exists.
51131         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51132         HAVE_RANDOM_H. Include <random.h> when testing whether
51133         'struct random_data' exists.
51134         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51135
51136 2009-01-25  Bruno Haible  <bruno@clisp.org>
51137
51138         Don't install charset.alias on MacOS X >= 10.3.
51139         * lib/localcharset.c (DARWIN7): New macro.
51140         (get_charset_aliases): Hardcode the result for Darwin7.
51141         * modules/localcharset (install-exec-local): Don't install
51142         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51143
51144 2009-01-25  Bruno Haible  <bruno@clisp.org>
51145
51146         Don't install charset.alias on mingw and Cygwin.
51147         * modules/localcharset (install-exec-local): Don't install
51148         charset.alias on mingw and Cygwin, if the file does not yet exist.
51149         The result for these platforms is hardcoded in localcharset.c.
51150
51151 2009-01-25  Bruno Haible  <bruno@clisp.org>
51152
51153         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51155         before requiring AC_USE_SYSTEM_EXTENSIONS.
51156
51157 2009-01-25  Jim Meyering  <meyering@redhat.com>
51158
51159         c-strtod: avoid warnings
51160         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51161         "assignment discards qualifiers from pointer target type" warnings.
51162
51163 2009-01-24  Bruno Haible  <bruno@clisp.org>
51164
51165         Add support for non-UTF-8 locales on MacOS X.
51166         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51167         canonical encodings. For Darwin 7 and newer, don't map traditional
51168         encodings to UTF-8.
51169         Reported by Vincent Lefevre <vincent@vinc17.org>
51170         at <http://savannah.gnu.org/bugs/?25235>.
51171
51172 2009-01-24  Bruno Haible  <bruno@clisp.org>
51173
51174         * doc/gnulib.texi (Obsolete modules): New section.
51175         Reported by Mike Frysinger <vapier@gentoo.org>.
51176
51177 2009-01-24  Bruno Haible  <bruno@clisp.org>
51178
51179         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51180         (%.dvi): New rule.
51181
51182 2009-01-24  Bruno Haible  <bruno@clisp.org>
51183
51184         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51185         Reported by Eric Blake.
51186
51187 2009-01-24  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51190         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51191         Reported by Gary V. Vaughan <gary@gnu.org>.
51192
51193 2009-01-24  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51196
51197 2009-01-23  Bruno Haible  <bruno@clisp.org>
51198
51199         Make c-strtod, c-strtold usable in libraries.
51200         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51201         (C_STRTOD): Call strdup instead of xstrdup.
51202         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51203         * modules/c-strtold (Depends-on): Likewise.
51204         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51205         * NEWS: Mention the change.
51206         Reported by Michael Gold <mgold@ncf.ca>.
51207
51208 2009-01-23  Jim Meyering  <meyering@redhat.com>
51209
51210         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51211         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51212         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51213
51214 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51215
51216         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51217         GNU CoreUtils.
51218         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51219         * modules/version-etc (Description): Update.
51220
51221 2009-01-22  Bruno Haible  <bruno@clisp.org>
51222
51223         Cache the C locale object.
51224         * lib/c-strtod.c (c_locale_cache): New variable.
51225         (c_locale): New function.
51226         (C_STRTOD): Use it, and don't call freelocale.
51227         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51228         Suggested by Paolo Bonzini.
51229
51230 2009-01-21  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51233         conditions other than overflow.
51234
51235 2009-01-21  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/c-strtod.c: Include errno.h.
51238         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51239         value from STRTOD_L and STRTOD.
51240
51241 2009-01-21  Bruno Haible  <bruno@clisp.org>
51242         and Jim Meyering  <meyering@redhat.com>
51243
51244         nanosleep: skip configure test (fail it) for apple universal builds
51245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51246         universal builds, assume that nanosleep does not work.
51247         * modules/nanosleep (Depends-on): Add multiarch.
51248
51249         mktime: skip configure test (fail it) for apple universal builds
51250         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51251         universal builds, assume that mktime does not work.
51252         * modules/mktime (Depends-on): Add multiarch.
51253
51254 2009-01-21  Eric Blake  <ebb9@byu.net>
51255
51256         multiarch: avoid expand-before-require warning
51257         * modules/multiarch (configure.ac): Require, rather than expand,
51258         gl_MULTIARCH.
51259         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51260         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51261         enforce that all clients require it.  Partial reversion of
51262         2008-12-29 patch.
51263
51264         error: avoid expand-before-require warning
51265         * modules/errno (configure.ac): Require, rather than expand,
51266         gl_HEADER_ERRNO_H.
51267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51268         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51269         enforce that all clients require it.
51270
51271         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51272         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51273         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51274         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51275
51276 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51277
51278         Revert:
51279         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51280
51281         regex: do not depend on obsolete modules.
51282         * modules/regex: Remove memcmp and memmove.
51283
51284 2009-01-20  Bruno Haible  <bruno@clisp.org>
51285
51286         Make the 'link' module link on Windows NT 4.
51287         * lib/link.c (_WIN32_WINNT): Don't define.
51288         (CreateHardLinkFuncType): New type.
51289         (CreateHardLinkFunc, initialized): New variables.
51290         (initialize): New function.
51291         (link): Invoke CreateHardLink indirectly through the function pointer.
51292
51293 2009-01-20  Bruno Haible  <bruno@clisp.org>
51294
51295         Fix compilation failure on mingw.
51296         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51297
51298 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51299
51300         * doc/c-strtod.texi: Mention a couple of restrictions.
51301
51302 2009-01-20  Jim Meyering  <meyering@redhat.com>
51303
51304         gettimeofday: move more declarations out of functions
51305         * lib/gettimeofday.c: Move extern declarations of tzset and
51306         gmtime out of containing functions.  Prompted by Bruno Haible.
51307
51308 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51309
51310         regex: do not depend on obsolete modules.
51311         * modules/regex: Remove memcmp and memmove.
51312
51313 2009-01-19  Bruno Haible  <bruno@clisp.org>
51314
51315         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51316         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51317         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51318         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51319         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51320
51321 2009-01-19  Bruno Haible  <bruno@clisp.org>
51322
51323         * tests/test-link.c: Include <errno.h>.
51324         (main): Exit with code 77 when a hard link cannot be created due to
51325         the file system.
51326         * tests/test-link.sh: Skip test when a hard link cannot be created due
51327         to the file system.
51328         Suggested by Eric Blake.
51329
51330 2009-01-19  Martin Lambers  <marlam@marlam.de>
51331
51332         * modules/link-tests: New file.
51333         * tests/test-link.sh: New file.
51334         * tests/test-link.c: New file.
51335
51336 2009-01-19  Eric Blake  <ebb9@byu.net>
51337
51338         doc: mention another function added in cygwin 1.7.0
51339         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51340         Another new function in cygwin 1.7.
51341
51342 2009-01-19  Bruno Haible  <bruno@clisp.org>
51343
51344         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51345         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51346         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51347         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51349         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51350         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51351         * m4/md4.m4 (gl_MD4): Likewise.
51352         * m4/md5.m4 (gl_MD5): Likewise.
51353         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51354         * m4/sha1.m4 (gl_SHA1): Likewise.
51355         * m4/sha256.m4 (gl_SHA256): Likewise.
51356         * m4/sha512.m4 (gl_SHA512): Likewise.
51357
51358 2009-01-19  Bruno Haible  <bruno@clisp.org>
51359
51360         * modules/uniname/uniname-tests (Depends-on): Add progname.
51361         * tests/uniname/test-uninames.c: Include progname.h.
51362         (main): Call set_program_name.
51363
51364         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51365         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51366         (main): Call set_program_name.
51367
51368         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51369         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51370         (main): Call set_program_name.
51371
51372         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51373         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51374         (main): Call set_program_name.
51375
51376         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51377         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51378         (main): Call set_program_name.
51379
51380         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51381         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51382         (main): Call set_program_name.
51383
51384         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51385         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51386         (main): Call set_program_name.
51387
51388         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51389         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51390         (main): Call set_program_name.
51391
51392         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51393         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51394         (main): Call set_program_name.
51395
51396 2009-01-19  Eric Blake  <ebb9@byu.net>
51397
51398         test-unistd: test previous patch
51399         * tests/test-unistd.c: Test *_FILENO macros.
51400
51401         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51402         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51403         Guarantee a definition.
51404         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51405         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51406         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51407         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51408         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51409         Likewise.
51410         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51411         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51412         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51413         Likewise.
51414         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51415         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51416         (STDERR_FILENO): Likewise.
51417         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51418         (STDERR_FILENO): Likewise.
51419         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51420         (STDERR_FILENO): Likewise.
51421         Reported by Elbert Pol.
51422
51423 2009-01-19  Eric Blake  <ebb9@byu.net>
51424
51425         doc: mention more functions added in cygwin 1.7.0
51426         * doc/posix-functions/abort.texi (abort): Update wording related
51427         to cygwin.
51428         * doc/posix-functions/daylight.texi (daylight): Likewise.
51429         * doc/posix-functions/optarg.texi (optarg): Likewise.
51430         * doc/posix-functions/optarg.texi (opterr): Likewise.
51431         * doc/posix-functions/optarg.texi (optind): Likewise.
51432         * doc/posix-functions/optarg.texi (optopt): Likewise.
51433         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51434         worked in 1.5.x, and was withdrawn in 1.7.
51435         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51436         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51437         cygwin versions.
51438         * doc/posix-functions/perror.texi (perror): Likewise.
51439         * doc/posix-functions/printf.texi (printf): Likewise.
51440         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51441         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51442         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51443         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51444         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51445         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51446         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51447         Likewise.
51448         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51449         Likewise.
51450         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51451         this function.
51452         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51453         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51454         Likewise.
51455         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51456         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51457         * doc/posix-functions/confstr.texi (confstr): Likewise.
51458         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51459         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51460         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51461         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51462         * doc/posix-functions/fputws.texi (fputws): Likewise.
51463         * doc/posix-functions/fwide.texi (fwide): Likewise.
51464         * doc/posix-functions/getwc.texi (getwc): Likewise.
51465         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51466         * doc/posix-functions/putwc.texi (putwc): Likewise.
51467         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51468         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51469         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51470         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51471         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51472         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51473         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51474         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51475         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51476         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51477         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51478
51479 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51480
51481         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51482         * lib/ioctl.c: Include <sys/ioctl.h>.
51483
51484 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51485
51486         * modules/getdate-tests (Depends-on): Add progname.
51487         * tests/test-getdate.c: Use progname module, to avoid link errors
51488         on non-glibc systems.
51489
51490 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51491
51492         * modules/filenamecat-tests (Depends-on): Add progname.
51493         * modules/fstrcmp-tests (Depends-on): Likewise.
51494
51495         * tests/test-filenamecat.c: Use progname module, to avoid link
51496         errors on non-glibc systems.
51497         * tests/test-fstrcmp.c: Likewise.
51498
51499 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51500
51501         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51502         * lib/gettimeofday.c: Move extern declaration out of function.
51503
51504 2009-01-18  Bruno Haible  <bruno@clisp.org>
51505
51506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51507         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51508         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51509
51510 2009-01-18  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/strftime.c (MEMPCPY): Remove unused macro.
51513         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51514
51515 2009-01-18  Martin Lambers  <marlam@marlam.de>
51516
51517         New module 'link'.
51518         * lib/unistd.in.h (link): New declaration.
51519         * lib/link.c: New file.
51520         * m4/link.m4: New file.
51521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51522         HAVE_LINK.
51523         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51524         * modules/link: New file.
51525         * doc/posix-functions/link.texi: Mention the new module.
51526
51527 2009-01-18  Bruno Haible  <bruno@clisp.org>
51528
51529         * tests/test-avltree_list.c (main): Call set_program_name.
51530         * tests/test-avltree_oset.c (main): Likewise.
51531         * tests/test-obstack-printf.c: Include progname.h.
51532         (main): Call set_program_name.
51533         * tests/test-quotearg.c: Include progname.h.
51534         (main): Call set_program_name.
51535         * tests/test-xmemdup0.c: Include progname.h.
51536         (main): Call set_program_name.
51537
51538 2009-01-18  Bruno Haible  <bruno@clisp.org>
51539
51540         New module 'alphasort'.
51541         * lib/dirent.in.h (alphasort): New declaration.
51542         * lib/alphasort.c: New file, from glibc with modifications.
51543         * m4/alphasort.m4: New file.
51544         * modules/alphasort: New file.
51545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51546         HAVE_ALPHASORT.
51547         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51548         HAVE_ALPHASORT.
51549         * doc/posix-functions/alphasort.texi: Mention the new module and the
51550         portability problems.
51551
51552 2009-01-18  Bruno Haible  <bruno@clisp.org>
51553
51554         New module 'scandir'.
51555         * lib/dirent.in.h (scandir): New declaration.
51556         * lib/scandir.c: New file, from glibc with modifications.
51557         * m4/scandir.m4: New file.
51558         * modules/scandir: New file.
51559         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51560         HAVE_SCANDIR.
51561         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51562         HAVE_SCANDIR.
51563         * doc/posix-functions/scandir.texi: Mention the new module and the
51564         portability problems.
51565
51566 2009-01-17  Bruno Haible  <bruno@clisp.org>
51567
51568         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51569         Update documentation.
51570         (func_remove_suffix): Escape all dots in the suffix. Update
51571         documentation.
51572         (func_filter_filelist): Update documentation.
51573         Reported by Ralf Wildenhues.
51574
51575 2009-01-17  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/dprintf-posix-tests: New file.
51578         * tests/test-dprintf-posix.sh: New file.
51579         * tests/test-dprintf-posix.c: New file.
51580
51581         New modules 'dprintf', 'dprintf-posix'.
51582         * lib/stdio.in.h (dprintf): New declaration.
51583         * lib/dprintf.c: New file.
51584         * m4/dprintf.m4: New file.
51585         * m4/dprintf-posix.m4: New file.
51586         * modules/dprintf: New file.
51587         * modules/dprintf-posix: New file.
51588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51589         HAVE_DPRINTF, REPLACE_DPRINTF.
51590         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51591         HAVE_DPRINTF, REPLACE_DPRINTF.
51592         * doc/posix-functions/dprintf.texi: Mention the new modules.
51593
51594 2009-01-17  Bruno Haible  <bruno@clisp.org>
51595
51596         * modules/vdprintf-posix-tests: New file.
51597         * tests/test-vdprintf-posix.sh: New file.
51598         * tests/test-vdprintf-posix.c: New file.
51599
51600         New modules 'vdprintf', 'vdprintf-posix'.
51601         * lib/stdio.in.h (vdprintf): New declaration.
51602         * lib/vdprintf.c: New file.
51603         * m4/vdprintf.m4: New file.
51604         * m4/vdprintf-posix.m4: New file.
51605         * modules/vdprintf: New file.
51606         * modules/vdprintf-posix: New file.
51607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51608         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51609         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51610         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51611         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51612
51613 2009-01-17  Bruno Haible  <bruno@clisp.org>
51614
51615         Fix replacement of fopen on mingw.
51616         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51617         mingw.
51618
51619 2009-01-17  Bruno Haible  <bruno@clisp.org>
51620
51621         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51622         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51623
51624 2009-01-17  Bruno Haible  <bruno@clisp.org>
51625
51626         Avoid test-fflush2.sh failure on mingw.
51627         * tests/test-fflush2.c: Include binary-io.h.
51628         (main): Put standard input into binary mode.
51629         * modules/fflush-tests (Depends-on): Add binary-io.
51630
51631 2009-01-17  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/wchar.in.h: In another particular situation, include only the
51634         system's <wchar.h> file.
51635         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51636         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51637         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51638
51639 2009-01-17  Bruno Haible  <bruno@clisp.org>
51640
51641         Support for stripping executables in --enable-relocatable.
51642         * build-aux/install-reloc: Expect one more argument, or an environment
51643         variable RELOC_STRIP_PROG. If set, strip the destination program and
51644         its wrapper.
51645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51646         RELOC_STRIP_PROG.
51647         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51648         to set RELOCATABLE_STRIP.
51649         * NEWS: Mention the new Makefile requirement.
51650
51651 2009-01-17  Bruno Haible  <bruno@clisp.org>
51652
51653         * build-aux/install-reloc: Remove debugging information left over by
51654         C compiler on MacOS X.
51655
51656 2009-01-17  Bruno Haible  <bruno@clisp.org>
51657
51658         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51659         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51660         _NSGetExecutablePath.
51661
51662 2009-01-16  Jim Meyering  <meyering@redhat.com>
51663
51664         strerror: avoid warnings about discarding "const"
51665         * lib/strerror.c (rpl_strerror): Instead of returning a const
51666         string from each and every "case", use a variable, and add a single
51667         cast after the switch.
51668
51669 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51670
51671         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51672
51673 2009-01-16  Bruno Haible  <bruno@clisp.org>
51674
51675         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51676         array initializer syntax that also works in C++ mode.
51677         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51678
51679 2009-01-16  Jim Meyering  <meyering@redhat.com>
51680
51681         poll: suppress a warning
51682         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51683         to ignore "...unsigned expression < 0 is always false" warnings.
51684
51685 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51686
51687         poll: remove declarations of unused variables
51688         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51689         sockbuf and optlen.
51690
51691 2009-01-15  Bruno Haible  <bruno@clisp.org>
51692
51693         Make fflush-after-ungetc POSIX compliant on BSD systems.
51694         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51695         (clear_ungetc_buffer): Implement also for other systems.
51696         (rpl_fflush): On glibc systems, invoke
51697         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51698         clear_ungetc_buffer after fetching the stream's position, not before.
51699
51700 2009-01-15  Bruno Haible  <bruno@clisp.org>
51701
51702         Make fflush-after-ungetc POSIX compliant on glibc systems.
51703         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51704         after ungetc.
51705         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51706         (rpl_fflush): On glibc systems, simply call the system's fflush
51707         function after clearing the ungetc buffer.
51708         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51709         Instead, lseek only to the end of file, then use the system's fseeko
51710         for the rest. On glibc systems, reset the EOF indicator bit.
51711
51712 2009-01-15  Jim Meyering  <meyering@redhat.com>
51713
51714         openmp.m4: revert quote-adding change, for portability to older autoconf
51715         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51716         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51717         Simon Josefsson noticed the problem when using autoconf-2.61.
51718
51719 2009-01-15  Bruno Haible  <bruno@clisp.org>
51720
51721         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51722         * tests/test-fflush2.c (ASSERT): Always fail.
51723         (main): Add two tests for fflush() after ungetc(), taking into account
51724         the Austin Group's clarification.
51725         Suggested by Eric Blake.
51726
51727 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51728
51729         mktime.m4: remove K&R-style function prototypes
51730         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51731         for the Sun C++ compiler.
51732
51733 2009-01-14  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51736         while including <wchar.h>.
51737         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51738         the system's <wchar.h> file.
51739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51740
51741 2009-01-14  Bruno Haible  <bruno@clisp.org>
51742
51743         * m4/csharp.m4: Don't mention gettext on the serial number line.
51744         * m4/csharpexec.m4: Likewise.
51745         * m4/eaccess.m4: Likewise.
51746         * m4/javaexec.m4: Likewise.
51747         * m4/sig_atomic_t.m4: Likewise.
51748         * m4/tmpdir.m4: Likewise.
51749         * m4/intldir.m4: Bump gettext version.
51750         * m4/lib-ld.m4: Likewise.
51751
51752 2009-01-14  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/progname.c (set_program_name): Add more comments.
51755         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51756
51757 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51758
51759         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51760         were sys/stat.h does not define it.
51761
51762 2009-01-14  Jim Meyering  <meyering@redhat.com>
51763
51764         many *.m4 files: improve m4 quoting
51765         99% of this change was performed by running the following commands:
51766         git ls-files | grep '\.m4$' | xargs perl -pi \
51767           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51768           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51769           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51770           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51771         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51772         The remainder were to add Copyright dates, increment serial numbers,
51773         undo some changes in comments, exclude m4/intl.m4, and add quotes
51774         around the "1" in ",1" where the unusual spacing prohibited the
51775         above regexps from doing the job.  For more details, see
51776         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51777         * m4/acl.m4: Modified.
51778         * m4/afs.m4: Likewise.
51779         * m4/alloca.m4: Likewise.
51780         * m4/argp.m4: Likewise.
51781         * m4/argz.m4: Likewise.
51782         * m4/atexit.m4: Likewise.
51783         * m4/bison-i18n.m4: Likewise.
51784         * m4/bison.m4: Likewise.
51785         * m4/byteswap.m4: Likewise.
51786         * m4/c-stack.m4: Likewise.
51787         * m4/c-strtod.m4: Likewise.
51788         * m4/calloc.m4: Likewise.
51789         * m4/canonicalize-lgpl.m4: Likewise.
51790         * m4/chown.m4: Likewise.
51791         * m4/clock_time.m4: Likewise.
51792         * m4/codeset.m4: Likewise.
51793         * m4/copy-file.m4: Likewise.
51794         * m4/csharp.m4: Likewise.
51795         * m4/csharpcomp.m4: Likewise.
51796         * m4/csharpexec.m4: Likewise.
51797         * m4/d-ino.m4: Likewise.
51798         * m4/d-type.m4: Likewise.
51799         * m4/dirfd.m4: Likewise.
51800         * m4/double-slash-root.m4: Likewise.
51801         * m4/eaccess.m4: Likewise.
51802         * m4/eealloc.m4: Likewise.
51803         * m4/environ.m4: Likewise.
51804         * m4/errno_h.m4: Likewise.
51805         * m4/euidaccess.m4: Likewise.
51806         * m4/execute.m4: Likewise.
51807         * m4/fatal-signal.m4: Likewise.
51808         * m4/fchdir.m4: Likewise.
51809         * m4/fcntl_h.m4: Likewise.
51810         * m4/fileblocks.m4: Likewise.
51811         * m4/filenamecat.m4: Likewise.
51812         * m4/findprog.m4: Likewise.
51813         * m4/flexmember.m4: Likewise.
51814         * m4/fnmatch.m4: Likewise.
51815         * m4/fopen.m4: Likewise.
51816         * m4/fpending.m4: Likewise.
51817         * m4/fprintf-posix.m4: Likewise.
51818         * m4/free.m4: Likewise.
51819         * m4/frexp.m4: Likewise.
51820         * m4/frexpl.m4: Likewise.
51821         * m4/fsusage.m4: Likewise.
51822         * m4/ftruncate.m4: Likewise.
51823         * m4/gc-camellia.m4: Likewise.
51824         * m4/gc-random.m4: Likewise.
51825         * m4/gc.m4: Likewise.
51826         * m4/getaddrinfo.m4: Likewise.
51827         * m4/getcwd-abort-bug.m4: Likewise.
51828         * m4/getcwd-path-max.m4: Likewise.
51829         * m4/getdate.m4: Likewise.
51830         * m4/getdomainname.m4: Likewise.
51831         * m4/getgroups.m4: Likewise.
51832         * m4/gethostname.m4: Likewise.
51833         * m4/gethrxtime.m4: Likewise.
51834         * m4/getline.m4: Likewise.
51835         * m4/getloadavg.m4: Likewise.
51836         * m4/getndelim2.m4: Likewise.
51837         * m4/getpass.m4: Likewise.
51838         * m4/gettext.m4: Likewise.
51839         * m4/gettime.m4: Likewise.
51840         * m4/gettimeofday.m4: Likewise.
51841         * m4/gnulib-common.m4: Likewise.
51842         * m4/group-member.m4: Likewise.
51843         * m4/host-os.m4: Likewise.
51844         * m4/iconv.m4: Likewise.
51845         * m4/iconv_open.m4: Likewise.
51846         * m4/inet_ntop.m4: Likewise.
51847         * m4/inet_pton.m4: Likewise.
51848         * m4/inline.m4: Likewise.
51849         * m4/intldir.m4: Likewise.
51850         * m4/intlmacosx.m4: Likewise.
51851         * m4/intmax.m4: Likewise.
51852         * m4/intmax_t.m4: Likewise.
51853         * m4/inttypes.m4: Likewise.
51854         * m4/inttypes_h.m4: Likewise.
51855         * m4/inttypes-pri.m4: Likewise.
51856         * m4/isapipe.m4: Likewise.
51857         * m4/isnand.m4: Likewise.
51858         * m4/isnanf.m4: Likewise.
51859         * m4/isnanl.m4: Likewise.
51860         * m4/javacomp.m4: Likewise.
51861         * m4/javaexec.m4: Likewise.
51862         * m4/jm-winsz1.m4: Likewise.
51863         * m4/jm-winsz2.m4: Likewise.
51864         * m4/lchown.m4: Likewise.
51865         * m4/lcmessage.m4: Likewise.
51866         * m4/ldexpl.m4: Likewise.
51867         * m4/lib-ld.m4: Likewise.
51868         * m4/lib-link.m4: Likewise.
51869         * m4/libsigsegv.m4: Likewise.
51870         * m4/link-follow.m4: Likewise.
51871         * m4/localcharset.m4: Likewise.
51872         * m4/locale-fr.m4: Likewise.
51873         * m4/locale-ja.m4: Likewise.
51874         * m4/locale-tr.m4: Likewise.
51875         * m4/locale-zh.m4: Likewise.
51876         * m4/lock.m4: Likewise.
51877         * m4/longlong.m4: Likewise.
51878         * m4/ls-mntd-fs.m4: Likewise.
51879         * m4/lstat.m4: Likewise.
51880         * m4/malloc.m4: Likewise.
51881         * m4/mathl.m4: Likewise.
51882         * m4/mbrtowc.m4: Likewise.
51883         * m4/mbstate_t.m4: Likewise.
51884         * m4/mbswidth.m4: Likewise.
51885         * m4/memchr.m4: Likewise.
51886         * m4/memcmp.m4: Likewise.
51887         * m4/memcpy.m4: Likewise.
51888         * m4/memmem.m4: Likewise.
51889         * m4/memmove.m4: Likewise.
51890         * m4/mempcpy.m4: Likewise.
51891         * m4/memrchr.m4: Likewise.
51892         * m4/memset.m4: Likewise.
51893         * m4/minmax.m4: Likewise.
51894         * m4/mkdir-slash.m4: Likewise.
51895         * m4/mkdtemp.m4: Likewise.
51896         * m4/mktime.m4: Likewise.
51897         * m4/mmap-anon.m4: Likewise.
51898         * m4/mountlist.m4: Likewise.
51899         * m4/nanosleep.m4: Likewise.
51900         * m4/nls.m4: Likewise.
51901         * m4/nocrash.m4: Likewise.
51902         * m4/open.m4: Likewise.
51903         * m4/openat.m4: Likewise.
51904         * m4/openmp.m4: Likewise.
51905         * m4/pathmax.m4: Likewise.
51906         * m4/perl.m4: Likewise.
51907         * m4/physmem.m4: Likewise.
51908         * m4/pipe.m4: Likewise.
51909         * m4/po.m4: Likewise.
51910         * m4/poll.m4: Likewise.
51911         * m4/posixtm.m4: Likewise.
51912         * m4/posixver.m4: Likewise.
51913         * m4/printf-frexp.m4: Likewise.
51914         * m4/printf-frexpl.m4: Likewise.
51915         * m4/printf-posix.m4: Likewise.
51916         * m4/printf-posix-rpl.m4: Likewise.
51917         * m4/printf.m4: Likewise.
51918         * m4/progtest.m4: Likewise.
51919         * m4/putenv.m4: Likewise.
51920         * m4/readline.m4: Likewise.
51921         * m4/readlink.m4: Likewise.
51922         * m4/readutmp.m4: Likewise.
51923         * m4/realloc.m4: Likewise.
51924         * m4/regex.m4: Likewise.
51925         * m4/relocatable.m4: Likewise.
51926         * m4/relocatable-lib.m4: Likewise.
51927         * m4/rename-dest-slash.m4: Likewise.
51928         * m4/rename.m4: Likewise.
51929         * m4/rmdir-errno.m4: Likewise.
51930         * m4/rmdir.m4: Likewise.
51931         * m4/roundf.m4: Likewise.
51932         * m4/roundl.m4: Likewise.
51933         * m4/rpmatch.m4: Likewise.
51934         * m4/save-cwd.m4: Likewise.
51935         * m4/selinux-selinux-h.m4: Likewise.
51936         * m4/setenv.m4: Likewise.
51937         * m4/settime.m4: Likewise.
51938         * m4/sig2str.m4: Likewise.
51939         * m4/sig_atomic_t.m4: Likewise.
51940         * m4/signalblocking.m4: Likewise.
51941         * m4/signbit.m4: Likewise.
51942         * m4/sigpipe.m4: Likewise.
51943         * m4/sockets.m4: Likewise.
51944         * m4/sockpfaf.m4: Likewise.
51945         * m4/st_dm_mode.m4: Likewise.
51946         * m4/stat-time.m4: Likewise.
51947         * m4/stdbool.m4: Likewise.
51948         * m4/stdint.m4: Likewise.
51949         * m4/stdint_h.m4: Likewise.
51950         * m4/stpcpy.m4: Likewise.
51951         * m4/stpncpy.m4: Likewise.
51952         * m4/strcase.m4: Likewise.
51953         * m4/strchrnul.m4: Likewise.
51954         * m4/strcspn.m4: Likewise.
51955         * m4/strdup.m4: Likewise.
51956         * m4/strftime.m4: Likewise.
51957         * m4/strndup.m4: Likewise.
51958         * m4/strnlen.m4: Likewise.
51959         * m4/strpbrk.m4: Likewise.
51960         * m4/strptime.m4: Likewise.
51961         * m4/strsep.m4: Likewise.
51962         * m4/strtod.m4: Likewise.
51963         * m4/strtoimax.m4: Likewise.
51964         * m4/strtok_r.m4: Likewise.
51965         * m4/strtol.m4: Likewise.
51966         * m4/strtoll.m4: Likewise.
51967         * m4/strtoul.m4: Likewise.
51968         * m4/strtoull.m4: Likewise.
51969         * m4/strtoumax.m4: Likewise.
51970         * m4/strverscmp.m4: Likewise.
51971         * m4/threadlib.m4: Likewise.
51972         * m4/timegm.m4: Likewise.
51973         * m4/tm_gmtoff.m4: Likewise.
51974         * m4/tmpdir.m4: Likewise.
51975         * m4/tmpfile.m4: Likewise.
51976         * m4/tzset.m4: Likewise.
51977         * m4/uintmax_t.m4: Likewise.
51978         * m4/unlinkdir.m4: Likewise.
51979         * m4/unlocked-io.m4: Likewise.
51980         * m4/uptime.m4: Likewise.
51981         * m4/userspec.m4: Likewise.
51982         * m4/utimbuf.m4: Likewise.
51983         * m4/utime.m4: Likewise.
51984         * m4/utimes-null.m4: Likewise.
51985         * m4/utimes.m4: Likewise.
51986         * m4/vararrays.m4: Likewise.
51987         * m4/vasnprintf.m4: Likewise.
51988         * m4/vfprintf-posix.m4: Likewise.
51989         * m4/vprintf-posix.m4: Likewise.
51990         * m4/wait-process.m4: Likewise.
51991         * m4/wchar_t.m4: Likewise.
51992         * m4/wint_t.m4: Likewise.
51993         * m4/write-any-file.m4: Likewise.
51994         * m4/yield.m4: Likewise.
51995
51996 2009-01-13  Bruno Haible  <bruno@clisp.org>
51997
51998         Avoid test-copy-file.sh failures when ACL support insufficient.
51999         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52000         TESTS_ENVIRONMENT.
52001         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52002         Reported by Jim Meyering.
52003
52004 2009-01-13  Bruno Haible  <bruno@clisp.org>
52005
52006         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52007         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52008         * modules/unistdio/u8-printf-parse (Files): Likewise.
52009         * modules/unistdio/u32-printf-parse (Files): Likewise.
52010         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52011
52012 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52013
52014         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52015         and m4/inttypes_h.m4 too.
52016
52017 2009-01-12  Eric Blake  <ebb9@byu.net>
52018
52019         tests: IRIX 6.2 cc can't compile -0.0 into .data
52020         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52021         rather than at compile-time.
52022         * tests/test-floorl.c (minus_zero): Likewise.
52023         * tests/test-frexpl.c (minus_zero): Likewise.
52024         * tests/test-isnan.c (minus_zerol): Likewise.
52025         * tests/test-isnanl.h (minus_zero): Likewise.
52026         * tests/test-ldexpl.c (minus_zero): Likewise.
52027         * tests/test-roundl.c (minus_zero): Likewise.
52028         * tests/test-signbit.c (minus_zerol): Likewise.
52029         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52030         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52031         * tests/test-truncl.c (minus_zero): Likewise.
52032         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52033         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52034         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52035
52036 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52037
52038         regex: fix glibc bug 9697
52039         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52040         handling.
52041
52042 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52043
52044         regex: fix glibc bug 697
52045         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52046         being NULL also if there are no backreferences.
52047
52048 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52049
52050         regex: merge glibc changes
52051         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52052         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52053         re_string_skip_chars, re_string_reconstruct): Likewise.
52054         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52055
52056 2009-01-07  Jim Meyering  <meyering@redhat.com>
52057
52058         poll: filter through cppi
52059         * lib/poll.c: Indent cpp directives to reflect nesting.
52060
52061 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52062
52063         poll: don't return uninitialized
52064         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52065
52066 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52067
52068         avoid compile failure on AIX 6.1
52069         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52070         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52071
52072 2009-01-04  Jim Meyering  <meyering@redhat.com>
52073
52074         remove duplicate inclusion of <stdio.h>
52075         * tests/test-fprintf-posix.c: Likewise.
52076         * tests/test-printf-posix.c: Likewise.
52077         * tests/test-snprintf-posix.c: Likewise.
52078         * tests/test-sprintf-posix.c: Likewise.
52079         * tests/test-vasprintf-posix.c: Likewise.
52080         * tests/test-vfprintf-posix.c: Likewise.
52081         * tests/test-vprintf-posix.c: Likewise.
52082         * tests/test-vsnprintf-posix.c: Likewise.
52083         * tests/test-vsprintf-posix.c: Likewise.
52084
52085 2009-01-03  Jim Meyering  <meyering@redhat.com>
52086
52087         gnulib-tool: fix sed-based filtering
52088         * gnulib-tool (func_filter_filelist): Remove extra backslash
52089         in sed_fff_filter definition.
52090
52091 2009-01-02  Jim Meyering  <meyering@redhat.com>
52092
52093         strftime: avoid compilation failure on Solaris 2.6
52094         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52095         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52096         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52097         be available.  Reported by Tom G. Christensen.  Details in
52098         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52099
52100 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52101             Bruno Haible  <bruno@clisp.org>
52102
52103         Speed up gnulib-tool by doing more string processing through shell
52104         built-ins.
52105         * gnulib-tool (fast_func_append): New variable.
52106         (func_remove_prefix, func_remove_suffix): New functions.
52107         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52108         (func_filter_filelist): New function.
52109         (func_get_dependencies): Use func_remove_suffix instead of sed.
52110         (func_get_automake_snippet): Use func_filter_filelist instead of a
52111         subshell and sed invocation.
52112
52113 2009-01-01  Bruno Haible  <bruno@clisp.org>
52114
52115         Fix a security bug.
52116         * gnulib-tool (func_import, import, update): Don't allow the characters
52117         '"', '$', '`', '\' in macro arguments that become part of commands that
52118         are evaluated.
52119
52120 2009-01-01  Bruno Haible  <bruno@clisp.org>
52121
52122         * gnulib-tool (func_reset_sigpipe): Add more comments.
52123
52124 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52125
52126         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52127         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52128         already know the answer.
52129
52130 2009-01-01  Jim Meyering  <meyering@redhat.com>
52131
52132         * lib/version-etc.c (version_etc_va): Update copyright year.
52133
52134 2008-12-30  Bruno Haible  <bruno@clisp.org>
52135
52136         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52137         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52138         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52139
52140 2008-12-29  Eric Blake  <ebb9@byu.net>
52141
52142         multiarch: avoid autoconf AC_REQUIRE bug
52143         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52144         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52145         2.63 and older.
52146         Reported by Bruno Haible, and analyzed in
52147         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52148
52149 2008-12-29  Bruno Haible  <bruno@clisp.org>
52150
52151         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52152         files in subdirectories correctly.
52153         Reported by Ralf Wildenhues.
52154
52155 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52156
52157         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52158         rather than 'join FILE -', for Solaris join.
52159
52160 2008-12-29  Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52163         quoting.
52164         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52165         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52166         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52167         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52168         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52169         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52170         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52171         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52172         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52173         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52174         * m4/nls.m4 (AM_NLS): Likewise.
52175         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52176         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52177         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52178         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52179         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52180         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52181         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52182         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52183         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52184         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52185         * m4/xsize.m4 (gl_XSIZE): Likewise.
52186         Suggested by Jim Meyering.
52187
52188 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52189
52190         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52191         * lib/parse-duration.c: use a switch instead of cascading if's.
52192
52193 2008-12-29  Eric Blake  <ebb9@byu.net>
52194
52195         wchar.h: supply WEOF on Irix 5.3
52196         * lib/wchar.in.h (wint_t): Also supply WEOF.
52197         * lib/wctype.in.h (wint_t): Likewise.
52198         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52199         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52200         Reported by Tom G. Christensen.
52201
52202 2008-12-26  Bruno Haible  <bruno@clisp.org>
52203
52204         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52205         i486, i586, i686.
52206
52207 2008-12-26  Bruno Haible  <bruno@clisp.org>
52208
52209         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52210
52211 2008-12-26  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52214         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52215         not __STDC_CONSTANT_MACROS.
52216         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52217
52218 2008-12-25  Bruno Haible  <bruno@clisp.org>
52219
52220         Add support for universal builds to vasnprintf.
52221         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52222         universal builds, guess no.
52223         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52224         * modules/vasprintf-posix (Depends-on): Likewise.
52225         * modules/fprintf-posix (Depends-on): Likewise.
52226         * modules/vfprintf-posix (Depends-on): Likewise.
52227         * modules/snprintf-posix (Depends-on): Likewise.
52228         * modules/vsnprintf-posix (Depends-on): Likewise.
52229         * modules/sprintf-posix (Depends-on): Likewise.
52230         * modules/vsprintf-posix (Depends-on): Likewise.
52231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52238
52239         Add support for universal builds to <inttypes.h>.
52240         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52241         _SCNu64_PREFIX): In Apple
52242         universal builds, define directly, using _LP64.
52243         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52244         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52245         * modules/inttypes (Depends-on): Add multiarch.
52246         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52247
52248         Add support for universal builds to <stdint.h>.
52249         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52250         universal builds, define directly, using _LP64.
52251         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52252         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52253         and size_t.
52254         * modules/stdint (Depends-on): Add multiarch.
52255         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52256
52257         New module 'multiarch'.
52258         * modules/multiarch: New file.
52259         * m4/multiarch.m4: New file.
52260
52261 2008-12-25  Bruno Haible  <bruno@clisp.org>
52262
52263         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52264
52265 2008-12-25  Bruno Haible  <bruno@clisp.org>
52266
52267         * modules/btowc (License): Relicense under LGPLv2+.
52268         * modules/mbsinit (License): Likewise.
52269         * modules/mbrtowc (License): Likewise.
52270         * modules/wcrtomb (License): Likewise.
52271         * modules/streq (License): Likewise.
52272         Reported by David Lutterkort <lutter@redhat.com>.
52273
52274 2008-12-23  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52277
52278 2008-12-23  Bruno Haible  <bruno@clisp.org>
52279
52280         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52282         GETADDRINFO_LIB, not in LIBS.
52283         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52284         * modules/canon-host (Link): Likewise.
52285         * NEWS: Mention the change.
52286         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52287         GETADDRINFO_LIB.
52288
52289 2008-12-22  Bruno Haible  <bruno@clisp.org>
52290
52291         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52292         * doc/posix-functions/iswalpha_l.texi: Likewise.
52293         * doc/posix-functions/iswblank_l.texi: Likewise.
52294         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52295         * doc/posix-functions/iswctype_l.texi: Likewise.
52296         * doc/posix-functions/iswdigit_l.texi: Likewise.
52297         * doc/posix-functions/iswgraph_l.texi: Likewise.
52298         * doc/posix-functions/iswlower_l.texi: Likewise.
52299         * doc/posix-functions/iswprint_l.texi: Likewise.
52300         * doc/posix-functions/iswpunct_l.texi: Likewise.
52301         * doc/posix-functions/iswspace_l.texi: Likewise.
52302         * doc/posix-functions/iswupper_l.texi: Likewise.
52303         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52304         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52305         * doc/posix-functions/open_wmemstream.texi: Likewise.
52306         * doc/posix-functions/swscanf.texi: Likewise.
52307         * doc/posix-functions/towctrans_l.texi: Likewise.
52308         * doc/posix-functions/towlower.texi: Likewise.
52309         * doc/posix-functions/towlower_l.texi: Likewise.
52310         * doc/posix-functions/towupper.texi: Likewise.
52311         * doc/posix-functions/towupper_l.texi: Likewise.
52312         * doc/posix-functions/vfwprintf.texi: Likewise.
52313         * doc/posix-functions/vfwscanf.texi: Likewise.
52314         * doc/posix-functions/vswscanf.texi: Likewise.
52315         * doc/posix-functions/vwprintf.texi: Likewise.
52316         * doc/posix-functions/vwscanf.texi: Likewise.
52317         * doc/posix-functions/wcpcpy.texi: Likewise.
52318         * doc/posix-functions/wcpncpy.texi: Likewise.
52319         * doc/posix-functions/wcscasecmp.texi: Likewise.
52320         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52321         * doc/posix-functions/wcscoll_l.texi: Likewise.
52322         * doc/posix-functions/wcsdup.texi: Likewise.
52323         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52324         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52325         * doc/posix-functions/wcsnlen.texi: Likewise.
52326         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52327         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52328         * doc/posix-functions/wctrans_l.texi: Likewise.
52329         * doc/posix-functions/wctype_l.texi: Likewise.
52330         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52331         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52332         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52333         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52334         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52335         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52336         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52337         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52338         * doc/glibc-functions/wcschrnul.texi: Likewise.
52339         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52340         * doc/glibc-functions/wcstod_l.texi: Likewise.
52341         * doc/glibc-functions/wcstof_l.texi: Likewise.
52342         * doc/glibc-functions/wcstol_l.texi: Likewise.
52343         * doc/glibc-functions/wcstold_l.texi: Likewise.
52344         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52345         * doc/glibc-functions/wcstoq.texi: Likewise.
52346         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52347         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52348         * doc/glibc-functions/wcstouq.texi: Likewise.
52349         * doc/glibc-functions/wmempcpy.texi: Likewise.
52350
52351 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52352             Eric Blake  <ebb9@byu.net>
52353             Paolo Bonzini  <bonzini@gnu.org>
52354             Bruno Haible  <bruno@clisp.org>
52355
52356         Make c-stack work on Haiku.
52357         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52358         (c_stack_action): Use SA_ONSTACK flag.
52359
52360 2008-12-22  Bruno Haible  <bruno@clisp.org>
52361
52362         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52363
52364 2008-12-22  Bruno Haible  <bruno@clisp.org>
52365
52366         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52367         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52368         being overridden.
52369         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52370         New macros.
52371         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52373         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52374         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52375
52376 2008-12-22  Bruno Haible  <bruno@clisp.org>
52377
52378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52379         from test code.
52380
52381 2008-12-22  Eric Blake  <ebb9@byu.net>
52382
52383         Avoid gcc warnings on cygwin.
52384         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52385         Avoid unused variable.
52386         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52387         Likewise.
52388
52389 2008-12-22  Bruno Haible  <bruno@clisp.org>
52390
52391         Remove HAVE_MBRTOWC conditionals.
52392         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52393         (mbscasecmp): Assume mbrtowc function.
52394         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52395         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52396         * lib/mbschr.c: Include mbuiter.h unconditionally.
52397         (mbschr): Assume mbrtowc function.
52398         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52399         (mbscspn): Assume mbrtowc function.
52400         * lib/mbslen.c: Include mbuiter.h unconditionally.
52401         (mbslen): Assume mbrtowc function.
52402         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52403         (mbsncasecmp): Assume mbrtowc function.
52404         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52405         (mbsnlen): Assume mbrtowc function.
52406         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52407         (mbspbrk): Assume mbrtowc function.
52408         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52409         (mbspcasecmp): Assume mbrtowc function.
52410         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52411         (mbsrchr): Assume mbrtowc function.
52412         * lib/mbssep.c: Include mbuiter.h unconditionally.
52413         (mbssep): Assume mbrtowc function.
52414         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52415         (mbsspn): Assume mbrtowc function.
52416         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52417         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52418         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52419         (mbstok_r): Assume mbrtowc function.
52420         * lib/propername.c: Include mbuiter.h unconditionally.
52421         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52422         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52423         (trim2): Assume mbrtowc function.
52424         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52425         (mbsnwidth): Assume mbrtowc function.
52426         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52427         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52428         fallback definitions.
52429         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52430
52431 2008-12-22  Bruno Haible  <bruno@clisp.org>
52432
52433         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52434
52435 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52436
52437         * modules/regex: Request emulations for the mb*/wc* functions we need.
52438         * m4/regex.m4: Don't look for those functions here.
52439         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52440
52441 2008-12-22  Bruno Haible  <bruno@clisp.org>
52442
52443         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52444
52445 2008-12-21  Bruno Haible  <bruno@clisp.org>
52446
52447         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52448         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52449         (Include): Remove conditionalization.
52450         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52451         (Include): Remove conditionalization.
52452         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52453         (Include): Remove conditionalization.
52454         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52455         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52456         * NEWS: Mention the change.
52457         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52458         via Sergey Poznyakoff <gray@gnu.org.ua>.
52459
52460 2008-12-21  Bruno Haible  <bruno@clisp.org>
52461
52462         * MODULES.html.sh (Extended multibyte and wide character utilities
52463         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52464         wcrtomb, wcsrtombs.
52465         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52466         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52467         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52468         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52469
52470 2008-12-21  Bruno Haible  <bruno@clisp.org>
52471
52472         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52473
52474 2008-12-21  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/wcsnrtombs-tests: New file.
52477         * tests/test-wcsnrtombs1.sh: New file.
52478         * tests/test-wcsnrtombs2.sh: New file.
52479         * tests/test-wcsnrtombs3.sh: New file.
52480         * tests/test-wcsnrtombs4.sh: New file.
52481         * tests/test-wcsnrtombs.c: New file.
52482
52483         New module 'wcsnrtombs'.
52484         * lib/wchar.in.h (wcsnrtombs): New declaration.
52485         * lib/wcsnrtombs.c: New file.
52486         * lib/wcsrtombs-state.c: New file.
52487         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52488         (internal_state): Remove variable.
52489         * m4/wcsnrtombs.m4: New file.
52490         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52491         compilation units.
52492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52493         HAVE_WCSNRTOMBS.
52494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52495         HAVE_WCSNRTOMBS.
52496         * modules/wcsnrtombs: New file.
52497         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52498         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52499
52500 2008-12-21  Bruno Haible  <bruno@clisp.org>
52501
52502         * modules/wcsrtombs-tests: New file.
52503         * tests/test-wcsrtombs1.sh: New file.
52504         * tests/test-wcsrtombs2.sh: New file.
52505         * tests/test-wcsrtombs3.sh: New file.
52506         * tests/test-wcsrtombs4.sh: New file.
52507         * tests/test-wcsrtombs.c: New file.
52508
52509         New module 'wcsrtombs'.
52510         * lib/wchar.in.h (wcsrtombs): New declaration.
52511         * lib/wcsrtombs.c: New file.
52512         * m4/wcsrtombs.m4: New file.
52513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52514         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52516         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52517         * modules/wcsrtombs: New file.
52518         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52519         bugs.
52520
52521 2008-12-21  Bruno Haible  <bruno@clisp.org>
52522
52523         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52524         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52525         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52526         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52527         if not correct.
52528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52529         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52530         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52531         m4/locale-zh.m4, m4/codeset.m4.
52532         * doc/posix-functions/wcrtomb.texi: Document the bug.
52533
52534 2008-12-21  Bruno Haible  <bruno@clisp.org>
52535
52536         Work around a btowc() bug on IRIX 6.5.
52537         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52538         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52539         REPLACE_WTOBC if not.
52540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52541         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52542         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52543
52544 2008-12-21  Bruno Haible  <bruno@clisp.org>
52545
52546         * modules/wcrtomb-tests: New file.
52547         * tests/test-wcrtomb.sh: New file.
52548         * tests/test-wcrtomb.c: New file.
52549
52550         New module 'wcrtomb'.
52551         * lib/wchar.in.h (wcrtomb): New declaration.
52552         * lib/wcrtomb.c: New file.
52553         * m4/wcrtomb.m4: New file.
52554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52555         HAVE_WCRTOMB.
52556         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52557         HAVE_WCRTOMB.
52558         * modules/wcrtomb: New file.
52559         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52560
52561 2008-12-21  Bruno Haible  <bruno@clisp.org>
52562
52563         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52564         * modules/mbsrtowcs (Files): Likewise.
52565         * modules/wctob (Files): Likewise.
52566         * modules/c-strcase-tests (Files): Likewise.
52567         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52568         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52569         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52570         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52571         * modules/vasnprintf-posix-tests (Files): Likewise.
52572
52573 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52574
52575         gitlog-to-changelog: pass all command-line arguments to git-log
52576         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52577         it is sometimes convenient to filter the commits in various ways.
52578         gitlog-to-changelog only allows --since to specify a start date,
52579         but git-log itself supports many other filtering mechanisms.
52580         At the moment, I want to filter by branch name.  Rather than
52581         adding a --branch option to gitlog-to-changelog, it seems more
52582         flexible to simply pass all options directly to git-log and let
52583         git do the work.  Notice that this effectively makes --since a
52584         redundant option for gitlog-to-changelog, but removing it would
52585         require current usage to change since calls would then require
52586         an additional '--'.
52587
52588 2008-12-21  Bruno Haible  <bruno@clisp.org>
52589
52590         * modules/mbsnrtowcs-tests: New file.
52591         * tests/test-mbsnrtowcs1.sh: New file.
52592         * tests/test-mbsnrtowcs2.sh: New file.
52593         * tests/test-mbsnrtowcs3.sh: New file.
52594         * tests/test-mbsnrtowcs4.sh: New file.
52595         * tests/test-mbsnrtowcs.c: New file.
52596
52597         New module 'mbsnrtowcs'.
52598         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52599         * lib/mbsnrtowcs.c: New file.
52600         * lib/mbsrtowcs-state.c: New file.
52601         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52602         (internal_state): Remove variable.
52603         * m4/mbsnrtowcs.m4: New file.
52604         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52605         compilation units.
52606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52607         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52608         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52609         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52610         * modules/mbsnrtowcs: New file.
52611         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52612         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52613         portability problem.
52614
52615 2008-12-21  Bruno Haible  <bruno@clisp.org>
52616
52617         Work around mbsrtowcs bug.
52618         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52619         (gl_FUNC_MBSRTOWCS): Invoke it.
52620         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52621         m4/locale-zh.m4.
52622         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52623
52624 2008-12-21  Bruno Haible  <bruno@clisp.org>
52625
52626         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52627
52628 2008-12-21  Bruno Haible  <bruno@clisp.org>
52629
52630         Update doc for AIX.
52631         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52632         16-bit wchar_t type.
52633         * doc/posix-functions/btowc.texi: Likewise.
52634         * doc/posix-functions/fgetwc.texi: Likewise.
52635         * doc/posix-functions/fgetws.texi: Likewise.
52636         * doc/posix-functions/fputwc.texi: Likewise.
52637         * doc/posix-functions/fputws.texi: Likewise.
52638         * doc/posix-functions/fwide.texi: Likewise.
52639         * doc/posix-functions/fwprintf.texi: Likewise.
52640         * doc/posix-functions/fwscanf.texi: Likewise.
52641         * doc/posix-functions/getwchar.texi: Likewise.
52642         * doc/posix-functions/getwc.texi: Likewise.
52643         * doc/posix-functions/iswalnum.texi: Likewise.
52644         * doc/posix-functions/iswalpha.texi: Likewise.
52645         * doc/posix-functions/iswblank.texi: Likewise.
52646         * doc/posix-functions/iswcntrl.texi: Likewise.
52647         * doc/posix-functions/iswctype.texi: Likewise.
52648         * doc/posix-functions/iswdigit.texi: Likewise.
52649         * doc/posix-functions/iswgraph.texi: Likewise.
52650         * doc/posix-functions/iswlower.texi: Likewise.
52651         * doc/posix-functions/iswprint.texi: Likewise.
52652         * doc/posix-functions/iswpunct.texi: Likewise.
52653         * doc/posix-functions/iswspace.texi: Likewise.
52654         * doc/posix-functions/iswupper.texi: Likewise.
52655         * doc/posix-functions/iswxdigit.texi: Likewise.
52656         * doc/posix-functions/mbrtowc.texi: Likewise.
52657         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52658         * doc/posix-functions/mbstowcs.texi: Likewise.
52659         * doc/posix-functions/mbtowc.texi: Likewise.
52660         * doc/posix-functions/putwchar.texi: Likewise.
52661         * doc/posix-functions/putwc.texi: Likewise.
52662         * doc/posix-functions/swprintf.texi: Likewise.
52663         * doc/posix-functions/tolower.texi: Likewise.
52664         * doc/posix-functions/toupper.texi: Likewise.
52665         * doc/posix-functions/towctrans.texi: Likewise.
52666         * doc/posix-functions/ungetwc.texi: Likewise.
52667         * doc/posix-functions/vswprintf.texi: Likewise.
52668         * doc/posix-functions/wcrtomb.texi: Likewise.
52669         * doc/posix-functions/wcscat.texi: Likewise.
52670         * doc/posix-functions/wcschr.texi: Likewise.
52671         * doc/posix-functions/wcscmp.texi: Likewise.
52672         * doc/posix-functions/wcscoll.texi: Likewise.
52673         * doc/posix-functions/wcscpy.texi: Likewise.
52674         * doc/posix-functions/wcscspn.texi: Likewise.
52675         * doc/posix-functions/wcsftime.texi: Likewise.
52676         * doc/posix-functions/wcslen.texi: Likewise.
52677         * doc/posix-functions/wcsncat.texi: Likewise.
52678         * doc/posix-functions/wcsncmp.texi: Likewise.
52679         * doc/posix-functions/wcsncpy.texi: Likewise.
52680         * doc/posix-functions/wcspbrk.texi: Likewise.
52681         * doc/posix-functions/wcsrchr.texi: Likewise.
52682         * doc/posix-functions/wcsrtombs.texi: Likewise.
52683         * doc/posix-functions/wcsspn.texi: Likewise.
52684         * doc/posix-functions/wcsstr.texi: Likewise.
52685         * doc/posix-functions/wcstod.texi: Likewise.
52686         * doc/posix-functions/wcstof.texi: Likewise.
52687         * doc/posix-functions/wcstoimax.texi: Likewise.
52688         * doc/posix-functions/wcstok.texi: Likewise.
52689         * doc/posix-functions/wcstold.texi: Likewise.
52690         * doc/posix-functions/wcstoll.texi: Likewise.
52691         * doc/posix-functions/wcstol.texi: Likewise.
52692         * doc/posix-functions/wcstombs.texi: Likewise.
52693         * doc/posix-functions/wcstoull.texi: Likewise.
52694         * doc/posix-functions/wcstoul.texi: Likewise.
52695         * doc/posix-functions/wcstoumax.texi: Likewise.
52696         * doc/posix-functions/wcswidth.texi: Likewise.
52697         * doc/posix-functions/wcsxfrm.texi: Likewise.
52698         * doc/posix-functions/wctob.texi: Likewise.
52699         * doc/posix-functions/wctomb.texi: Likewise.
52700         * doc/posix-functions/wctrans.texi: Likewise.
52701         * doc/posix-functions/wctype.texi: Likewise.
52702         * doc/posix-functions/wcwidth.texi: Likewise.
52703         * doc/posix-functions/wmemchr.texi: Likewise.
52704         * doc/posix-functions/wmemcmp.texi: Likewise.
52705         * doc/posix-functions/wmemcpy.texi: Likewise.
52706         * doc/posix-functions/wmemmove.texi: Likewise.
52707         * doc/posix-functions/wmemset.texi: Likewise.
52708         * doc/posix-functions/wprintf.texi: Likewise.
52709         * doc/posix-functions/wscanf.texi: Likewise.
52710
52711 2008-12-21  Bruno Haible  <bruno@clisp.org>
52712
52713         Update doc for HP-UX 11.11.
52714         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52715         in HP-UX version 11.00, not in all versions of HP-UX 11.
52716         * doc/posix-functions/fwide.texi: Likewise.
52717         * doc/posix-functions/fwprintf.texi: Likewise.
52718         * doc/posix-functions/fwscanf.texi: Likewise.
52719         * doc/posix-functions/inet_ntop.texi: Likewise.
52720         * doc/posix-functions/inet_pton.texi: Likewise.
52721         * doc/posix-functions/mbrlen.texi: Likewise.
52722         * doc/posix-functions/mbrtowc.texi: Likewise.
52723         * doc/posix-functions/mbsinit.texi: Likewise.
52724         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52725         * doc/posix-functions/swprintf.texi: Likewise.
52726         * doc/posix-functions/swscanf.texi: Likewise.
52727         * doc/posix-functions/towctrans.texi: Likewise.
52728         * doc/posix-functions/vfwprintf.texi: Likewise.
52729         * doc/posix-functions/vswprintf.texi: Likewise.
52730         * doc/posix-functions/vwprintf.texi: Likewise.
52731         * doc/posix-functions/wcrtomb.texi: Likewise.
52732         * doc/posix-functions/wcsrtombs.texi: Likewise.
52733         * doc/posix-functions/wcsstr.texi: Likewise.
52734         * doc/posix-functions/wctob.texi: Likewise.
52735         * doc/posix-functions/wctrans.texi: Likewise.
52736         * doc/posix-functions/wmemchr.texi: Likewise.
52737         * doc/posix-functions/wmemcmp.texi: Likewise.
52738         * doc/posix-functions/wmemcpy.texi: Likewise.
52739         * doc/posix-functions/wmemmove.texi: Likewise.
52740         * doc/posix-functions/wmemset.texi: Likewise.
52741         * doc/posix-functions/wprintf.texi: Likewise.
52742         * doc/posix-functions/wscanf.texi: Likewise.
52743
52744 2008-12-21  Bruno Haible  <bruno@clisp.org>
52745
52746         Work around a portability problem.
52747         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52748         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52749
52750 2008-12-20  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52753         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52754         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52756         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52757
52758         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52759         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52760         set.
52761         (GNULIB_defined_mbstate_t): New macro.
52762         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52763         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52764         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52765         reuses the system's mbrtowc function but works around the bugs.
52766         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52767         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52768         macros.
52769         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52770         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52771         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52772         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52773         REPLACE_MBSINIT if mbsinit needs to be overridden.
52774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52775         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52776         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52777         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52778         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52779         m4/locale-zh.m4.
52780         (Depends): Add mbsinit.
52781         * modules/mbsinit (Depends): Add mbrtowc.
52782         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52783
52784 2008-12-20  Bruno Haible  <bruno@clisp.org>
52785
52786         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52787         so that there are no conversion errors on AIX.
52788         * tests/test-mbsrtowcs.c (main): LIkewise.
52789
52790 2008-12-20  Bruno Haible  <bruno@clisp.org>
52791
52792         Work around wctob bug on Solaris <= 9.
52793         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52794         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52796         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52797         * modules/wctob (Files): Add m4/locale-fr.m4.
52798         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52799
52800 2008-12-20  Bruno Haible  <bruno@clisp.org>
52801
52802         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52803         /dev/null.
52804         * tests/test-select-in.sh: Likewise.
52805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52806
52807 2008-12-20  Bruno Haible  <bruno@clisp.org>
52808
52809         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52810         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52811         Cygwin 1.5.x.
52812
52813 2008-12-20  Bruno Haible  <bruno@clisp.org>
52814
52815         Ensure mbstate_t is defined on HP-UX 11.11.
52816         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52817         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52818         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52819         AC_USE_SYSTEM_EXTENSIONS.
52820         * modules/fnmatch (Depends-on): Add extensions.
52821         * modules/mbrlen (Depends-on): Likewise.
52822         * modules/mbrtowc (Depends-on): Likewise.
52823         * modules/mbsinit (Depends-on): Likewise.
52824         * modules/mbsrtowcs (Depends-on): Likewise.
52825         * modules/mbswidth (Depends-on): Likewise.
52826         * modules/quotearg (Depends-on): Likewise.
52827         * modules/strftime (Depends-on): Likewise.
52828
52829 2008-12-20  Bruno Haible  <bruno@clisp.org>
52830
52831         Ensure wctob is declared on IRIX 6.5.
52832         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52833         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52834         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52836         of HAVE_WCTOB.
52837         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52838         HAVE_WCTOB.
52839         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52840
52841 2008-12-19  Bruno Haible  <bruno@clisp.org>
52842
52843         * modules/mbsrtowcs-tests: New file.
52844         * tests/test-mbsrtowcs1.sh: New file.
52845         * tests/test-mbsrtowcs2.sh: New file.
52846         * tests/test-mbsrtowcs3.sh: New file.
52847         * tests/test-mbsrtowcs4.sh: New file.
52848         * tests/test-mbsrtowcs.c: New file.
52849
52850         New module 'mbsrtowcs'.
52851         * lib/wchar.in.h (mbsrtowcs): New declaration.
52852         * lib/mbsrtowcs.c: New file.
52853         * m4/mbsrtowcs.m4: New file.
52854         * modules/mbsrtowcs: New file.
52855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52856         HAVE_MBSRTOWCS.
52857         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52858         HAVE_MBSRTOWCS.
52859         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52860
52861 2008-12-19  Bruno Haible  <bruno@clisp.org>
52862
52863         New module 'mbrlen'.
52864         * lib/wchar.in.h (mbrlen): New declaration.
52865         * lib/mbrlen.c: New file.
52866         * m4/mbrlen.m4: New file.
52867         * modules/mbrlen: New file.
52868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52869         HAVE_MBRLEN.
52870         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52871         HAVE_MBRLEN.
52872         * doc/posix-functions/mbrlen.texi: Document the new module.
52873
52874 2008-12-19  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52877         * modules/mbrtowc (Depends-on): Add verify.
52878         Suggested by Paul Eggert.
52879
52880 2008-12-18  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/mbsinit-tests: New file.
52883         * tests/test-mbsinit.sh: New file.
52884         * tests/test-mbsinit.c: New file.
52885
52886 2008-12-18  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/mbrtowc-tests: New file.
52889         * tests/test-mbrtowc1.sh: New file.
52890         * tests/test-mbrtowc2.sh: New file.
52891         * tests/test-mbrtowc3.sh: New file.
52892         * tests/test-mbrtowc4.sh: New file.
52893         * tests/test-mbrtowc.c: New file.
52894
52895         New module 'mbrtowc'.
52896         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52897         mbsinit and mbrtowc.
52898         (mbrtowc): New declaration.
52899         * lib/mbrtowc.c: New file.
52900         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52901         * modules/mbrtowc: New file.
52902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52903         HAVE_MBRTOWC.
52904         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52905         HAVE_MBRTOWC.
52906         * doc/posix-functions/mbrtowc.texi: Document the new module.
52907
52908 2008-12-18  Bruno Haible  <bruno@clisp.org>
52909
52910         New module 'wctob'.
52911         * lib/wchar.in.h (wctob): New declaration.
52912         * lib/wctob.c: New file.
52913         * m4/wctob.m4: New file.
52914         * modules/wctob: New file.
52915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52916         HAVE_WCTOB.
52917         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52918         * doc/posix-functions/wctob.texi: Document the new module.
52919
52920 2008-12-18  Bruno Haible  <bruno@clisp.org>
52921
52922         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52923         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52924
52925 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52926
52927         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52928         G. Christensen" <tgc@jupiterrise.com>.
52929
52930         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52931         G. Christensen" <tgc@jupiterrise.com>.
52932
52933         * lib/flock.c: Need to include string.h.  Reported by "Tom
52934         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52935         <ebb9@byu.net>.
52936
52937 2008-12-18  Bruno Haible  <bruno@clisp.org>
52938
52939         * m4/locale-ja.m4: New file, from GNU gettext.
52940
52941 2008-12-17  Bruno Haible  <bruno@clisp.org>
52942
52943         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52944         Suggested by Eric Blake.
52945
52946 2008-12-17  Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52949
52950 2008-12-17  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52953         * modules/mbsinit (Depends-on): Add verify.
52954         Suggested by Paul Eggert.
52955
52956 2008-12-17  Bruno Haible  <bruno@clisp.org>
52957
52958         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52959         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52960         gl_FUNC_MBRTOWC.
52961         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52962         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52963         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52964         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52965         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52966         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52967         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52968         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52969         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52970         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52971         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52972         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52973         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52974         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52975         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52976         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52977         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52978         * modules/trim (configure.ac): Likewise.
52979
52980 2008-12-17  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/btowc-tests: New file.
52983         * tests/test-btowc1.sh: New file.
52984         * tests/test-btowc2.sh: New file.
52985         * tests/test-btowc.c: New file.
52986
52987         New module 'btowc'.
52988         * lib/wchar.in.h (btowc): New declaration.
52989         * lib/btowc.c: New file.
52990         * m4/btowc.m4: New file.
52991         * modules/btowc: New file.
52992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52993         HAVE_BTOWC.
52994         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52995         * doc/posix-functions/btowc.texi: Document the new module.
52996
52997 2008-12-17  Bruno Haible  <bruno@clisp.org>
52998
52999         New module 'mbsinit'.
53000         * lib/wchar.in.h (mbsinit): New declaration.
53001         * lib/mbsinit.c: New file.
53002         * m4/mbsinit.m4: New file.
53003         * modules/mbsinit: New file.
53004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53005         HAVE_MBSINIT.
53006         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53007         HAVE_MBSINIT.
53008         * doc/posix-functions/mbsinit.texi: Document the new module.
53009
53010 2008-12-16  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/unistd.in.h: Add comment.
53013         * tests/test-environ.c: Don't include <stdlib.h>.
53014
53015 2008-12-16  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/parse-duration.h (parse_duration): Document return value
53018         convention.
53019         * lib/parse-duration.c: Include specification header first. Add
53020         comments.
53021         (_): Remove macro.
53022         (parse_year_month_day, parse_hour_minute_second): Move side effects
53023         outside of strchr call.
53024         (parse_non_iso8601): Move side effects outside of isspace call.
53025         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53026         call.
53027
53028 2008-12-16  Bruno Haible  <bruno@clisp.org>
53029
53030         * tests/test-parse-duration.sh: Produce no output when the test
53031         succeeds.
53032
53033 2008-12-16  Bruno Haible  <bruno@clisp.org>
53034
53035         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53036         expressions.
53037
53038 2008-12-15  Bruno Haible  <bruno@clisp.org>
53039
53040         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53041         * doc/glibc-functions/flistxattr.texi: Likewise.
53042         * doc/glibc-functions/fopencookie.texi: Likewise.
53043         * doc/glibc-functions/fremovexattr.texi: Likewise.
53044         * doc/glibc-functions/fsetxattr.texi: Likewise.
53045         * doc/glibc-functions/getxattr.texi: Likewise.
53046         * doc/glibc-functions/lgetxattr.texi: Likewise.
53047         * doc/glibc-functions/listxattr.texi: Likewise.
53048         * doc/glibc-functions/llistxattr.texi: Likewise.
53049         * doc/glibc-functions/lremovexattr.texi: Likewise.
53050         * doc/glibc-functions/lsetxattr.texi: Likewise.
53051         * doc/glibc-functions/removexattr.texi: Likewise.
53052         * doc/glibc-functions/setxattr.texi: Likewise.
53053         * doc/posix-functions/open_memstream.texi: Likewise.
53054
53055 2008-12-15  Eric Blake  <ebb9@byu.net>
53056
53057         Update doc for cygwin 1.7.
53058         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53059         functions.
53060         * doc/posix-functions/fchmodat.texi: Likewise.
53061         * doc/posix-functions/fchownat.texi: Likewise.
53062         * doc/posix-functions/fdopendir.texi: Likewise.
53063         * doc/posix-functions/fmemopen.texi: Likewise.
53064         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53065         * doc/posix-functions/fstatat.texi: Likewise.
53066         * doc/posix-functions/futimens.texi: Likewise.
53067         * doc/posix-functions/gai_strerror.texi: Likewise.
53068         * doc/posix-functions/getaddrinfo.texi: Likewise.
53069         * doc/posix-functions/getnameinfo.texi: Likewise.
53070         * doc/posix-functions/if_freenameindex.texi: Likewise.
53071         * doc/posix-functions/if_indextoname.texi: Likewise.
53072         * doc/posix-functions/if_nameindex.texi: Likewise.
53073         * doc/posix-functions/if_nametoindex.texi: Likewise.
53074         * doc/posix-functions/insque.texi: Likewise.
53075         * doc/posix-functions/linkat.texi: Likewise.
53076         * doc/posix-functions/llrint.texi: Likewise.
53077         * doc/posix-functions/llrintf.texi: Likewise.
53078         * doc/posix-functions/llrintl.texi: Likewise.
53079         * doc/posix-functions/lockf.texi: Likewise.
53080         * doc/posix-functions/lrintl.texi: Likewise.
53081         * doc/posix-functions/mkdirat.texi: Likewise.
53082         * doc/posix-functions/mkfifoat.texi: Likewise.
53083         * doc/posix-functions/mknodat.texi: Likewise.
53084         * doc/posix-functions/mq_close.texi: Likewise.
53085         * doc/posix-functions/mq_getattr.texi: Likewise.
53086         * doc/posix-functions/mq_notify.texi: Likewise.
53087         * doc/posix-functions/mq_open.texi: Likewise.
53088         * doc/posix-functions/mq_receive.texi: Likewise.
53089         * doc/posix-functions/mq_send.texi: Likewise.
53090         * doc/posix-functions/mq_setattr.texi: Likewise.
53091         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53092         * doc/posix-functions/mq_timedsend.texi: Likewise.
53093         * doc/posix-functions/mq_unlink.texi: Likewise.
53094         * doc/posix-functions/open_memstream.texi: Likewise.
53095         * doc/posix-functions/openat.texi: Likewise.
53096         * doc/posix-functions/posix_fadvise.texi: Likewise.
53097         * doc/posix-functions/posix_fallocate.texi: Likewise.
53098         * doc/posix-functions/posix_madvise.texi: Likewise.
53099         * doc/posix-functions/posix_memalign.texi: Likewise.
53100         * doc/posix-functions/posix_openpt.texi: Likewise.
53101         * doc/posix-functions/readlinkat.texi: Likewise.
53102         * doc/posix-functions/remque.texi: Likewise.
53103         * doc/posix-functions/renameat.texi: Likewise.
53104         * doc/posix-functions/rintl.texi: Likewise.
53105         * doc/posix-functions/sem_unlink.texi: Likewise.
53106         * doc/posix-functions/shm_open.texi: Likewise.
53107         * doc/posix-functions/shm_unlink.texi: Likewise.
53108         * doc/posix-functions/signgam.texi: Likewise.
53109         * doc/posix-functions/sigset.texi: Likewise.
53110         * doc/posix-functions/stpcpy.texi: Likewise.
53111         * doc/posix-functions/stpncpy.texi: Likewise.
53112         * doc/posix-functions/strerror.texi: Likewise.
53113         * doc/posix-functions/strtod.texi: Likewise.
53114         * doc/posix-functions/symlinkat.texi: Likewise.
53115         * doc/posix-functions/unlinkat.texi: Likewise.
53116         * doc/posix-functions/utimensat.texi: Likewise.
53117         * doc/glibc-functions/bindresvport.texi: Likewise.
53118         * doc/glibc-functions/dn_expand.texi: Likewise.
53119         * doc/glibc-functions/exp10.texi: Likewise.
53120         * doc/glibc-functions/exp10f.texi: Likewise.
53121         * doc/glibc-functions/fgetxattr.texi: Likewise.
53122         * doc/glibc-functions/flistxattr.texi: Likewise.
53123         * doc/glibc-functions/fopencookie.texi: Likewise.
53124         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53125         * doc/glibc-functions/fremovexattr.texi: Likewise.
53126         * doc/glibc-functions/fsetxattr.texi: Likewise.
53127         * doc/glibc-functions/getifaddrs.texi: Likewise.
53128         * doc/glibc-functions/getxattr.texi: Likewise.
53129         * doc/glibc-functions/lgetxattr.texi: Likewise.
53130         * doc/glibc-functions/listxattr.texi: Likewise.
53131         * doc/glibc-functions/llistxattr.texi: Likewise.
53132         * doc/glibc-functions/lremovexattr.texi: Likewise.
53133         * doc/glibc-functions/lsetxattr.texi: Likewise.
53134         * doc/glibc-functions/pow10.texi: Likewise.
53135         * doc/glibc-functions/pow10f.texi: Likewise.
53136         * doc/glibc-functions/rcmd_af.texi: Likewise.
53137         * doc/glibc-functions/removexattr.texi: Likewise.
53138         * doc/glibc-functions/res_init.texi: Likewise.
53139         * doc/glibc-functions/res_mkquery.texi: Likewise.
53140         * doc/glibc-functions/res_query.texi: Likewise.
53141         * doc/glibc-functions/res_querydomain.texi: Likewise.
53142         * doc/glibc-functions/res_send.texi: Likewise.
53143         * doc/glibc-functions/rresvport_af.texi: Likewise.
53144         * doc/glibc-functions/setxattr.texi: Likewise.
53145         * doc/glibc-functions/strcasestr.texi: Likewise.
53146
53147 2008-12-15  Bruno Haible  <bruno@clisp.org>
53148
53149         Fix compilation error on OSF/1 4.0.
53150         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53151         <sys/time.h>, simply delegate to the system header.
53152         Reported by Daniel Richard G. <oss@teragram.com>.
53153
53154 2008-12-15  Bruno Haible  <bruno@clisp.org>
53155
53156         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53157         * doc/posix-functions/fchmodat.texi: Likewise.
53158         * doc/posix-functions/fchownat.texi: Likewise.
53159         * doc/posix-functions/fdopendir.texi: Likewise.
53160         * doc/posix-functions/fstatat.texi: Likewise.
53161         * doc/posix-functions/mkdirat.texi: Likewise.
53162         * doc/posix-functions/unlinkat.texi: Likewise.
53163
53164 2008-12-14  Bruno Haible  <bruno@clisp.org>
53165
53166         Update doc for POSIX:2008.
53167         * doc/posix-functions/faccessat.texi: New file.
53168         * doc/posix-functions/fchmodat.texi: New file.
53169         * doc/posix-functions/fchownat.texi: New file.
53170         * doc/posix-functions/fdopendir.texi: New file.
53171         * doc/posix-functions/fstatat.texi: New file.
53172         * doc/posix-functions/futimens.texi: New file.
53173         * doc/posix-functions/linkat.texi: New file.
53174         * doc/posix-functions/mkdirat.texi: New file.
53175         * doc/posix-functions/mkfifoat.texi: New file.
53176         * doc/posix-functions/mknodat.texi: New file.
53177         * doc/posix-functions/open_wmemstream.texi: New file.
53178         * doc/posix-functions/openat.texi: New file.
53179         * doc/posix-functions/psiginfo.texi: New file.
53180         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53181         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53182         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53183         * doc/posix-functions/readlinkat.texi: New file.
53184         * doc/posix-functions/renameat.texi: New file.
53185         * doc/posix-functions/strerror_l.texi: New file.
53186         * doc/posix-functions/symlinkat.texi: New file.
53187         * doc/posix-functions/unlinkat.texi: New file.
53188         * doc/posix-functions/utimensat.texi: New file.
53189         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53190
53191 2008-12-14  Bruno Haible  <bruno@clisp.org>
53192
53193         Update doc for POSIX:2008.
53194         * doc/posix-functions/alphasort.texi: Renamed from
53195         doc/glibc-functions/alphasort.texi.
53196         * doc/posix-functions/dirfd.texi: Renamed from
53197         doc/glibc-functions/dirfd.texi.
53198         * doc/posix-functions/dprintf.texi: Renamed from
53199         doc/glibc-functions/dprintf.texi.
53200         * doc/posix-functions/duplocale.texi: Renamed from
53201         doc/glibc-functions/duplocale.texi.
53202         * doc/posix-functions/fexecve.texi: Renamed from
53203         doc/glibc-functions/fexecve.texi.
53204         * doc/posix-functions/fmemopen.texi: Renamed from
53205         doc/glibc-functions/fmemopen.texi.
53206         * doc/posix-functions/freelocale.texi: Renamed from
53207         doc/glibc-functions/freelocale.texi.
53208         * doc/posix-functions/getdate_err.texi: Renamed from
53209         doc/glibc-functions/getdate_err.texi.
53210         * doc/posix-functions/isalnum_l.texi: Renamed from
53211         doc/glibc-functions/isalnum_l.texi.
53212         * doc/posix-functions/isalpha_l.texi: Renamed from
53213         doc/glibc-functions/isalpha_l.texi.
53214         * doc/posix-functions/isblank_l.texi: Renamed from
53215         doc/glibc-functions/isblank_l.texi.
53216         * doc/posix-functions/iscntrl_l.texi: Renamed from
53217         doc/glibc-functions/iscntrl_l.texi.
53218         * doc/posix-functions/isdigit_l.texi: Renamed from
53219         doc/glibc-functions/isdigit_l.texi.
53220         * doc/posix-functions/isgraph_l.texi: Renamed from
53221         doc/glibc-functions/isgraph_l.texi.
53222         * doc/posix-functions/islower_l.texi: Renamed from
53223         doc/glibc-functions/islower_l.texi.
53224         * doc/posix-functions/isprint_l.texi: Renamed from
53225         doc/glibc-functions/isprint_l.texi.
53226         * doc/posix-functions/ispunct_l.texi: Renamed from
53227         doc/glibc-functions/ispunct_l.texi.
53228         * doc/posix-functions/isspace_l.texi: Renamed from
53229         doc/glibc-functions/isspace_l.texi.
53230         * doc/posix-functions/isupper_l.texi: Renamed from
53231         doc/glibc-functions/isupper_l.texi.
53232         * doc/posix-functions/iswalnum_l.texi: Renamed from
53233         doc/glibc-functions/iswalnum_l.texi.
53234         * doc/posix-functions/iswalpha_l.texi: Renamed from
53235         doc/glibc-functions/iswalpha_l.texi.
53236         * doc/posix-functions/iswblank_l.texi: Renamed from
53237         doc/glibc-functions/iswblank_l.texi.
53238         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53239         doc/glibc-functions/iswcntrl_l.texi.
53240         * doc/posix-functions/iswctype_l.texi: Renamed from
53241         doc/glibc-functions/iswctype_l.texi.
53242         * doc/posix-functions/iswdigit_l.texi: Renamed from
53243         doc/glibc-functions/iswdigit_l.texi.
53244         * doc/posix-functions/iswgraph_l.texi: Renamed from
53245         doc/glibc-functions/iswgraph_l.texi.
53246         * doc/posix-functions/iswlower_l.texi: Renamed from
53247         doc/glibc-functions/iswlower_l.texi.
53248         * doc/posix-functions/iswprint_l.texi: Renamed from
53249         doc/glibc-functions/iswprint_l.texi.
53250         * doc/posix-functions/iswpunct_l.texi: Renamed from
53251         doc/glibc-functions/iswpunct_l.texi.
53252         * doc/posix-functions/iswspace_l.texi: Renamed from
53253         doc/glibc-functions/iswspace_l.texi.
53254         * doc/posix-functions/iswupper_l.texi: Renamed from
53255         doc/glibc-functions/iswupper_l.texi.
53256         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53257         doc/glibc-functions/iswxdigit_l.texi.
53258         * doc/posix-functions/isxdigit_l.texi: Renamed from
53259         doc/glibc-functions/isxdigit_l.texi.
53260         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53261         doc/glibc-functions/mbsnrtowcs.texi.
53262         * doc/posix-functions/mkdtemp.texi: Renamed from
53263         doc/glibc-functions/mkdtemp.texi.
53264         * doc/posix-functions/newlocale.texi: Renamed from
53265         doc/glibc-functions/newlocale.texi.
53266         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53267         doc/glibc-functions/nl_langinfo_l.texi.
53268         * doc/posix-functions/open_memstream.texi: Renamed from
53269         doc/glibc-functions/open_memstream.texi.
53270         * doc/posix-functions/opterr.texi: Renamed from
53271         doc/glibc-functions/opterr.texi.
53272         * doc/posix-functions/optind.texi: Renamed from
53273         doc/glibc-functions/optind.texi.
53274         * doc/posix-functions/optopt.texi: Renamed from
53275         doc/glibc-functions/optopt.texi.
53276         * doc/posix-functions/psignal.texi: Renamed from
53277         doc/glibc-functions/psignal.texi.
53278         * doc/posix-functions/scandir.texi: Renamed from
53279         doc/glibc-functions/scandir.texi.
53280         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53281         doc/glibc-functions/sched_get_priority_min.texi.
53282         * doc/posix-functions/signgam.texi: Renamed from
53283         doc/glibc-functions/signgam.texi.
53284         * doc/posix-functions/stpcpy.texi: Renamed from
53285         doc/glibc-functions/stpcpy.texi.
53286         * doc/posix-functions/stpncpy.texi: Renamed from
53287         doc/glibc-functions/stpncpy.texi.
53288         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53289         doc/glibc-functions/strcasecmp_l.texi.
53290         * doc/posix-functions/strcoll_l.texi: Renamed from
53291         doc/glibc-functions/strcoll_l.texi.
53292         * doc/posix-functions/strfmon_l.texi: Renamed from
53293         doc/glibc-functions/strfmon_l.texi.
53294         * doc/posix-functions/strftime_l.texi: Renamed from
53295         doc/glibc-functions/strftime_l.texi.
53296         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53297         doc/glibc-functions/strncasecmp_l.texi.
53298         * doc/posix-functions/strndup.texi: Renamed from
53299         doc/glibc-functions/strndup.texi.
53300         * doc/posix-functions/strnlen.texi: Renamed from
53301         doc/glibc-functions/strnlen.texi.
53302         * doc/posix-functions/strsignal.texi: Renamed from
53303         doc/glibc-functions/strsignal.texi.
53304         * doc/posix-functions/strxfrm_l.texi: Renamed from
53305         doc/glibc-functions/strxfrm_l.texi.
53306         * doc/posix-functions/timer_gettime.texi: Renamed from
53307         doc/glibc-functions/timer_gettime.texi.
53308         * doc/posix-functions/tolower_l.texi: Renamed from
53309         doc/glibc-functions/tolower_l.texi.
53310         * doc/posix-functions/toupper_l.texi: Renamed from
53311         doc/glibc-functions/toupper_l.texi.
53312         * doc/posix-functions/towctrans_l.texi: Renamed from
53313         doc/glibc-functions/towctrans_l.texi.
53314         * doc/posix-functions/towlower_l.texi: Renamed from
53315         doc/glibc-functions/towlower_l.texi.
53316         * doc/posix-functions/towupper_l.texi: Renamed from
53317         doc/glibc-functions/towupper_l.texi.
53318         * doc/posix-functions/uselocale.texi: Renamed from
53319         doc/glibc-functions/uselocale.texi.
53320         * doc/posix-functions/vdprintf.texi: Renamed from
53321         doc/glibc-functions/vdprintf.texi.
53322         * doc/posix-functions/wcpcpy.texi:
53323         Renamed from doc/glibc-functions/wcpcpy.texi.
53324         * doc/posix-functions/wcpncpy.texi: Renamed from
53325         doc/glibc-functions/wcpncpy.texi.
53326         * doc/posix-functions/wcscasecmp.texi: Renamed from
53327         doc/glibc-functions/wcscasecmp.texi.
53328         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53329         doc/glibc-functions/wcscasecmp_l.texi.
53330         * doc/posix-functions/wcscoll_l.texi: Renamed from
53331         doc/glibc-functions/wcscoll_l.texi.
53332         * doc/posix-functions/wcsdup.texi: Renamed from
53333         doc/glibc-functions/wcsdup.texi.
53334         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53335         doc/glibc-functions/wcsncasecmp.texi.
53336         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53337         doc/glibc-functions/wcsncasecmp_l.texi.
53338         * doc/posix-functions/wcsnlen.texi: Renamed from
53339         doc/glibc-functions/wcsnlen.texi.
53340         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53341         doc/glibc-functions/wcsnrtombs.texi.
53342         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53343         doc/glibc-functions/wcsxfrm_l.texi.
53344         * doc/posix-functions/wctrans_l.texi: Renamed from
53345         doc/glibc-functions/wctrans_l.texi.
53346         * doc/posix-functions/wctype_l.texi: Renamed from
53347         doc/glibc-functions/wctype_l.texi.
53348         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53349         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53350         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53351         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53352         these subsections.
53353         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53354         Remove sections.
53355
53356 2008-12-14  Bruno Haible  <bruno@clisp.org>
53357
53358         Update doc for POSIX:2008.
53359         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53360
53361 2008-12-14  Bruno Haible  <bruno@clisp.org>
53362
53363         Update doc for POSIX:2008.
53364         * doc/pastposix-functions/bcmp.texi: Renamed from
53365         doc/posix-functions/bcmp.texi.
53366         * doc/pastposix-functions/bcopy.texi: Renamed from
53367         doc/posix-functions/bcopy.texi.
53368         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53369         doc/posix-functions/bsd_signal.texi.
53370         * doc/pastposix-functions/bzero.texi: Renamed from
53371         doc/posix-functions/bzero.texi.
53372         * doc/pastposix-functions/ecvt.texi: Renamed from
53373         doc/posix-functions/ecvt.texi.
53374         * doc/pastposix-functions/fcvt.texi: Renamed from
53375         doc/posix-functions/fcvt.texi.
53376         * doc/pastposix-functions/ftime.texi: Renamed from
53377         doc/posix-functions/ftime.texi.
53378         * doc/pastposix-functions/gcvt.texi: Renamed from
53379         doc/posix-functions/gcvt.texi.
53380         * doc/pastposix-functions/getcontext.texi: Renamed from
53381         doc/posix-functions/getcontext.texi.
53382         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53383         doc/posix-functions/gethostbyaddr.texi.
53384         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53385         doc/posix-functions/gethostbyname.texi.
53386         * doc/pastposix-functions/getwd.texi: Renamed from
53387         doc/posix-functions/getwd.texi.
53388         * doc/pastposix-functions/h_errno.texi: Renamed from
53389         doc/posix-functions/h_errno.texi.
53390         * doc/pastposix-functions/index.texi: Renamed from
53391         doc/posix-functions/index.texi.
53392         * doc/pastposix-functions/makecontext.texi: Renamed from
53393         doc/posix-functions/makecontext.texi.
53394         * doc/pastposix-functions/mktemp.texi: Renamed from
53395         doc/posix-functions/mktemp.texi.
53396         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53397         doc/posix-functions/pthread_attr_getstackaddr.texi.
53398         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53399         doc/posix-functions/pthread_attr_setstackaddr.texi.
53400         * doc/pastposix-functions/rindex.texi: Renamed from
53401         doc/posix-functions/rindex.texi.
53402         * doc/pastposix-functions/scalb.texi: Renamed from
53403         doc/posix-functions/scalb.texi.
53404         * doc/pastposix-functions/setcontext.texi: Renamed from
53405         doc/posix-functions/setcontext.texi.
53406         * doc/pastposix-functions/swapcontext.texi: Renamed from
53407         doc/posix-functions/swapcontext.texi.
53408         * doc/pastposix-functions/ualarm.texi: Renamed from
53409         doc/posix-functions/ualarm.texi.
53410         * doc/pastposix-functions/usleep.texi: Renamed from
53411         doc/posix-functions/usleep.texi.
53412         * doc/pastposix-functions/vfork.texi: Renamed from
53413         doc/posix-functions/vfork.texi.
53414         * doc/pastposix-functions/wcswcs.texi: Renamed from
53415         doc/posix-functions/wcswcs.texi.
53416         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53417         (Function Substitutes): Update.
53418
53419 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53420
53421         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53422         m4/strerror.m4.
53423
53424 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53425             Bruno Haible  <bruno@clisp.org>
53426
53427         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53428
53429 2008-12-13  Bruno Haible  <bruno@clisp.org>
53430
53431         * modules/strtoull (Depends-on): Remove unistd.
53432
53433 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53434
53435         * modules/strtoull (Depends-on): Add stdlib.
53436
53437 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53438
53439         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53440
53441 2008-12-10  Jim Meyering  <meyering@redhat.com>
53442
53443         gl_ASSERT: don't say assertions are disabled when they're not
53444         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53445         "checking whether to enable assertions... no", when they are in
53446         fact enabled.  This is solely a bug in the output of configure.
53447         In spite of saying "no", NDEBUG was not defined in that case.
53448         Also, as noted by Eric Blake, leave assertions enabled upon
53449         --enable-assert=INVALID.
53450
53451 2008-12-10  Bruno Haible  <bruno@clisp.org>
53452
53453         Change MODULES.html to refer to POSIX:2008 where possible.
53454         * MODULES.html.sh (POSIX2008_URL): New variable.
53455         (posix_headers): Remove sys/timeb, ucontext.
53456         (posix2001_headers): New variable.
53457         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53458         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53459         index, makecontext, mktemp, pthread_attr_getstackaddr,
53460         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53461         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53462         (posix2001_functions): New variable.
53463         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53464         otherwise.
53465
53466 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53467
53468         add missing include to parse-duration.c
53469         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53470         * modules/parse-duration (Depends-on): Add xalloc.
53471
53472         fix sed script reading maint.mk
53473         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53474         (syntax-check-rules): Use it.
53475
53476 2008-12-09  Bruno Haible  <bruno@clisp.org>
53477
53478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53479         MacOS X 10.4/PowerPC.
53480         Reported by Simon Josefsson.
53481
53482 2008-12-08  Jim Meyering  <meyering@redhat.com>
53483
53484         work around mingw's lack of some S_IF definitions
53485         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53486         Reported by Simon Josefsson.
53487
53488 2008-12-08  Bruno Haible  <bruno@clisp.org>
53489
53490         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53491         applied to variables. Needed on MacOS X 10.4/PowerPC.
53492         Reported by Simon Josefsson.
53493
53494 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53495         and Eric Blake  <ebb9@byu.net>
53496
53497         assert: honor --enable-assert
53498         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53499         order to honor --enable-assert, rather than treating it as a
53500         synonym for --disable-assert.
53501
53502 2008-12-08  Jim Meyering  <meyering@redhat.com>
53503
53504         * lib/posixtm.c: Remove now-useless declaration of mktime.
53505
53506         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53507
53508 2008-12-07  Bruno Haible  <bruno@clisp.org>
53509
53510         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53511         test_once): Mark functions as static.
53512         * tests/test-tls.c (test_tls): Likewise.
53513
53514 2008-12-07  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53517         iconv_register_autodetect.
53518
53519 2008-12-07  Jim Meyering  <meyering@redhat.com>
53520
53521         posixtm.c: avoid a warning
53522         * lib/posixtm.c (posixtime): Don't initialize tm0.
53523         It's no longer needed to placate gcc4's -Wuninitialized,
53524         and the attempt to placate would elicit a new warning.
53525
53526         unicodeio.c: mark unused parameters
53527         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53528         (fallback_failure_callback): Likewise.
53529
53530 2008-12-07  Bruno Haible  <bruno@clisp.org>
53531
53532         * gnulib-tool (func_create_testdir): When building the tests
53533         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53534         Reported by Simon Josefsson.
53535
53536 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53537
53538         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53539
53540 2008-12-06  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53543         Suggested by Eric Blake.
53544
53545 2008-12-06  Bruno Haible  <bruno@clisp.org>
53546
53547         Fix a c-stack test failure on MacOS X.
53548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53549         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53550         handler for SIGBUS as well.
53551         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53552         install a signal handler for SIGBUS as well.
53553         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53554
53555 2008-12-06  Bruno Haible  <bruno@clisp.org>
53556
53557         Advocacy documentation.
53558         * doc/gnulib-intro.texi (Benefits): New section.
53559         * doc/gnulib.texi: Update.
53560
53561 2008-12-06  Bruno Haible  <bruno@clisp.org>
53562
53563         Document the 'manywarnings' module.
53564         * doc/manywarnings.texi: New file.
53565         * doc/gnulib.texi: Include it.
53566
53567 2008-12-05  Eric Blake  <ebb9@byu.net>
53568
53569         tests: silence some gcc warnings
53570         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53571         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53572         type mismatches.
53573
53574 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53575             Bruno Haible  <bruno@clisp.org>
53576
53577         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53578
53579 2008-11-29  Jim Meyering  <meyering@redhat.com>
53580
53581         unicodeio.c: mark unused parameters
53582         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53583         (fallback_failure_callback): Likewise.
53584
53585         fts: fix a thinko
53586         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53587         (set_stat_type): Return S_IF*-valued "type" directly.
53588         Prompted by James Youngman's spotting a related bug.
53589         Confirmed by further testing through find.
53590
53591         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53592         * lib/fts.c (D_TYPE): Define.
53593         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53594         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53595         (s_ifmt_shift_bits): New function.
53596         (set_stat_type): New function.
53597         (fts_build): When not calling fts_stat, call set_stat_type
53598         to propagate dirent.d_type info to fts_read caller.
53599         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53600         fts_statp->st_mode type information may be valid.
53601
53602 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53603
53604         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53605         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53606         <sds@gnu.org>.
53607
53608 2008-11-20  Bruno Haible  <bruno@clisp.org>
53609
53610         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53611         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53612         INCLUDE_NEXT.
53613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53614         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53615         * modules/math (Makefile.am): Substitute
53616         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53617         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53618
53619 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53620             Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/stdint.in.h: Define all type macros so that their expansion is
53623         a single typedef'ed token. Fixes a compilation failure in Boost which
53624         does "using ::int8_t;".
53625
53626 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53627
53628         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53629         gl_MANYWARN_ALL_GCC.
53630         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53631         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53632         * modules/manywarnings: New file.
53633         * MODULES.html.sh: Mention manywarnings module.
53634
53635 2008-11-18  Bruno Haible  <bruno@clisp.org>
53636
53637         * doc/gnulib-tool.texi (Unit tests): New section.
53638
53639 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53640
53641         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53642         paths like 'lib/po/foo.po'.
53643
53644 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53645
53646         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53647         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53648
53649 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53650
53651         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53652         parameter works.
53653
53654 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53655
53656         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53657
53658 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53659
53660         * modules/parse-duration-tests: New file.
53661         * tests/test-parse-duration.sh: New file.
53662         * tests/test-parse-duration.c: New file.
53663
53664         New module 'parse-duration'.
53665         * lib/parse-duration.h: New file.
53666         * lib/parse-duration.c: New file.
53667         * modules/parse-duration: New file.
53668
53669 2008-11-17  Bruno Haible  <bruno@clisp.org>
53670
53671         * tests/test-select-out.sh: Comment out the first pipe test.
53672         Reported by Simon Josefsson.
53673
53674 2008-11-17  Bruno Haible  <bruno@clisp.org>
53675
53676         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53678         gl_HOSTENT.
53679
53680 2008-11-17  Bruno Haible  <bruno@clisp.org>
53681
53682         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53683         -lnetwork and -lnet. Needed for Haiku and BeOS.
53684
53685 2008-11-16  Bruno Haible  <bruno@clisp.org>
53686
53687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53688
53689 2008-11-16  Bruno Haible  <bruno@clisp.org>
53690
53691         Avoid test failure on Haiku.
53692         * tests/test-fsync.c: Include <errno.h>.
53693         (main): Don't require that fsync (0) fails.
53694
53695 2008-11-15  Bruno Haible  <bruno@clisp.org>
53696
53697         New module 'hostent'.
53698         * modules/hostent: New file.
53699         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53700
53701 2008-11-15  Bruno Haible  <bruno@clisp.org>
53702
53703         New module 'servent'.
53704         * modules/servent: New file.
53705         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53706
53707 2008-11-15  Bruno Haible  <bruno@clisp.org>
53708
53709         Avoid generating same test program with two different rules.
53710         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53711         test-frexp to test-frexp-nolibm.
53712         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53713         test-frexpl to test-frexpl-nolibm.
53714
53715 2008-11-15  Bruno Haible  <bruno@clisp.org>
53716
53717         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53718         $(FREXPL_LIBM).
53719
53720 2008-11-15  Bruno Haible  <bruno@clisp.org>
53721
53722         * lib/netdb.in.h: Activate the definitions also when the system's
53723         <netdb.h> has 'struct addrinfo'.
53724         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53725         EAI_OVERFLOW or AI_NUMERICSERV.
53726         * doc/posix-headers/netdb.texi: Document the problem.
53727
53728 2008-11-15  Bruno Haible  <bruno@clisp.org>
53729
53730         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53731
53732         Make the 'sched' module work on platforms where <sched.h> exists but
53733         is incomplete (such as Haiku).
53734         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53735         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53736         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53737         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53738         HAVE_STRUCT_SCHED_PARAM.
53739         * modules/sched (Depends-on): Add include_next.
53740         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53741         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53742         * doc/posix-headers/sched.texi: Document the issue.
53743
53744 2008-11-13  Jim Meyering  <meyering@redhat.com>
53745
53746         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53747         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53748         test would fail due to the difference in the Report bugs to ...
53749         line.  The expected address is empty, "<>", while the actual
53750         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53751
53752 2008-11-12  Bruno Haible  <bruno@clisp.org>
53753
53754         lstat: don't compile lstat.c on systems lacking lstat
53755         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53756         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53757         Reported by Daniel P. Berrange via Jim Meyering.
53758
53759 2008-11-12  Jim Meyering  <meyering@redhat.com>
53760
53761         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53762
53763 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53764
53765         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53766         instead.
53767
53768 2008-11-12  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/unicodeio.c: Include unistr.h.
53771         (utf8_wctomb): Remove function.
53772         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53773
53774 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53775
53776         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53777         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53778         <bruno@clisp.org>.
53779         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53780
53781 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53782
53783         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53784         * doc/gnulib.texi: Add section for warnings.
53785
53786 2008-11-11  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/sockets.h: Add a comment.
53789
53790 2008-11-11  Karl Berry  <karl@gnu.org>
53791
53792         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53793
53794 2008-11-11  Eric Blake  <ebb9@byu.net>
53795
53796         fdl.texi: avoid git symlinks
53797         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53798
53799 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53800
53801         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53802
53803 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53804
53805         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53806         (gl_WARN_ADD): Substitute $2 if literal.
53807
53808 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53809
53810         * m4/warning.m4: Remove.
53811
53812 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53813
53814         * m4/warnings.m4: Almost complete rewrite. :-)
53815
53816 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53817
53818         * modules/warnings: New module.
53819         * m4/warnings.m4: New file.
53820         * MODULES.html.sh: Mention warnings module.
53821         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53822         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53823
53824 2008-11-10  Eric Blake  <ebb9@byu.net>
53825
53826         fdl.texi: make a symlink to the latest version
53827         * doc/standards.texi: Revert today's earlier change.
53828         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53829         * doc/fdl.texi: ...and replace this with a symlink to the newer
53830         fdl-1.3.texi.
53831
53832 2008-11-10  Bruno Haible  <bruno@clisp.org>
53833
53834         * tests/test-select-fd.c (main): Accept the result file name as fourth
53835         argument.
53836         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53837         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53838
53839 2008-11-10  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53842         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53843         as autoconf-substituted macros.
53844         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53846         gl_NETDB_H_DEFAULTS. Set these variables.
53847         * modules/netdb (Makefile.am): Substitute these variables.
53848
53849 2008-11-10  Eric Blake  <ebb9@byu.net>
53850
53851         standards.texi: include correct file for FDL 1.3
53852         * doc/standards.texi (GNU Free Documentation License): Change
53853         include file to pull in FDL 1.3, not 1.2.
53854
53855         fdl.texi: revert accidental change to license
53856         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53857
53858 2008-11-10  Bruno Haible  <bruno@clisp.org>
53859
53860         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53861         cross-compiling guesses also when the native compile gives no result.
53862
53863 2008-11-10  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/spawni.c (__spawni): Force variable into the stack.
53866
53867 2008-11-10  Bruno Haible  <bruno@clisp.org>
53868
53869         Add support for Haiku.
53870         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53871         glibc and BeOS, but also on Haiku.
53872         * lib/fpurge.c (fpurge): Likewise.
53873         * lib/freadable.c (freadable): Likewise.
53874         * lib/freadahead.c (freadahead): Likewise.
53875         * lib/freading.c (freading): Likewise.
53876         * lib/freadptr.c (freadptr): Likewise.
53877         * lib/freadseek.c (freadptrinc): Likewise.
53878         * lib/fseeko.c (rpl_fseeko): Likewise.
53879         * lib/fseterr.c (fseterr): Likewise.
53880         * lib/fwritable.c (fwritable): Likewise.
53881         * lib/fwriting.c (fwriting): Likewise.
53882         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53883
53884 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53885
53886         * lib/config.charset: Treat Haiku like BeOS.
53887
53888 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53889
53890         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53891         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53892
53893 2008-11-08  Bruno Haible  <bruno@clisp.org>
53894
53895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53896         AC_CACHE_CHECK.
53897
53898 2008-11-08  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53901
53902 2008-11-08  Bruno Haible  <bruno@clisp.org>
53903
53904         * tests/test-select-fd.c: New file.
53905         * tests/test-select-in.sh: New file.
53906         * tests/test-select-out.sh: New file.
53907         * tests/test-select-stdin.c: New file.
53908         * modules/select-tests (Files): Add the new files.
53909         (Depends-on): Add gettimeofday.
53910         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53911         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53912         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53913
53914 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53915             Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53918
53919 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53920
53921         * build-aux/pmccabe2html: Added support for C++ source files.
53922
53923 2008-11-05  Ben Pfaff  <blp@gnu.org>
53924
53925         Fix lib/close.c build on Windows.
53926         * modules/close (Files): Add lib/w32sock.h.
53927
53928 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53929
53930         Accept Bison's NEWS format.
53931         * build-aux/announce-gen (print_news_deltas): Tweak
53932         $re_prefix.
53933
53934 2008-11-04  Bruno Haible  <bruno@clisp.org>
53935
53936         * modules/random_r (Maintainer): Add glibc.
53937
53938 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53939
53940         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53941         by karl@freefriends.org (Karl Berry).
53942         * doc/alloca.texi: Likewise.
53943         * doc/c-ctype.texi: Likewise.
53944         * doc/c-strcase.texi: Likewise.
53945         * doc/c-strcaseeq.texi: Likewise.
53946         * doc/c-strcasestr.texi: Likewise.
53947         * doc/c-strstr.texi: Likewise.
53948         * doc/c-strtod.texi: Likewise.
53949         * doc/c-strtold.texi: Likewise.
53950         * doc/ctime.texi: Likewise.
53951         * doc/error.texi: Likewise.
53952         * doc/fdl.texi: Likewise.
53953         * doc/gcd.texi: Likewise.
53954         * doc/getdate.texi: Likewise.
53955         * doc/gnulib-intro.texi: Likewise.
53956         * doc/gnulib-tool.texi: Likewise.
53957         * doc/gnulib.texi: Likewise.
53958         * doc/inet_ntoa.texi: Likewise.
53959         * doc/maintain.texi: Likewise.
53960         * doc/make-stds.texi: Likewise.
53961         * doc/quote.texi: Likewise.
53962         * doc/regexprops-generic.texi: Likewise.
53963         * doc/standards.texi: Likewise.
53964         * doc/verify.texi: Likewise.
53965         * doc/visibility.texi: Likewise.
53966         * doc/gnulib.texi (GNU Free Documentation License): Include
53967         fdl-1.3.texi instead of fdl.texi.
53968
53969 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53970
53971         * doc/fdl-1.3.texi: New file, from
53972         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53973         * modules/fdl-1.3: Add.
53974         * MODULES.html.sh: Add fdl-1.3.
53975
53976 2008-11-03  Bruno Haible  <bruno@clisp.org>
53977
53978         Make determination of absolute name of header file work with AIX xlc.
53979         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53980         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53981         preprocessing.
53982         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53983         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53984
53985 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53986
53987         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53988         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53989         <ludo@gnu.org>.
53990
53991 2008-11-02  Bruno Haible  <bruno@clisp.org>
53992
53993         Mark 'strpbrk' obsolete.
53994         * modules/strpbrk (Status, Notice): New sections.
53995         * modules/strtok_r (Depends-on): Add strpbrk.
53996
53997 2008-11-02  Bruno Haible  <bruno@clisp.org>
53998
53999         Mark 'strdup' obsolete.
54000         * modules/strdup (Status, Notice): New sections.
54001         * modules/findprog (Depends-on): Add strdup.
54002         * modules/getaddrinfo (Depends-on): Likewise.
54003         * modules/localename (Depends-on): Likewise.
54004         * modules/relocatable-lib (Depends-on): Likewise.
54005         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54006         * modules/relocatable-prog (Depends-on): Likewise.
54007         * modules/trim (Depends-on): Likewise.
54008         * modules/unictype/gen-ctype (Depends-on): Likewise.
54009         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54010
54011 2008-11-02  Bruno Haible  <bruno@clisp.org>
54012
54013         Mark 'strcspn' obsolete.
54014         * modules/strcspn (Status, Notice): New sections.
54015
54016 2008-11-02  Bruno Haible  <bruno@clisp.org>
54017
54018         Mark 'rmdir' obsolete.
54019         * modules/rmdir (Status, Notice): New sections.
54020         * modules/clean-temp (Depends-on): Add rmdir.
54021         * modules/openat (Depends-on): Likewise.
54022
54023 2008-11-02  Bruno Haible  <bruno@clisp.org>
54024
54025         Mark 'raise' obsolete.
54026         * modules/raise (Status, Notice): New sections.
54027         (Include): Specify <signal.h>.
54028         * modules/stdio (Depends-on): Add raise.
54029         * modules/write (Depends-on): Likewise.
54030
54031 2008-11-02  Bruno Haible  <bruno@clisp.org>
54032
54033         Mark 'memset' obsolete.
54034         * modules/memset (Status, Notice): New sections.
54035
54036 2008-11-02  Bruno Haible  <bruno@clisp.org>
54037
54038         Mark 'memmove' obsolete.
54039         * modules/memmove (Status, Notice): New sections.
54040         * modules/argp (Depends-on): Add memmove.
54041         * modules/argz (Depends-on): Likewise.
54042         * modules/canonicalize (Depends-on): Likewise.
54043         * modules/canonicalize-lgpl (Depends-on): Likewise.
54044         * modules/fts (Depends-on): Likewise.
54045         * modules/getcwd (Depends-on): Likewise.
54046         * modules/human (Depends-on): Likewise.
54047         * modules/regex (Depends-on): Likewise.
54048         * modules/striconveh (Depends-on): Likewise.
54049         * modules/trim (Depends-on): Likewise.
54050         * modules/unistr/u8-move (Depends-on): Likewise.
54051         * modules/unistr/u16-move (Depends-on): Likewise.
54052         * modules/unistr/u32-move (Depends-on): Likewise.
54053
54054 2008-11-02  Bruno Haible  <bruno@clisp.org>
54055
54056         Mark 'memcpy' obsolete.
54057         * modules/memcpy (Status, Notice): New sections.
54058
54059 2008-11-02  Bruno Haible  <bruno@clisp.org>
54060
54061         Mark 'memcmp' obsolete.
54062         * modules/memcmp (Status, Notice): New sections.
54063         * modules/argmatch (Depends-on): Add memchr.
54064         * modules/backupfile (Depends-on): Likewise.
54065         * modules/c-strcasestr (Depends-on): Likewise.
54066         * modules/crypto/des (Depends-on): Likewise.
54067         * modules/csharpcomp (Depends-on): Likewise.
54068         * modules/fnmatch (Depends-on): Likewise.
54069         * modules/git-merge-changelog (Depends-on): Likewise.
54070         * modules/isnand (Depends-on): Likewise.
54071         * modules/isnand-nolibm (Depends-on): Likewise.
54072         * modules/isnanf (Depends-on): Likewise.
54073         * modules/isnanf-nolibm (Depends-on): Likewise.
54074         * modules/isnanl (Depends-on): Likewise.
54075         * modules/isnanl-nolibm (Depends-on): Likewise.
54076         * modules/mbchar (Depends-on): Likewise.
54077         * modules/memcoll (Depends-on): Likewise.
54078         * modules/quotearg (Depends-on): Likewise.
54079         * modules/regex (Depends-on): Likewise.
54080         * modules/relocatable-prog (Depends-on): Likewise.
54081         * modules/same (Depends-on): Likewise.
54082         * modules/signbit (Depends-on): Likewise.
54083         * modules/strcasestr-simple (Depends-on): Likewise.
54084         * modules/unictype/gen-ctype (Depends-on): Likewise.
54085         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54086         * modules/uniname/uniname (Depends-on): Likewise.
54087         * modules/unistr/u8-cmp (Depends-on): Likewise.
54088
54089 2008-11-02  Bruno Haible  <bruno@clisp.org>
54090
54091         Mark 'memchr' obsolete.
54092         * modules/memchr (Status, Notice): New sections.
54093         * modules/argp (Depends-on): Add memchr.
54094         * modules/base64 (Depends-on): Likewise.
54095         * modules/c-strcasestr (Depends-on): Likewise.
54096         * modules/chdir-long (Depends-on): Likewise.
54097         * modules/fnmatch (Depends-on): Likewise.
54098         * modules/getsubopt (Depends-on): Likewise.
54099         * modules/git-merge-changelog (Depends-on): Likewise.
54100         * modules/glob (Depends-on): Likewise.
54101         * modules/strcasestr-simple (Depends-on): Likewise.
54102         * modules/strnlen (Depends-on): Likewise.
54103
54104 2008-11-02  Bruno Haible  <bruno@clisp.org>
54105
54106         Mark 'atexit' obsolete.
54107         * modules/atexit (Status, Notice): New sections.
54108         * modules/chdir-long (Depends-on): Add atexit.
54109         * modules/wait-process (Depends-on): Likewise.
54110
54111 2008-11-02  Bruno Haible  <bruno@clisp.org>
54112
54113         * gnulib-tool: New option --with-obsolete.
54114         (func_usage): Document it.
54115         (func_modules_transitive_closure): Drop obsolete dependencies if
54116         incobsolete is not true.
54117         (func_import): Read and save the incobsolete variable to the cache.
54118
54119 2008-11-02  Bruno Haible  <bruno@clisp.org>
54120
54121         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54122         * gnulib-tool: New option --extract-status.
54123         (func_usage): Document it.
54124         (sed_extract_prog): Recognize it.
54125         (func_get_status): New function.
54126
54127 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54128
54129         * modules/sockets (License): Change from LGPL to LGPLv2+.
54130
54131 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54132
54133         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54134
54135 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54136
54137         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54138         Mention times and sys_times.
54139         * modules/sys_times, modules/sys_times-tests: New modules.
54140         * modules/times, modules/times-tests: Likewise
54141         * m4/sys_times_h.m4: New file.
54142         * lib/sys_times.in.h: Likewise
54143         * lib/times.c: Likewise.
54144         * tests/test-sys_times.c: Likewise.
54145         * tests/test-times.c: Likewise.
54146         * doc/posix-headers/sys_times.texi: Update.
54147         * doc/posix-functions/times.texi: Update.
54148
54149 2008-10-28  Jim Meyering  <meyering@redhat.com>
54150
54151         * modules/tempname (Depends-on): Add lstat.
54152
54153         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54154
54155 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54156
54157         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54158         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54159         using idiom used elsewhere in gnulib.
54160
54161 2008-10-27  Jim Meyering  <meyering@redhat.com>
54162
54163         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54164
54165 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54166
54167         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54168         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54169         programs.
54170         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54171
54172 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54173
54174         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54175
54176 2008-10-27  Bruno Haible  <bruno@clisp.org>
54177
54178         * tests/test-lstat.c: Include <stdio.h>.
54179
54180 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54181
54182         * modules/lstat-tests: New module.
54183         * tests/test-lstat.c: New file.
54184
54185 2008-10-26  Jim Meyering  <meyering@redhat.com>
54186
54187         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54188
54189 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54190             Bruno Haible  <bruno@clisp.org>
54191
54192         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54193         * modules/configmake (Include): Add a note that the include must come
54194         after all system headers.
54195         * lib/javaversion.c: Include configmake.h after all other includes.
54196
54197 2008-10-26  Bruno Haible  <bruno@clisp.org>
54198
54199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54200         HAVE_STRUCT_RANDOM_DATA to 1.
54201         (gl_STDLIB_H): Simplify.
54202
54203 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54204
54205         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54206         substitute HAVE_STRUCT_RANDOM_DATA.
54207         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54208         random_data.
54209         * modules/stdlib (Makefile.am): Substitute
54210         HAVE_STRUCT_RANDOM_DATA.
54211
54212 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54213
54214         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54215         * doc/gnulib-intro.texi (Copyright): Likewise.
54216
54217 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54218
54219         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54220         findings.
54221
54222 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54223             Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/unistd.in.h: Include <winsock2.h>.
54226         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54227         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54228         Provide dummy declarations.
54229         (gethostname): Override.
54230         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54231         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54232         gl_PREREQ_SYS_H_WINSOCK2.
54233         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54234         * doc/posix-functions/gethostname.texi: More details.
54235
54236 2008-10-25  Bruno Haible  <bruno@clisp.org>
54237
54238         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54239         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54240         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54241
54242         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54243         here ...
54244         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54246         gl_UNISTD_H_DEFAULTS.
54247
54248 2008-10-25  Eric Blake  <ebb9@byu.net>
54249
54250         signbit: avoid spurious compiler failure
54251         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54252         declarations inside function.
54253
54254 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54255             Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54258         * modules/random_r (Depends-on): Add stdint.
54259
54260 2008-10-24  Bruno Haible  <bruno@clisp.org>
54261
54262         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54263         Eggert.
54264         * modules/strerror (License): Likewise.
54265
54266 2008-10-24  Jim Meyering  <meyering@redhat.com>
54267
54268         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54269         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54270
54271 2008-10-24  Eric Blake  <ebb9@byu.net>
54272
54273         getgroups: fix compilation when getgroups is available
54274         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54275         but with <config.h> override of getgroups disabled.
54276
54277 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54278
54279         * doc/gnulib.texi (Header files): Add note about C++ problems.
54280         Explained by Bruno Haible <bruno@clisp.org>.
54281
54282 2008-10-23  Bruno Haible  <bruno@clisp.org>
54283
54284         Define a dummy SA_NODEFER macro on Interix.
54285         * lib/signal.in.h (SA_NODEFER): Define fallback.
54286         Reported by Aleksey Cheusov <cheusov@tut.by> via
54287         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54288
54289 2008-10-23  Bruno Haible  <bruno@clisp.org>
54290
54291         * modules/freadahead (License): Change to LGPLv2+.
54292         Suggested by Simon Josefsson.
54293
54294 2008-10-23  Jim Meyering  <meyering@redhat.com>
54295
54296         random_r: new module
54297         * modules/random_r: New file.
54298         * m4/random_r.m4: New file.
54299         * lib/random_r.c: New file, from glibc.
54300         * modules/random_r-tests: New file.
54301         * tests/test-random_r.c: New file.
54302         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54303          Declare.
54304         (RAND_MAX): Define.
54305         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54306         * modules/stdlib: Substitute them, too.
54307         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54308         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54309         * doc/glibc-functions/random_r.texi: Likewise.
54310         * doc/glibc-functions/setstate_r.texi: Likewise.
54311         * doc/glibc-functions/srandom_r.texi: Likewise.
54312         * config/srclist.txt: Mention it.
54313
54314 2008-10-23  David Lutterkort  <lutter@redhat.com>
54315
54316         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54317         link requirement
54318
54319 2008-10-23  Jim Meyering  <meyering@redhat.com>
54320
54321         selinux-h: mark parameters of stub functions as intentionally unused
54322         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54323         * lib/se-context.in.h: Likewise.
54324
54325 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54326
54327         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54328
54329 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54330
54331         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54332
54333 2008-10-22  Eric Blake  <ebb9@byu.net>
54334
54335         glthread/thread: avoid compiler warning
54336         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54337         Add unreachable abort to silence compiler.
54338
54339 2008-10-22  Eric Blake  <ebb9@byu.net>
54340
54341         netdb: also supply struct addrinfo for cygwin 1.5.x
54342         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54343         older cygwin.
54344         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54345         cygwin.
54346         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54347
54348 2008-10-22  Bruno Haible  <bruno@clisp.org>
54349
54350         * users.txt: Update entry about pspp.
54351
54352 2008-10-21  Bruno Haible  <bruno@clisp.org>
54353
54354         Simplification.
54355         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54356         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54357
54358         Simplification.
54359         * lib/ioctl.c (ioctl): Don't undefine.
54360         * lib/socket.c (socket): Don't undefine.
54361
54362         Remove unused module indicator macros.
54363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54364         GNULIB_$1 as a C macro.
54365
54366         * doc/posix-functions/close.texi: Undo last change.
54367         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54368         Windows platforms.
54369
54370 2008-10-21  Bruno Haible  <bruno@clisp.org>
54371
54372         Add gethostname() declaration to <unistd.h>.
54373         * lib/unistd.in.h (gethostname): New declaration.
54374         * lib/gethostname.c: Include <unistd.h>.
54375         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54376         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54378         and HAVE_GETHOSTNAME.
54379         * modules/gethostname (Depends-on): Add unistd.
54380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54381         (Include): Specify <unistd.h>.
54382         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54383         HAVE_GETHOSTNAME.
54384         * tests/test-gethostname.c: Include <unistd.h> first.
54385
54386 2008-10-21  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54389         * modules/select-tests (Depends-on): Likewise.
54390         Reported by Simon Josefsson.
54391
54392 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54393
54394         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54395         * lib/accept.c: New file, based on winsock.c.
54396         * lib/bind.c: New file, based on winsock.c.
54397         * lib/connect.c: New file, based on winsock.c.
54398         * lib/getpeername.c: New file, based on winsock.c.
54399         * lib/getsockname.c: New file, based on winsock.c.
54400         * lib/getsockopt.c: New file, based on winsock.c.
54401         * lib/ioctl.c: New file, based on winsock.c.
54402         * lib/listen.c: New file, based on winsock.c.
54403         * lib/recv.c: New file, based on winsock.c.
54404         * lib/recvfrom.c: New file, based on winsock.c.
54405         * lib/send.c: New file, based on winsock.c.
54406         * lib/sendto.c: New file, based on winsock.c.
54407         * lib/setsockopt.c: New file, based on winsock.c.
54408         * lib/shutdown.c: New file, based on winsock.c.
54409         * lib/socket.c: New file, based on winsock.c.
54410         * lib/w32sock.h: New file, based on winsock.c.
54411         * lib/winsock.c: Remove file.
54412         * modules/accept: Likewise.
54413         * modules/bind: Likewise.
54414         * modules/connect: Likewise.
54415         * modules/getpeername: Likewise.
54416         * modules/getsockname: Likewise.
54417         * modules/getsockopt: Likewise.
54418         * modules/ioctl: Likewise.
54419         * modules/listen: Likewise.
54420         * modules/recv: Likewise.
54421         * modules/recvfrom: Likewise.
54422         * modules/send: Likewise.
54423         * modules/sendto: Likewise.
54424         * modules/setsockopt: Likewise.
54425         * modules/shutdown: Likewise.
54426         * modules/socket: Use socket.c instead of winsock.c.
54427         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54428         * doc/posix-functions/accept.texi: Doc fix.
54429         * doc/posix-functions/bind.texi: Doc fix.
54430         * doc/posix-functions/close.texi: Doc fix.
54431         * doc/posix-functions/connect.texi: Doc fix.
54432         * doc/posix-functions/getpeername.texi: Doc fix.
54433         * doc/posix-functions/getsockname.texi: Doc fix.
54434         * doc/posix-functions/getsockopt.texi: Doc fix.
54435         * doc/posix-functions/ioctl.texi: Doc fix.
54436         * doc/posix-functions/listen.texi: Doc fix.
54437         * doc/posix-functions/recv.texi: Doc fix.
54438         * doc/posix-functions/recvfrom.texi: Doc fix.
54439         * doc/posix-functions/send.texi: Doc fix.
54440         * doc/posix-functions/sendto.texi: Doc fix.
54441         * doc/posix-functions/setsockopt.texi: Doc fix.
54442         * doc/posix-functions/shutdown.texi: Doc fix.
54443         * doc/posix-functions/socket.texi: Doc fix.
54444
54445 2008-10-20  Bruno Haible  <bruno@clisp.org>
54446
54447         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54448         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54449         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54450         as an alias for SIGABRT.
54451         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54452         (sigaction): Map it to SIGABRT.
54453         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54454
54455 2008-10-20  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/fts.c: Don't include lstat.h.
54458         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54459
54460         Move the lstat() declaration to <sys/stat.h>.
54461         * lib/lstat.h: Remove file.
54462         * lib/sys_stat.in.h: Add special invocation convention.
54463         (lstat): New declaration.
54464         * lib/lstat.c (orig_lstat): New function.
54465         (rpl_lstat): Use orig_lstat instead of lstat.
54466         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54467         AC_C_INLINE. Set REPLACE_LSTAT.
54468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54469         and REPLACE_LSTAT.
54470         * modules/lstat (Files): Remove lib/lstat.h.
54471         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54472         (Include): Specify <sys/stat.h> instead of lstat.h.
54473         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54474         REPLACE_LSTAT.
54475         * NEWS: Mention the change.
54476
54477 2008-10-20  Bruno Haible  <bruno@clisp.org>
54478
54479         * modules/posix_spawn-tests: New file.
54480         * tests/test-posix_spawn3.c: New file.
54481
54482 2008-10-20  Bruno Haible  <bruno@clisp.org>
54483
54484         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54485         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54486         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54487         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54488         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54489
54490 2008-10-20  Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54493         of posix_spawn on AIX 5.3.
54494
54495 2008-10-20  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54498
54499 2008-10-20  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54502         of AC_LANG_PROGRAM.
54503
54504 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54505
54506         * lib/netdb.in.h: Don't define GNU specific constants until they
54507         are supported or needed.  Reported by Bruno Haible
54508         <bruno@clisp.org>.
54509
54510 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54511
54512         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54513
54514 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54515
54516         * lib/getaddrinfo.h: Remove file.
54517         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54518         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54519         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54520         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54521         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54522         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54523         * tests/test-getaddrinfo.c: Likewise.
54524         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54525         * NEWS: Mention change.
54526
54527 2008-10-19  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54530
54531 2008-10-19  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/wait-process.c: Include simply <sys/wait.h>.
54534         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54535         WIFSTOPPED): Remove fallback definitions.
54536         * modules/wait-process (Depends-on): Add sys_wait.
54537
54538         New module 'sys_wait'.
54539         * modules/sys_wait: New file.
54540         * lib/sys_wait.in.h: New file, partially copied from
54541         lib/wait-process.c.
54542         * m4/sys_wait_h.m4: New file.
54543         * doc/posix-headers/sys_wait.texi: Mention the new module.
54544
54545 2008-10-19  Bruno Haible  <bruno@clisp.org>
54546
54547         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54548
54549 2008-10-19  Bruno Haible  <bruno@clisp.org>
54550
54551         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54552         * lib/wait-process.c (WAIT_T): Remove type.
54553         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54554         (wait_subprocess): Update.
54555
54556 2008-10-19  Bruno Haible  <bruno@clisp.org>
54557
54558         New module 'atoll'.
54559         * modules/atoll: New file.
54560         * lib/stdlib.in.h (atoll): New declaration.
54561         * lib/atoll.c: New file, from glibc with modifications.
54562         * m4/atoll.m4: New file.
54563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54564         HAVE_ATOLL.
54565         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54566         * doc/posix-functions/atoll.texi: Mention the new module.
54567
54568 2008-10-19  Bruno Haible  <bruno@clisp.org>
54569
54570         Add strtoull() declaration to <stdlib.h>.
54571         * lib/stdlib.in.h (strtoull): New declaration.
54572         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54573         Set HAVE_STRTOULL.
54574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54575         HAVE_STRTOULL.
54576         * modules/strtoull (Depends-on): Add stdlib.
54577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54578         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54579         HAVE_STRTOULL.
54580
54581 2008-10-19  Bruno Haible  <bruno@clisp.org>
54582
54583         Add strtoll() declaration to <stdlib.h>.
54584         * lib/stdlib.in.h (strtoll): New declaration.
54585         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54586         Set HAVE_STRTOLL.
54587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54588         HAVE_STRTOLL.
54589         * modules/strtoll (Depends-on): Add stdlib.
54590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54591         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54592
54593 2008-10-19  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/bcopy (Depends-on): Add strings.
54596         (Include): Specify <strings.h>.
54597
54598 2008-10-19  Bruno Haible  <bruno@clisp.org>
54599
54600         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54601
54602 2008-10-19  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54605         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54606         mingw.
54607
54608 2008-10-19  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/atanl.c: Don't include isnanl.h.
54611         * lib/cosl.c: Likewise.
54612         * lib/ldexpl.c: Likewise.
54613         * lib/logl.c: Likewise.
54614         * lib/sinl.c: Likewise.
54615         * lib/sqrtl.c: Likewise.
54616         * lib/tanl.c: Likewise.
54617
54618         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54619         * lib/isnanf.h: Remove file.
54620         * lib/isnand.h: Remove file.
54621         * lib/isnanl.h: Remove file.
54622         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54623         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54624         macros.
54625         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54626         HAVE_ISNANF, don't define it as a C macro.
54627         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54628         HAVE_ISNAND, don't define it as a C macro.
54629         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54630         HAVE_ISNANL, don't define it as a C macro.
54631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54632         HAVE_ISNAN[FDL].
54633         * modules/isnanf (Files): Remove lib/isnanf.h.
54634         (Depends-on): Add math.
54635         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54636         (Include): Specify <math.h> instead of isnanf.h.
54637         * modules/isnand (Files): Remove lib/isnand.h.
54638         (Depends-on): Add math.
54639         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54640         (Include): Specify <math.h> instead of isnand.h.
54641         * modules/isnanl (Files): Remove lib/isnanl.h.
54642         (Depends-on): Add math.
54643         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54644         (Include): Specify <math.h> instead of isnanl.h.
54645         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54646         HAVE_ISNAN[FDL].
54647         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54648         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54649         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54650         * NEWS: Mention the change.
54651
54652 2008-10-18  Bruno Haible  <bruno@clisp.org>
54653
54654         Add getusershell(), setusershell(), endusershell() declarations to
54655         <unistd.h>.
54656         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54657         declarations.
54658         * lib/getusershell.c: Include unistd.h.
54659         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54660         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54661         HAVE_GETUSERSHELL.
54662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54663         and HAVE_GETUSERSHELL.
54664         * modules/getusershell (Depends-on): Add unistd, extensions.
54665         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54666         (Include): Specify <unistd.h>.
54667         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54668         HAVE_GETUSERSHELL.
54669
54670 2008-10-18  Bruno Haible  <bruno@clisp.org>
54671
54672         Add a getloadavg() declaration to <stdlib.h>.
54673         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54674         getloadavg declaration.
54675         (getloadavg): New declaration.
54676         * lib/getloadavg.c: Include <stdlib.h> first.
54677         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54678         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54679         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54681         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54682         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54684         (Include): Specify <stdlib.h>.
54685         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54686         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54687
54688 2008-10-18  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/dirchownmod.c: Don't include lchmod.h.
54691
54692         Move the lchmod() declaration to <sys/stat.h>.
54693         * lib/lchmod.h: Remove file.
54694         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54695         (lchmod): New declaration, moved here from lib/lchown.h.
54696         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54697         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54698         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54699         and HAVE_LCHMOD.
54700         * modules/lchmod (Files): Remove lib/lchmod.h.
54701         (Depends-on): Add sys_stat, extensions.
54702         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54703         (Include): Specify <sys/stat.h> instead of lchmod.h.
54704         * modules/sys_stat (Depends-on): Add link-warning.
54705         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54706         definition of GL_LINK_WARNING.
54707         * NEWS: Mention the change.
54708
54709 2008-10-18  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/fchdir.c: Don't include dirfd.h.
54712         * lib/fts.c: Likewise.
54713         * lib/getcwd.c: Likewise.
54714         * lib/glob.c: Likewise.
54715
54716         Move the dirfd() declaration to <dirent.h>.
54717         * lib/dirfd.h: Remove file.
54718         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54719         (dirfd): New declaration.
54720         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54721         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54722         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54723         HAVE_DECL_DIRFD.
54724         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54725         HAVE_DECL_DIRFD.
54726         * modules/dirfd (Files): Remove lib/dirfd.h.
54727         (Depends-on): Add dirent, extensions.
54728         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54729         (Include): Specify <dirent.h> instead of dirfd.h.
54730         * modules/dirent (Depends-on): Add link-warning.
54731         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54732         definition of GL_LINK_WARNING.
54733         * NEWS: Mention the change.
54734
54735 2008-10-18  Bruno Haible  <bruno@clisp.org>
54736
54737         Move the euidaccess() declaration to <unistd.h>.
54738         * lib/euidaccess.h: Remove file.
54739         * lib/unistd.in.h (euidaccess): New declaration.
54740         * lib/euidaccess.c: Don't include euidaccess.h.
54741         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54742         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54744         and HAVE_EUIDACCESS.
54745         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54746         (Depends-on): Add unistd.
54747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54748         (Include): Specify <unistd.h> instead of euidaccess.h.
54749         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54750         HAVE_EUIDACCESS.
54751         * NEWS: Mention the change.
54752
54753 2008-10-18  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54756
54757         Move the getdomainname() declaration to <unistd.h>.
54758         * lib/getdomainname.h: Remove file.
54759         * lib/unistd.in.h (getdomainname): New declaration.
54760         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54761         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54762         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54763         HAVE_GETDOMAINNAME.
54764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54765         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54766         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54767         (Depends-on): Add unistd, extensions.
54768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54769         (Includes): Specify <unistd.h> instead of getdomainname.h.
54770         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54771         HAVE_GETDOMAINNAME.
54772         * NEWS: Mention the change.
54773
54774 2008-10-18  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/dirent: New file.
54777         * m4/dirent_h.m4: New file.
54778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54779         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54780         * modules/fchdir (Files): Remove lib/dirent.in.h.
54781         (Depends-on): Add dirent.
54782         (Makefile.am): Move rules to modules/dirent.
54783         * doc/posix-headers/dirent.texi: Mention the new module.
54784
54785 2008-10-18  Bruno Haible  <bruno@clisp.org>
54786
54787         Avoid -Wunused-parameter warnings in public gnulib header files.
54788         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54789         macro.
54790         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54791
54792 2008-10-18  Bruno Haible  <bruno@clisp.org>
54793
54794         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54795         * doc/glibc-functions/error.texi: Mention the module 'error'.
54796         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54797         * doc/glibc-functions/getdomainname.texi: Mention the module
54798         'getdomainname'.
54799         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54800         * doc/glibc-functions/getpagesize.texi: Mention the module
54801         'getpagesize'.
54802         * doc/glibc-functions/getusershell.texi: Mention the module
54803         'getusershell'.
54804         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54805         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54806         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54807         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54808         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54809         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54810         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54811         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54812         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54813         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54814         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54815         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54816         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54817         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54818
54819 2008-10-17  Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54822         HP-UX and IRIX, use -0.0L.
54823         * tests/test-ceill.c (minus_zero): Likewise.
54824         * tests/test-floorl.c (minus_zero): Likewise.
54825         * tests/test-frexpl.c (minus_zero): Likewise.
54826         * tests/test-isnan.c (minus_zerol): Likewise.
54827         * tests/test-isnanl.h (minus_zero): Likewise.
54828         * tests/test-ldexpl.c (minus_zero): Likewise.
54829         * tests/test-roundl.c (minus_zero): Likewise.
54830         * tests/test-signbit.c (minus_zerol): Likewise.
54831         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54832         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54833         * tests/test-truncl.c (minus_zero): Likewise.
54834         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54835         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54836         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54837         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54838
54839 2008-10-17  Bruno Haible  <bruno@clisp.org>
54840
54841         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54842         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54843         that it gets activated only for gcc >= 3.0.
54844         * lib/dirent.in.h: Likewise.
54845         * lib/errno.in.h: Likewise.
54846         * lib/fcntl.in.h: Likewise.
54847         * lib/float.in.h: Likewise.
54848         * lib/iconv.in.h: Likewise.
54849         * lib/inttypes.in.h: Likewise.
54850         * lib/locale.in.h: Likewise.
54851         * lib/math.in.h: Likewise.
54852         * lib/netdb.in.h: Likewise.
54853         * lib/netinet_in.in.h: Likewise.
54854         * lib/search.in.h: Likewise.
54855         * lib/signal.in.h: Likewise.
54856         * lib/spawn.in.h: Likewise.
54857         * lib/stdarg.in.h: Likewise.
54858         * lib/stdint.in.h: Likewise.
54859         * lib/stdio.in.h: Likewise.
54860         * lib/stdlib.in.h: Likewise.
54861         * lib/string.in.h: Likewise.
54862         * lib/strings.in.h: Likewise.
54863         * lib/sys_file.in.h: Likewise.
54864         * lib/sys_ioctl.in.h: Likewise.
54865         * lib/sys_select.in.h: Likewise.
54866         * lib/sys_socket.in.h: Likewise.
54867         * lib/sys_stat.in.h: Likewise.
54868         * lib/sys_time.in.h: Likewise.
54869         * lib/sysexits.in.h: Likewise.
54870         * lib/time.in.h: Likewise.
54871         * lib/unistd.in.h: Likewise.
54872         * lib/wchar.in.h: Likewise.
54873         * lib/wctype.in.h: Likewise.
54874         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54875
54876 2008-10-17  Jim Meyering  <meyering@redhat.com>
54877
54878         ignore-value: don't depend on inline module
54879         * modules/ignore-value (Depends-on): Remove 'inline'.
54880         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54881         Suggestion from Bruno Haible.
54882
54883 2008-10-17  Bruno Haible  <bruno@clisp.org>
54884
54885         New implementation of condition variables for Win32.
54886         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54887         (gl_linked_waitqueue_t): New type.
54888         (gl_cond_t): Use it.
54889         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54890         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54891         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54892         (glthread_cond_init_func, glthread_cond_wait_func,
54893         glthread_cond_timedwait_func, glthread_cond_signal_func,
54894         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54895         Reimplemented on the basis of gl_linked_waitqueue_t.
54896         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54897         gl_waitqueue_t.
54898         (gl_rwlock_t): Update.
54899         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54900
54901 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54902
54903         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54904         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54905
54906 2008-10-17  Jim Meyering  <meyering@redhat.com>
54907
54908         ignore-value: new module
54909         * modules/ignore-value: New file.
54910         * lib/ignore-value.h: New file.
54911         * MODULES.html.sh (Compiler warning management): New section,
54912         just for this module.  More to come.
54913
54914 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54917         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54918         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54919
54920 2008-10-16  Jim Meyering  <meyering@redhat.com>
54921
54922         openat-die.c: avoid 'no previous prototype' warning
54923         * lib/openat-die.c: Include "openat.h".
54924         Reported by Reuben Thomas <rrt@sc3d.org>.
54925
54926 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54927
54928         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54929         * lib/netdb.in.h: Fix typo.
54930         Reported by Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/netdb.in.h: Include sys/socket.h for platforms without
54933         netdb.h, to get structures like hostent on MinGW.
54934         * modules/netdb (Depends-on): Add sys_socket.
54935
54936 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54937
54938         * modules/netdb, modules/netdb-tests: New file.
54939         * m4/netdb_h.m4: New file.
54940         * lib/netdb.in.h: Add, currently just an empty file pending
54941         definitions.
54942         * tests/test-netdb.c: New file.
54943         * doc/posix-headers/netdb.texi: Mention that we replace it if
54944         needed.
54945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54946         netdb.
54947
54948 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54949
54950         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54951         with code.
54952
54953 2008-10-13  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/glthread/cond.c (glthread_cond_wait_func,
54956         glthread_cond_timedwait_func): Add a comment.
54957
54958 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54959
54960         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54961         * tests/test-select.c: Likewise,
54962
54963 2008-10-13  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/glthread/cond.c (glthread_cond_wait_func,
54966         glthread_cond_timedwait_func): Fix variable name.
54967         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54968
54969 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54970
54971         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54973         struct sockaddr.sa_len.
54974         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54975
54976 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54977
54978         * build-aux/pmccabe2html: Add css and css_url parameters.
54979
54980 2008-10-12  Bruno Haible  <bruno@clisp.org>
54981
54982         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54983         calling aclx_get.
54984         Reported by Rainer Tammer <tammer@tammer.net>.
54985
54986 2008-10-12  Bruno Haible  <bruno@clisp.org>
54987
54988         Use msvcrt aware primitives for creation/termination of Win32 threads.
54989         * lib/glthread/thread.c: Include <process.h>.
54990         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54991         (wrapper_func): Update signature.
54992         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54993
54994 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54995             Bruno Haible  <bruno@clisp.org>
54996
54997         Provide a Win32 implementation of the 'cond' module.
54998         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54999         * lib/glthread/cond.c (glthread_cond_init_func,
55000         glthread_cond_wait_func, glthread_cond_timedwait_func,
55001         glthread_cond_signal_func, glthread_cond_broadcast_func,
55002         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55003         * modules/cond (Dependencies): Add gettimeofday.
55004
55005 2008-10-11  Bruno Haible  <bruno@clisp.org>
55006
55007         Make sleep work on older versions of mingw.
55008         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55009         only whether it exists.
55010         * doc/posix-functions/sleep.texi: Mention the problem with older
55011         versions of mingw.
55012
55013 2008-10-11  Bruno Haible  <bruno@clisp.org>
55014
55015         New module 'shutdown'.
55016         * modules/shutdown: New file.
55017         * lib/sys_socket.in.h (shutdown): New declaration.
55018         * lib/winsock.c (shutdown): New function.
55019         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55020         GNULIB_SHUTDOWN.
55021         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55022         * doc/posix-functions/shutdown.texi: Document the new module.
55023
55024 2008-10-11  Jim Meyering  <meyering@redhat.com>
55025
55026         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55027
55028 2008-10-11  Bruno Haible  <bruno@clisp.org>
55029
55030         New module 'fclose'.
55031         * modules/fclose: New file.
55032         * lib/stdio.in.h (fclose): New declaration.
55033         * lib/fclose.c: New file.
55034         * m4/fclose.m4: New file.
55035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55036         REPLACE_FCLOSE.
55037         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55038         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55039         REPLACE_FCLOSE.
55040         * modules/close (Depends-on): fclose.
55041         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55042
55043 2008-10-11  Bruno Haible  <bruno@clisp.org>
55044
55045         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55046         set errno and don't call _close.
55047
55048 2008-10-10  Bruno Haible  <bruno@clisp.org>
55049
55050         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55051         ACL, not afterwards. Fixes test failure on Cygwin.
55052
55053 2008-10-09  Ben Pfaff  <blp@gnu.org>
55054
55055         * build-aux/announce-gen: Fix gnulib version related part of usage
55056         message.  Die with a useful error message if no tarballs are
55057         found.
55058
55059 2008-10-10  Jim Meyering  <meyering@redhat.com>
55060
55061         bootstrap: use git's --depth=N option only if it's supported
55062         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55063         recognize the --depth option.  Reported by Pádraig Brady.
55064
55065 2008-10-09  Bruno Haible  <bruno@clisp.org>
55066
55067         New module 'ioctl'.
55068         * modules/ioctl: New file.
55069         * lib/sys_socket.in.h (ioctl): Remove declaration.
55070         * lib/winsock.c: Include <sys/ioctl.h>.
55071         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55072         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55073         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55074         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55075         * doc/posix-functions/ioctl.texi: Mention the new module.
55076
55077 2008-10-09  Bruno Haible  <bruno@clisp.org>
55078
55079         New module 'sys_ioctl'.
55080         * lib/sys_ioctl.in.h: New file.
55081         * m4/sys_ioctl_h.m4: New file.
55082         * modules/sys_ioctl: New file.
55083         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55084
55085 2008-10-09  Bruno Haible  <bruno@clisp.org>
55086
55087         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55088         * lib/winsock.c: Include <stdarg.h>.
55089         (rpl_ioctl): Change to second argument 'int' and then varargs.
55090
55091 2008-10-09  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55094         when the sys_socket module is present and the system has <winsock2.h>.
55095
55096 2008-10-09  Bruno Haible  <bruno@clisp.org>
55097
55098         * doc/posix-functions/close.texi: Mention module 'close' instead of
55099         module 'sys_socket'.
55100
55101 2008-10-09  Bruno Haible  <bruno@clisp.org>
55102
55103         * doc/glibc-headers/sys_ioctl.texi: New file.
55104         * doc/gnulib.texi: Include it.
55105
55106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55107             Bruno Haible  <bruno@clisp.org>
55108
55109         Combine the two replacements of 'close'.
55110         * lib/sys_socket.in.h (close): Define to a reminder to include
55111         <unistd.h>.
55112         (_gl_close_fd_maybe_socket): New declaration.
55113         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55114         * lib/winsock.c (close): Remove undefinition.
55115         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55116         needed for the gnulib module 'close'.
55117         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55118         define to an error symbol or to a warning, if suitable.
55119         * lib/close.c: Include <sys/socket.h>.
55120         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55121         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55122         UNISTD_H_HAVE_WINSOCK2_H.
55123         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55125         UNISTD_H_HAVE_WINSOCK2_H.
55126         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55127         (configure.ac): Set a module indicator.
55128         (Makefile.am): Substitute GNULIB_CLOSE.
55129         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55130         * modules/poll-tests (Depends-on): Add close.
55131         * modules/select-tests (Depends-on): Likewise.
55132
55133 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55134             Bruno Haible  <bruno@clisp.org>
55135
55136         New module 'close'.
55137         * modules/close: New file.
55138         * lib/unistd.in.h (close): Move declaration out of the
55139         FCHDIR_REPLACEMENT scope.
55140         (_gl_unregister_fd): New declaration.
55141         * lib/close.c: New file.
55142         * lib/fchdir.c (rpl_close): Remove function.
55143         * m4/close.m4: New file.
55144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55145         close.
55146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55147         REPLACE_CLOSE.
55148         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55149         REPLACE_CLOSE.
55150         * modules/fchdir (Depends-on): Add close.
55151
55152 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55153             Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/fcntl.in.h (open): Simplify conditionals.
55156         (_gl_register_fd): New declaration.
55157         * lib/fchdir.c (rpl_open): Remove function.
55158         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55159         also.
55160         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55162         open.
55163
55164 2008-10-09  Jim Meyering  <meyering@redhat.com>
55165
55166         GNUmakefile: use the more name-space-friendly "_version"
55167         * top/GNUmakefile (_dummy): Update.
55168         (_version): Rename from "version".
55169
55170 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55171             Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55174         rpl_close.
55175         (_gl_register_fd): New function, extracted from rpl_open.
55176         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55177         (rpl_open, rpl_opendir): Use _gl_register_fd.
55178
55179 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55180
55181         Fix organization of 'open' replacement.
55182         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55183         (gl_FUNC_OPEN): Use it.
55184         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55185
55186 2008-10-08  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55189
55190 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55191
55192         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55193         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55194         listen).
55195
55196 2008-10-08  Eric Blake  <ebb9@byu.net>
55197
55198         GNUmakefile: add 'make version' target
55199         * top/GNUmakefile (_curr-ver): Split version update rules...
55200         (version): ...into a target.
55201
55202 2008-10-07  Bruno Haible  <bruno@clisp.org>
55203
55204         Use a more portable replacement expression for -0.0L.
55205         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55206         instead of -0.0L. Fix m4 quotation.
55207
55208         * tests/test-signbit.c: Include <float.h>.
55209         (minus_zero): New variable.
55210         (test_signbitl): Use minus_zero instead of -zero.
55211         * modules/signbit-tests (Depends-on): Add float.
55212
55213         * tests/test-ceill.c: Include <float.h>.
55214         (zero): Remove variable.
55215         (minus_zero): New variable.
55216         (main): Use minus_zero instead of -zero.
55217         * modules/ceill-tests (Depends-on): Add float.
55218
55219         * tests/test-floorl.c: Include <float.h>.
55220         (zero): Remove variable.
55221         (minus_zero): New variable.
55222         (main): Use minus_zero instead of -zero.
55223         * modules/floorl-tests (Depends-on): Add float.
55224
55225         * tests/test-roundl.c: Include <float.h>.
55226         (zero): Remove variable.
55227         (minus_zero): New variable.
55228         (main): Use minus_zero instead of -zero.
55229         * modules/roundl-tests (Depends-on): Add float.
55230
55231         * tests/test-truncl.c: Include <float.h>.
55232         (zero): Remove variable.
55233         (minus_zero): New variable.
55234         (main): Use minus_zero instead of -zero.
55235         * modules/truncl-tests (Depends-on): Add float.
55236
55237         * tests/test-frexpl.c (zero): Remove variable.
55238         (minus_zero): New variable.
55239         (main): Use minus_zero instead of -zero.
55240         * modules/frexpl-tests (Depends-on): Add float.
55241
55242         * tests/test-isnan.c (zerol): Remove variable.
55243         (minus_zerol): New variable.
55244         (test_long_double): Use minus_zerol instead of -zerol.
55245         * modules/isnan-tests (Depends-on): Add float.
55246
55247         * tests/test-isnanl.h (zero): Remove variable.
55248         (minus_zero): New variable.
55249         (main): Use minus_zero instead of -zero.
55250         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55251         * modules/isnanl-tests (Depends-on): Add float.
55252
55253         * tests/test-ldexpl.c (zero): Remove variable.
55254         (minus_zero): New variable.
55255         (main): Use minus_zero instead of -zero.
55256         * modules/ldexpl-tests (Depends-on): Add float.
55257
55258         * tests/test-snprintf-posix.h (zerol): Remove variable.
55259         (minus_zerol): New variable.
55260         (test_function): Use minus_zerol instead of -zerol.
55261         * modules/snprintf-posix-tests (Depends-on): Add float.
55262         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55263
55264         * tests/test-sprintf-posix.h (zerol): Remove variable.
55265         (minus_zerol): New variable.
55266         (test_function): Use minus_zerol instead of -zerol.
55267         * modules/sprintf-posix-tests (Depends-on): Add float.
55268         * modules/vsprintf-posix-tests (Depends-on): Add float.
55269
55270         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55271         (minus_zerol): New variable.
55272         (test_function): Use minus_zerol instead of -zerol.
55273         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55274
55275         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55276         (minus_zerol): New variable.
55277         (test_function): Use minus_zerol instead of -zerol.
55278         * modules/vasprintf-posix-tests (Depends-on): Add float.
55279
55280 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55281
55282         * MODULES.html.sh (Support for building documentation): Mention
55283         pmccabe2html.  Sort entries.
55284
55285         Add pmccabe2html module, from gnupdf.
55286         * build-aux/pmccabe.css: New file.
55287         * build-aux/pmccabe2html: New file.
55288         * m4/pmccabe2html.m4: New file.
55289         * modules/pmccabe2html: New file.
55290
55291 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55292
55293         flock: new module
55294         * MODULES.html.sh: Add to list of modules.
55295         * lib/flock.c: flock implementation for Windows and Unix systems
55296         which have fcntl.
55297         * doc/glibc-functions/flock.texi: Update documentation.
55298         * lib/sys_file.in.h: <sys/file.h> header file.
55299         * m4/flock.m4: M4 macros.
55300         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55301         * modules/flock: flock module.
55302         * modules/flock-tests: flock tests module.
55303         * modules/sys_file: sys/file.h module.
55304         * tests/test-flock.c: test suite for flock.
55305
55306 2008-10-06  Jim Meyering  <meyering@redhat.com>
55307
55308         bootstrap: check for LT_INIT more portably still ;-)
55309         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55310         Spotted by Bruno Haible.
55311
55312 2008-10-06  Eric Blake  <ebb9@byu.net>
55313
55314         test-signbit: avoid tripping Irix cc bug on -0.0L
55315         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55316         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55317         entire testsuite consistent and avoids an Irix 6.2 bug.
55318
55319 2008-10-05  Bruno Haible  <bruno@clisp.org>
55320             Jim Meyering  <jim@meyering.net>
55321
55322         Add an option for ignoring EPIPE during close_stdout.
55323         * lib/closeout.h: Include <stdbool.h>.
55324         (close_stdout_set_ignore_EPIPE): New declaration.
55325         * lib/closeout.c: Include <stdbool.h>.
55326         (ignore_EPIPE): New variable.
55327         (close_stdout_set_ignore_EPIPE): New function.
55328         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55329         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55330         failure.
55331         * modules/closeout (Depends-on): Add stdbool.
55332
55333 2008-10-05  Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/accept: New file.
55336         * modules/bind: New file.
55337         * modules/connect: New file.
55338         * modules/getpeername: New file.
55339         * modules/getsockname: New file.
55340         * modules/getsockopt: New file.
55341         * modules/listen: New file.
55342         * modules/recv: New file.
55343         * modules/recvfrom: New file.
55344         * modules/send: New file.
55345         * modules/sendto: New file.
55346         * modules/setsockopt: New file.
55347         * modules/socket: New file.
55348         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55349         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55350         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55351         the particular module is requested. Add a link warning when the
55352         particular module is not requested.
55353         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55354         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55355         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55356         the particular module is requested.
55357         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55358         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55359         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55360         * modules/sys_socket (Depends-on): Add link-warning.
55361         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55362         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55363         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55364         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55365         GL_LINK_WARNING.
55366         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55367         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55368         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55369         * doc/posix-functions/getpeername.texi: Mention the new module
55370         'getpeername'.
55371         * doc/posix-functions/getsockname.texi: Mention the new module
55372         'getsockname'.
55373         * doc/posix-functions/getsockopt.texi: Mention the new module
55374         'getsockopt'.
55375         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55376         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55377         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55378         * doc/posix-functions/send.texi: Mention the new module 'send'.
55379         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55380         * doc/posix-functions/setsockopt.texi: Mention the new module
55381         'setsockopt'.
55382         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55383         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55384         listen, connect, accept.
55385         * modules/select-tests (Depends-on): Likewise.
55386
55387 2008-10-05  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/winsock.c (strerror): Remove unused #undef.
55390         (rpl_close): Remove unused local variable.
55391
55392         * modules/sys_socket (Depends-on); Add errno.
55393
55394 2008-10-05  Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55397         (select): Add a link warning when the 'select' module is not used.
55398         * modules/sys_select (Depends-on): Add link-warning.
55399         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55400         Suggested by Paolo Bonzini.
55401
55402 2008-10-05  Jim Meyering  <meyering@redhat.com>
55403
55404         bootstrap: check for LT_INIT more portably
55405         * build-aux/bootstrap: Avoid using grep -E, since it's not
55406         portable enough.  Suggestion from Bruno Haible.
55407
55408 2008-10-05  Bruno Haible  <bruno@clisp.org>
55409
55410         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55411         as being fixed by gnulib.
55412
55413 2008-10-05  Bruno Haible  <bruno@clisp.org>
55414
55415         * modules/select-tests: New file, mostly copied from
55416         modules/sys_select-tests.
55417         * tests/test-select.c: New file, mostly copied from
55418         tests/test-sys_select.c.
55419         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55420         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55421         (Makefile.am): Remove test_sys_select_LDADD.
55422
55423         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55424         to an undefined symbol, for an error message.
55425         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55426         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55427         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55428         winsock-select.c here.
55429         * modules/sys_select (Files): Remove lib/winsock-select.c.
55430         (Depends-on): Remove alloca.
55431         (Makefile.am): Substitute GNULIB_SELECT.
55432         * modules/select: New file.
55433         * doc/posix-functions/select.texi: Update.
55434
55435 2008-10-05  Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55438         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55439         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55440         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55441         getdtablesize.
55442         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55443         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55444
55445 2008-10-05  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/getdtablesize-tests: New file.
55448         * tests/test-getdtablesize.c: New file.
55449
55450         New module 'getdtablesize'.
55451         * lib/unistd.in.h (getdtablesize): New declaration.
55452         * lib/getdtablesize.c: New file.
55453         * m4/getdtablesize.m4: New file.
55454         * modules/getdtablesize: New file.
55455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55456         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55457         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55458         HAVE_GETDTABLESIZE.
55459         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55460
55461 2008-10-05  Bruno Haible  <bruno@clisp.org>
55462
55463         * modules/sched (Makefile.am): Fix typo.
55464         Reported by Simon Josefsson.
55465
55466 2008-10-05  Jim Meyering  <meyering@redhat.com>
55467
55468         bootstrap: check for LT_INIT, too
55469         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55470         are deprecated.  Suggestion from Ralf Wildenhues.
55471
55472 2008-10-05  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55475         overriding them by ours.
55476         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55477
55478 2008-10-05  Jim Meyering  <meyering@redhat.com>
55479
55480         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55481         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55482         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55483
55484 2008-10-04  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/dup2 (License): Change to LGPLv2+.
55487         * modules/sleep (License): Likewise.
55488         * modules/perror (License): Likewise.
55489         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55490         Blake.
55491         * modules/signal (License): Likewise.
55492         * modules/sigprocmask (License): Likewise.
55493         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55494         Meyering.
55495
55496 2008-10-04  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55499         Reported by Rainer Tammer <tammer@tammer.net>.
55500
55501 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55502             Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55505         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55506         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55507
55508 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55509
55510         filevercmp: new module
55511         * lib/filevercmp.h: New function filevercmp comparing version strings.
55512         * lib/filevercmp.c: Implementation of filevercmp function.
55513         * modules/filevercmp: Module metadata.
55514         * tests/test-filevercmp.c: Unit test for new module.
55515         * modules/filevercmp-tests: Unit test metadata.
55516         * MODULES.html.sh: Add filevercmp module.
55517
55518 2008-10-03  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/c-ctype.h: Add comment.
55521         Reported by Jim Meyering.
55522
55523 2008-10-02  Bruno Haible  <bruno@clisp.org>
55524
55525         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55526
55527 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55528
55529         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55530         name of bootstrap.conf accordingly.
55531
55532 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55533
55534         * build-aux/bootstrap: Install git-merge-changelog configuration
55535         items into .gitconfig if needed.
55536
55537 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55538
55539         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55540         git repository, and initialize/update it accordingly.
55541
55542 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55543
55544         * modules/fsync-tests: New file.
55545         * tests/test-fsync.c: New file.
55546
55547         New module 'fsync'.
55548         * lib/fsync.c: New file.
55549         * m4/fsync.m4: New file.
55550         * modules/fsync: New file.
55551         * lib/unistd.in.h (fsync): New declaration.
55552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55553         GNULIB_FSYNC and HAVE_FSYNC.
55554         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55555         * MODULES.html.sh (posix_functions): Add fsync.
55556         * doc/posix-functions/fsync.texi: Mention the new module.
55557
55558 2008-10-02  Jim Meyering  <meyering@redhat.com>
55559
55560         fts.c: sync with similar code from coreutils' remove.c
55561         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55562         Guard also with "#if defined __linux__", since for now at least,
55563         this code is Linux-kernel-specific.
55564
55565 2008-10-02  Jim Meyering  <meyering@redhat.com>
55566
55567         fts: bug fixes
55568         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55569         Include <sys/vfs.h>, not <sys/statfs.h>.
55570
55571         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55572         Include <sys/vfs.h>, not <sys/statfs.h>.
55573
55574 2008-10-01  Bruno Haible  <bruno@clisp.org>
55575
55576         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55578         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55579         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55580         * doc/posix-functions/posix_spawnp.texi: Likewise.
55581         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55582         whether posix_spawn actually works.
55583         * m4/pipe.m4 (gl_PIPE): Likewise.
55584         * modules/execute (Files): Add m4/posix_spawn.m4.
55585         * modules/pipe (Files): Add m4/posix_spawn.m4.
55586         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55587
55588 2008-10-01  Jim Meyering  <meyering@redhat.com>
55589
55590         remove trailing spaces
55591         * NEWS: Likewise.
55592         * lib/poll.c (poll): Likewise.
55593         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55594         * lib/winsock.c (rpl_close): Likewise.
55595         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55596         * modules/yield: Likewise.
55597         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55598         * tests/test-sys_select.c (connect_to_socket): Likewise.
55599
55600         fts.c: adjust a new interface to be more generally useful
55601         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55602         (fts_build): Adjust caller.
55603
55604 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55605
55606         * modules/cond-tests: New file.
55607         * tests/test-cond.c: New file.
55608
55609 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55610             Bruno Haible  <bruno@clisp.org>
55611
55612         * modules/cond (Dependencies): Add errno, time.
55613         * lib/glthread/cond.h: Include <time.h>.
55614         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55615         across platforms.
55616
55617 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55618             Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55621
55622 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55623             Bruno Haible  <bruno@clisp.org>
55624
55625         * modules/tls-tests (Depends-on): Add thread, yield.
55626         (configure.ac): Remove all checks.
55627         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55628         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55629         gl_thread_self): Remove definitions. Include glthread/thread.h and
55630         glthread/yield.h instead.
55631         (test_tls): Pass an additional NULL argument to gl_thread_join.
55632
55633 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55634             Bruno Haible  <bruno@clisp.org>
55635
55636         * modules/lock-tests (Depends-on): Add thread, yield.
55637         (configure.ac): Remove all checks.
55638         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55639         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55640         gl_thread_self): Remove definitions. Include glthread/thread.h and
55641         glthread/yield.h instead.
55642         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55643         additional NULL argument to gl_thread_join.
55644
55645 2008-09-30  Bruno Haible  <bruno@clisp.org>
55646
55647         Fix the Win32 implementation of the 'thread' module.
55648         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55649         pointer type.
55650         (gl_thread_self): Invoke gl_thread_self_func.
55651         (gl_thread_self_func): New declaration.
55652         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55653         (do_init_self_key, init_self_key): New functions.
55654         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55655         Remove some fields.
55656         (running_threads, running_lock): Remove variables.
55657         (get_current_thread_handle): New function.
55658         (gl_thread_self_func, wrapper_func, glthread_create_func,
55659         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55660         simplified.
55661
55662 2008-09-30  Bruno Haible  <bruno@clisp.org>
55663
55664         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55665         files.
55666
55667 2008-09-30  Jim Meyering  <meyering@redhat.com>
55668
55669         fts.m4: correct the test for statfs.f_type
55670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55671         when checking for statfs.f_type.
55672
55673 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55674
55675         tests: avoid some compiler warnings
55676         * tests/test-memchr.c (main): Pass NULL indirectly.
55677         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55678
55679 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55680
55681         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55682         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55683         exactly specified dayshifts.
55684         (dayshift): New rule.
55685         (rel): Add dayshift.
55686         (relative_time_table) [tomorrow, yesterday, today, now]:
55687         Use tDAY_SHIFT in place of tDAY_UNIT.
55688         * tests/test-getdate.c: Add tests for now-disallowed countable
55689         dayshifts, e.g., "4 yesterday ago".
55690
55691 2008-09-29  Bruno Haible  <bruno@clisp.org>
55692
55693         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55694         * tests/test-posix_spawn1.in.sh: Renamed from
55695         tests/test-posix_spawn.in.sh.
55696         * tests/test-posix_spawn2.c: New file.
55697         * tests/test-posix_spawn2.in.sh: New file.
55698         * modules/posix_spawnp-tests (Files): Update.
55699         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55700
55701 2008-09-29  Bruno Haible  <bruno@clisp.org>
55702
55703         Propagate effects of putenv/setenv/unsetenv to child processes.
55704         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55705         * lib/pipe.c (create_pipe): Likewise.
55706
55707 2008-09-29  Bruno Haible  <bruno@clisp.org>
55708
55709         Enable use of shell scripts as executables in mingw.
55710         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55711         run the program as a shell script.
55712         * lib/pipe.c (create_pipe): Likewise.
55713         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55714         resulting array.
55715
55716 2008-09-29  Eric Blake  <ebb9@byu.net>
55717
55718         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55719
55720 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55721
55722         * doc/posix-functions/accept.texi: Update mingw problems.
55723         * doc/posix-functions/bind.texi: Update mingw problems.
55724         * doc/posix-functions/close.texi: Update mingw problems.
55725         * doc/posix-functions/connect.texi: Update mingw problems.
55726         * doc/posix-functions/getpeername.texi: Update mingw problems.
55727         * doc/posix-functions/getsockname.texi: Update mingw problems.
55728         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55729         * doc/posix-functions/ioctl.texi: Update mingw problems.
55730         * doc/posix-functions/listen.texi: Update mingw problems.
55731         * doc/posix-functions/recv.texi: Update mingw problems.
55732         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55733         * doc/posix-functions/select.texi: Update mingw problems.
55734         * doc/posix-functions/send.texi: Update mingw problems.
55735         * doc/posix-functions/sendto.texi: Update mingw problems.
55736         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55737         * doc/posix-functions/socket.texi: Update mingw problems.
55738
55739 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55740             Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/sys_select.in.h: Include sys/time.h.
55743         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55744         * modules/sys_select: Depend on sys_time.
55745         * tests/test-sys_select.c: Test that sys/select.h defines struct
55746         timeval fully.
55747
55748 2008-09-29  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55751         * lib/sys_select.in.h: Likewise.
55752
55753 2008-09-29  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55756
55757 2008-09-29  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55760         Set LIBSOCKET instead of augmenting LIBS.
55761         * modules/sockets (Link): New section.
55762         * modules/sockets-tests (test_sockets_LDADD): New variable.
55763         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55764         * modules/poll-tests (test_poll_LDADD): New variable.
55765         * NEWS: Document the change.
55766
55767 2008-09-29  Bruno Haible  <bruno@clisp.org>
55768
55769         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55770         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55771         ARPA_INET_H directly.
55772         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55773
55774 2008-09-28  Bruno Haible  <bruno@clisp.org>
55775
55776         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55777         from gl_HEADER_SYS_SOCKET.
55778         (gl_HEADER_SYS_SOCKET): Invoke it.
55779         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55780
55781 2008-09-28  Bruno Haible  <bruno@clisp.org>
55782
55783         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55784         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55785         Needed on OSF/1 4.0.
55786
55787 2008-09-28  Bruno Haible  <bruno@clisp.org>
55788
55789         Override open more carefully.
55790         * lib/open.c (orig_open): New function.
55791         (rpl_open): Use orig_open instead of open.
55792         * lib/fcntl.in.h: Add special invocation convention.
55793         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55794         (gl_FUNC_OPEN): Invoke it.
55795
55796         Override freopen more carefully.
55797         * lib/freopen.c (orig_freopen): New function.
55798         (rpl_freopen): Use orig_freopen instead of freopen.
55799         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55800         (gl_FUNC_FREOPEN): Invoke it.
55801
55802         Override fopen more carefully.
55803         * lib/fopen.c (orig_fopen): New function.
55804         (rpl_fopen): Use orig_fopen instead of fopen.
55805         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55806         (gl_FUNC_FOPEN): Invoke it.
55807         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55808
55809 2008-09-28  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55812         SIGPIPE.
55813
55814 2008-09-28  Bruno Haible  <bruno@clisp.org>
55815
55816         * tests/test-sigaction.c (handler, main): Disable the check whether
55817         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55818         glibc systems with LinuxThreads.
55819
55820 2008-09-28  Bruno Haible  <bruno@clisp.org>
55821
55822         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55823
55824         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55825         with AIX xlc.
55826         * lib/fcntl.in.h (open): Likewise.
55827         Reported by Rainer Tammer <tammer@tammer.net>.
55828
55829 2008-09-28  Bruno Haible  <bruno@clisp.org>
55830
55831         * modules/posix_spawnp-tests: New file.
55832         * tests/test-posix_spawn.c: New file.
55833         * tests/test-posix_spawn.in.sh: New file.
55834
55835         New module 'posix_spawnp'.
55836         * modules/posix_spawnp: New file.
55837         * lib/spawnp.c: New file, from GNU libc with modifications.
55838         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55839
55840         New module 'posix_spawn'.
55841         * modules/posix_spawn: New file.
55842         * lib/spawn.c: New file, from GNU libc with modifications.
55843         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55844
55845         New module 'posix_spawnattr_destroy'.
55846         * modules/posix_spawnattr_destroy: New file.
55847         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55848         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55849         module.
55850
55851         New module 'posix_spawnattr_setsigmask'.
55852         * modules/posix_spawnattr_setsigmask: New file.
55853         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55854         modifications.
55855         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55856         new module.
55857
55858         New module 'posix_spawnattr_getsigmask'.
55859         * modules/posix_spawnattr_getsigmask: New file.
55860         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55861         modifications.
55862         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55863         new module.
55864
55865         New module 'posix_spawnattr_setsigdefault'.
55866         * modules/posix_spawnattr_setsigdefault: New file.
55867         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55868         modifications.
55869         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55870         new module.
55871
55872         New module 'posix_spawnattr_getsigdefault'.
55873         * modules/posix_spawnattr_getsigdefault: New file.
55874         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55875         modifications.
55876         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55877         new module.
55878
55879         New module 'posix_spawnattr_setschedpolicy'.
55880         * modules/posix_spawnattr_setschedpolicy: New file.
55881         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55882         modifications.
55883         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55884         new module.
55885
55886         New module 'posix_spawnattr_getschedpolicy'.
55887         * modules/posix_spawnattr_getschedpolicy: New file.
55888         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55889         modifications.
55890         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55891         new module.
55892
55893         New module 'posix_spawnattr_setschedparam'.
55894         * modules/posix_spawnattr_setschedparam: New file.
55895         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55896         modifications.
55897         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55898         new module.
55899
55900         New module 'posix_spawnattr_getschedparam'.
55901         * modules/posix_spawnattr_getschedparam: New file.
55902         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55903         modifications.
55904         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55905         new module.
55906
55907         New module 'posix_spawnattr_setpgroup'.
55908         * modules/posix_spawnattr_setpgroup: New file.
55909         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55910         modifications.
55911         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55912         module.
55913
55914         New module 'posix_spawnattr_getpgroup'.
55915         * modules/posix_spawnattr_getpgroup: New file.
55916         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55917         modifications.
55918         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55919         module.
55920
55921         New module 'posix_spawnattr_setflags'.
55922         * modules/posix_spawnattr_setflags: New file.
55923         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55924         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55925         module.
55926
55927         New module 'posix_spawnattr_getflags'.
55928         * modules/posix_spawnattr_getflags: New file.
55929         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55930         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55931         module.
55932
55933         New module 'posix_spawnattr_init'.
55934         * modules/posix_spawnattr_init: New file.
55935         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55936         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55937         module.
55938
55939         New module 'posix_spawn_file_actions_destroy'.
55940         * modules/posix_spawn_file_actions_destroy: New file.
55941         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55942         modifications.
55943         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55944         the new module.
55945
55946         New module 'posix_spawn_file_actions_addopen'.
55947         * modules/posix_spawn_file_actions_addopen: New file.
55948         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55949         modifications.
55950         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55951         the new module.
55952
55953         New module 'posix_spawn_file_actions_adddup2'.
55954         * modules/posix_spawn_file_actions_adddup2: New file.
55955         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55956         modifications.
55957         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55958         the new module.
55959
55960         New module 'posix_spawn_file_actions_addclose'.
55961         * modules/posix_spawn_file_actions_addclose: New file.
55962         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55963         modifications.
55964         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55965         the new module.
55966
55967         New module 'posix_spawn_file_actions_init'.
55968         * modules/posix_spawn_file_actions_init: New file.
55969         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55970         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55971         new module.
55972
55973         New module 'posix_spawn-internal'.
55974         * modules/posix_spawn-internal: New file.
55975         * lib/spawn_int.h: New file, from GNU libc with modifications.
55976         * lib/spawni.c: New file, from GNU libc with modifications.
55977         * m4/posix_spawn.m4: New file.
55978
55979         New module 'spawn'.
55980         * modules/spawn: New file.
55981         * lib/spawn.in.h: New file, from GNU libc with modifications.
55982         * m4/spawn_h.m4: New file.
55983         * doc/posix-headers/spawn.texi: Mention the new module.
55984
55985 2008-09-28  Bruno Haible  <bruno@clisp.org>
55986
55987         * modules/sched-tests: New file.
55988         * tests/test-sched.c: New file.
55989
55990         New module 'sched'.
55991         * modules/sched: New file.
55992         * lib/sched.in.h: New file.
55993         * m4/sched_h.m4: New file.
55994         * doc/posix-headers/sched.texi: Mention the new module.
55995
55996 2008-09-27  Eric Blake  <ebb9@byu.net>
55997
55998         Fix previous patch, and tweak references to $0.
55999         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56000         (func_version, func_gnulib_dir): Don't call this program
56001         gnulib-tool.
56002         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56003         with using $0 in function.
56004         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56005         (func_fatal_error): Reuse the name the user invoked us with.
56006
56007 2008-09-27  Bruno Haible  <bruno@clisp.org>
56008
56009         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56010         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56011         (gl_ICONV_H): Not here.
56012         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56013         instead of assigning ICONV_H directly.
56014
56015         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56017         WCHAR_H directly.
56018
56019 2008-09-27  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56022         * modules/arpa_inet (Depends-on): Add link-warning.
56023         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56024         * modules/unistd (Makefile.am): Likewise.
56025
56026 2008-09-26  Bruno Haible  <bruno@clisp.org>
56027
56028         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56029         variables.
56030         (func_version): Essentially copied from gnulib-tool.
56031         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56032         func_readlink): Copied from gnulib-tool.
56033
56034 2008-09-26  Bruno Haible  <bruno@clisp.org>
56035
56036         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56037         invoking git-version-gen.
56038
56039 2008-09-26  Bruno Haible  <bruno@clisp.org>
56040
56041         * posix-modules: Update to directory names changed on 2008-01-19.
56042         Remove commas in output before splitting into words. No more need to
56043         avoid 'ftruncate' since 2007-02-19.
56044
56045 2008-09-26  Bruno Haible  <bruno@clisp.org>
56046
56047         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56048
56049 2008-09-26  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56052         * modules/fwriteerror (Depends-on): Add errno.
56053
56054 2008-09-26  Bruno Haible  <bruno@clisp.org>
56055
56056         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56057         * tests/test-vc-list-files-cvs.sh: Likewise.
56058
56059 2008-09-26  Bruno Haible  <bruno@clisp.org>
56060
56061         * doc/posix-headers/sys_resource.texi: Reorder items.
56062
56063 2008-09-26  Jim Meyering  <meyering@redhat.com>
56064
56065         fts: tweak inode comparison function
56066         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56067         inode numbers, as documented.
56068
56069         fts: sort dirent entries on inode number before traversing
56070         This avoids a quadratic, seek-related performance penalty when
56071         operating on a directory containing many entries (measurable at 10k;
56072         3.5 hours at 2 million entries with a cold cache) on certain types
56073         of file systems, including ext3 and ext4, but not tmpfs.
56074         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56075         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56076         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56077         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56078         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56079         (fts_build): Set the stat.st_ino member from D_INO.
56080         If it is likely to be useful, sort dirent entries on inode number.
56081
56082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56083         and the struct statfs.f_type member.
56084         * modules/fts (Depends-on): Add d-ino.
56085
56086 2008-09-26  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/sigpipe-die (Depends-on): Add sigpipe.
56089
56090         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56091         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56092         and GNULIB_STDIO_H_SIGPIPE are set.
56093         * lib/stdio-write.c: New file.
56094         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56095         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56096         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56097         REPLACE_STDIO_WRITE_FUNCS.
56098         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56099         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56100         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56101         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56102         * modules/stdio (Files): Add lib/stdio-write.c.
56103         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56104         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56105         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56106         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56107         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56108         REPLACE_FPRINTF_POSIX.
56109         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56110         REPLACE_PRINTF_POSIX.
56111         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56112         REPLACE_VFPRINTF_POSIX.
56113         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56114         REPLACE_VPRINTF_POSIX.
56115         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56116         SIGPIPE issue.
56117         * doc/posix-functions/fputc.texi: Likewise.
56118         * doc/posix-functions/fputs.texi: Likewise.
56119         * doc/posix-functions/fwrite.texi: Likewise.
56120         * doc/posix-functions/printf.texi: Likewise.
56121         * doc/posix-functions/putc.texi: Likewise.
56122         * doc/posix-functions/putchar.texi: Likewise.
56123         * doc/posix-functions/puts.texi: Likewise.
56124         * doc/posix-functions/vfprintf.texi: Likewise.
56125         * doc/posix-functions/vprintf.texi: Likewise.
56126
56127         * modules/safe-write (Depends-on): Add write.
56128
56129         * modules/sigpipe-tests: New file.
56130         * tests/test-sigpipe.c: New file.
56131         * tests/test-sigpipe.sh: New file.
56132
56133         * modules/write: New file.
56134         * lib/unistd.in.h: Include <sys/types.h>.
56135         (write): New declaration.
56136         * lib/write.c: New file.
56137         * m4/write.m4: New file.
56138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56139         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56140         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56141         GNULIB_WRITE, REPLACE_WRITE.
56142         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56143         and the SIGPIPE issue.
56144
56145         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56146         (raise): New declaration.
56147         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56148         (ext_signal): New function.
56149         (rpl_raise): New function.
56150         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56151         GNULIB_SIGNAL_H_SIGPIPE.
56152         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56153         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56154
56155         * modules/sigpipe: New file.
56156         * m4/sigpipe.m4: New file.
56157
56158 2008-09-25  Derek Price  <derek@ximbiot.com>
56159             Bruno Haible  <bruno@clisp.org>
56160
56161         * gnulib-tool (func_import): Report all license incompatibilities, not
56162         just the first one.
56163
56164 2008-09-25  Bruno Haible  <bruno@clisp.org>
56165
56166         * gnulib-tool (func_import): When computing the edits, consider not
56167         only the Makefile.ams that exist but also those that will be generated.
56168
56169 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56170
56171         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56172         fixes gnulib-tool --test warning about duplicate dependency.
56173
56174 2008-09-25  Bruno Haible  <bruno@clisp.org>
56175
56176         * gnulib-tool: Don't ask the user to perform edits in the generated
56177         Makefile.ams.
56178         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56179         apply to the Makefile.am being generated.
56180         (func_emit_tests_Makefile_am): Execute edits that apply to the
56181         Makefile.am being generated.
56182         (func_import): Setup list of Makefile.am edits before emitting the
56183         Makefile.ams, not at the end.
56184         (func_create_testdir): Update.
56185         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56186
56187 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56188
56189         * gnulib-tool (func_import): Store the --tests-base option in the
56190         comment in gnulib-cache.m4.
56191
56192 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56193
56194         * NEWS: Document increased portability that sys_select now provides.
56195
56196         * lib/sys_select.in.h: Install select wrapper.
56197         * lib/sys_socket.in.h: Use more descriptive name when there is no
56198         select wrapper.
56199         * lib/winsock-select.c: New.
56200         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56201         Require gl_HEADER_SYS_SOCKET.
56202         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56203         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56204         * tests/test-sys_select.c: Add functional tests.
56205
56206 2008-09-24  Eric Blake  <ebb9@byu.net>
56207
56208         open, fopen: close fd leak in last patch
56209         * lib/open.c (rpl_open): Close fd before returning error.
56210         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56211         * doc/posix-functions/open.texi (open): Document that Irix also
56212         has the bug.
56213         * doc/posix-functions/fopen.texi (fopen): Likewise.
56214         Reported by Paolo Bonzini.
56215
56216 2008-09-24  Bruno Haible  <bruno@clisp.org>
56217
56218         Ensure that a filename ending in a slash cannot be used to access a
56219         non-directory.
56220         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56221         to check whether it's really a directory.
56222         * lib/fopen.c: Include fcntl.h, unistd.h.
56223         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56224         and fdopen().
56225         * modules/fopen (Depends-on): Add unistd.
56226         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56227         * tests/test-fopen.c (main): Likewise.
56228         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56229         * doc/posix-functions/fopen.texi: Likewise.
56230         Reported by Eric Blake.
56231
56232 2008-09-23  Eric Blake  <ebb9@byu.net>
56233
56234         c-stack: avoid compiler optimizations when provoking overflow
56235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56236         recursion harder to optimize, to ensure a stack overflow occurs.
56237         * tests/test-c-stack.c (recurse): Likewise.
56238         Borrowed from libsigsegv.
56239
56240         c-stack: work around Irix sigaltstack bug
56241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56242         whether sigaltstack uses wrong end of stack_t (copied in part from
56243         libsigsegv).
56244         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56245         Irix bug, without requiring an over-allocation.
56246         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56247         bug.
56248
56249         fopen: document mingw bug on directories
56250         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56251         not allowing a stream visiting a directory, even though reading
56252         from such a stream is not portable.
56253
56254 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56255
56256         * lib/poll.c: Rewrite.
56257         * modules/poll: Depend on alloca.
56258
56259 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56260
56261         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56262         instead define prototypes for a full set of wrappers.  Ensure
56263         that Cygwin does not use the compatibility code, which is only
56264         for MinGW.
56265         * lib/winsock.c: New.
56266         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56267         * modules/sys_socket: Add lib/winsock.c.
56268
56269         * modules/poll-tests: Add errno and perror.
56270         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56271
56272 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56273
56274         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56275
56276 2008-09-23  Bruno Haible  <bruno@clisp.org>
56277
56278         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56279         * doc/glibc-functions/*: Likewise.
56280
56281 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56282
56283         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56284         success.
56285
56286 2008-09-22  Eric Blake  <ebb9@byu.net>
56287             Bruno Haible  <bruno@clisp.org>
56288
56289         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56290         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56291         supply %A but mishandle pseudo-NaN.
56292         Reported by Simon Josefsson.
56293
56294 2008-09-21  Bruno Haible  <bruno@clisp.org>
56295
56296         * tests/test-lock.c (main): Tweak skip message.
56297         * tests/test-tls.c (main): Likewise.
56298
56299 2008-09-21  Bruno Haible  <bruno@clisp.org>
56300
56301         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56302         whether 'struct sigaction' has sa_sigaction here...
56303         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56304         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56305
56306 2008-09-21  Bruno Haible  <bruno@clisp.org>
56307
56308         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56309         section.
56310         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56311         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56312         the new section.
56313         (Support for obsolete systems lacking POSIX:2001): New section.
56314         (String handling <string.h>): Move strdup to the new section.
56315         Suggested by Simon Josefsson and Paolo Bonzini.
56316
56317 2008-09-21  Bruno Haible  <bruno@clisp.org>
56318
56319         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56320         exponents in %e and %g results on 'long double'. Needed for mingw's
56321         improved *printf functions.
56322         * tests/test-vasprintf-posix.c (test_function): Likewise.
56323         * tests/test-snprintf-posix.h (test_function): Likewise.
56324         * tests/test-sprintf-posix.h (test_function): Likewise.
56325         Reported by Eric Blake.
56326
56327 2008-09-21  Bruno Haible  <bruno@clisp.org>
56328
56329         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56330         * tests/test-sprintf-posix.h (test_function): Likewise.
56331
56332 2008-09-21  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/getpass (Depends-on): Add strdup-posix.
56335
56336         New module 'strdup-posix'.
56337         * modules/strdup-posix: New file.
56338         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56339         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56341         REPLACE_STRDUP.
56342         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56343         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56344         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56345         strdup-posix.
56346
56347         * modules/strdup (Depends-on): Remove malloc-posix.
56348
56349 2008-09-20  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56352         Wildenhues.
56353
56354 2008-09-20  Bruno Haible  <bruno@clisp.org>
56355
56356         Ensure that wint_t gets defined on IRIX 5.3.
56357         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56358         * lib/wctype.in.h (wint_t): Likewise.
56359         (__wctype_wint_t): Remove type.
56360         (isw*): Use wint_t instead of __wctype_wint_t.
56361         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56362         * modules/wchar (Files): Add m4/wint_t.m4.
56363         (Makefile.am): Substitute HAVE_WINT_T.
56364         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56365         * tests/test-wctype.c: Check that wint_t is defined.
56366         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56367         * doc/posix-headers/wctype.texi: Likewise.
56368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56369
56370 2008-09-18  Bruno Haible  <bruno@clisp.org>
56371
56372         * gnulib-tool (func_exit): Update comment.
56373
56374 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56375
56376         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56377         assumes strdup exists and does not depend on strdup to return
56378         ENOMEM on out of memory conditions.
56379
56380 2008-09-18  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56383         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56384         digits for the exponent.
56385
56386 2008-09-18  Jim Meyering  <meyering@redhat.com>
56387             Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/vasnprintf.c (decimal_point_char): Define also if
56390         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56391
56392 2008-09-16  Bruno Haible  <bruno@clisp.org>
56393         and Eric Blake  <ebb9@byu.net>
56394
56395         vasnprintf: support Irix 5.3
56396         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56397         that mishandle long double infinity.
56398         Reported by Tom G. Christensen.
56399
56400 2008-09-16  Bruno Haible  <bruno@clisp.org>
56401
56402         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56403         Solaris 9.
56404         * doc/glibc-functions/alphasort.texi: Likewise.
56405         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56406
56407 2008-09-16  Jim Meyering  <meyering@redhat.com>
56408
56409         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56410         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56411         a umask modification leak out of a subshell.  Otherwise, the
56412         opensolaris /bin/sh would be accepted and thus cause unwarranted
56413         failures in the coreutils test suite.
56414
56415 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56416
56417         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56418         to succeed.
56419
56420 2008-09-16  Jim Meyering  <meyering@redhat.com>
56421
56422         avoid spurious test failure when library is built without ACL support
56423         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56424         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56425         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56426         * tests/test-copy-acl.sh: Likewise.
56427
56428 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56429
56430         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56431         based on character occurrence counts.
56432
56433 2008-09-15  Eric Blake  <ebb9@byu.net>
56434
56435         tests: avoid some compiler warnings
56436         * tests/test-memchr.c (main): Pass NULL indirectly.
56437         * tests/test-closein.c (main): Avoid unused variable.
56438
56439 2008-09-15  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56442         are missing on OpenBSD 4.0 individually.
56443         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56444
56445 2008-09-15  Bruno Haible  <bruno@clisp.org>
56446
56447         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56448         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56449         * doc/posix-functions/perror.texi: Likewise.
56450         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56451         is missing.
56452         Reported by Eric Blake.
56453
56454         * lib/errno.in.h: Use replacement values >= 2000.
56455         Reported by Eric Blake.
56456
56457 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56458
56459         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56460         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56461         limit.
56462         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56463         compareseq was aborted.
56464
56465 2008-09-14  Bruno Haible  <bruno@clisp.org>
56466
56467         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56468         yvec_edit_count.
56469         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56470         (fstrcmp_bounded): Simplify result computation accordingly.
56471
56472 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56473
56474         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56475         (fstrcmp): Define in terms of fstrcmp_bounded.
56476         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56477         lower_bound argument.
56478         Return quickly if the result is certainly < lower_bound.
56479         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56480
56481 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56482
56483         * lib/diffseq.h (EARLY_ABORT): New macro.
56484         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56485         evaluates to true.
56486
56487 2008-09-14  Bruno Haible  <bruno@clisp.org>
56488
56489         * modules/perror-tests: New file.
56490         * tests/test-perror.sh: New file.
56491         * tests/test-perror.c: New file.
56492
56493         New module 'perror'.
56494         * lib/stdio.in.h (perror): New declaration.
56495         * lib/perror.c: New file.
56496         * m4/perror.m4: New file.
56497         * modules/perror: New file.
56498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56499         * doc/posix-functions/perror.texi: Mention the perror module.
56500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56501         REPLACE_PERROR.
56502         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56503         REPLACE_PERROR.
56504
56505 2008-09-14  Bruno Haible  <bruno@clisp.org>
56506
56507         * modules/stdio (Makefile.am): Reorder to match the order in
56508         lib/stdio.in.h.
56509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56510
56511 2008-09-13  Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56514
56515 2008-09-13  Bruno Haible  <bruno@clisp.org>
56516
56517         Extend strerror to cover the added errno values.
56518         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56519         (rpl_strerror): Provide error messages for the added errno values and
56520         for the WSA* values.
56521         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56522         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56523         strerror.
56524         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56525         * modules/strerror (Depends-on): Add errno.
56526         * doc/posix-functions/strerror.texi: Document the change.
56527         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56528         and EOVERFLOW.
56529
56530 2008-09-13  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/EOVERFLOW: Remove file.
56533         * m4/eoverflow.m4: Remove file.
56534         * modules/EOVERFLOW-tests: Remove file.
56535         * tests/test-EOVERFLOW.c: Remove file.
56536         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56537         * modules/ftell (Depends-on): Likewise.
56538         * modules/getdelim (Depends-on): Likewise.
56539         * modules/getugroups (Depends-on): Likewise.
56540         * modules/poll (Depends-on): Likewise.
56541         * modules/snprintf (Depends-on): Likewise.
56542         * modules/sprintf-posix (Depends-on): Likewise.
56543         * modules/vasnprintf (Depends-on): Likewise.
56544         * modules/vasprintf (Depends-on): Likewise.
56545         * modules/vfprintf-posix (Depends-on): Likewise.
56546         * modules/vsnprintf (Depends-on): Likewise.
56547         * modules/vsprintf-posix (Depends-on): Likewise.
56548         * modules/xvasprintf (Depends-on): Likewise.
56549         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56550         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56551         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56552         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56554         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56555         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56556         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56557         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56558         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56559         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56560         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56561         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56562         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56563         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56564         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56565         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56566         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56567         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56568         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56570         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56571         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56572         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56573         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56574         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56575         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56576         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56577         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56578         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56579         * MODULES.html.sh: Remove EOVERFLOW.
56580         * NEWS: Mention the change.
56581
56582 2008-09-13  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/errno-tests: New file.
56585         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56586
56587         * lib/errno.in.h: New file.
56588         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56589         * modules/errno: New file.
56590         * doc/posix-headers/errno.texi: Update documentation.
56591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56592
56593 2008-09-13  Bruno Haible  <bruno@clisp.org>
56594
56595         * tests/test-poll.c: Use #if for native Windows, rather than testing
56596         __MSVCRT__.
56597
56598 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56599             Bruno Haible  <bruno@clisp.org>
56600
56601         * lib/glob.c: Don't include <pwd.h> on native Windows.
56602         (WINDOWS32): New macro.
56603         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56604
56605 2008-09-13  Bruno Haible  <bruno@clisp.org>
56606
56607         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56608         (ETIMEDOUT): Remove macro.
56609         (glthread_cond_timedwait_multithreaded): New declaration.
56610         (glthread_cond_timedwait): Use it.
56611         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56612         (glthread_cond_timedwait_multithreaded): New function.
56613
56614 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56615
56616         * modules/poll-tests: Do not check for io.h.
56617         * tests/test-poll.c: Check for __MSVCRT__ instead.
56618
56619 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56620
56621         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56622         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56623         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56624
56625 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56626
56627         * modules/poll-tests: New.
56628         * tests/test-poll.c: New.
56629
56630 2008-09-12  Eric Blake  <ebb9@byu.net>
56631
56632         frexp: test for NetBSD failure on -0.0
56633         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56634         not all, bugs from NetBSD 3.0 have been fixed.
56635         * doc/posix-functions/frexp.texi (frexp): Document bug.
56636         Reported by Thomas Klausner.
56637
56638         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56639         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56640         literal -0.0.
56641         Reported by Jonathan C. Patschke <jp@centtech.com>.
56642
56643 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56644
56645         * lib/glthread/cond.h: Use dummy implementation also if
56646         USE_WIN32_THREADS.
56647
56648 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56649
56650         * modules/fnmatch-posix (License): Change to LGPLv2+.
56651         * modules/fnmatch-gnu (License): Likewise.
56652
56653 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56654
56655         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56656
56657 2008-09-11  Jim Meyering  <meyering@redhat.com>
56658
56659         * users.txt: Add gtk-vnc.
56660
56661 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56662
56663         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56664         rotate amounts.
56665
56666         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56667         required for 16-bit and 8-bit rotates.
56668         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56669         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56670         UINT8_MAX instead of hard-coded constants.
56671         Suggested by Paul Eggert.
56672
56673 2008-09-07  Bruno Haible  <bruno@clisp.org>
56674
56675         * tests/test-striconveh.c (main): Check behaviour when converting from
56676         UTF-7.
56677
56678         Make striconveh work better with stateful encodings.
56679         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56680         that iconv does not increment the inptr when returning -1/EINVAL.
56681
56682 2008-09-07  Bruno Haible  <bruno@clisp.org>
56683
56684         * build-aux/config.rpath: Update according to libtool-2.2.6.
56685         * build-aux/config.libpath: Likewise.
56686
56687 2008-09-06  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56690         * lib/freadptr.c (freadptr): Likewise.
56691         * lib/freadseek.c (freadptrinc): Likewise.
56692         Reported by Simon Josefsson.
56693
56694 2008-09-06  Bruno Haible  <bruno@clisp.org>
56695
56696         * modules/freadptr (License): Change to LGPLv2+.
56697         * modules/freadseek (License): Likewise.
56698         Suggested by Eric Blake.
56699
56700         * modules/memchr2 (License): Change to LGPLv2+.
56701         Approved by Eric Blake.
56702
56703 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56704             Bruno Haible  <bruno@clisp.org>
56705
56706         Make gnulib-tool work with native 'sed' on AIX.
56707         * gnulib-tool (sed_noop): New variable.
56708         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56709         func_add_or_update, func_create_testdir): Use it to initialize sed
56710         script variables.
56711         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56712
56713 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56714             Bruno Haible  <bruno@clisp.org>
56715
56716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56717         also works after #include directives.
56718
56719 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56720
56721         getdate.y: reject an out-of-range timezone value
56722         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56723         the range [-24...+24].  When specified with only one or two digits,
56724         * tests/test-getdate.c: Tests for the fix.
56725         * doc/getdate.texi: Document this change.
56726
56727 2008-09-03  Bruno Haible  <bruno@clisp.org>
56728
56729         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56730
56731 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56732
56733         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56734         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56735         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56736         Blake <ebb9@byu.net>.
56737
56738         * tests/test-bitrotate.c: Add more test vectors.
56739
56740 2008-09-02  Eric Blake  <ebb9@byu.net>
56741
56742         vasnprintf-posix: handle large precision via %.*d
56743         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56744         when handling it ourselves.
56745         * tests/test-vasnprintf-posix.c (test_function): Add test.
56746         * tests/test-snprintf-posix.h (test_function): Likewise.
56747         * tests/test-sprintf-posix.h (test_function): Likewise.
56748         * tests/test-vasprintf-posix.c (test_function): Likewise.
56749         Reported by Alain Guibert.
56750
56751 2008-09-01  Eric Blake  <ebb9@byu.net>
56752
56753         c-stack: make configure-time check more robust
56754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56755         successful sigaction call.
56756         Reported by Tom G. Christensen.
56757
56758 2008-09-01  Bruno Haible  <bruno@clisp.org>
56759
56760         New module 'findprog-lgpl'.
56761         * modules/findprog-lgpl: New file.
56762         * lib/findprog-lgpl.c: New file.
56763         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56764         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56765         to decide whether to use strdup or xstrdup, concatenated_filename or
56766         xconcatenated_filename.
56767
56768 2008-09-01  Bruno Haible  <bruno@clisp.org>
56769
56770         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56771         'xconcat-filename' (GPL).
56772         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56773         (License): Change to LGPLv2+.
56774         * modules/xconcat-filename: New file.
56775         * lib/concat-filename.h (concatenated_filename): Change specification.
56776         (xconcatenated_filename): New declaration.
56777         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56778         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56779         memory situations.
56780         * lib/xconcat-filename.c: New file.
56781         * NEWS: Mention the change.
56782         * lib/findprog.c: Include concat-filename.h, not filename.h.
56783         (find_in_path): Use xconcatenated_filename instead of
56784         concatenated_filename.
56785         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56786         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56787         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56788         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56789         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56790         instead of concatenated_filename.
56791         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56792         (execute_java_class): Use xconcatenated_filename instead of
56793         concatenated_filename.
56794         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56795         * modules/javacomp (Depends-on): Likewise.
56796         * modules/javaexec (Depends-on): Likewise.
56797
56798 2008-09-01  Bruno Haible  <bruno@clisp.org>
56799
56800         Split module 'filename' into 'filename' and 'concat-filename'.
56801         * modules/filename: Keep only lib/filename.h.
56802         (License): Change to LGPLv2+.
56803         * modules/concat-filename: New file, extracted from modules/filename.
56804         * lib/filename.h (concatenated_filename): Remove declaration.
56805         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56806         * lib/concat-filename.c: Include concat-filename.h.
56807         * NEWS: Mention the change.
56808
56809 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56810
56811         * lib/bitrotate.h (rotl8, rotr8): Add.
56812
56813         * modules/bitrotate (configure.ac): Need
56814         AC_REQUIRE([AC_C_INLINE]).
56815         (Description): Mention stdint.h.  Reported by Bruno Haible
56816         <bruno@clisp.org>.
56817
56818         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56819         Paolo Bonzini <bonzini@gnu.org>.
56820
56821 2008-08-31  Bruno Haible  <bruno@clisp.org>
56822
56823         Assume Solaris specific bi-arch conventions on Solaris systems.
56824         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56825         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56827         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56828         like acl_libdirstem.
56829         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56830         acl_libdirstem.
56831         * NEWS: Mention the change.
56832         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56833
56834 2008-08-31  Jim Meyering  <meyering@redhat.com>
56835
56836         * lib/strftime.h: Add comments describing the two added arguments.
56837
56838         remove duplicate #include directives
56839         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56840         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56841
56842 2008-08-31  Bruno Haible  <bruno@clisp.org>
56843
56844         New module 'sigpipe-die'.
56845         * modules/sigpipe-die: New file.
56846         * lib/sigpipe-die.h: New file.
56847         * lib/sigpipe-die.c: New file.
56848         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56849
56850 2008-08-31  Bruno Haible  <bruno@clisp.org>
56851
56852         Don't override previously installed signal handlers.
56853         * lib/fatal-signal.c (saved_sigactions): New variable.
56854         (uninstall_handlers): Reset the signal to the saved handler, not
56855         to SIG_DFL (except when ignored).
56856         (install_handlers): Save the previous handlers.
56857
56858 2008-08-30  Bruno Haible  <bruno@clisp.org>
56859
56860         * gnulib-tool (func_reset_sigpipe): New function.
56861         (func_get_automake_snippet, func_modules_transitive_closure,
56862         func_import): Invoke it before a join command that reads from stdin,
56863         to avoid "echo: write error: Broken pipe" error messages on stderr.
56864         Reported by Sam Steingold <sds@gnu.org>.
56865
56866 2008-08-30  Bruno Haible  <bruno@clisp.org>
56867
56868         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56869         Code copied from m4/open.m4.
56870         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56871         access and the filename ends in a slash. Code copied from lib/open.c.
56872         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56873         * tests/test-fopen.c (main): Check against bug with trailing slash.
56874
56875 2008-08-29  Bruno Haible  <bruno@clisp.org>
56876
56877         Avoid some "gcc -pedantic" warnings.
56878         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56879         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56880         * lib/dirent.in.h: Likewise.
56881         * lib/fcntl.in.h: Likewise.
56882         * lib/float.in.h: Likewise.
56883         * lib/iconv.in.h: Likewise.
56884         * lib/inttypes.in.h: Likewise.
56885         * lib/locale.in.h: Likewise.
56886         * lib/math.in.h: Likewise.
56887         * lib/netinet_in.in.h: Likewise.
56888         * lib/search.in.h: Likewise.
56889         * lib/signal.in.h: Likewise.
56890         * lib/stdarg.in.h: Likewise.
56891         * lib/stdint.in.h: Likewise.
56892         * lib/stdio.in.h: Likewise.
56893         * lib/stdlib.in.h: Likewise.
56894         * lib/string.in.h: Likewise.
56895         * lib/strings.in.h: Likewise.
56896         * lib/sys_select.in.h: Likewise.
56897         * lib/sys_socket.in.h: Likewise.
56898         * lib/sys_stat.in.h: Likewise.
56899         * lib/sys_time.in.h: Likewise.
56900         * lib/sysexits.in.h: Likewise.
56901         * lib/time.in.h: Likewise.
56902         * lib/unistd.in.h: Likewise.
56903         * lib/wchar.in.h: Likewise.
56904         * lib/wctype.in.h: Likewise.
56905         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56906         * modules/fchdir (Makefile.am): Likewise.
56907         * modules/fcntl (Makefile.am): Likewise.
56908         * modules/float (Makefile.am): Likewise.
56909         * modules/iconv_open (Makefile.am): Likewise.
56910         * modules/inttypes (Makefile.am): Likewise.
56911         * modules/locale (Makefile.am): Likewise.
56912         * modules/math (Makefile.am): Likewise.
56913         * modules/netinet_in (Makefile.am): Likewise.
56914         * modules/search (Makefile.am): Likewise.
56915         * modules/signal (Makefile.am): Likewise.
56916         * modules/stdarg (Makefile.am): Likewise.
56917         * modules/stdint (Makefile.am): Likewise.
56918         * modules/stdio (Makefile.am): Likewise.
56919         * modules/stdlib (Makefile.am): Likewise.
56920         * modules/string (Makefile.am): Likewise.
56921         * modules/strings (Makefile.am): Likewise.
56922         * modules/sys_select (Makefile.am): Likewise.
56923         * modules/sys_socket (Makefile.am): Likewise.
56924         * modules/sys_stat (Makefile.am): Likewise.
56925         * modules/sys_time (Makefile.am): Likewise.
56926         * modules/sysexits (Makefile.am): Likewise.
56927         * modules/time (Makefile.am): Likewise.
56928         * modules/unistd (Makefile.am): Likewise.
56929         * modules/wchar (Makefile.am): Likewise.
56930         * modules/wctype (Makefile.am): Likewise.
56931         Reported by Reuben Thomas <rrt@sc3d.org>.
56932
56933 2008-08-29  Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56936         any more.
56937
56938 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56939
56940         * MODULES.html.sh (Misc): Add bitrotate.
56941
56942         * modules/bitrotate: New file.
56943
56944         * lib/bitrotate.h: New file.
56945
56946         * modules/bitrotate-tests: New file.
56947
56948         * tests/test-bitrotate.c: New file.
56949
56950         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56951         on the bitrotate module.
56952
56953         * lib/arctwo.c: Use new bitrotate module.
56954
56955 2008-08-29  Jim Meyering  <meyering@redhat.com>
56956
56957         bootstrap: merge changes from coreutils
56958         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56959         of copied files.  Remove a kludge, now that this is fixed.
56960         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56961         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56962         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56963
56964 2008-08-29  Bruno Haible  <bruno@clisp.org>
56965
56966         * MODULES.html.sh: Remove --cvs-urls option.
56967
56968 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56969
56970         maint.mk: adjust to file name change
56971         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56972
56973 2008-08-28  Jim Meyering  <meyering@redhat.com>
56974
56975         * modules/getndelim2 (License): Relicense to LGPLv2+.
56976         Approved by Richard Stallman for the version of 1995, and by
56977         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56978
56979 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56980
56981         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56982         dummy if one is not available.  Do not touch them if
56983         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56984         (getc_maybe_unlocked): New.
56985         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56986
56987 2008-08-26  Eric Blake  <ebb9@byu.net>
56988
56989         doc/INSTALL: resync from autoconf
56990         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56991         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56992         moving...
56993         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56994         * INSTALL: Regenerate.
56995         * INSTALL.ISO: New file.
56996         * INSTALL.UTF-8: Likewise.
56997
56998 2008-08-26  Jim Meyering  <meyering@redhat.com>
56999
57000         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57001         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57002         these definitions conditional, so that they may be overridden, too.
57003
57004 2008-08-26  Bruno Haible  <bruno@clisp.org>
57005
57006         Generate INSTALL file variants with prettier quotes.
57007         * doc/Makefile (INSTALL_PRELUDE): New macro.
57008         (INSTALL): Use it.
57009         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57010
57011 2008-08-26  Bruno Haible  <bruno@clisp.org>
57012
57013         Run makeinfo in an English locale.
57014         * doc/Makefile (MAKEINFO): New variable.
57015
57016 2008-08-26  Bruno Haible  <bruno@clisp.org>
57017
57018         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57019         Suggested by Eric Blake.
57020
57021 2008-08-25  Bruno Haible  <bruno@clisp.org>
57022
57023         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57024
57025 2008-08-25  Eric Blake  <ebb9@byu.net>
57026
57027         c-stack: test that stack overflow can be caught
57028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57029         that platform allows handling stack overflow; at least OS/2 EMX
57030         has sigaltstack, but crashes before transferring control to
57031         handler on stack overflow.
57032         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57033         check for HAVE_STACK_OVERFLOW_HANDLING.
57034         Reported by Elbert Pol.
57035
57036 2008-08-25  Bruno Haible  <bruno@clisp.org>
57037
57038         * doc/posix-functions/strftime.texi: Fix description of strftime
57039         module.
57040
57041 2008-08-24  Bruno Haible  <bruno@clisp.org>
57042
57043         * tests/uniwidth/test-uc_width2.c: New file.
57044         * tests/uniwidth/test-uc_width2.sh: New file.
57045         * modules/uniwidth/width-tests (Files): Add the new files.
57046         (TESTS): Add uniwidth/test-uc_width2.sh.
57047         (TESTS_ENVIRONMENT): New variable.
57048         (check_PROGRAMS): Add test-uc_width2.
57049         (test_uc_width2_SOURCES): New variable.
57050
57051         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57052         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57053         not 0x00AB.
57054         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57055
57056 2008-08-22  Eric Blake  <ebb9@byu.net>
57057
57058         test-lock, test-tls: mention why a test is skipped
57059         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57060         skipped.
57061         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57062
57063         count-one-bits: relax license
57064         * modules/count-one-bits (License): Relicense to LGPLv2+.
57065         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57066
57067 2008-08-22  Andreas Schwab  <schwab@suse.de>
57068
57069         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57070         Remove spurious space in assignment.
57071
57072 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57073
57074         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57075         Paul Eggert <eggert@CS.UCLA.EDU>.
57076
57077 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57078
57079         * modules/gettext: Add m4/threadlib.m4.
57080
57081 2008-08-19  Eric Blake  <ebb9@byu.net>
57082
57083         test-c-stack: fix compilation failure on FreeBSD 5.0
57084         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57085         headers before <sys/resource.h>.
57086         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57087         the bug.
57088         Reported by Nelson H. F. Beebe.
57089
57090         strverscmp: migrate from "strverscmp.h" to <string.h>
57091         * modules/string (Makefile.am): Add new hooks.
57092         * modules/strverscmp (Files): Remove strverscmp.h.
57093         (Depends-on): Add string.
57094         (configure.ac): Add indicator.
57095         (Include): Mention new header.
57096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57097         defaults.
57098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57099         results.
57100         * lib/strverscmp.h: Delete.
57101         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57102         * tests/test-strverscmp.c (includes): Adjust client.
57103         * lib/check-version.c (includes): Likewise.
57104         * NEWS: Document the change.
57105
57106         strverscmp: add unit test
57107         * modules/strverscmp-tests: New file.
57108         * tests/test-strverscmp.c: Likewise.
57109
57110 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57111
57112         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57113         regarding Windows crypto stuff, from Mono.
57114
57115 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57116
57117         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57118         if present, for intel RND.  Return error on failures.
57119
57120 2008-08-18  Ben Pfaff  <blp@gnu.org>
57121
57122         gitlog-to-changelog: give better diagnostic for failed pipe-open
57123         * build-aux/gitlog-to-changelog: Improve error message: suggest
57124         that the version of Git may be too old.
57125
57126 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57127
57128         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57129         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57130
57131 2008-08-18  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57134         pthread_in_use().
57135
57136 2008-08-18  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/glthread/threadlib.c: Include <pthread.h>.
57139
57140 2008-08-18  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57143         glthread_recursive_lock_* macros.
57144         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57145         Fix syntax error.
57146
57147 2008-08-18  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/glthread/thread.c: Avoid forcing a context switch right after
57150         thread creation.
57151
57152 2008-08-17  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57155         * lib/glthread/thread.h: Provide Win32 specific implementation.
57156         * modules/thread (Files): Add lib/glthread/thread.c.
57157         (Depends-on): Add lock.
57158         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57159
57160 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57161
57162         New module 'yield'.
57163         * modules/yield: New file.
57164         * lib/glthread/yield.h: New file.
57165         * m4/yield.m4: New file.
57166         * MODULES.html.sh (Multithreading): Add yield.
57167
57168 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57169
57170         New module 'thread'.
57171         * modules/thread: New file.
57172         * lib/glthread/thread.h: New file.
57173         * m4/thread.m4: New file.
57174         * MODULES.html.sh (Multithreading): Add thread.
57175
57176 2008-08-17  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/glthread/lock.h: Include <stdlib.h> always.
57179         * lib/glthread/tls.h: Likewise.
57180         * lib/glthread/cond.h: Likewise.
57181
57182 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57183
57184         New module 'cond'.
57185         * modules/cond: New file.
57186         * lib/glthread/cond.h: New file.
57187         * lib/glthread/cond.c: New file.
57188         * m4/cond.m4: New file.
57189         * MODULES.html.sh (Multithreading): Add cond.
57190
57191 2008-08-16  Eric Blake  <ebb9@byu.net>
57192
57193         c-stack: fix regression on Irix 5.3 from 2008-06-21
57194         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57195         sa_sigaction...
57196         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57197         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57198         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57199         * modules/signal (Makefile.am): Use the value.
57200         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57201         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57202         * doc/posix-headers/signal.texi (signal.h): Document this
57203         portability issue.
57204         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57205         Reported by Tom G. Christensen.
57206
57207 2008-08-17  Bruno Haible  <bruno@clisp.org>
57208
57209         New module 'threadlib'.
57210         * modules/threadlib: New file.
57211         * lib/glthread/threadlib.c: New file, extracted from
57212         lib/glthread/lock.c.
57213         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57214         functions.
57215         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57216         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57217         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57218         macros.
57219         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57220         (gl_DISABLE_THREADS): Remove macro.
57221         * modules/lock (Files): Remove build-aux/config.rpath.
57222         (Depends-on): Remove havelib. Add threadlib.
57223         (configure.ac-early): Remove section.
57224         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57225         * modules/tls (Depends-on): Remove lock. Add threadlib.
57226         (Link): New section, copied from threadlib.
57227         * MODULES.html.sh (Multithreading): Add threadlib.
57228
57229 2008-08-14  Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57232         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57233         glthread_rwlock_unlock, glthread_rwlock_destroy,
57234         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57235         glthread_recursive_lock_destroy): Define as macros always.
57236         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57237         glthread_lock_lock.
57238         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57239         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57240         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57241         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57242         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57243         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57244         (glthread_recursive_lock_lock_func): Renamed from
57245         glthread_recursive_lock_lock.
57246         (glthread_recursive_lock_unlock_func): Renamed from
57247         glthread_recursive_lock_unlock.
57248         (glthread_recursive_lock_destroy_func): Renamed from
57249         glthread_recursive_lock_destroy.
57250
57251 2008-08-14  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/glthread/lock.h: Renamed from lib/lock.h.
57254         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57255         * lib/glthread/tls.h: Renamed from lib/tls.h.
57256         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57257         * lib/fstrcmp.c: Update includes.
57258         * lib/strsignal.c: Update includes.
57259         * modules/lock (Files, Makefile.am): Update.
57260         (Include): Change to "glthread/lock.h".
57261         * modules/tls (Files, Makefile.am): Update.
57262         (Include): Change to "glthread/tls.h".
57263         * tests/test-lock.c: Update includes.
57264         * tests/test-tls.c: Update includes.
57265         * NEWS: Mention the renamed header files.
57266
57267 2008-08-11  Jim Meyering  <meyering@redhat.com>
57268
57269         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57270
57271 2008-08-11  Eric Blake  <ebb9@byu.net>
57272
57273         test-c-stack: avoid C99-ism
57274         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57275         before statement.
57276         Reported by Alain Guibert.
57277
57278 2008-08-10  Jim Meyering  <meyering@redhat.com>
57279
57280         ensure that return value of uinttostr et al are not ignored
57281         * lib/inttostr.h (__GNUC_PREREQ): Define.
57282         (__attribute_warn_unused_result__): Define.
57283         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57284
57285 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57286
57287         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57288         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57289
57290 2008-08-07  Jim Meyering  <meyering@redhat.com>
57291
57292         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57293
57294         * modules/mkstemp (License): Relicense under LGPLv2+.
57295         * modules/tempname (License): Likewise.
57296
57297 2008-08-06  Bruno Haible  <bruno@clisp.org>
57298
57299         * lib/poll.c (poll): Further micro-optimization.
57300
57301 2008-08-06  Jim Meyering  <meyering@redhat.com>
57302
57303         inet_pton.c: use locale-independent tolower
57304         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57305         (inet_pton6): Use c_tolower rather than tolower.
57306         * modules/inet_pton (Depends-on): Add c-ctype.
57307
57308 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57309
57310         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57311         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57312
57313 2008-08-06  Jim Meyering  <meyering@redhat.com>
57314
57315         * modules/inet_pton (License): Relicense under LGPLv2+.
57316
57317 2008-08-03  Bruno Haible  <bruno@clisp.org>
57318
57319         Additional non-aborting API for lock and tls.
57320         * lib/lock.h: Include <errno.h>.
57321         (glthread_lock_init): New macro/function.
57322         (gl_lock_init): Define as wrapper around glthread_lock_init.
57323         (glthread_lock_lock): New macro/function.
57324         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57325         (glthread_lock_unlock): New macro/function.
57326         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57327         (glthread_lock_destroy): New macro/function.
57328         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57329         (glthread_rwlock_init): New macro/function.
57330         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57331         (glthread_rwlock_rdlock): New macro/function.
57332         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57333         (glthread_rwlock_wrlock): New macro/function.
57334         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57335         (glthread_rwlock_unlock): New macro/function.
57336         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57337         (glthread_rwlock_destroy): New macro/function.
57338         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57339         (glthread_recursive_lock_init): New macro/function.
57340         (gl_recursive_lock_init): Define as wrapper around
57341         glthread_recursive_lock_init.
57342         (glthread_recursive_lock_lock): New macro/function.
57343         (gl_recursive_lock_lock): Define as wrapper around
57344         glthread_recursive_lock_lock.
57345         (glthread_recursive_lock_unlock): New macro/function.
57346         (gl_recursive_lock_unlock): Define as wrapper around
57347         glthread_recursive_lock_unlock.
57348         (glthread_recursive_lock_destroy): New macro/function.
57349         (gl_recursive_lock_destroy): Define as wrapper around
57350         glthread_recursive_lock_destroy.
57351         (glthread_once): New macro/function.
57352         (gl_once): Define as wrapper around glthread_once.
57353         Update function declarations.
57354         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57355         glthread_rwlock_init. Return error code.
57356         (glthread_rwlock_rdlock_multithreaded): Renamed from
57357         glthread_rwlock_rdlock. Return error code.
57358         (glthread_rwlock_wrlock_multithreaded): Renamed from
57359         glthread_rwlock_wrlock. Return error code.
57360         (glthread_rwlock_unlock_multithreaded): Renamed from
57361         glthread_rwlock_unlock. Return error code.
57362         (glthread_rwlock_destroy_multithreaded): Renamed from
57363         glthread_rwlock_destroy. Return error code.
57364         (glthread_recursive_lock_init_multithreaded): Renamed from
57365         glthread_recursive_lock_init. Return error code.
57366         (glthread_recursive_lock_lock_multithreaded): Renamed from
57367         glthread_recursive_lock_lock. Return error code.
57368         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57369         glthread_recursive_lock_unlock. Return error code.
57370         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57371         glthread_recursive_lock_destroy. Return error code.
57372         (glthread_once_call): Make static.
57373         (glthread_once_multithreaded): Renamed from glthread_once.
57374         * lib/tls.h: Include <errno.h>.
57375         (glthread_tls_key_init): New macro/function.
57376         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57377         (glthread_tls_set): New macro/function.
57378         (gl_tls_set): Define as wrapper around glthread_tls_set.
57379         (glthread_tls_key_destroy): New macro/function.
57380         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57381         Update function declarations.
57382         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57383         glthread_tls_get.
57384         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57385
57386 2008-08-04  Eric Blake  <ebb9@byu.net>
57387
57388         gnumakefile: use space, not TAB, outside of targets
57389         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57390
57391 2008-08-02  Jim Meyering  <meyering@redhat.com>
57392
57393         getdate.y: avoid locale-dependent date parsing failure
57394         In Turkish locales, getdate would fail to recognize keywords
57395         containing a lowercase "i".  The solution is not to rely on
57396         locale-sensitive case-conversion.
57397         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57398         (lookup_word): Use c_toupper in place of toupper.
57399         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57400         Reported by Vefa Bicakci <bicave@superonline.com> in
57401         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57402         * modules/getdate (Depends-on): Add c-ctype.
57403
57404 2008-08-02  Bruno Haible  <bruno@clisp.org>
57405
57406         * gnulib-tool (func_import): When updating or creating a .gitignore
57407         file, prepend each added line with a slash, and ignore leading slashes
57408         from the existing lines.
57409         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57410
57411 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57412
57413         Portability fix for GNU make 3.79.1.
57414         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57415         versions do not understand.
57416
57417 2008-08-01  Bruno Haible  <bruno@clisp.org>
57418
57419         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57420         * tests/test-isnanf.h (zero): New variable.
57421         (main): Avoid literal -0.0f.
57422         * tests/test-isnand.h (zero): New variable.
57423         (main): Avoid literal -0.0.
57424         * tests/test-isnanl.h (zero): New variable.
57425         (main): Avoid literal -0.0L.
57426         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57427         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57428         -0.0, -0.0L.
57429         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57430         (test_signbitd): Avoid literal -0.0.
57431         (test_signbitl): Avoid literal -0.0L.
57432         * tests/test-ceilf1.c (zero): New variable.
57433         (main): Avoid literal -0.0f.
57434         * tests/test-ceill.c (zero): New variable.
57435         (main): Avoid literal -0.0L.
57436         * tests/test-floorf1.c (zero): New variable.
57437         (main): Avoid literal -0.0f.
57438         * tests/test-floorl.c (zero): New variable.
57439         (main): Avoid literal -0.0L.
57440         * tests/test-roundf1.c (zero): New variable.
57441         (main): Avoid literal -0.0f.
57442         * tests/test-round1.c (zero): New variable.
57443         (main): Avoid literal -0.0.
57444         * tests/test-roundl.c (zero): New variable.
57445         (main): Avoid literal -0.0L.
57446         * tests/test-truncf1.c (zero): New variable.
57447         (main): Avoid literal -0.0f.
57448         * tests/test-trunc1.c (zero): New variable.
57449         (main): Avoid literal -0.0.
57450         * tests/test-truncl.c (zero): New variable.
57451         (main): Avoid literal -0.0L.
57452         * tests/test-frexp.c (zero): New variable.
57453         (main): Avoid literal -0.0.
57454         * tests/test-frexpl.c (zero): New variable.
57455         (main): Avoid literal -0.0L.
57456         * tests/test-ldexpl.c (zero): New variable.
57457         (main): Avoid literal -0.0L.
57458         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57459         (zerod, zerol): New variables.
57460         (test_function): Avoid literals -0.0, -0.0L.
57461         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57462         (zerod, zerol): New variables.
57463         (test_function): Avoid literals -0.0, -0.0L.
57464         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57465         (zerod, zerol): New variables.
57466         (test_function): Avoid literals -0.0, -0.0L.
57467         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57468         (zerod, zerol): New variables.
57469         (test_function): Avoid literals -0.0, -0.0L.
57470         * tests/test-strtod.c (zero): New variable.
57471         (main): Avoid literal -0.0.
57472         Reported by Jonathan C. Patschke <jp@centtech.com>.
57473
57474 2008-07-31  Jim Meyering  <meyering@redhat.com>
57475
57476         sha256.h: correct definition of SHA224_DIGEST_SIZE
57477         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57478         Reported by Paulie Pena IV <paulie4@gmail.com>.
57479         Define as 224 / 8, rather than as a literal.
57480         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57481         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57482         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57483
57484 2008-07-31  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57487         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57488         Reported by Jonathan Patschke <jp@centtech.com>.
57489
57490 2008-07-31  Bruno Haible  <bruno@clisp.org>
57491
57492         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57493         Reported by Paolo Bonzini <bonzini@gnu.org>.
57494
57495 2008-07-30  Eric Blake  <ebb9@byu.net>
57496
57497         test-strtod: allow compilation without -lm
57498         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57499         Reported by Dennis Clarke <blastwave@gmail.com>.
57500
57501 2008-07-28  Jim Meyering  <meyering@redhat.com>
57502
57503         bootstrap: work also when there are no .po files in po/
57504         * build-aux/bootstrap (update_po_files): Complete the change
57505         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57506
57507 2008-07-27  Jim Meyering  <meyering@redhat.com>
57508
57509         * users.txt: Add zile.
57510
57511 2008-07-26  Ben Pfaff  <blp@gnu.org>
57512
57513         Add missing dependencies on new m4/exponent[fdl].m4 files.
57514         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57515         * modules/isnand-nolibm: Add m4/exponentd.m4.
57516         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57517         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57518         m4/isnan[fdl].m4, because the macros actually used moved.
57519         Reported by Jim Meyering.
57520
57521 2008-07-14  Ben Pfaff  <blp@gnu.org>
57522
57523         Add isinf module.
57524         * lib/isinf.c: New file.
57525         * lib/math.in.h: Define isinf macro if we have decided to replace
57526         it.
57527         * m4/isinf.m4: New file.
57528         * m4/math_h.m4: Initialize and substitute variables for isinf
57529         module.
57530         * modules/isinf: New file.
57531         * modules/isinf-tests: New file.
57532         * modules/math: Add substitutions for new module.
57533         * tests/test-isinf.c: New file.
57534         * doc/posix-functions/isinf.texi: Mention new module.
57535         * MODULES.html.sh: Mention new module.
57536
57537 2008-07-14  Ben Pfaff  <blp@gnu.org>
57538
57539         Factor out some macros for use by additional modules.
57540         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57541         exponentf.m4.
57542         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57543         exponentd.m4.
57544         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57545         file exponentl.m4.
57546         * m4/exponentf.m4: New file.
57547         * m4/exponentd.m4: New file.
57548         * m4/exponentl.m4: New file.
57549         * modules/isnanf: Use new file m4/exponentf.m4.
57550         * modules/isnand: Use new file m4/exponentd.m4.
57551         * modules/isnanl: Use new file m4/exponentl.m4.
57552
57553 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57554
57555         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57556         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57557         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57558         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57559
57560         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57561         readlink on platforms without PATH_MAX.
57562
57563 2008-07-21  Eric Blake  <ebb9@byu.net>
57564
57565         Warn, not fail, on stale version.
57566         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57567
57568         Don't allow installation with stale devel version number.
57569         * top/GNUmakefile (_is-install-target): New macro.
57570         (_curr-ver): Forbid installation with stale version number.
57571
57572 2008-07-20  Bruno Haible  <bruno@clisp.org>
57573
57574         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57575         TESTS_ENVIRONMENT.
57576         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57577
57578 2008-07-20  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/c-stack.h (c_stack_action): Add documentation.
57581         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57582
57583 2008-07-20  Bruno Haible  <bruno@clisp.org>
57584
57585         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57586         * modules/readlink (License): Likewise.
57587
57588 2008-07-17  Eric Blake  <ebb9@byu.net>
57589
57590         * modules/c-stack (Link): Fix typo.
57591
57592         Make c-stack use libsigsegv, when available.
57593         * modules/c-stack (Depends-on): Add libsigsegv.
57594         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57595         needed.
57596         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57597         (segv_handler, overflow_handler, c_stack_action)
57598         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57599         implementation when libsigsegv is available, but only when using
57600         the library is necessary.
57601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57602         comment, explaining why XSI check fails on Linux.
57603         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57604         * tests/test-c-stack2.sh: Tweak skip message.
57605         * NEWS: Document new link-time requirements.
57606
57607 2008-07-16  Eric Blake  <ebb9@byu.net>
57608
57609         c-stack: Expose false positives when not using libsigsegv.
57610         * modules/c-stack-tests (Files): Expand test.
57611         * tests/test-c-stack.c (main): Add means to conditionally trigger
57612         non-overflow SIGSEGV.
57613         * tests/test-c-stack2.sh: New file.
57614
57615 2008-07-14  Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57618         Reported by Eric Blake.
57619
57620 2008-07-14  Sam Steingold  <sds@gnu.org>
57621             Bruno Haible  <bruno@clisp.org>
57622
57623         New module libsigsegv.
57624         * modules/libsigsegv: New file.
57625         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57626         modifications.
57627         * MODULES.html.sh (Signal handling): New section.
57628
57629 2008-07-14  Bruno Haible  <bruno@clisp.org>
57630
57631         * modules/unictype/ctype-* (Description): Add the word "function".
57632         Improves the resulting doc in MODULES.html.
57633
57634 2008-07-12  Ben Pfaff  <blp@gnu.org>
57635
57636         Add longlong module.
57637         * modules/longlong: New file.
57638
57639 2008-07-12  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57642         to empty.
57643
57644 2008-07-10  Ben Pfaff  <blp@gnu.org>
57645
57646         Add isnan module.
57647         * doc/posix-functions/isnan.texi: Mention new module.
57648         * lib/math.in.h: Define isnan macro if we have decided to replace
57649         it.
57650         * m4/isnan.m4: New file.
57651         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57652         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57653         also.
57654         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57655         redundancy.
57656         * m4/math_h.m4: Initialize and substitute variables for isnan
57657         module.
57658         * modules/isnan: New file.
57659         * modules/isnan-tests: New file.
57660         * modules/math: Add substitutions for new module.
57661         * tests/test-isnan.c: New file.
57662         * MODULES.html.sh: Mention new module.
57663
57664 2008-07-10  Ben Pfaff  <blp@gnu.org>
57665
57666         Add isnanf module.
57667         * lib/isnanf.m4: New file.
57668         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57669         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57670         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57671         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57672         * modules/isnanf: New file.
57673         * modules/isnanf-tests: New file.
57674         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57675         files.
57676         * tests/test-isnanf-nolibm.c: factored most of its contents into
57677         new file tests/test-isnanf.h.
57678         * tests/test-isnanf.h: New file.
57679         * tests/test-isnanf.c: New file.
57680         * MODULES.html.sh: Mention new module.
57681         * doc/glibc-functions/isnanf.texi: Mention new module.
57682
57683 2008-07-10  Ben Pfaff  <blp@gnu.org>
57684
57685         Add isnand module.
57686         * lib/isnand.h: New file.
57687         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57688         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57689         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57690         functionality also.
57691         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57692         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57693         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57694         * modules/isnand: New file.
57695         * modules/isnand-tests: New file.
57696         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57697         files.
57698         * tests/test-isnand-nolibm.c: factored most of its contents into
57699         new file tests/test-isnand.h.
57700         * tests/test-isnand.h: New file.
57701         * tests/test-isnand.c: New file.
57702         * MODULES.html.sh: Mention new module.
57703
57704 2008-07-10  Ben Pfaff  <blp@gnu.org>
57705
57706         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57707         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57708         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57709         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57710         * modules/isnanf-nolibm: Update references to renamed files.
57711         * modules/isnand-nolibm: Likewise.
57712         * modules/isnanf-nolibm-tests: Likewise.
57713         * modules/isnand-nolibm-tests: Likewise.
57714         * lib/frexp.c: Likewise.
57715         * lib/isfinite.c: Likewise.
57716         * lib/signbitd.c: Likewise.
57717         * lib/signbitf.c: Likewise.
57718         * lib/vasnprintf.c: Likewise.
57719         * tests/test-ceilf1.c: Likewise.
57720         * tests/test-ceilf2.c: Likewise.
57721         * tests/test-floorf1.c: Likewise.
57722         * tests/test-floorf2.c: Likewise.
57723         * tests/test-frexp.c: Likewise.
57724         * tests/test-round1.c: Likewise.
57725         * tests/test-round2.c: Likewise.
57726         * tests/test-roundf1.c: Likewise.
57727         * tests/test-strtod.c: Likewise.
57728         * tests/test-trunc1.c: Likewise.
57729         * tests/test-trunc2.c: Likewise.
57730         * tests/test-truncf1.c: Likewise.
57731         * tests/test-truncf2.c: Likewise.
57732         * NEWS: Mention the renamed header files.
57733
57734 2008-07-11  Jim Meyering  <meyering@redhat.com>
57735
57736         vc-list-files: make the last-resort awk code more portable
57737         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57738         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57739         does not support it.
57740
57741 2008-07-10  Eric Blake  <ebb9@byu.net>
57742
57743         Work with tar's bootstrap.
57744         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57745         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57746         an m4 comment.
57747
57748 2008-07-09  Jim Meyering  <meyering@redhat.com>
57749
57750         posix-shell.m4: fix typo that made this test malfunction
57751         * m4/posix-shell.m4: Remove capitalization in variable name.
57752
57753 2008-07-08  Bruno Haible  <bruno@clisp.org>
57754
57755         * m4/onceonly.m4: Update comments.
57756         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57757
57758 2008-07-04  Jim Meyering  <meyering@redhat.com>
57759
57760         * users.txt: Add vc-dwim.
57761         (bison, coreutils): Use the gitweb URL.
57762
57763 2008-07-03  Jim Meyering  <meyering@redhat.com>
57764
57765         * users.txt: Add libffcall.  From Sam Steingold.
57766
57767 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57768
57769         getdate.y: do not ignore TZ with relative day, month or year offset
57770         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57771         relative-date-handling, since otherwise, the latter would clobber the
57772         sole output (an updated Start value) of the tz-handling block.
57773         * tests/test-getdate.c: Tests for the fix
57774
57775 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57776
57777         Recognize 'foo_LIBRARIES += libgnu.a'.
57778         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57779         makefile snippet has already specified an installation location,
57780         also using '+='.
57781
57782 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57783
57784         getdate.y: factor out common actions
57785         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57786         Use them in place of open-coded actions.
57787
57788 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57789
57790         Add self-test for getdate module.
57791         * modules/getdate-tests: New file.
57792         * tests/test-getdate.c: New file.
57793
57794 2008-06-29  Bruno Haible  <bruno@clisp.org>
57795
57796         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57797         .gitignore.
57798         Reported by Sylvain Beucler <beuc@beuc.net>.
57799
57800 2008-06-29  Bruno Haible  <bruno@clisp.org>
57801
57802         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57803         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57804
57805 2008-06-29  Bruno Haible  <bruno@clisp.org>
57806
57807         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57808         EXTRA_DIST.
57809         Reported by Sylvain Beucler <beuc@beuc.net>.
57810
57811 2008-06-26  Jim Meyering  <meyering@redhat.com>
57812
57813         make several modules depend on the "open" module
57814         This provides slightly increased consistency when opening-for-write
57815         the name of a non-directory spelled with a trailing slash.
57816         * modules/chdir-safer: Likewise.
57817         * modules/chown: Likewise.
57818         * modules/clean-temp: Likewise.
57819         * modules/copy-file: Likewise.
57820         * modules/fchdir: Likewise.
57821         * modules/fcntl-safer: Likewise.
57822         * modules/pipe: Likewise.
57823         * modules/utime: Likewise.
57824         Prompted by Eric Blake and Bruno Haible.
57825
57826 2008-06-24  Andreas Schwab  <schwab@suse.de>
57827
57828         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57829         literals can be used as initializers for global variables.
57830
57831 2008-06-23  Eric Blake  <ebb9@byu.net>
57832
57833         Make gnulib-cache.m4 easier to diff.
57834         * gnulib-tool (func_import): Allow newlines when reading cached
57835         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57836
57837 2008-06-23  Bruno Haible  <bruno@clisp.org>
57838
57839         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57840         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57841         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57842         m4/signalblocking.m4.
57843         (gl_PREREQ_SIGACTION): Don't invoke it.
57844         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57845         gl_PREREQ_SIG_HANDLER_H.
57846         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57847         Don't check for sigaction here.
57848
57849 2008-06-23  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57852         (install_handlers): Don't set the SA_RESETHAND flag.
57853
57854 2008-06-23  Bruno Haible  <bruno@clisp.org>
57855
57856         * m4/sigaction.m4: Comment fixes.
57857         * lib/signal.in.h: Likewise.
57858
57859 2008-06-23  Eric Blake  <ebb9@byu.net>
57860
57861         Fix typo.
57862         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57863
57864         Avoid SA_ namespace.
57865         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57866         Reported by Ralf Wildenhues.
57867
57868         Avoid test failure due to SA_RESTORER.
57869         * tests/test-sigaction.c (SA_MASK): New macro.
57870         (main): Avoid failing due to extension flags being set.
57871         Reported by Jim Meyering.
57872
57873         Revert use of sig-handler.h in sigprocmask.c.
57874         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57875         it requires the existence of struct sigaction.
57876         * lib/sigprocmask.c (handler_t): Restore typedef.
57877         (rpl_signal, old_handlers): Use local type.
57878
57879 2008-06-22  Bruno Haible  <bruno@clisp.org>
57880
57881         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57882         conditionally.
57883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57884
57885 2008-06-22  Bruno Haible  <bruno@clisp.org>
57886
57887         * doc/posix-functions/siginterrupt.texi: Move note.
57888
57889         * lib/signal.in.h (SA_RESTART): New macro.
57890         * lib/sigaction.c: Update comment.
57891
57892         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57893
57894         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57895         (gl_PREREQ_SIGPROCMASK): Invoke it.
57896         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57897
57898         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57899
57900         * lib/sigprocmask.c: Update a comment.
57901
57902 2008-06-21  Eric Blake  <ebb9@byu.net>
57903
57904         Use sigaction module rather than signal().
57905         * modules/c-stack (Depends-on): Add sigaction.
57906         * modules/fatal-signal (Depends-on): Likewise.
57907         * modules/nanosleep (Depends-on): Likewise.
57908         * modules/sigprocmask (Files): Add sig-handler.h.
57909         * modules/sigaction (Files): Likewise.
57910         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57911         Eggert.
57912         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57913         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57914         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57915         (init_fatal_signals): Likewise.
57916         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57917         (siginterrupt): Delete fallback.
57918         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57919         instead.
57920         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57921         siginterrupt.
57922
57923         New module sigaction, for mingw.
57924         * modules/sigaction: New module...
57925         * modules/sigaction-tests: ...and its test.
57926         * m4/sigaction.m4: New file.
57927         * lib/sigaction.c: Likewise.
57928         * tests/test-sigaction.c: Likewise.
57929         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57930         * modules/signal (Makefile.am): Likewise.
57931         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57932         needed.
57933         * doc/posix-headers/signal.texi (signal.h): Mention provided
57934         types.
57935         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57936         that sigaction is preferable.
57937         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57938         module.
57939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57940         sigaction.
57941
57942         Improve robustness of sigprocmask by overriding signal.
57943         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57944         is in use.
57945         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57946         (SIGKILL, SIGSTOP): Provide fallbacks.
57947         (rpl_signal): Implement.
57948         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57949         signal can be called inside handlers.
57950
57951         Fix nanosleep module on mingw.
57952         * modules/nanosleep (Depends-on): Add sys_select.
57953         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57954
57955         Fix licensing of sigprocmask.
57956         * modules/raise (License): Relicense as LGPL.
57957
57958 2008-06-21  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57961         result if it contains question marks.
57962         Reported by Michael Geng <linux@michaelgeng.de>.
57963
57964 2008-06-19  Bruno Haible  <bruno@clisp.org>
57965
57966         Fix CVS-ism.
57967         * doc/gnulib.texi: Include updated-stamp.texi.
57968         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57969         (updated-stamp.texi): New rule.
57970         (gnulib.info): Depend on it.
57971         * doc/.gitignore: Add updated-stamp.texi.
57972         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57973
57974 2008-06-19  Bruno Haible  <bruno@clisp.org>
57975
57976         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57977         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57978
57979 2008-06-19  Eric Blake  <ebb9@byu.net>
57980
57981         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57982         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57983         Reported by Stepan Kasal.
57984
57985 2008-06-18  Bruno Haible  <bruno@clisp.org>
57986
57987         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57988         Reported by Eric Blake.
57989
57990 2008-06-18  Eric Blake  <ebb9@byu.net>
57991
57992         Work around cygwin 1.5.25 strsignal bug.
57993         * tests/test-strsignal.c: Allow for const char *.
57994         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57995
57996 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57997
57998         * users.txt: Update URL to article and add author/date
57999         information.
58000
58001 2008-06-17  Bruno Haible  <bruno@clisp.org>
58002
58003         New macro gl_DISABLE_THREADS.
58004         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58005         if the user did not pass --enable-threads or --disable-threads option.
58006         (gl_DISABLE_THREADS): New macro.
58007         Reported by Eric Blake <ebb9@byu.net>.
58008
58009 2008-06-17  Bruno Haible  <bruno@clisp.org>
58010
58011         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58012         when the macro ignores it.
58013         Based on a patch by Eric Blake <ebb9@byu.net>.
58014
58015 2008-06-17  Bruno Haible  <bruno@clisp.org>
58016
58017         * modules/tls (License): Change to LGPLv2+.
58018         Reported by Eric Blake.
58019
58020 2008-06-17  Eric Blake  <ebb9@byu.net>
58021
58022         Simplify c-stack prerequisites.
58023         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58025         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58026         check.
58027         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58028         <sys/resource.h>.
58029
58030         Move c-stack test into testsuite.
58031         * modules/c-stack-tests: New file.
58032         * lib/c-stack.c [DEBUG]: Move test program...
58033         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58034         fail test if sigaltstack is lacking.
58035         * tests/test-c-stack.sh: New driver file.
58036
58037 2008-06-16  Eric Blake  <ebb9@byu.net>
58038
58039         Use raise module consistently.
58040         * modules/fatal-signal (Depends-on): Add raise.
58041         * modules/sigprocmask (Depends-on): Likewise.
58042         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58043         * lib/sigprocmask.c (sigprocmask): Likewise.
58044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58045         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58046
58047         Fix compliance bug in sigpending.
58048         * lib/sigprocmask.c (sigpending): Return pending array via
58049         parameter, not return value.
58050
58051 2008-06-14  Eric Blake  <ebb9@byu.net>
58052
58053         Improve obstack-printf test code.
58054         * tests/test-obstack-printf.c (test_function): Fix comment, and
58055         simplify usage of obstack_* in macros.  Add a test for coverage.
58056         Reported by Bruno Haible.
58057
58058 2008-06-14  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58061         array size as a constant, not as a const variable.
58062         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58063         AC_USE_SYSTEM_EXTENSIONS.
58064         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58065         Test whether the obstack_printf function actually exists.
58066         * modules/obstack-printf (Depends-on): Add extensions.
58067         (Include): Remove obstack.h.
58068         * modules/obstack-printf-posix (Depends-on): Add extensions.
58069         (Include): Remove obstack.h.
58070
58071 2008-06-13  Eric Blake  <ebb9@byu.net>
58072
58073         Add obstack-printf and obstack-printf-posix modules.
58074         * modules/obstack-printf: New file.
58075         * modules/obstack-printf-posix: Likewise.
58076         * MODULES.html.sh (Misc): Mention them.
58077         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58078         Likewise.
58079         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58080         Likewise.
58081         * modules/stdio (Makefile.am): Accomodate new modules.
58082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58083         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58084         Declare.
58085         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58086         functions.
58087         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58088         (gl_REPLACE_OBSTACK_PRINTF): New macros
58089         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58090         * tests/test-obstack-printf.c: New file.
58091         * modules/obstack-printf-tests: Likewise.
58092         * modules/obstack-printf-posix-tests: Likewise.
58093
58094 2008-06-11  Bruno Haible  <bruno@clisp.org>
58095
58096         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58097         * lib/open.c: Include errno.h.
58098         (open): Fail when attempting to write to a file that has a trailing
58099         slash.
58100         * tests/test-open.c (main): Test against trailing slash bug.
58101         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58102
58103 2008-06-10  Bruno Haible  <bruno@clisp.org>
58104
58105         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58106         for $? to work inside the trap command, with various /bin/sh-s.
58107         * tests/test-vc-list-files-cvs.sh: Likewise.
58108
58109 2008-06-10  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/acl-internal.h: Don't include gettext.h here.
58112         * lib/set-mode-acl.c: Include gettext.h here.
58113         * lib/copy-acl.c: Likewise.
58114
58115 2008-06-10  Bruno Haible  <bruno@clisp.org>
58116
58117         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58118         * lib/wait-process.c (wait_subprocess): Likewise.
58119         * lib/execute.h (execute): Add termsigp argument.
58120         * lib/execute.c (execute): Likewise.
58121         * lib/csharpcomp.c (compile_csharp_using_pnet,
58122         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58123         * lib/csharpexec.c (execute_csharp_using_pnet,
58124         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58125         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58126         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58127         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58128         is_jikes_present): Update.
58129         * lib/javaexec.c (execute_java_class): Update.
58130         * lib/javaversion.c (execute_and_read_line): Update.
58131         * NEWS: Document the changes.
58132         Reported by Eric Blake.
58133
58134 2008-06-10  Eric Blake  <ebb9@byu.net>
58135
58136         Add missing include.
58137         * tests/test-strstr.c (includes): Add <signal.h>.
58138         * tests/test-strcasestr.c (includes): Likewise.
58139         * tests/test-memmem.c (includes): Likewise.
58140
58141 2008-06-10  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/wait-process.c (wait_subprocess): Add an assertion.
58144
58145 2008-06-10  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58148
58149 2008-06-10  Bruno Haible  <bruno@clisp.org>
58150
58151         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58152         using alarm().
58153         * tests/test-strcasestr.c (main): Likewise.
58154         * tests/test-strstr.c (main): Likewise.
58155
58156 2008-06-09  Bruno Haible  <bruno@clisp.org>
58157
58158         Work around the Solaris 10 ACE ACLs ABI change.
58159         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58160         declare if ACL_NO_TRIVIAL is present.
58161         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58162         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58163         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58164         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58165         define if ACL_NO_TRIVIAL is present.
58166         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58167         and use the current ABI.
58168         (file_has_acl): Use same #if condition as elsewhere.
58169         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58170         in use, and use the current ABI.
58171         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58172         Reported by Jim Meyering.
58173
58174 2008-06-09  Eric Blake  <ebb9@byu.net>
58175
58176         Work around environments that (stupidly) ignore SIGALRM.
58177         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58178         before using alarm().
58179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58181         Reported by Ian Beckwith <ianb@erislabs.net>.
58182
58183         Produce autobuild blurb earlier in log.
58184         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58185
58186 2008-06-09  Jim Meyering  <meyering@redhat.com>
58187         and OndÅ™ej Vašík  <ovasik@redhat.com>
58188
58189         utimens.c: correct kernel bug work-around
58190         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58191         failure, not success, and the kernel bug we're trying to work
58192         around affects not just the utimensat call, but also the fallback
58193         futimens call.
58194         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58195         not success.
58196         [HAVE_FUTIMENS]: Use the same work-around, here.
58197
58198 2008-06-09  Jim Meyering  <meyering@redhat.com>
58199
58200         add more guards around definition of ACE_-related code
58201         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58202         ALLOW and ACE_OWNER are also defined.
58203
58204 2008-06-08  Bruno Haible  <bruno@clisp.org>
58205
58206         * lib/acl-internal.h: Add me as co-author.
58207         * lib/file-has-acl.c: Likewise.
58208         * lib/set-mode-acl.c: Likewise.
58209         * lib/copy-acl.c: Likewise.
58210
58211 2008-06-08  Bruno Haible  <bruno@clisp.org>
58212
58213         Add support for AIX ACLs.
58214         * lib/acl-internal.h (acl_nontrivial): New declaration.
58215         * lib/file-has-acl.c (acl_nontrivial): New function.
58216         (file_has_acl): Add implementation using AIX 4 ACL API.
58217         * lib/set-mode-acl.c (qset_acl): Likewise.
58218         * lib/copy-acl.c (qcopy_acl): Likewise.
58219
58220 2008-06-08  Bruno Haible  <bruno@clisp.org>
58221
58222         Add support for HP-UX ACLs.
58223         * lib/acl-internal.h (acl_nontrivial): New declaration.
58224         * lib/file-has-acl.c (acl_nontrivial): New function.
58225         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58226         * lib/set-mode-acl.c (qset_acl): Likewise.
58227         * lib/copy-acl.c (qcopy_acl): Likewise.
58228
58229 2008-06-08  Bruno Haible  <bruno@clisp.org>
58230
58231         Add support for Cygwin ACLs.
58232         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58233         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58234         the chmod_or_fchmod call.
58235         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58236
58237 2008-06-08  Bruno Haible  <bruno@clisp.org>
58238
58239         Fix bug with setuid modes in Solaris 10+ code.
58240         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58241         succeeded, when the mode contains some special bits.
58242
58243 2008-06-08  Bruno Haible  <bruno@clisp.org>
58244
58245         Add support for Solaris 7..10 ACLs.
58246         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58247         declarations.
58248         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58249         functions.
58250         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58251         * lib/set-mode-acl.c (qset_acl): Likewise.
58252         * lib/copy-acl.c (qcopy_acl): Likewise.
58253
58254 2008-06-08  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58257         declaration.
58258         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58259         (acl_access_nontrivial): Remove MacOS X case.
58260         (file_has_acl): Use acl_extended_nontrivial.
58261         * lib/copy-acl.c (qcopy_acl): Likewise.
58262
58263 2008-06-08  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58266
58267 2008-06-08  Jim Meyering  <meyering@redhat.com>
58268
58269         * modules/acl (Maintainer): Add Bruno Haible.
58270
58271 2008-06-07  Bruno Haible  <bruno@clisp.org>
58272
58273         Improve support for Tru64 ACLs.
58274         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58275         ACL on OSF/1.
58276
58277 2008-06-07  Bruno Haible  <bruno@clisp.org>
58278
58279         Add support for MacOS X ACLs.
58280         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58281         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58282         * lib/set-mode-acl.c (qset_acl): Likewise.
58283         * lib/copy-acl.c (qcopy_acl): Likewise.
58284
58285 2008-06-07  Bruno Haible  <bruno@clisp.org>
58286
58287         Fix memory leak introduced on 2008-05-22.
58288         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58289         use.
58290
58291 2008-06-07  Bruno Haible  <bruno@clisp.org>
58292
58293         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58294         to construct an empty ACL.
58295
58296 2008-06-07  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58299         precisely.
58300         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58301
58302 2008-06-07  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58305         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58306
58307 2008-06-07  Bruno Haible  <bruno@clisp.org>
58308
58309         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58310         regardless of POSIX.
58311         * doc/posix-functions/_longjmp.texi: Likewise.
58312         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58313         SystemV platform in this case.
58314
58315 2008-06-06  Eric Blake  <ebb9@byu.net>
58316
58317         Document abort() bugs.
58318         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58319
58320         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58321         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58322         sigsetjmp.
58323         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58324         siglongjmp, but only as a macro.
58325         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58326         is obsolete.
58327         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58328
58329         Tweak documentation to cover cygwin argz bugs.
58330         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58331         argz bug fix; no code change needed since no cygwin releases
58332         occurred between the last fix and the bug being tested.
58333         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58334         module and recently fixed cygwin bugs.
58335         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58336         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58337         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58338         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58339         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58340         Likewise.
58341         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58342         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58343         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58344         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58345         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58346         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58347         Likewise.
58348
58349         Avoid gcc warning on cygwin.
58350         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58351         !ACL_NO_TRIVIAL]: Avoid unused variable.
58352
58353 2008-06-05  Eric Blake  <ebb9@byu.net>
58354
58355         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58356         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58357         git-version-gen fails to come up with a version.
58358         Reported by Simon Josefsson.
58359
58360 2008-06-05  Jim Meyering  <meyering@redhat.com>
58361             Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         utimens.c: work around a probable Linux kernel bug
58364         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58365         appears to be a kernel bug that causes utimensat to return 280
58366         instead of 0, indicating success.
58367
58368 2008-06-04  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58371         2008-06-01 commit.
58372
58373 2008-06-04  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58376         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58377         (file_has_acl): Use it. Save errno afterwards.
58378         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58379
58380 2008-06-03  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58383         draft code. Simplify #ifs.
58384         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58385         Put Solaris code after POSIX-draft code. Fix comments regarding
58386         Solaris 10, HP-UX. Mention Cygwin.
58387         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58388
58389 2008-06-03  Eric Blake  <ebb9@byu.net>
58390
58391         Provide fallback for older kernels.
58392         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58393         Provide runtime fallback if kernel lacks support.
58394         Reported by Mike Frysinger.
58395
58396 2008-06-02  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58399         it exists.
58400
58401 2008-06-02  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58404         * lib/copy-acl.c (qcopy_acl): Update comment.
58405
58406 2008-06-02  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58409         like ACL APIs.
58410
58411 2008-06-02  Bruno Haible  <bruno@clisp.org>
58412
58413         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58414         * tests/test-set-mode-acl.sh: Likewise.
58415         * tests/test-copy-acl.sh: Likewise.
58416         * tests/test-copy-file.sh: Likewise.
58417
58418 2008-06-02  Bruno Haible  <bruno@clisp.org>
58419
58420         * tests/test-file-has-acl.sh: Remove unused code.
58421
58422 2008-06-01  Bruno Haible  <bruno@clisp.org>
58423
58424         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58425         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58426         messages.
58427         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58428
58429 2008-06-01  Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58432         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58433         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58434         APIs.
58435         * modules/acl-tests (configure.ac): Remove tests now contained in
58436         m4/acl.m4.
58437
58438 2008-06-02  Jim Meyering  <meyering@redhat.com>
58439
58440         announce-gen: use a better key-server host name
58441         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58442         it may be more consistently reliable.  Suggested by Werner Koch
58443         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58444
58445 2008-06-01  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58448         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58449
58450 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58451
58452         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58453
58454 2008-06-01  Bruno Haible  <bruno@clisp.org>
58455
58456         New ACL tests.
58457         * tests/test-file-has-acl.sh: New file.
58458         * tests/test-file-has-acl.c: New file.
58459         * tests/test-set-mode-acl.sh: New file.
58460         * tests/test-set-mode-acl.c: New file.
58461         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58462         * tests/test-copy-acl.c: New file.
58463         * modules/acl-tests: New file, based on modules/copy-file-tests.
58464         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58465         (Depends-on): Add acl-tests.
58466         (configure.ac): Remove checks.
58467         (Makefile.am): Don't create test-sameacls program here any more.
58468
58469 2008-06-01  Bruno Haible  <bruno@clisp.org>
58470
58471         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58472         * tests/test-sameacls.c: Include progname.h.
58473         (main): Invoke set_program_name. Portability fixes for MacOS X,
58474         Solaris, HP-UX.
58475
58476 2008-06-01  Bruno Haible  <bruno@clisp.org>
58477
58478         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58479         function.
58480         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58481
58482 2008-06-01  Bruno Haible  <bruno@clisp.org>
58483
58484         * modules/rpmatch (Depends-on): Add strdup.
58485
58486 2008-06-01  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/pipe.c: Include unistd-safer.h.
58489         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58490         * modules/pipe (Depends-on): Add unistd-safer.
58491
58492 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58493
58494         * modules/autobuild (configure.ac): Call AB_INIT.
58495
58496 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58497
58498         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58499         Suggested by Bruno Haible <bruno@clisp.org>.
58500
58501 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58502
58503         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58504         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58505         <bruno@clisp.org>.
58506
58507 2008-05-29  Eric Blake  <ebb9@byu.net>
58508
58509         Prefer new POSIX 200x interfaces over futimesat.
58510         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58511         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58512         when available.
58513         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58514
58515 2008-05-28  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/stpcpy (License): Change to LGPLv2+.
58518         Requested by David Lutterkort <dlutter@redhat.com>.
58519
58520 2008-05-27  Bruno Haible  <bruno@clisp.org>
58521
58522         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58523         current mingw.
58524         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58525
58526 2008-05-27  Bruno Haible  <bruno@clisp.org>
58527
58528         * modules/iconv_open (Link): New section, from module 'iconv'.
58529         * modules/striconv (Link): Likewise.
58530         * modules/striconveh (Link): Likewise.
58531         * modules/xstriconv (Link): Likewise.
58532         * modules/unicodeio (Link): Likewise.
58533         * modules/propername (Link): Likewise.
58534         Reported by Jim Meyering.
58535
58536 2008-05-26  Jim Meyering  <meyering@redhat.com>
58537
58538         sha256: do not artificially restrict buffer length to be < 2^32
58539         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58540         uint32_t to size_t.
58541         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58542         to match.
58543
58544         avoid unaligned access errors, e.g., on sparc
58545         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58546         direct access through a possibly-unaligned uint64* pointer.
58547         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58548         direct access through a possibly-unaligned uint32* pointer.
58549         Prompted by this patch from Tom "spot" Callaway:
58550         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58551
58552         sha512.c: fix typo in comment
58553         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58554
58555 2008-05-25  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58558         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58559         (Makefile.am): Update lib_SOURCES.
58560
58561 2008-05-25  Bruno Haible  <bruno@clisp.org>
58562
58563         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58564
58565 2008-05-25  Jim Meyering  <meyering@redhat.com>
58566
58567         useless-if-before-free: freed expr may have white-space differences
58568         * build-aux/useless-if-before-free: Recognize cases in which the
58569         freed expression differs from the tested one in embedded white
58570         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58571         $1 was used, so we can't make any regexp shy.  Improved tests now
58572         detect this.
58573
58574         useless-if-before-free: accept white space in the expression.
58575         * build-aux/useless-if-before-free: For now, any white space
58576         in the expression must be identical in the free argument.
58577
58578         useless-if-before-free: efficiency tweak
58579         * build-aux/useless-if-before-free: Make the expression-matching
58580         regexp "shy".
58581         Make the *outer* regexp shy, not the expr-matching one.
58582
58583         update code-in-comment to accept cast of free arg
58584         * build-aux/useless-if-before-free: Update regexp.
58585
58586 2008-05-25  Bruno Haible  <bruno@clisp.org>
58587
58588         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58589         * modules/copy-file-tests (Files, Makefile.am): Update.
58590         * tests/test-copy-file.c (func_test_copy): Update.
58591
58592 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58593
58594         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58595
58596 2008-05-23  Bruno Haible  <bruno@clisp.org>
58597
58598         Improve support for ACLs on OSF/1.
58599         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58600         Remove fallback for unknown flavors of ACLs.
58601
58602 2008-05-22  Bruno Haible  <bruno@clisp.org>
58603
58604         Add support for ACLs on OSF/1.
58605         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58606         replacements.
58607         (acl_free_text): New macro fallback.
58608         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58609         acl_free.
58610         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58611         acl_free_text function. Require AC_C_INLINE.
58612
58613 2008-05-22  Bruno Haible  <bruno@clisp.org>
58614
58615         Make copy_acl work on MacOS X 10.5.
58616         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58617         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58618         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58619         If MODE_INSIDE_ACL, don't assume that every system has the same text
58620         representation for ACLs as FreeBSD.
58621         * lib/copy-acl.c (copy_acl): Add support for platforms with
58622         !MODE_INSIDE_ACL.
58623         * lib/file-has-acl.c (file_has_acl): Likewise.
58624         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58625         FreeBSD, MacOS X, or IRIX, respectively.
58626
58627 2008-05-22  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/acl.h: Don't include <sys/acl.h>.
58630         (GETACLCNT): Move fallback to lib/acl-internal.h.
58631         * lib/acl-internal.h: Include <sys/acl.h> here.
58632         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58633
58634 2008-05-22  Bruno Haible  <bruno@clisp.org>
58635
58636         Split off copy_acl function to separate file.
58637         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58638         * lib/acl.c (copy_acl): Moved function to separate file.
58639         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58640         * modules/acl (Files): Add lib/copy-acl.c.
58641         (Makefiles.am): Augment lib_SOURCES.
58642
58643 2008-05-22  Bruno Haible  <bruno@clisp.org>
58644
58645         * modules/copy-file-tests: New file.
58646         * tests/test-copy-file.sh: New file.
58647         * tests/test-copy-file.c: New file.
58648         * tests/test-copy-file-sameacls.c: New file.
58649
58650 2008-05-22  Eric Blake  <ebb9@byu.net>
58651
58652         Avoid gcc warning.
58653         * tests/test-memcmp.c (main): Pass NULL indirectly.
58654
58655 2008-05-21  Bruno Haible  <bruno@clisp.org>
58656
58657         Add reference doc about ACLs.
58658         * doc/acl-resources.txt: New file.
58659         * doc/acl-cygwin.txt: New file.
58660
58661 2008-05-21  Bruno Haible  <bruno@clisp.org>
58662
58663         Avoid one more warning from gcc.
58664         * lib/vasnprintf.c (IF_LINT): Update comments.
58665         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58666
58667 2008-05-21  Jim Meyering  <meyering@redhat.com>
58668
58669         avoid a warning from gcc
58670         * lib/vasnprintf.c (IF_LINT): Define.
58671         (scale10_round_decimal_long_double):
58672         Use it to avoid a "may be used uninitialized" warning.
58673         (scale10_round_decimal_double): Likewise.
58674
58675 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58676
58677         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58678         declared.
58679
58680 2008-05-20  Bruno Haible  <bruno@clisp.org>
58681
58682         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58683         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58684
58685 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58686
58687         * modules/memcmp-tests: New file.
58688         * tests/test-memcmp.c: New file.
58689
58690 2008-05-19  Bruno Haible  <bruno@clisp.org>
58691
58692         * modules/propername (Notice, configure.ac): Put quoted "..." into
58693         --keyword option.
58694         * lib/propername.h: Update comments accordingly.
58695         Reported by Eric Blake.
58696
58697 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58698
58699         * modules/getpass-gnu (Depends-on): Add fseeko.
58700
58701 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58702
58703         * modules/base64-tests: New file.
58704
58705 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58706
58707         * lib/base64.c (base64_decode_ctx): If a decode context structure
58708         was passed in use it to ignore newlines.  If a context structure
58709         was _not_ passed in, continue to treat newlines as garbage (this
58710         is the historical behavior).  Formerly base64_decode.
58711         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58712         takes a decode context structure.
58713         * lib/base64.h (base64_decode): Macro for four-argument calls.
58714         (base64_decode_alloc): Likewise.
58715         * lib/base64.c (base64_decode_ctx): If a decode context structure
58716         was passed in use it to ignore newlines.  If a context structure
58717         was _not_ passed in, continue to treat newlines as garbage (this
58718         is the historical behavior).  Formerly base64_decode.
58719         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58720         takes a decode context structure.
58721         * lib/base64.h (base64_decode): Macro for four-argument calls.
58722         (base64_decode_alloc): Likewise.
58723
58724 2008-05-19  Jim Meyering  <meyering@redhat.com>
58725
58726         avoid a warning from gcc
58727         * lib/trim.c (IF_LINT): Define.
58728         (trim2): Use it to avoid a "may be used uninitialized" warning.
58729
58730         Fix doc typo.
58731         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58732
58733 2008-05-19  Bruno Haible  <bruno@clisp.org>
58734
58735         * doc/glibc-functions/getpass.texi: Document limits of other
58736         implementations.
58737
58738 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58739             Bruno Haible <bruno@clisp.org>
58740
58741         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58742
58743 2008-05-18  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/propername: New file, from GNU gettext.
58746         * lib/propername.h: New file, from GNU gettext.
58747         * lib/propername.c: New file, from GNU gettext.
58748         * MODULES.html.sh (Internationalization functions): Add propername.
58749
58750 2008-05-16  Jim Meyering  <meyering@redhat.com>
58751             Bruno Haible  <bruno@clisp.org>
58752
58753         Avoid some warnings from "gcc -Wshadow".
58754         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58755
58756 2008-05-15  Eric Blake  <ebb9@byu.net>
58757
58758         Extend previous patch to cygwin 1.7.0.
58759         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58760         fast implementation in cygwin >= 1.7.0.
58761         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58763
58764 2008-05-15  Bruno Haible  <bruno@clisp.org>
58765
58766         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58767         implementation in glibc >= 2.9.
58768         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58770
58771 2008-05-15  Bruno Haible  <bruno@clisp.org>
58772
58773         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58774         (Unicode string functions): Add unilbrk/*.
58775         Reported by Karl Berry.
58776
58777 2008-05-15  Eric Blake  <ebb9@byu.net>
58778
58779         Fix violation of <stdbool.h> replacement in regex.
58780         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58781         * lib/regexec.c (re_search_internal): Likewise.
58782         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58783
58784 2008-05-15  Jim Meyering  <meyering@redhat.com>
58785
58786         avoid distracting test output when git or cvs is not found
58787         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58788         * tests/test-vc-list-files-git.sh: Likewise.
58789
58790 2008-05-15  Eric Blake  <ebb9@byu.net>
58791
58792         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58793         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58794         glibc version.
58795         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58796         * doc/posix-functions/strstr.texi (strstr): Likewise.
58797         * lib/str-two-way.h (MAX): Sychronize with glibc.
58798
58799 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58800
58801         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58802         opr.ctx_type.
58803         (calc_first): Initialize constraint field.
58804         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58805         Fix grammar.
58806         (duplicate_node): Merge constraint field for all node types.
58807         (calc_eclosure_iter): Look at constraint field for all node types.
58808         * lib/regex_internal.c (create_cd_newstate): Don't look at
58809         opr.ctx_type.
58810
58811 2008-05-14  Bruno Haible  <bruno@clisp.org>
58812
58813         Help GCC to do better code generation.
58814         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58815         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58816         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58817         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58818         Declare with attribute 'malloc' if supported.
58819
58820 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58821
58822         use "echo STR|wc -c" rather than unportable "expr length STR"
58823         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58824         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58825
58826 2008-05-14  Jim Meyering  <meyering@redhat.com>
58827
58828         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58829         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58830         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58831         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58832         via Collin Lasse.
58833
58834 2008-05-14  Eric Blake  <ebb9@byu.net>
58835
58836         Avoid quadratic growth in gl_LIBSOURCES.
58837         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58838         Suggested by Bruno Haible.
58839
58840         Test xmemdup0.
58841         * modules/xmemdup0-tests: New file.
58842         * tests/test-xmemdup0.c: Likewise.
58843
58844 2008-05-13  Eric Blake  <ebb9@byu.net>
58845
58846         Split xmemdup0 into its own module.
58847         * modules/xmemdup0: New file.
58848         * lib/xmemdup0.h: Likewise.
58849         * lib/xmemdup0.c: Likewise.
58850         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58851         * lib/xalloc.h (xmemdup0): Remove.
58852         * lib/xmalloc.c (xmemdup0): Likewise.
58853
58854 2008-05-13  Eric Blake  <ebb9@byu.net>
58855             Bruno Haible  <bruno@clisp.org>
58856
58857         Reduce number of forks required during autoconf.
58858         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58859         and gl_LIBSOURCES_DIR.
58860         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58861         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58862         m4_syscmd per file.
58863         <m4_foreach_w>: Move...
58864         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58865
58866 2008-05-13  Eric Blake  <ebb9@byu.net>
58867
58868         * gnulib-tool: Fix various comment typos.
58869
58870 2008-05-12  Bruno Haible  <bruno@clisp.org>
58871
58872         Tailor the linebreaking algorithm.
58873         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58874
58875 2008-05-12  Bruno Haible  <bruno@clisp.org>
58876
58877         Update to Unicode 5.0.0.
58878         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58879         LBP_JV, LBP_JT. Redistribute values.
58880         (unilbrk_table): Change size.
58881         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58882         Unicode TR#14 rev. 22.
58883         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58884         LBP_JV, LBP_JT. Redistribute values.
58885         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58886         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58887         Update.
58888         * lib/unilbrk/lbrkprop1.h: Regenerated.
58889         * lib/unilbrk/lbrkprop2.h: Regenerated.
58890         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58891         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58892         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58893         Likewise.
58894         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58895         Likewise.
58896         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58897         result.
58898         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58899         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58900         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58901         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58902         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58903         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58904
58905 2008-05-11  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58908
58909 2008-05-11  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58912         * modules/unilbrk/gen-lbrk: New file.
58913
58914 2008-05-11  Bruno Haible  <bruno@clisp.org>
58915
58916         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58917         * m4/sha512.m4 (gl_SHA512): Likewise.
58918
58919 2008-05-11  Jim Meyering  <meyering@redhat.com>
58920
58921         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58922         * modules/crypto/sha256: New file.
58923         * modules/crypto/sha512: Likewise.
58924         * lib/sha256.c: Likewise.
58925         * lib/sha256.h: Likewise.
58926         * lib/sha512.c: Likewise.
58927         * lib/sha512.h: Likewise.
58928         * lib/u64.h: Likewise.
58929         * m4/sha256.m4: Likewise.
58930         * m4/sha512.m4: Likewise.
58931         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58932
58933 2008-05-10  Bruno Haible  <bruno@clisp.org>
58934
58935         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58936         (Input/Output <stdio.h>): Add xprintf.
58937         (Signal handling <signal.h>): Add strsignal.
58938         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58939         (Core language properties): Add func.
58940         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58941         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58942         strings.
58943         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58944         (Input/output): New section.
58945         (File system functions): Add openat-die, stat-macros.
58946         (Networking functions): Add sockets.
58947         (Unicode string functions): Add unictype/*.
58948         (Support for building libraries and executables): Add gperf.
58949         (Support for building documentation): Add agpl-3.0.
58950         (Misc): Add nocrash.
58951
58952 2008-05-10  Bruno Haible  <bruno@clisp.org>
58953
58954         * modules/unictype/gen-ctype: New file.
58955
58956 2008-05-10  Jim Meyering  <meyering@redhat.com>
58957
58958         Make chdir-safer.c more efficient on a system with no symlinks.
58959         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58960         also if ELOOP is zero.  Suggested by Bruno Haible.
58961
58962         Make chdir-safer.c slightly safer.
58963         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58964         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58965
58966         Avoid compile failure on systems without ELOOP (like mingw).
58967         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58968         Reported by Bruno Haible.
58969
58970 2008-05-10  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58973         (is_utf8_encoding): Use a case-insensitive comparison.
58974         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58975         streq.
58976
58977 2008-05-10  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58980         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58981         * lib/unilbrk/ulc-common.h (iconv_string_length,
58982         iconv_string_keeping_offsets): Remove declarations.
58983         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58984         Don't include <iconv.h>, streq.h, xsize.h.
58985         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58986         conversion.
58987         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58988         <iconv.h>, streq.h, xsize.h.
58989         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58990         conversion.
58991         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58992         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58993         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58994         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58995
58996 2008-05-10  Bruno Haible  <bruno@clisp.org>
58997
58998         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58999         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59000
59001         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59002         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59003
59004         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59005         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59006
59007         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59008         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59009
59010         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59011         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59012
59013         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59014         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59015
59016         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59017         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59018
59019         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59020         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59021
59022 2008-05-10  Bruno Haible  <bruno@clisp.org>
59023
59024         Split up 'linebreak' module.
59025         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59026         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59027         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59028         modifications.
59029         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59030         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59031         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59032         lib/linebreak.c.
59033         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59034         lib/linebreak.c.
59035         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59036         lib/linebreak.c.
59037         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59038         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59039         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59040         lib/linebreak.c.
59041         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59042         lib/linebreak.c.
59043         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59044         lib/linebreak.c.
59045         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59046         lib/linebreak.c.
59047         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59048         lib/linebreak.c.
59049         * modules/unilbrk/base: New file.
59050         * modules/unilbrk/tables: New file.
59051         * modules/unilbrk/u8-possible-linebreaks: New file.
59052         * modules/unilbrk/u16-possible-linebreaks: New file.
59053         * modules/unilbrk/u32-possible-linebreaks: New file.
59054         * modules/unilbrk/ulc-common: New file.
59055         * modules/unilbrk/ulc-possible-linebreaks: New file.
59056         * modules/unilbrk/u8-width-linebreaks: New file.
59057         * modules/unilbrk/u16-width-linebreaks: New file.
59058         * modules/unilbrk/u32-width-linebreaks: New file.
59059         * modules/unilbrk/ulc-width-linebreaks: New file.
59060         * lib/linebreak.h: Remove file.
59061         * lib/linebreak.c: Remove file.
59062         * m4/linebreak.m4: Remove file.
59063         * modules/linebreak: Remove file.
59064         * NEWS: Mention the changes.
59065
59066 2008-05-09  Eric Blake  <ebb9@byu.net>
59067
59068         Add xmemdup0.
59069         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59070         implementation.
59071         * lib/xmalloc.c (xmemdup0): New C implementation.
59072
59073 2008-05-08  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59076
59077 2008-05-07  Eric Blake  <ebb9@byu.net>
59078
59079         Support cross-compilation of <wctype.h>.
59080         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59081         AC_CACHE_CHECK.
59082
59083 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59084
59085         * build-aux/vc-list-files: Add support for bzr.
59086
59087 2008-05-03  Jim Meyering  <meyering@redhat.com>
59088
59089         avoid failed assertion with tight malloc
59090         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59091
59092 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59093
59094         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59095         are needed from arpa/inet.h.
59096         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59097         Reported by Bruno Haible.
59098
59099 2008-05-02  Jim Meyering  <meyering@redhat.com>
59100
59101         avoid compilation error on FreeBSD 6
59102         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59103
59104 2008-05-01  Jim Meyering  <meyering@redhat.com>
59105
59106         useless-if-before-free: correct --help's exit status description
59107         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59108         for one or more matches, etc.  Reported by Bruno Haible.
59109
59110         vc-list-files: make the stand-alone gnulib test work
59111         * modules/vc-list-files-tests (configure.ac):
59112         Define and AC_SUBST abs_aux_dir.
59113         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59114         $(abs_top_srcdir) to each script and having each of them
59115         duplicate the work of setting PATH, set PATH here, using
59116         the new variable, abs_aux_dir instead.
59117         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59118         * tests/test-vc-list-files-git.sh: Likewise.
59119         Reported by Bruno Haible.
59120
59121 2008-05-01  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59124         reallocation. Rename 'done' to 'found_delimiter'.
59125
59126 2008-05-01  Jim Meyering  <meyering@redhat.com>
59127
59128         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59129         * build-aux/vc-list-files: Use `...`, not $(...).
59130
59131 2008-04-30  Jim Meyering  <meyering@redhat.com>
59132
59133         add tests for vc-list-files
59134         * modules/vc-list-files-tests: New module.
59135         * tests/test-vc-list-files-cvs.sh: New file.
59136         * tests/test-vc-list-files-git.sh: New file.
59137
59138         avoid a warning from gcc
59139         * lib/getndelim2.c (IF_LINT): Define.
59140         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59141
59142         vc-list-files: work properly with build-aux/cvsu, too
59143         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59144         to all cvs-based clauses.
59145
59146         vc-list-files: work properly in the CVS+awk case, too
59147         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59148
59149         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59150         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59151         take more than one file argument, so .  Add quotes, just in case $dir
59152         ever contains a shell meta-character.  Prompted by Soren Hansen in
59153         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59154
59155 2008-04-29  Eric Blake  <ebb9@byu.net>
59156
59157         Optimize getndelim2 to use block operations when possible.
59158         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59159         freadseek, and memchr2.
59160         * lib/getndelim2.c (getndelim2): Use them for block reads.
59161
59162 2008-04-29  Bruno Haible  <bruno@clisp.org>
59163
59164         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59165         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59166         * modules/inet_ntop (Depends-on): Add extensions.
59167         * modules/inet_pton (Depends-on): Likewise.
59168         Reported by Simon Josefsson.
59169
59170 2008-04-29  Jim Meyering  <meyering@redhat.com>
59171
59172         When the is more than one match in a block, match all of them.
59173         * build-aux/useless-if-before-free: Iterate through each block
59174         until there are no more matches.
59175
59176         Fix broken useless-if-before-free script.
59177         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59178         the expression to match cast of argument to free-like function.
59179
59180 2008-04-29  Eric Blake  <ebb9@byu.net>
59181
59182         Use new header.
59183         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59184
59185 2008-04-29  Jim Meyering  <meyering@redhat.com>
59186
59187         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59188         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59189         by gnulib to exist and to declare e.g., inet_ntop.
59190         Don't include "inet_ntop.h", now removed.
59191
59192         * m4/arpa_inet_h.m4: Remove trailing blanks.
59193
59194 2008-04-29  Eric Blake  <ebb9@byu.net>
59195
59196         Silence valgrind on safe reads beyond potential array bounds.
59197         * lib/rawmemchr.valgrind: New file.
59198         * lib/strchrnul.valgrind: Likewise.
59199         * modules/rawmemchr (Files): Distribute new file.
59200         * modules/strchrnul (Files): Likewise.
59201         Suggested by Bruno Haible.
59202
59203 2008-04-29  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59206         (inet_ntop, inet_pton): Change portability warning's wording.
59207         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59208         Invoke gl_CHECK_NEXT_HEADERS.
59209         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59210         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59211         set ARPA_INET_H.
59212         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59213         * modules/arpa_inet (Description): No longer only for systems that
59214         lack it.
59215         (Depends-on): Add include_next.
59216         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59217         HAVE_ARPA_INET_H.
59218
59219 2008-04-29  Jim Meyering  <meyering@redhat.com>
59220
59221         * modules/mkdir (License): Re-license as LGPLv2+.
59222
59223 2008-04-29  Bruno Haible  <bruno@clisp.org>
59224
59225         * modules/rawmemchr (Maintainer): Set to Eric.
59226         * modules/strchrnul (Maintainer): Likewise.
59227
59228 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59229
59230         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59231         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59232
59233         * modules/arpa_inet (arpa/inet.h): Use them.
59234
59235 2008-04-28  Eric Blake  <ebb9@byu.net>
59236
59237         Test getndelim2.
59238         * modules/getndelim2-tests: New file.
59239         * tests/test-getndelim2.c: Likewise.
59240         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59241         stream.
59242         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59243
59244         * MODULES.html.sh: Document new module.
59245
59246 2008-04-20  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/c-stack.c (die): Use raise.
59249         * modules/c-stack (Depends-on): Add raise.
59250
59251 2008-04-28  Bruno Haible  <bruno@clisp.org>
59252
59253         Expect rpmatch to be declared.
59254         * lib/yesno.c (rpmatch): Remove declaration.
59255
59256         Declare rpmatch.
59257         * lib/stdlib.in.h (rpmatch): New declaration.
59258         * lib/rpmatch.c: Include <stdlib.h> first.
59259         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59260         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59262         HAVE_RPMATCH.
59263         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59264         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59265         (Include): Set to <stdlib.h>.
59266         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59267         HAVE_RPMATCH.
59268         * NEWS: Document the change.
59269
59270 2008-04-28  Bruno Haible  <bruno@clisp.org>
59271
59272         Change rpmatch to use nl_langinfo when appropriate.
59273         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59274         (N_): New macro.
59275         (localized_pattern): New function/macro.
59276         (try): Remove match, nomatch arguments. Copy the pattern into safe
59277         memory before caching it.
59278         (rpmatch): Use localized_pattern. Add translator comments.
59279         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59280         Suggested by Eric Blake.
59281         * modules/rpmatch (Depends-on): Add stdbool.
59282
59283 2008-04-28  Eric Blake  <ebb9@byu.net>
59284
59285         Add rawmemchr module, matching glibc.
59286         * modules/string (Makefile.am): New indicator.
59287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59288         * lib/string.in.h (rawmemchr): Declare when appropriate.
59289         * modules/rawmemchr: New file.
59290         * m4/rawmemchr.m4: Likewise.
59291         * lib/rawmemchr.c: Likewise.
59292         * modules/rawmemchr-tests: Likewise.
59293         * tests/test-rawmemchr.c: Likewise.
59294         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59295         module.
59296         * modules/strchrnul (Depends-on): Add rawmemchr.
59297         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59298
59299         Whitespace cleanup.
59300         * tests/test-strchrnul.c: Reindent.
59301         * lib/strchrnul.c: Likewise.
59302
59303         Optimize and test strchrnul.
59304         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59305         * modules/strchrnul-tests: New file.
59306         * tests/test-strchrnul.c: Likewise.
59307
59308         Remove intprops dependency.
59309         * modules/memchr (Depends-on): Remove intprops.
59310         * modules/memrchr (Depends-on): Likewise.
59311         * modules/memchr2 (Depends-on): Likewise.
59312         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59313         * lib/memrchr.c (__memrchr): Likewise.
59314         * lib/memrchr2.c (memchr2): Likewise.
59315         Reported by Simon Josefsson.
59316
59317 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59318
59319         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59320         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59321
59322 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59323
59324         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59325
59326         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59327
59328         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59329
59330         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59331         declarations.
59332         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59333
59334         * m4/inet_pton.m4: Don't check for header files.
59335
59336         * m4/inet_ntop.m4: Don't check for header files.
59337
59338 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59339
59340         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59341         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59342         trigger for cygwin).
59343         Reported by Bruno Haible  <bruno@clisp.org>.
59344
59345 2008-04-28  Bruno Haible  <bruno@clisp.org>
59346
59347         * doc/posix-functions/strdup.texi: Mention mingw problem.
59348
59349 2008-04-27  Bruno Haible  <bruno@clisp.org>
59350
59351         * modules/stat-time-tests (Depends-on): Add sleep.
59352         * tests/test-stat-time.c (force_unlink): New function.
59353         (cleanup): Use it.
59354         (test_mtime): Remove the ctime related tests.
59355         (test_ctime): New function, containing the ctime related tests.
59356         (main): Call test_ctime, except on native Windows platforms.
59357
59358 2008-04-27  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/rpmatch.c (rpmatch): Add some comments.
59361         Reported by James Youngman <jay@gnu.org>.
59362
59363 2008-04-27  Bruno Haible  <bruno@clisp.org>
59364
59365         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59366         quiet NaNs.
59367
59368 2008-04-27  Bruno Haible  <bruno@clisp.org>
59369
59370         Make test-yesno.sh work on mingw.
59371         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59372         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59373         (main): Set stdin to binary mode.
59374         * modules/yesno-tests (Depends-on): Add binary-io.
59375
59376 2008-04-27  Bruno Haible  <bruno@clisp.org>
59377
59378         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59379         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59380         argument that lie outside the IEEE 854 domain.
59381         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59382         (gl_ISFINITE): Use it.
59383         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59384
59385 2008-04-27  Bruno Haible  <bruno@clisp.org>
59386
59387         Allow local renaming in config.h.
59388         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59389
59390 2008-04-27  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/memchr.c (__memchr): Change type of 'i'.
59393         * lib/memchr2.c (memchr2): Likewise.
59394
59395 2008-04-26  Eric Blake  <ebb9@byu.net>
59396         and Bruno Haible  <bruno@clisp.org>
59397
59398         Optimize and test memrchr.
59399         * modules/memrchr (Depends-on): Add intprops.
59400         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59401         * modules/memrchr-tests: New file.
59402         * tests/test-memrchr.c: New file.
59403
59404 2008-04-26  Bruno Haible  <bruno@clisp.org>
59405
59406         Add tentative support for DragonFly BSD.
59407         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59408         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59409         fp.
59410         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59411         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59412         * lib/fpurge.c (fpurge): Likewise.
59413         * lib/freadable.c (freaadable): Likewise.
59414         * lib/freadahead.c (freadahead): Likewise.
59415         * lib/freading.c (freading): Likewise.
59416         * lib/freadptr.c (freadptr): Likewise.
59417         * lib/freadseek.c (freadptrinc): Likewise.
59418         * lib/fseeko.c (fseeko): Likewise.
59419         * lib/fseterr.c (fseterr): Likewise.
59420         * lib/fwritable.c (fwritable): Likewise.
59421         * lib/fwriting.c (fwriting): Likewise.
59422
59423 2008-04-26  Bruno Haible  <bruno@clisp.org>
59424
59425         * lib/stdio-impl.h: New file.
59426         * lib/fbufmode.c: Include stdio-impl.h.
59427         (fbufmode): Use fp_, remove redundant #defines.
59428         * lib/fflush.c: Include stdio-impl.h.
59429         (clear_ungetc_buffer): Remove redundant #defines.
59430         * lib/fpurge.c: Include stdio-impl.h.
59431         (fpurge): Remove redundant #defines.
59432         * lib/freadable.c: Include stdio-impl.h.
59433         (freadable): Remove redundant #defines.
59434         * lib/freadahead.c: Include stdio-impl.h.
59435         (freadahead): Remove redundant #defines.
59436         * lib/freading.c: Include stdio-impl.h.
59437         (freading): Remove redundant #defines.
59438         * lib/freadptr.c: Include stdio-impl.h.
59439         (freadptr): Remove redundant #defines.
59440         * lib/freadseek.c: Include stdio-impl.h.
59441         (freadptrinc): Remove redundant #defines.
59442         * lib/fseeko.c: Include stdio-impl.h.
59443         (rpl_fseeko): Remove redundant #defines.
59444         * lib/fseterr.c: Include stdio-impl.h.
59445         (fseterr): Remove redundant #defines.
59446         * lib/fwritable.c: Include stdio-impl.h.
59447         (fwritable: Remove redundant #defines.
59448         * lib/fwriting.c: Include stdio-impl.h.
59449         (fwriting): Remove redundant #defines.
59450         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59451         * modules/fflush (Files): Likewise.
59452         * modules/fpurge (Files): Likewise.
59453         * modules/freadable (Files): Likewise.
59454         * modules/freadahead (Files): Likewise.
59455         * modules/freading (Files): Likewise.
59456         * modules/freadptr (Files): Likewise.
59457         * modules/freadseek (Files): Likewise.
59458         * modules/fseeko (Files): Likewise.
59459         * modules/fseterr (Files): Likewise.
59460         * modules/fwritable (Files): Likewise.
59461         * modules/fwriting (Files): Likewise.
59462
59463 2008-04-26  Bruno Haible  <bruno@clisp.org>
59464
59465         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59466         restore_seek_optimization, update_fpos_cache): New functions, extracted
59467         from rpl_fflush.
59468         (rpl_fflush): Use them.
59469         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59470         (gl_REPLACE_FFLUSH): Use it.
59471
59472 2008-04-26  Bruno Haible  <bruno@clisp.org>
59473
59474         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59475         on Solaris.
59476         * tests/test-xstrtoimax.sh: Likewise.
59477         * tests/test-xstrtoumax.sh: Likewise.
59478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59479
59480 2008-04-26  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/memchr-tests: New file.
59483         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59484
59485 2008-04-26  Eric Blake  <ebb9@byu.net>
59486             Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/memchr.c: Include intprops.h.
59489         (__memchr): Optimize parallel detection of matching bytes. Rename local
59490         variables. Add explanatory comments.
59491
59492 2008-04-26  Bruno Haible  <bruno@clisp.org>
59493
59494         Fix module 'memchr', broken since 2000-10-28.
59495         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59496
59497 2008-04-26  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59500         comments.
59501
59502 2008-04-25  Eric Blake  <ebb9@byu.net>
59503
59504         Use native fstatat on cygwin 1.7.0.
59505         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59506         first.
59507
59508 2008-04-23  Eric Blake  <ebb9@byu.net>
59509
59510         Improve memchr2 performance.
59511         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59512         NUL bytes.
59513         * modules/memchr2 (Depends-on): Use intprops.h.
59514
59515 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59516
59517         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59518         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59519         <blp@cs.stanford.edu>.
59520
59521 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59522
59523         * lib/arpa_inet.in.h: New file.
59524
59525         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59526         (Makefile.am): Sed in substitute header file.
59527
59528         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59529         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59530
59531         * modules/inet_ntop (configure.ac): Use
59532         gl_ARPA_INET_MODULE_INDICATOR.
59533
59534         * modules/inet_pton (configure.ac): Use
59535         gl_ARPA_INET_MODULE_INDICATOR.
59536
59537 2008-04-22  Jim Meyering  <meyering@redhat.com>
59538
59539         * modules/verify (License): Re-license as LGPLv2+.
59540
59541 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59542
59543         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59544         parameter to void* as per POSIX standard (MinGW uses char*).
59545
59546 2008-04-21  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59549         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59550         Define to replacements if REPLACE_ISWCNTRL is 1.
59551         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59552         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59553         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59554         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59555         what it fixes.
59556         * doc/posix-functions/iswalpha.texi: Likewise.
59557         * doc/posix-functions/iswblank.texi: Likewise.
59558         * doc/posix-functions/iswcntrl.texi: Likewise.
59559         * doc/posix-functions/iswdigit.texi: Likewise.
59560         * doc/posix-functions/iswgraph.texi: Likewise.
59561         * doc/posix-functions/iswlower.texi: Likewise.
59562         * doc/posix-functions/iswprint.texi: Likewise.
59563         * doc/posix-functions/iswpunct.texi: Likewise.
59564         * doc/posix-functions/iswspace.texi: Likewise.
59565         * doc/posix-functions/iswupper.texi: Likewise.
59566         * doc/posix-functions/iswxdigit.texi: Likewise.
59567         Reported by Alain Guibert.
59568
59569 2008-04-21  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59572         Patch by Alain Guibert.
59573
59574 2008-04-21  Bruno Haible  <bruno@clisp.org>
59575
59576         Fix test failures on mingw.
59577         * tests/test-xstrtol.c (print_no_progname): New function.
59578         (main): Install it in error_print_progname hook.
59579         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59580         * tests/test-xstrtoimax.sh: Likewise.
59581         * tests/test-xstrtoumax.sh: Likewise.
59582
59583 2008-04-21  Bruno Haible  <bruno@clisp.org>
59584
59585         Fix test failure on mingw.
59586         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59587
59588 2008-04-21  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59591         Actually assign a value.
59592
59593 2008-04-20  Bruno Haible  <bruno@clisp.org>
59594
59595         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59596         take 2.
59597         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59598         'canonicalize-lgpl' module is also used.
59599         * lib/canonicalize-lgpl.c: Undo last change.
59600         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59601
59602 2008-04-20  Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59605         config.h. Provide _mkdir based fallback for mingw.
59606         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59607         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59608         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59609         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59610         rather than defining mkdir in config.h.
59611         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59612         (gl_SYS_STAT_H_DEFAULTS): New macro.
59613         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59614         HAVE_IO_H any more.
59615         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59616         HAVE_DECL_MKDIR and HAVE_IO_H.
59617
59618 2008-04-20  Bruno Haible  <bruno@clisp.org>
59619
59620         * lib/isapipe.c: Port to native Windows platforms.
59621
59622 2008-04-20  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59625
59626 2008-04-21  Eric Blake  <ebb9@byu.net>
59627
59628         Work around preprocessors that don't handle UINTMAX_MAX.
59629         * lib/memchr2.c (memchr2): Avoid embedded #if.
59630         Reported by Alain Guibert, fix suggested by Bruno Haible.
59631
59632 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59633
59634         * doc/posix-functions/strftime.texi (strftime): Explain better
59635         Windows incompatibility.  Suggested by Micah Cowan
59636         <micah@cowan.name>.
59637
59638 2008-04-20  Bruno Haible  <bruno@clisp.org>
59639
59640         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59641         unistr/u8-mblen.
59642
59643 2008-04-20  Bruno Haible  <bruno@clisp.org>
59644
59645         Fix test failure on platforms with non-GNU iconv.
59646         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59647         (U_TO_U8): Use it, rather than u16_to_u8.
59648         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59649         units at the end of the input string.
59650         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59651
59652 2008-04-20  Bruno Haible  <bruno@clisp.org>
59653
59654         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59655         when the resulting length is 0.
59656         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59657
59658 2008-04-20  Bruno Haible  <bruno@clisp.org>
59659
59660         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59661         works.
59662         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59663
59664 2008-04-20  Bruno Haible  <bruno@clisp.org>
59665
59666         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59667         * modules/tsearch-tests (configure.ac): Test for initstate function.
59668
59669 2008-04-20  Bruno Haible  <bruno@clisp.org>
59670
59671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59672         for nlink_t if missing.
59673         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59674
59675 2008-04-19  Bruno Haible  <bruno@clisp.org>
59676
59677         Work around snprintf bug on Linux libc5.
59678         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59679         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59680         gl_SNPRINTF_SIZE1.
59681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59682         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59683         that test failed.
59684         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59685         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59686         * modules/snprintf (Files): Add m4/printf.m4.
59687         * modules/vsnprintf (Files): Likewise.
59688         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59689         * doc/posix-functions/vsnprintf.texi: Likewise.
59690
59691 2008-04-19  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59694         from 0.0058 to less than 10^-7.
59695
59696 2008-04-19  Bruno Haible  <bruno@clisp.org>
59697
59698         Fix rounding when a precision is given.
59699         * lib/vasnprintf.c (is_borderline): New function.
59700         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59701         9...9x.
59702         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59703         %e, %g.
59704         * tests/test-vasprintf-posix.c (test_function): Likewise.
59705         * tests/test-snprintf-posix.h (test_function): Likewise.
59706         * tests/test-sprintf-posix.h (test_function): Likewise.
59707         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59708         * tests/test-printf-posix.h (test_function): Likewise.
59709         * tests/test-printf-posix.output: Update.
59710         Reported by John Darrington <john@darrington.wattle.id.au> via
59711         Ben Pfaff <blp@cs.stanford.edu>.
59712
59713 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59714
59715         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59716         Suggested by Bruno Haible <bruno@clisp.org>.
59717
59718 2008-04-17  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59721         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59722         implementation.
59723         Patch by Bruce Merry <bmerry@gmail.com>.
59724
59725 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59726
59727         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59728         doesn't work under Windows.
59729
59730 2008-04-16  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59733         New macros.
59734         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59735         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59736         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59737         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59738         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59739         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59740         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59741         macros.
59742         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59743         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59744         Northern Sotho, Uighur.
59745
59746 2008-04-16  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59749         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59750         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59751         Reported by Daniel Bergström <daniel@octocode.com>.
59752
59753 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59754             Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59757         function.
59758         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59759         New functions, mostly extracted from gl_locale_name_default.
59760         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59761
59762 2008-04-16  Eric Blake  <ebb9@byu.net>
59763
59764         Adjust strtod detection to catch glibc 2.7 bug.
59765         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59766         Reported by John Gatewood Ham.
59767
59768 2008-04-16  Bruno Haible  <bruno@clisp.org>
59769
59770         Add tentative support for Linux libc5.
59771         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59772         * lib/fpurge.c (fpurge): Likewise.
59773         * lib/freadable.c (freadable): Likewise.
59774         * lib/freadahead.c (freadahead): Likewise.
59775         * lib/freading.c (freading): Likewise.
59776         * lib/freadptr.c (freadptr): Likewise.
59777         * lib/freadseek.c (freadptrinc): Likewise.
59778         * lib/fseeko.c (rpl_fseeko): Likewise.
59779         * lib/fseterr.c (fseterr): Likewise.
59780         * lib/fwritable.c (fwritable): Likewise.
59781         * lib/fwriting.c (fwriting): Likewise.
59782         Reported by Alain Guibert <alguibert+bts@free.fr>.
59783
59784 2008-04-15  Bruno Haible  <bruno@clisp.org>
59785
59786         * modules/mathl (configure.ac): Define module indicator.
59787
59788 2008-04-15  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/logl.c (logl): Remove unused variables.
59791
59792 2008-04-15  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59795         fails.
59796
59797 2008-04-15  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/trim.c (trim2): Fix argument of isspace() macro.
59800
59801 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59802
59803         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59804         to 0.
59805         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59806
59807 2008-04-14  Bruno Haible  <bruno@clisp.org>
59808
59809         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59810         AC_LANG_PROGRAM argument.
59811         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59812         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59814         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59815         * m4/math_h.m4 (gl_MATH_H): Likewise.
59816         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59818         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59819         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59820         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59821         * m4/regex.m4 (gl_REGEX): Likewise.
59822         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59823         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59825         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59827         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59829         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59830
59831 2008-04-14  Jim Meyering  <meyering@redhat.com>
59832
59833         test-strtod: fix typos: s/abs/fabs/
59834         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59835
59836 2008-04-13  Bruno Haible  <bruno@clisp.org>
59837
59838         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59839         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59840         module is also used and while not building the reloc-wrapper.
59841
59842 2008-04-13  Bruno Haible  <bruno@clisp.org>
59843
59844         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59845
59846 2008-04-13  Bruno Haible  <bruno@clisp.org>
59847
59848         Fix AIX compilation failure introduced on 2008-04-02.
59849         * tests/test-frexp.c (exp): Undefine before redefining.
59850         * tests/test-frexpl.c (exp): Likewise.
59851
59852 2008-04-13  Bruno Haible  <bruno@clisp.org>
59853
59854         Work around a HP-UX stdio bug.
59855         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59856         * tests/test-ftello.c (main): Likewise.
59857         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59858         * doc/posix-functions/ftello.texi: Likewise.
59859
59860 2008-04-13  Bruno Haible  <bruno@clisp.org>
59861
59862         Make test-signbit pass on HP-UX/hppa.
59863         * tests/test-signbit.c (minus_zerol): New variable.
59864         (test_signbitl): Use it.
59865
59866 2008-04-13  Bruno Haible  <bruno@clisp.org>
59867
59868         Make truncl work on OSF/1 4.0.
59869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59870         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59871         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59873         HAVE_DECL_TRUNCL.
59874         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59875         HAVE_DECL_TRUNCL.
59876         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59877
59878 2008-04-13  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59881
59882 2008-04-13  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59885         expression, so as to avoid HP-UX 11 cc compiler bug.
59886
59887 2008-04-13  Bruno Haible  <bruno@clisp.org>
59888
59889         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59890
59891 2008-04-13  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/git-merge-changelog.c: Remove empty declaration outside of
59894         functions.
59895
59896 2008-04-13  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59899
59900 2008-04-13  Bruno Haible  <bruno@clisp.org>
59901
59902         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59903         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59905         also if it exists but lacks definitions of the SHUT_* macros.
59906         * modules/sys_socket (Description): Update.
59907         Reported by Elbert Pol <e.pol@chello.nl>.
59908
59909 2008-04-13  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/localcharset.c (OS2): Don't redefine if already defined.
59912         Reported by Elbert Pol <e.pol@chello.nl>.
59913
59914 2008-04-13  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/binary-io.h [__EMX__]: Include <io.h>.
59917         Reported by Elbert Pol <e.pol@chello.nl>.
59918
59919 2008-04-12  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/fpucw.h: Enable the definitions also for x86_64.
59922         Needed for NetBSD/x86_64.
59923         Reported by Thomas Klausner <tk@giga.or.at>.
59924
59925 2008-04-12  Bruno Haible  <bruno@clisp.org>
59926
59927         * tests/test-strtod.c: Include isnand.h.
59928         (main): Use isnand instead of isnan.
59929         Reported by Jim Meyering.
59930
59931 2008-04-12  Bruno Haible  <bruno@clisp.org>
59932
59933         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59934         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59935
59936 2008-04-12  Jim Meyering  <meyering@redhat.com>
59937
59938         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59939
59940 2008-04-12  Bruno Haible  <bruno@clisp.org>
59941
59942         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59943         Reported by Elbert Pol <e.pol@chello.nl>.
59944
59945 2008-04-12  Eric Blake  <ebb9@byu.net>
59946
59947         Work around Solaris 10 math.h bug.
59948         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59949         (gl_MATH_H_DEFAULTS): Set up default.
59950         * modules/math (Makefile.am): Replace new indicators.
59951         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59952         * tests/test-math.c (main): Test this.
59953         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59954         * doc/posix-headers/math.texi (math.h): Mention bug.
59955         Reported by Nelson H. F. Beebe and Jim Meyering.
59956
59957 2008-04-11  Bruno Haible  <bruno@clisp.org>
59958
59959         Adapt to future versions of Apple GCC.
59960         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59961         Reported by Peter O'Gorman <peter@pogma.com>.
59962
59963 2008-04-11  Bruno Haible  <bruno@clisp.org>
59964
59965         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59966
59967 2008-04-11  Bruno Haible  <bruno@clisp.org>
59968
59969         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59970
59971         * modules/getaddrinfo-tests (Makefile.am): Define
59972         test_getaddrinfo_LDADD.
59973
59974 2008-04-11  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59977         (init): Fix syntax error.
59978         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59979         is declared.
59980
59981 2008-04-11  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59984         * modules/glob (Depends-on): Add stdbool.
59985
59986 2008-04-11  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/trim.c: Include <string.h>.
59989
59990 2008-04-11  Eric Blake  <ebb9@byu.net>
59991
59992         Avoid compile failure on OS/2.
59993         * lib/regex_internal.h (internal_function): Disable optimization
59994         on OS/2 (__EMX__), where it caused compiler error.
59995         Reported by Elbert Pol.
59996
59997 2008-04-11  Bruno Haible  <bruno@clisp.org>
59998
59999         Flush the standard error stream before aborting. Needed on mingw.
60000         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60001         * tests/test-array_list.c (ASSERT): Likewise.
60002         * tests/test-array_oset.c (ASSERT): Likewise.
60003         * tests/test-avltree_list.c (ASSERT): Likewise.
60004         * tests/test-avltree_oset.c (ASSERT): Likewise.
60005         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60006         * tests/test-binary-io.c (ASSERT): Likewise.
60007         * tests/test-byteswap.c (ASSERT): Likewise.
60008         * tests/test-c-ctype.c (ASSERT): Likewise.
60009         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60010         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60011         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60012         * tests/test-c-strstr.c (ASSERT): Likewise.
60013         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60014         * tests/test-canonicalize.c (ASSERT): Likewise.
60015         * tests/test-carray_list.c (ASSERT): Likewise.
60016         * tests/test-ceilf1.c (ASSERT): Likewise.
60017         * tests/test-ceilf2.c (ASSERT): Likewise.
60018         * tests/test-ceill.c (ASSERT): Likewise.
60019         * tests/test-count-one-bits.c (ASSERT): Likewise.
60020         * tests/test-fbufmode.c (ASSERT): Likewise.
60021         * tests/test-fflush2.c (ASSERT): Likewise.
60022         * tests/test-floorf1.c (ASSERT): Likewise.
60023         * tests/test-floorf2.c (ASSERT): Likewise.
60024         * tests/test-floorl.c (ASSERT): Likewise.
60025         * tests/test-fopen.c (ASSERT): Likewise.
60026         * tests/test-fpending.c (ASSERT): Likewise.
60027         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60028         * tests/test-fpurge.c (ASSERT): Likewise.
60029         * tests/test-freadable.c (ASSERT): Likewise.
60030         * tests/test-freadahead.c (ASSERT): Likewise.
60031         * tests/test-freading.c (ASSERT): Likewise.
60032         * tests/test-freadptr.c (ASSERT): Likewise.
60033         * tests/test-freadptr2.c (ASSERT): Likewise.
60034         * tests/test-freadseek.c (ASSERT): Likewise.
60035         * tests/test-freopen.c (ASSERT): Likewise.
60036         * tests/test-frexp.c (ASSERT): Likewise.
60037         * tests/test-frexpl.c (ASSERT): Likewise.
60038         * tests/test-fseek.c (ASSERT): Likewise.
60039         * tests/test-fseeko.c (ASSERT): Likewise.
60040         * tests/test-fstrcmp.c (ASSERT): Likewise.
60041         * tests/test-ftell.c (ASSERT): Likewise.
60042         * tests/test-ftello.c (ASSERT): Likewise.
60043         * tests/test-func.c (ASSERT): Likewise.
60044         * tests/test-fwritable.c (ASSERT): Likewise.
60045         * tests/test-fwriting.c (ASSERT): Likewise.
60046         * tests/test-getdelim.c (ASSERT): Likewise.
60047         * tests/test-getline.c (ASSERT): Likewise.
60048         * tests/test-i-ring.c (ASSERT): Likewise.
60049         * tests/test-iconv-utf.c (ASSERT): Likewise.
60050         * tests/test-iconv.c (ASSERT): Likewise.
60051         * tests/test-isfinite.c (ASSERT): Likewise.
60052         * tests/test-isnand.c (ASSERT): Likewise.
60053         * tests/test-isnanf.c (ASSERT): Likewise.
60054         * tests/test-isnanl.h (ASSERT): Likewise.
60055         * tests/test-ldexpl.c (ASSERT): Likewise.
60056         * tests/test-linked_list.c (ASSERT): Likewise.
60057         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60058         * tests/test-localename.c (ASSERT): Likewise.
60059         * tests/test-lseek.c (ASSERT): Likewise.
60060         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60061         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60062         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60063         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60064         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60065         * tests/test-mbschr.c (ASSERT): Likewise.
60066         * tests/test-mbscspn.c (ASSERT): Likewise.
60067         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60068         * tests/test-mbspbrk.c (ASSERT): Likewise.
60069         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60070         * tests/test-mbsrchr.c (ASSERT): Likewise.
60071         * tests/test-mbsspn.c (ASSERT): Likewise.
60072         * tests/test-mbsstr1.c (ASSERT): Likewise.
60073         * tests/test-mbsstr2.c (ASSERT): Likewise.
60074         * tests/test-mbsstr3.c (ASSERT): Likewise.
60075         * tests/test-memchr2.c (ASSERT): Likewise.
60076         * tests/test-memmem.c (ASSERT): Likewise.
60077         * tests/test-open.c (ASSERT): Likewise.
60078         * tests/test-printf-frexp.c (ASSERT): Likewise.
60079         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60080         * tests/test-printf-posix.c (ASSERT): Likewise.
60081         * tests/test-quotearg.c (ASSERT): Likewise.
60082         * tests/test-rbtree_list.c (ASSERT): Likewise.
60083         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60084         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60085         * tests/test-round1.c (ASSERT): Likewise.
60086         * tests/test-roundf1.c (ASSERT): Likewise.
60087         * tests/test-roundl.c (ASSERT): Likewise.
60088         * tests/test-signbit.c (ASSERT): Likewise.
60089         * tests/test-sleep.c (ASSERT): Likewise.
60090         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60091         * tests/test-snprintf.c (ASSERT): Likewise.
60092         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60093         * tests/test-stat-time.c (ASSERT): Likewise.
60094         * tests/test-strcasestr.c (ASSERT): Likewise.
60095         * tests/test-strerror.c (ASSERT): Likewise.
60096         * tests/test-striconv.c (ASSERT): Likewise.
60097         * tests/test-striconveh.c (ASSERT): Likewise.
60098         * tests/test-striconveha.c (ASSERT): Likewise.
60099         * tests/test-strsignal.c (ASSERT): Likewise.
60100         * tests/test-strstr.c (ASSERT): Likewise.
60101         * tests/test-strtod.c (ASSERT): Likewise.
60102         * tests/test-trunc1.c (ASSERT): Likewise.
60103         * tests/test-trunc2.c (ASSERT): Likewise.
60104         * tests/test-truncf1.c (ASSERT): Likewise.
60105         * tests/test-truncf2.c (ASSERT): Likewise.
60106         * tests/test-truncl.c (ASSERT): Likewise.
60107         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60108         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60109         * tests/test-vasnprintf.c (ASSERT): Likewise.
60110         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60111         * tests/test-vasprintf.c (ASSERT): Likewise.
60112         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60113         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60114         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60115         * tests/test-vsnprintf.c (ASSERT): Likewise.
60116         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60117         * tests/test-wcwidth.c (ASSERT): Likewise.
60118         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60119         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60120         * tests/test-xvasprintf.c (ASSERT): Likewise.
60121         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60122         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60123         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60124         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60125         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60126         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60127         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60128         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60129         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60130         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60131         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60132         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60133         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60134         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60135         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60136         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60137         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60138         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60139         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60140         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60141         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60142         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60143         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60144         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60145         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60146         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60147         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60148         * tests/unictype/test-combining.c (ASSERT): Likewise.
60149         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60150         * tests/unictype/test-digit.c (ASSERT): Likewise.
60151         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60152         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60153         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60154         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60155         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60156         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60157         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60158         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60159         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60160         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60161         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60162         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60163         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60164         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60165         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60166         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60167         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60168         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60169         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60170         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60171         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60172         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60173         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60174         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60175         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60176         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60177         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60178         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60179         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60180         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60181         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60182         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60183         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60184         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60185         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60186         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60187         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60188         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60189         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60190         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60191         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60192         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60193         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60194         Reported by Eric Blake.
60195
60196 2008-04-11  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/wchar.in.h: Tweak comment.
60199
60200 2008-04-11  Bruno Haible  <bruno@clisp.org>
60201
60202         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60203         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60204         gl_COMMON.
60205         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60206
60207 2008-04-11  Bruno Haible  <bruno@clisp.org>
60208
60209         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60210
60211 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60212
60213         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60214         of attempting to use non-existing /dev/*random.  Based on patch
60215         from Adam Strzelecki <ono@java.pl> in
60216         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60217
60218 2008-04-08  Bruno Haible  <bruno@clisp.org>
60219
60220         Add tentative support for emx+gcc.
60221         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60222         * lib/fpurge.c (fpurge): Likewise.
60223         * lib/freadable.c (freadable): Likewise.
60224         * lib/freadahead.c (freadahead): Likewise.
60225         * lib/freading.c (freading): Likewise.
60226         * lib/freadptr.c (freadptr): Likewise.
60227         * lib/freadseek.c (freadptrinc): Likewise.
60228         * lib/fseeko.c (rpl_fseeko): Likewise.
60229         * lib/fseterr.c (fseterr): Likewise.
60230         * lib/fwritable.c (fwritable): Likewise.
60231         * lib/fwriting.c (fwriting): Likewise.
60232         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60233
60234 2008-04-09  Eric Blake  <ebb9@byu.net>
60235
60236         Avoid some autoconf warnings.
60237         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60238         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60239         * m4/afs.m4 (gl_AFS): Likewise.
60240         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60241         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60243         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60244         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60245         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60246         (AC_CHECK_DECLS_ONCE): Likewise.
60247         Rename file...
60248         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60249         gnulib-tool requires autoconf 2.59 or better.
60250         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60251
60252 2008-04-08  Eric Blake  <ebb9@byu.net>
60253
60254         Use 'git describe --match' if present (added in git 1.5.5).
60255         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60256         if possible.
60257
60258 2008-04-08  Bruno Haible  <bruno@clisp.org>
60259
60260         Add tentative support for OpenServer.
60261         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60262         _ptr, _cnt.
60263         * lib/fpurge.c (fpurge): Likewise.
60264         * lib/freadable.c (freadable): Likewise.
60265         * lib/freadahead.c (freadahead): Likewise.
60266         * lib/freading.c (freading): Likewise.
60267         * lib/freadptr.c (freadptr): Likewise.
60268         * lib/freadseek.c (freadptrinc): Likewise.
60269         * lib/fseeko.c (rpl_fseeko): Likewise.
60270         * lib/fseterr.c (fseterr): Likewise.
60271         * lib/fwritable.c (fwritable): Likewise.
60272         * lib/fwriting.c (fwriting): Likewise.
60273         Reported by Roger Cornelius <rac@tenzing.org> and
60274         Brian K. White <brian@aljex.com>.
60275
60276 2008-04-06  Jim Meyering  <meyering@redhat.com>
60277
60278         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60279
60280 2008-04-06  Bruno Haible  <bruno@clisp.org>
60281
60282         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60283         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60284         * tests/test-printf-posix.sh: Likewise.
60285         * tests/test-vfprintf-posix.sh: Likewise.
60286         * tests/test-vprintf-posix.sh: Likewise.
60287         * tests/test-xprintf-posix.sh: Likewise.
60288
60289 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60290
60291         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60292         hide error from 'ls', needed on OS/2.
60293         Report by Elbert Pol <elbert.pol@gmail.com>.
60294
60295 2008-04-04  Eric Blake  <ebb9@byu.net>
60296
60297         Make test-fseeko.c failures meaningful.
60298         * tests/test-fseeko.c: Print line number on failure.
60299         * tests/test-fseek.c: Likewise.
60300         Reported by Nelson H. F. Beebe.
60301
60302         Improve strtod bug detection check.
60303         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60304         required for Solaris 10.
60305         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60306
60307 2008-04-04  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60310         by m4/setenv.m4.
60311
60312 2008-04-03  Eric Blake  <ebb9@byu.net>
60313
60314         Ensure sane .version contents.
60315         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60316         version string.
60317         * build-aux/git-version-gen: Improve documentation.
60318
60319         Make GNU make output nicer.
60320         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60321         MAKECMDGOALS to enforce message for all command line targets.  Set
60322         srcdir for use in maint.mk.
60323
60324         Another maintainer tweak.
60325         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60326         a target that regenerates version.
60327
60328 2008-04-03  Jim Meyering  <meyering@redhat.com>
60329
60330         vc-list-files: don't cause coreutils "make po-check" failure
60331         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60332
60333 2008-04-03  Eric Blake  <ebb9@byu.net>
60334
60335         Allow VPATH usage of vc-list-files.
60336         * build-aux/vc-list-files (scriptversion): Add timestamp.
60337         (options): Add --help, --version, -C.
60338         (CVS): Support installed cvsu.
60339
60340 2008-04-02  Bruno Haible  <bruno@clisp.org>
60341
60342         Avoid some "statement with no effect" warnings from gcc.
60343         * tests/test-wctype.c (main): Explicitly ignore unused values.
60344         Reported by Jim Meyering.
60345
60346 2008-04-02  Jim Meyering  <meyering@redhat.com>
60347
60348         Avoid some warnings from "gcc -Wshadow".
60349         * tests/test-frexp.c (exp): Define to a different identifier.
60350         * tests/test-frexpl.c (exp): Likewise.
60351
60352 2008-04-03  Jim Meyering  <meyering@redhat.com>
60353
60354         bootstrap: remove dangling *.[ch] symlinks from lib
60355         * build-aux/bootstrap [dangling symlink removal]: Move find's
60356         -depth option to precede all others, to avoid a warning.
60357         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60358
60359 2008-04-02  Bruno Haible  <bruno@clisp.org>
60360
60361         Avoid some warnings from "gcc -Wshadow".
60362         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60363         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60364         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60365         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60366         Reported by Jim Meyering.
60367
60368 2008-04-01  Bruno Haible  <bruno@clisp.org>
60369
60370         Fix test to work on IRIX 6.5 with cc.
60371         * tests/test-math.c (numeric_equal): New function.
60372         (main): Use it.
60373
60374 2008-04-01  Bruno Haible  <bruno@clisp.org>
60375
60376         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60377
60378 2008-04-01  Bruno Haible  <bruno@clisp.org>
60379
60380         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60381         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60382         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60383         (Depends-on): Remove math.
60384
60385         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60386         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60387         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60388         (Depends-on): Remove math.
60389
60390         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60391         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60392         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60393         (Depends-on): Remove math.
60394         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60395         (Depends-on): Remove math.
60396
60397         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60398         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60399         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60400         (Depends-on): Remove math.
60401         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60402         (Depends-on): Remove math.
60403
60404         * tests/test-round1.c: Include nan.h.
60405         (main): Use NaNd instead of NAN.
60406         * modules/round-tests (Files): Add tests/nan.h.
60407
60408         * tests/test-trunc1.c: Include nan.h.
60409         (main): Use NaNd instead of NAN.
60410         * modules/trunc-tests (Files): Add tests/nan.h.
60411
60412         * tests/test-roundf1.c: Include nan.h.
60413         (main): Use NaNf instead of NAN.
60414         * modules/roundf-tests (Files): Add tests/nan.h.
60415
60416         * tests/test-truncf1.c: Include nan.h.
60417         (main): Use NaNf instead of NAN.
60418         * modules/truncf-tests (Files): Add tests/nan.h.
60419
60420         * tests/test-ceilf1.c: Include nan.h.
60421         (main): Use NaNf instead of NAN.
60422         * modules/ceilf-tests (Files): Add tests/nan.h.
60423
60424         * tests/test-floorf1.c: Include nan.h.
60425         (main): Use NaNf instead of NAN.
60426         * modules/floorf-tests (Files): Add tests/nan.h.
60427
60428         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60429         (main): Use NaNf instead of NAN.
60430         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60431
60432         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60433         (main): Use NaNd instead of NAN.
60434         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60435
60436         * tests/test-frexp.c: Include nan.h.
60437         (main): Use NaNd instead of NAN.
60438         * modules/frexp-tests (Files): Add tests/nan.h.
60439
60440         * lib/isnan.c: Don't include <math.h>.
60441         (FUNC): Don't use NAN macro.
60442         * modules/isnand-nolibm (Depends-on): Remove math.
60443         * modules/isnanf-nolibm (Depends-on): Remove math.
60444         * modules/isnanl (Depends-on): Remove math.
60445         * modules/isnanl-nolibm (Depends-on): Remove math.
60446
60447         * tests/nan.h: New file.
60448
60449 2008-04-01  Eric Blake  <ebb9@byu.net>
60450
60451         Fix typos.
60452         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60453         values to be the right type.
60454
60455         For now, cater to gnulib strtod inaccuracies.
60456         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60457         fractional results.  While not as nice from a QoI perspective, it
60458         is a quicker patch than correctly implementing decimal to binary
60459         rounding.
60460
60461 2008-03-31  Eric Blake  <ebb9@byu.net>
60462
60463         Guarantee a definition of NAN.
60464         * lib/math.in.h (NAN): Define if missing.
60465         * tests/test-math.c (main): Test it.
60466         * doc/posix-headers/math.texi (math.h): Document this.
60467         * lib/isnan.c (rpl_isnand): Use it.
60468         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60469         * tests/test-floorf1.c (NaN): Likewise.
60470         * tests/test-frexp.c (NaN): Likewise.
60471         * tests/test-isnand.c (NaN): Likewise.
60472         * tests/test-isnanf.c (NaN): Likewise.
60473         * tests/test-round1.c (NaN): Likewise.
60474         * tests/test-roundf1.c (NaN): Likewise.
60475         * tests/test-snprintf-posix.h (NaN): Likewise.
60476         * tests/test-sprintf-posix.h (NaN): Likewise.
60477         * tests/test-trunc1.c (NaN): Likewise.
60478         * tests/test-truncf1.c (NaN): Likewise.
60479         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60480         * tests/test-vasprintf-posix.c (NaN): Likewise.
60481         * modules/isnand-nolibm (Depends-on): Add math.
60482         * modules/isnanf-nolibm (Depends-on): Likewise.
60483         * modules/isnanl (Depends-on): Likewise.
60484         * modules/isnanl-nolibm (Depends-on): Likewise.
60485         * modules/snprintf-posix-tests (Depends-on): Likewise.
60486         * modules/sprintf-posix-tests (Depends-on): Likewise.
60487         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60488         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60489         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60490         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60491
60492 2008-03-31  Bruno Haible  <bruno@clisp.org>
60493
60494         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60495         * doc/posix-functions/strtod.texi: Likewise.
60496
60497 2008-03-31  Bruno Haible  <bruno@clisp.org>
60498
60499         * tests/test-strtod.c (main): Don't use C99 syntax.
60500
60501 2008-03-31  Bruno Haible  <bruno@clisp.org>
60502
60503         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60504         Reported by Eric Blake.
60505
60506 2008-03-31  Jim Meyering  <meyering@redhat.com>
60507
60508         Don't compare actual signbit return values.
60509         * tests/test-strtod.c (main): Rather, compare only their
60510         zero/non-zero nature.
60511
60512 2008-03-31  Eric Blake  <ebb9@byu.net>
60513
60514         More strtod documentation.
60515         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60516         failures as distinct bugs.
60517
60518 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60521         Problem reported by Erik Benada in
60522         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60523
60524 2008-03-30  Bruno Haible  <bruno@clisp.org>
60525
60526         * tests/test-strtod.c: Add comments about which assertion fails on which
60527         platform.
60528         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60529
60530 2008-03-30  Eric Blake  <ebb9@byu.net>
60531
60532         Test signbit behavior on zeros.
60533         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60534         (test_signbitd, test_signbitl): Likewise.
60535
60536         More strtod touchups.
60537         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60538         sign of negative underflow, for now.  Use .5, not .1.
60539         * doc/posix-functions/strtod.texi (strtod): Mention these
60540         limitations.
60541         Reported by Jim Meyering.
60542
60543 2008-03-30  Bruno Haible  <bruno@clisp.org>
60544
60545         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60546         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60547
60548 2008-03-30  Bruno Haible  <bruno@clisp.org>
60549
60550         Avoid failure when attempting to return empty iconv results on some
60551         platforms.
60552         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60553         allocation, don't report ENOMEM when the resulting string is empty.
60554
60555 2008-03-30  Bruno Haible  <bruno@clisp.org>
60556
60557         Fix buffer overrun.
60558         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60559         Don't consider the width for tmp_length. Check count against tmp_length
60560         before doing the padding. Ensure enough allocation during padding.
60561
60562 2008-03-30  Eric Blake  <ebb9@byu.net>
60563
60564         strtod touchups.
60565         * lib/strtod.c (strtod): Avoid compiler warnings.
60566         Reported by Jim Meyering.
60567
60568 2008-03-30  Bruno Haible  <bruno@clisp.org>
60569
60570         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60571         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60572         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60573         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60574         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60575         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60576         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60577         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60578
60579         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60580         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60581         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60582         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60583         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60584         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60585         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60586         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60587
60588         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60589         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60590         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60591         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60592         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60593         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60594         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60595         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60596
60597         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60598         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60599
60600         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60601         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60602
60603         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60604         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60605
60606         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60608         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60609
60610         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60612         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60613
60614         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60616         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60617
60618         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60620         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60621
60622         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60623         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60625         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60626         (Depends-on): Add EOVERFLOW.
60627         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60628         (Depends-on): Add EOVERFLOW.
60629         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60630         (Depends-on): Add EOVERFLOW.
60631         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60632         (Depends-on): Add EOVERFLOW.
60633         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60634         (Depends-on): Add EOVERFLOW.
60635         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60636         (Depends-on): Add EOVERFLOW.
60637         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60638         (Depends-on): Add EOVERFLOW.
60639         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60640         (Depends-on): Add EOVERFLOW.
60641
60642         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60644         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60645
60646         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60647         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60648         * modules/snprintf (Depends-on): Add EOVERFLOW.
60649
60650         * lib/poll.c (EOVERFLOW): Remove fallback.
60651         * modules/poll (Depends-on): Add EOVERFLOW.
60652
60653         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60654         * modules/getugroups (Depends-on): Add EOVERFLOW.
60655
60656         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60657         * modules/getdelim (Depends-on): Add EOVERFLOW.
60658
60659         * lib/ftell.c (EOVERFLOW): Remove fallback.
60660         * modules/ftell (Depends-on): Add EOVERFLOW.
60661
60662         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60664         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60665
60666         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60667
60668         * modules/EOVERFLOW-tests: New file.
60669         * tests/test-EOVERFLOW.c: New file.
60670
60671         * modules/EOVERFLOW: New file.
60672         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60673
60674 2008-03-30  Bruno Haible  <bruno@clisp.org>
60675
60676         Fix bug introduced on 2007-06-10.
60677         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60678         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60679
60680 2008-03-30  Bruno Haible  <bruno@clisp.org>
60681
60682         Improve freadseek's efficiency after ungetc.
60683         * lib/freadseek.c: Include freadahead.h.
60684         (freadptrinc): New function, extracted from freadseek.
60685         (freadseek): Use it in a loop. Use freadahead to determine the number
60686         of loop iterations.
60687         * modules/freadseek (Depends-on): Add freadahead.
60688         (configure.ac): Require AC_C_INLINE.
60689
60690 2008-03-30  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/freadseek.c (freadseek): Don't ignore the return value of
60693         freadptr.
60694
60695 2008-03-29  Eric Blake  <ebb9@byu.net>
60696
60697         Add hex float support.
60698         * modules/strtod (Depends-on): Add c-ctype.
60699         (Link): Mention POW_LIB.
60700         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60701         whitespace between 'e' and exponent.
60702         * tests/test-strtod.c (main): Enable hex float tests.
60703         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60704         now provides.
60705
60706         Document various strtod bugs, with some fixes.
60707         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60708         "-0x", "inf", "nan", and hex constants.
60709         * doc/posix-functions/atof.texi (atof): Likewise.
60710         * modules/stdlib (Makefile.am): Support strtod.
60711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60712         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60713         detect additional strtod bugs.
60714         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60715         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60716         bool where appropriate.  Parse 'inf' and 'nan'.
60717         * tests/test-strtod.c: New file.
60718         * modules/strtod (Depends-on): Add stdbool, stdlib.
60719         (configure.ac): Turn on module indicator.
60720         * modules/strtod-tests: New module.
60721
60722 2008-03-29  Eric Blake  <ebb9@byu.net>
60723
60724         Fix ftell on mingw.
60725         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60726         * modules/ftell-tests (Depends-on): Add binary-io.
60727         * modules/ftello-tests (Depends-on): Likewise.
60728         * tests/test-ftell.c (main): Enhance test to cover behavior after
60729         ungetc.  Enforce binary mode.
60730         * tests/test-ftello.c (main): Likewise.
60731
60732         Pass test-freadseek on cygwin.
60733         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60734         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60735         ungetc buffer.
60736
60737         * tests/test-fflush2.c (main): Fix typo.
60738
60739 2008-03-29  Bruno Haible  <bruno@clisp.org>
60740
60741         * tests/test-fflush2.c (main): Temporarily disable the contents of
60742         this test.
60743         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60744         Reported by Eric Blake.
60745
60746 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60747
60748         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60749         (GC_SHA224_DIGEST_SIZE): Add.
60750
60751         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60752         (gc_hash_digest_length): Likewise.
60753         (gc_hash_buffer): Likewise.
60754
60755 2008-03-25  Bruno Haible  <bruno@clisp.org>
60756
60757         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60758         detail which gettext release to use.
60759         Reported by Simon Josefsson.
60760
60761 2008-03-26  Jim Meyering  <meyering@redhat.com>
60762
60763         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60764         * modules/gnumakefile (clean-GNUmakefile): Also, use
60765         test ... && ... || : syntax rather than if-then ... fi.
60766
60767         gnumakefile: Don't double-quote-expand $(VPATH) value.
60768         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60769
60770 2008-03-24  Eric Blake  <ebb9@byu.net>
60771
60772         Alter GNUmakefile to install into top directory.
60773         * modules/maintainer-makefile: Split, and add dependency...
60774         * modules/gnumakefile: to this new module.
60775         * build-aux/GNUmakefile: Move...
60776         * top/GNUmakefile: ...here.
60777         * build-aux/maint.mk: Move...
60778         * top/maint.mk: ...here.
60779         * MODULES.html.sh (Support for maintaining...): Document new
60780         module.
60781
60782 2008-03-23  Bruno Haible  <bruno@clisp.org>
60783
60784         * gnulib-tool: New options --vc-files, --no-vc-files.
60785         (func_usage): Document them.
60786         (vc_files): New variable.
60787         (func_import): Consider vc_files.
60788         (func_create_testdir): Set vc_files to empty.
60789         Suggested by Jim Meyering and Karl Berry.
60790
60791 2008-03-23  Bruno Haible  <bruno@clisp.org>
60792
60793         Fix regex compilation error on HP-UX 11.
60794         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60795         * modules/regex (Files): Add m4/mbstate_t.m4.
60796         Reported by Ton Voon <ton.voon@altinity.com>.
60797
60798 2008-03-23  Bruno Haible  <bruno@clisp.org>
60799
60800         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60801
60802 2008-03-23  Eric Blake  <ebb9@byu.net>
60803             Bruno Haible  <bruno@clisp.org>
60804
60805         Install files from top/ in the destination directory.
60806         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60807         augmentation also for the files from top/.
60808         (func_import, func_create_testdir): Rewrite file names:
60809         top/filename -> filename.
60810
60811 2008-03-23  Bruno Haible  <bruno@clisp.org>
60812
60813         Tweak "gnulib --version" output.
60814         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60815
60816 2008-03-23  Bruno Haible  <bruno@clisp.org>
60817
60818         Tweak "gnulib --version" output.
60819         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60820         rather than contents of ChangeLog, when possible.
60821
60822 2008-03-21  Eric Blake  <ebb9@byu.net>
60823
60824         More --version tweaks.
60825         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60826         date of last ChangeLog entry.
60827
60828 2008-03-21  Jim Meyering  <meyering@redhat.com>
60829
60830         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60831
60832 2008-03-20  Eric Blake  <ebb9@byu.net>
60833
60834         VPATH fix.
60835         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60836
60837 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60838
60839         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60840         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60841
60842 2008-03-20  Eric Blake  <ebb9@byu.net>
60843
60844         Sync GNUmakefile with coreutils.
60845         * build-aux/GNUmakefile (have-Makefile): Rename...
60846         (_have-Makefile): ...to this, for namespace consideration.
60847         (GNUmakefile.cfg): Include, if present.
60848         (_autoreconf): Define a default.
60849         (_is-dist-target): New rule for rebuilds to pick up intra-release
60850         version.
60851         (maint-cfg.mk): Rename...
60852         (cfg.mk): ...to this.
60853
60854 2008-03-18  Jim Meyering  <meyering@redhat.com>
60855
60856         New script and module: mktempd
60857         * MODULES.html.sh (maint+release support): Add mktempd.
60858         * build-aux/mktempd: New file.
60859         * modules/mktempd: New file.
60860
60861 2008-03-15  Jim Meyering  <meyering@redhat.com>
60862
60863         Undo last change.
60864         * lib/sha1.c, lib/md5.c: 63 != ~63.
60865         Reported by Andreas Schwab.
60866
60867         sha1.c, md5.c: Hoist a redundant expression.
60868         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60869         "ctx->buflen" only once, before calling *_process_block.
60870         * lib/md5.c (md5_process_bytes): Likewise.
60871
60872 2008-03-14  Eric Blake  <ebb9@byu.net>
60873
60874         Bump copyright year in files generated by gnulib-tool.
60875         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60876         gnulib-tool, rather than hard-coding it.
60877
60878         Fix 'gnulib-tool --version' output to work with git.
60879         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60880         (startup): ...here.
60881         (func_version): Use it to invoke git-version-gen, rather than
60882         relying on CVS keyword expansion.  Modernize wording.
60883         (cvsdatestamp, last_checkin_date, version): Kill unused
60884         variables.
60885
60886 2008-03-12  Jim Meyering  <meyering@redhat.com>
60887
60888         Recognize optional cast of the argument to free.
60889         * build-aux/useless-if-before-free: Update regexps.
60890
60891         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60892
60893 2008-03-11  Bruno Haible  <bruno@clisp.org>
60894
60895         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60896         by a single package.
60897         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60898         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60899         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60900         Reported by Sam Steingold <sds@gnu.org>.
60901
60902 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60903
60904         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60905         repositories.
60906
60907 2008-03-11  Bruno Haible  <bruno@clisp.org>
60908
60909         Avoid conflicts between local macro definitions.
60910         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60911         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60912
60913 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60914             Bruno Haible  <bruno@clisp.org>
60915
60916         Make va_copy work with some version of xlc on AIX 5.1.
60917         * lib/stdarg.in.h: New file.
60918         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60919         On AIX, use a <stdarg.h> file substitute.
60920         * modules/stdarg (Files): Add lib/stdarg.in.h.
60921         (Depends-on): Add include_next.
60922         (Makefile.am): Build a stdarg.h substitute if requested.
60923         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60924
60925 2008-03-10  Bruno Haible  <bruno@clisp.org>
60926
60927         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60928         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60929         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60930
60931 2008-03-10  Bruno Haible  <bruno@clisp.org>
60932
60933         * modules/stdlib (Depends-on): Add include_next, remove
60934         absolute-header.
60935
60936 2008-03-09  Bruno Haible  <bruno@clisp.org>
60937
60938         * lib/freadahead.h (freadahead): Document more precisely.
60939         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60940         the sum of both buffer sizes.
60941         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60942         * NEWS: Document the change.
60943
60944 2008-03-09  Bruno Haible  <bruno@clisp.org>
60945
60946         Extend freadptr to return also the buffer size.
60947         * lib/freadptr.h (freadptr): Add sizep argument.
60948         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60949         (freadptr): Add sizep argument. Determine buffer size like freadahead
60950         does.
60951         * tests/test-freadptr.c: Don't include freadahead.h.
60952         (main): Adapt for new calling convention of freadptr.
60953         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60954         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60955         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60956         tests/test-freadptr2.sh.
60957         (Depends): Remove freadahead.
60958         (TESTS): Add test-freadptr2.sh.
60959         (check_PROGRAMS): Add test-freadptr2.
60960
60961 2008-03-09  Bruno Haible  <bruno@clisp.org>
60962
60963         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60964         Report and solution by Simon Josefsson.
60965
60966 2008-03-06  Bruno Haible  <bruno@clisp.org>
60967
60968         Make fflush after ungetc work on BSD platforms.
60969         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60970         * tests/test-fflush2.c: New file.
60971         * tests/test-fflush2.sh: New file.
60972         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60973         tests/test-fflush2.c.
60974         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60975         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60976
60977 2008-03-06  Eric Blake  <ebb9@byu.net>
60978
60979         Likewise for ftello.
60980         * modules/ftello (Dependencies): Add extensions.
60981         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60982
60983 2008-03-06  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/fseeko (Dependencies): Add extensions.
60986         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60987         Needed on glibc systems.
60988
60989 2008-03-06  Bruno Haible  <bruno@clisp.org>
60990
60991         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60992         email address.
60993         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60994
60995 2008-03-06  Bruno Haible  <bruno@clisp.org>
60996
60997         * users.txt: Add libgnupdf.
60998
60999 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61000
61001         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61002         (Header File Substitutes, Function Substitutes,
61003         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61004         (Build robot for gnulib): Fix typo.
61005
61006 2008-03-06  Bruno Haible  <bruno@clisp.org>
61007
61008         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61009         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61010
61011 2008-03-06  Bruno Haible  <bruno@clisp.org>
61012
61013         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61014         * doc/gnulib.texi: Include it.
61015
61016 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61017
61018         * modules/func (License): Change license to unlimited; there was
61019         no LGPL parts in the module anyway.
61020
61021 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61022
61023         * modules/__func__: Renamed to modules/func.
61024         * modules/__func__-tests: Renamed to modules/func-tests.
61025         * tests/test-__func__.c: Renamed to tests/test-func.c.
61026         * m4/__func__.m4: Renamed to m4/func.m4.
61027         * doc/gnulib.texi (__func__): Section renamed to func.
61028         Suggested by Eric Blake <ebb9@byu.net>.
61029
61030 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61031
61032         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61033         about __func__.  Make example self-contained.  Suggested by Eric
61034         Blake <ebb9@byu.net>.
61035
61036         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61037         Suggested by Eric Blake <ebb9@byu.net>.
61038
61039 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61040
61041         * modules/__func__: New file.
61042         * modules/__func__-tests: New file.
61043         * tests/test-__func__.c: New file.
61044         * m4/__func__.m4: New file.
61045         * doc/gnulib.texi (__func__): Document __func__ module.
61046
61047 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61048
61049         * modules/byteswap (License): Re-license as LGPLv2+.
61050
61051 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61052
61053         * doc/Makefile: Add pdf target.
61054
61055 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61056
61057         * modules/inline (License): Use 'unlimited', since there are only
61058         *.m4 files in this module.
61059
61060 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61061             Bruno Haible  <bruno@clisp.org>
61062
61063         Add support for HP C 7.1 on OpenVMS 8.3.
61064         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61065
61066 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61067
61068         Update VMS specifics.
61069         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61070
61071 2008-03-02  Jim Meyering  <meyering@redhat.com>
61072
61073         Remove the last dependency on the "free" module.
61074         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61075         Reported by Bob Proulx.
61076
61077         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61078
61079         Remove useless "if" tests before free.  Deprecate "free" module.
61080         * doc/posix-functions/free.texi: Mention that this
61081         module is no longer useful.
61082         * modules/free (Notice): Say this module is obsolete.
61083         * modules/readutmp (Depends-on): Remove free.
61084         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61085         * lib/putenv.c (putenv): Likewise.
61086         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61087         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61088         * tests/test-c-strcasestr.c (main): Likewise.
61089         * tests/test-c-strstr.c (main): Likewise.
61090         * tests/test-mbscasestr1.c (main): Likewise.
61091         * tests/test-mbscasestr2.c (main): Likewise.
61092         * tests/test-mbsstr1.c (main): Likewise.
61093         * tests/test-mbsstr2.c (main): Likewise.
61094         * tests/test-memmem.c (main): Likewise.
61095         * tests/test-strcasestr.c (main): Likewise.
61096         * tests/test-striconv.c (main): Likewise.
61097         * tests/test-striconveh.c (main): Likewise.
61098         * tests/test-striconveha.c (main): Likewise.
61099         * tests/test-strstr.c (main): Likewise.
61100
61101         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61102
61103         bootstrap: sync from coreutils again
61104         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61105
61106 2008-03-01  Jim Meyering  <meyering@redhat.com>
61107
61108         bootstrap: sync from coreutils
61109         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61110         also when the target doesn't exist.
61111
61112 2008-03-01  Eric Blake  <ebb9@byu.net>
61113
61114         Fix bugs in last patch.
61115         * lib/memchr2.c (memchr2): Fix typo.
61116         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61117         extension.
61118         Reported by Bruce Korb.
61119
61120         New module 'memchr2'.
61121         * modules/memchr2: New file.
61122         * modules/memchr2-tests: Likewise.
61123         * lib/memchr2.h: Likewise.
61124         * lib/memchr2.c: Likewise, based on memchr.c.
61125         * tests/test-memchr2.c: New test.
61126         * MODULES.html.sh (String handling): Add memchr2.
61127
61128 2008-02-29  Bruno Haible  <bruno@clisp.org>
61129
61130         * modules/freadseek-tests: New file.
61131         * tests/test-freadseek.sh: New file.
61132         * tests/test-freadseek.c: New file.
61133
61134         New module 'freadseek'.
61135         * modules/freadseek: New file.
61136         * lib/freadseek.h: New file.
61137         * lib/freadseek.c: New file.
61138         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61139
61140 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61141
61142         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61143         wydawca.
61144
61145         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61146         program_invocation_name and program_invocation_short_name are
61147         present.
61148
61149 2008-02-28  Bruno Haible  <bruno@clisp.org>
61150
61151         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61152         * tests/test-freadptr.sh: Also test non-seekable stdin.
61153
61154 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61155
61156         * build-aux/bootstrap (source_base, m4_base)
61157         (doc_base, tests_base): New variables.
61158         (gnulib_tool_options): Do not hardcode base directories, use
61159         the above variables instead.
61160
61161 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61162
61163         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61164
61165 2008-02-28  Bruno Haible  <bruno@clisp.org>
61166
61167         * modules/freadptr-tests: New file.
61168         * tests/test-freadptr.sh: New file.
61169         * tests/test-freadptr.c: New file.
61170
61171         New module 'freadptr'.
61172         * modules/freadptr: New file.
61173         * lib/freadptr.h: New file.
61174         * lib/freadptr.c: New file.
61175         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61176
61177 2008-02-26  Karl Berry  <karl@freefriends.org>
61178
61179         Sync from Libtool:
61180         * libltdl/argz.c (argz_add, argz_count): New functions.
61181         * libltdl/argz.in.h: Declare them.
61182         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61183
61184 2008-02-22  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61187         is a pointer type.  Needed for HP-UX 10.
61188         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61189         * doc/posix-functions/gmtime_r.texi: Likewise.
61190         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61191
61192 2008-02-24  Bruno Haible  <bruno@clisp.org>
61193
61194         * modules/environ-tests: New file.
61195         * tests/test-environ.c: New file.
61196
61197         New module 'environ'.
61198         * modules/environ: New file.
61199         * lib/unistd.in.h (environ): New declaration.
61200         * m4/environ.m4: New file.
61201         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61202         after use.
61203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61204         HAVE_DECL_ENVIRON.
61205         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61206         HAVE_DECL_ENVIRON.
61207         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61208         wrong claim that 'environ' is missing on some systems.
61209         * modules/execute (Depends-on): Add environ.
61210         * lib/execute.c (environ): Remove fallback declaration.
61211         * modules/pipe (Depends-on): Add environ.
61212         * lib/pipe.c (environ): Remove fallback declaration.
61213         * modules/setenv (Depends-on): Add environ.
61214         * lib/setenv.c (environ): Remove fallback declaration.
61215         * modules/unsetenv (Depends-on): Add environ.
61216         * lib/unsetenv.c (environ): Remove fallback declaration.
61217         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61218         m4/environ.m4.
61219         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61220         (gl_PREREQ_UNSETENV): Likewise.
61221
61222 2008-02-24  Bruno Haible  <bruno@clisp.org>
61223
61224         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61225
61226 2008-02-20  Bob Proulx  <bob@proulx.com>
61227
61228         Enable use of older two part flavor 'git describe'.
61229         * build-aux/git-version-gen: If using the older two part flavor of
61230         git version then recreate the third part now present in the
61231         newer three part flavor of git describe.
61232
61233 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61234
61235         * lib/fts.c (fts_build): Typo correction to comment.
61236
61237 2008-02-17  Bruno Haible  <bruno@clisp.org>
61238
61239         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61240         generating no-op conflicts.
61241
61242 2008-02-17  Bruno Haible  <bruno@clisp.org>
61243
61244         Speed up by 10%.
61245         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61246         result_entries, rather than an index-based loop.
61247
61248 2008-02-17  Bruno Haible  <bruno@clisp.org>
61249
61250         Speed up by 25%.
61251         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61252         'hashcode_cached'.
61253         (entry_create): New function.
61254         (entry_hashcode): Use the cached hashcode if possible.
61255         (read_changelog_file, try_split_merged_entry): Use entry_create.
61256
61257 2008-02-17  Bruno Haible  <bruno@clisp.org>
61258
61259         Speed up from O(n^2) to O(n) for long ChangeLog files.
61260         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61261         (read_changelog_file): Change implementation of entries_reversed list
61262         to rbtreehash.
61263         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61264
61265 2008-02-17  Bruno Haible  <bruno@clisp.org>
61266
61267         New option --split-merged-entry.
61268         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61269         (find_paragraph_end, try_split_merged_entry): New functions.
61270         (long_options): Add option --split-merged-entry.
61271         (usage): Document option --split-merged-entry.
61272         (main): Implement option --split-merged-entry.
61273         Reported by Eric Blake.
61274
61275 2008-02-17  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/git-merge-changelog.c: Include c-strstr.h.
61278         (main): Support the "git pull --rebase" situation.
61279         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61280         Reported by Eric Blake.
61281
61282 2008-02-16  Eric Blake  <ebb9@byu.net>
61283
61284         Avoid doubling \ in common case of "c-maybe" quoting style.
61285         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61286         eliding outer quotes.
61287         * lib/quotearg.h: Document this.
61288         * tests/test-quotearg.c (result_strings, inputs, results_g)
61289         (flag_results, locale_results): Test it by adding a new string to
61290         each test group.
61291         (compare_strings): Test new string.
61292
61293 2008-02-13  Eric Blake  <ebb9@byu.net>
61294
61295         Avoid trigraph quoting in default output.
61296         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61297         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61298         unless explicitly requested.
61299         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61300
61301 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61302
61303         Don't rely on signed integer overflowing to negative value.
61304         * lib/getugroups.c (getugroups): Include <limits.h>.
61305         Instead, compare against INT_MAX, and increment only if the test passes.
61306
61307 2008-02-13  Jim Meyering  <meyering@redhat.com>
61308         and Eric Blake  <ebb9@byu.net>
61309
61310         Avoid shadowing warning and compile errors on Linux.
61311         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61312         forwarding macros on Linux.
61313         (dcgettext): Define a stub, for Linux.
61314         (results_g, main): Avoid warnings.
61315
61316 2008-02-12  Eric Blake  <ebb9@byu.net>
61317
61318         Silence warning in last patch.
61319         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61320
61321         Quotearg part 4: add tests, fix c-maybe colon quoting.
61322         * lib/quotearg.h: Improve documentation.
61323         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61324         escapes when adding outer quotes.  When quoting trigraphs, use
61325         valid C notation.  When quoting NUL, omit extra characters if next
61326         character is not digit.  Alter prototype.
61327         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61328         callers.
61329         * modules/quotearg-tests: New module.
61330         * tests/test-quotearg.c: New test.
61331
61332 2008-02-07  Eric Blake  <ebb9@byu.net>
61333
61334         Quotearg part 3: add flag to control outer quote elision.
61335         * lib/quotearg.h (c_maybe_quoting_style): New style.
61336         (enum quoting_flags): Better documentation of flags.
61337         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61338         c-maybe style.
61339         (quotearg_buffer_restyled): Handle new flag to elide outer
61340         quotes.
61341
61342         Quotearg part 2: add flag that can control NUL elision.
61343         * lib/quotearg.h (set_quoting_flags): New prototype.
61344         * lib/quotearg.c (struct quoting_options): Add flag field.
61345         (set_quoting_flags): New function.
61346         (quotearg_buffer_restyled): Add flags parameter.
61347         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61348         (quotearg_n_options): Set the flag, since length cannot be
61349         returned.
61350         (quoting_options_from_style): Default flags correctly.
61351
61352         Quotearg part 1: more wrappers, restore quotearg_char state.
61353         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61354         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61355         (quotearg_colon_mem): New wrappers.
61356         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61357         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61358         functions.
61359         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61360         (quotearg_colon_mem): New functions.
61361
61362 2008-02-11  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61365         library in the current directory: it does not work with parallel make.
61366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61367
61368 2008-02-11  Bruno Haible  <bruno@clisp.org>
61369
61370         * .gitattributes: New file.
61371
61372 2008-02-11  Jim Meyering  <meyering@redhat.com>
61373
61374         useless-if-before-free: Fix reversed exit values.
61375         * build-aux/useless-if-before-free: Use correct values
61376         for EXIT_MATCH and EXIT_NO_MATCH.
61377
61378         * build-aux/useless-if-before-free: Close stdout carefully.
61379
61380 2008-02-10  Bruno Haible  <bruno@clisp.org>
61381
61382         New module 'git-merge-changelog'.
61383         * modules/git-merge-changelog: New file.
61384         * lib/git-merge-changelog.c: New file.
61385
61386 2008-02-10  Jim Meyering  <meyering@redhat.com>
61387
61388         useless-if-before-free: New option: --list (-l).
61389
61390         useless-if-before-free: Don't exit immediately upon open failure.
61391         * build-aux/useless-if-before-free: Exit 2 for errors.
61392         Upon failure to open a file, don't exit immediately.
61393         Rather, just warn and continue with any remaining files.
61394
61395 2008-02-10  Bruno Haible  <bruno@clisp.org>
61396
61397         New abstract list operation 'node_set_value'.
61398         * lib/gl_list.h (gl_list_node_set_value): New function.
61399         (struct gl_list_implementation): New field node_set_value.
61400         * lib/gl_list.c (gl_list_node_set_value): New function.
61401         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61402         (gl_array_list_implementation): Update.
61403         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61404         (gl_carray_list_implementation): Update.
61405         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61406         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61407         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61408         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61409         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61410         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61411         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61412         Update.
61413         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61414         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61415         (gl_sublist_list_implementation): Update.
61416
61417 2008-02-10  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61420         Needed when ELEMENT is #defined to 'some_type *'.
61421
61422 2008-02-10  Jim Meyering  <meyering@redhat.com>
61423
61424         New script and module: useless-if-before-free
61425         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61426         * build-aux/useless-if-before-free: New file.
61427         * modules/useless-if-before-free: New file.
61428
61429         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61430
61431         xstrtol_error: Fix typo.
61432         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61433         s/exit_failure/exit_status/.
61434
61435 2008-02-09  Jim Meyering  <meyering@redhat.com>
61436
61437         New script and module: gitlog-to-changelog
61438         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61439         * modules/gitlog-to-changelog: New file.
61440         * build-aux/gitlog-to-changelog: New file.
61441
61442 2008-02-08  Jim Meyering  <meyering@redhat.com>
61443
61444         Avoid two "parameter unused" warnings.
61445         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61446         Mark "st" as used.
61447
61448         Use "git COMMAND", not "git-COMMAND".
61449         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61450         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61451         * build-aux/git-version-gen: Use "git status", not "git-status".
61452
61453 2008-02-07  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61456         Avoids a crash on Windows Vista.
61457         Reported by Adam Strzelecki <ono@java.pl> via
61458         Simon Josefsson <simon@josefsson.org>.
61459
61460 2008-02-06  Bruno Haible  <bruno@clisp.org>
61461
61462         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61463         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61464         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61466         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61468         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61469         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61477         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61478         left-adjust flag.
61479         * tests/test-snprintf-posix.h (test_function): Likewise.
61480         * tests/test-sprintf-posix.h (test_function): Likewise.
61481         * tests/test-vasprintf-posix.c (test_function): Likewise.
61482         * doc/posix-functions/fprintf.texi: Update.
61483         * doc/posix-functions/printf.texi: Update.
61484         * doc/posix-functions/snprintf.texi: Update.
61485         * doc/posix-functions/sprintf.texi: Update.
61486         * doc/posix-functions/vfprintf.texi: Update.
61487         * doc/posix-functions/vprintf.texi: Update.
61488         * doc/posix-functions/vsnprintf.texi: Update.
61489         * doc/posix-functions/vsprintf.texi: Update.
61490         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61491
61492 2008-02-06  Bruno Haible  <bruno@clisp.org>
61493
61494         Fix bug introduced on 2008-01-26.
61495         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61496
61497 2008-02-06  Bruno Haible  <bruno@clisp.org>
61498
61499         Fix bug introduced on 2007-06-10.
61500         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61501         !NEED_PRINTF_FLAG_ZERO.
61502
61503 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61504
61505         getloadavg: use libperfstat on AIX5
61506         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61507
61508 2008-02-03  Bruno Haible  <bruno@clisp.org>
61509
61510         * lib/diffseq.h: Add comments about required #includes.
61511         Reported by Michael Biggs <gnulib@doubleplum.net>.
61512
61513 2008-02-01  Bruno Haible  <bruno@clisp.org>
61514
61515         * users.txt: Add gnuit.
61516
61517 2008-01-31  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/md4.c (set_uint32): Mark as inline.
61520         * lib/md5.c (set_uint32): Likewise.
61521         * lib/sha1.c (set_uint32): Likewise.
61522         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61523         * m4/md5.m4 (gl_MD5): Likewise.
61524         * m4/sha1.m4 (gl_SHA1): Likewise.
61525
61526 2008-01-31  Jim Meyering  <meyering@redhat.com>
61527
61528         Use "sizeof VAR", rather than a literal "4".
61529         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61530         * lib/md4.c (md4_read_ctx): Likewise.
61531         * lib/sha1.c (sha1_read_ctx): Likewise.
61532
61533 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61534
61535         * tests/test-sha1.c: New file, based on test-md5.c.
61536
61537         * modules/crypto/sha1-tests: New file.
61538
61539 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61540
61541         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61542
61543 2008-01-31  Jim Meyering  <meyering@redhat.com>
61544
61545         Prefer "sizeof v" over the equivalent "4".
61546         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61547         * lib/md5.c (set_uint32): Likewise.
61548         * lib/sha1.c (set_uint32): Likewise.
61549
61550 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61551
61552         * lib/sha1.c (set_uint32): Mark function as static.
61553
61554 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61555
61556         md2: clarify comments to say that alignment is not required.
61557         * lib/md2.h: Remove warning about alignment in comment.
61558         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61559         never been required.
61560
61561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61562
61563         md4: adapt alignment constraint fix from sha1.
61564         * lib/md4.c (set_uint32): New function, from sha1.c
61565         (md4_read_ctx): Use it.
61566         (md4_finish_ctx): Doc fix.
61567         * lib/md4.h: Doc fix.
61568
61569 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61570
61571         md5: adapt alignment constraint fix from sha1.
61572         * lib/md5.c (set_uint32): New function, from sha1.c
61573         (md5_read_ctx): Use it.
61574         (md5_finish_ctx): Doc fix.
61575         * lib/md5.h: Doc fix.
61576
61577 2008-01-30  Peter Palfrader  <weasel@debian.org>
61578
61579         sha1: remove the result buffer alignment constraint
61580         * lib/sha1.c (set_uint32): New function.
61581         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61582         constraint.
61583         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61584         * lib/sha1.h: Likewise.
61585
61586 2008-01-30  Andreas Schwab  <schwab@suse.de>
61587             Bruno Haible  <bruno@clisp.org>
61588
61589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61590         correct definition of LDBL_MIN_EXP.
61591
61592 2008-01-30  Karl Berry  <karl@gnu.org>
61593
61594         * config/srclist-update: try to preserve x bit on updates.
61595         * config/srclistvars.sh: update for karl.
61596
61597 2008-01-29  Jim Meyering  <meyering@redhat.com>
61598
61599         vasnprintf.c: Avoid warning about unused label
61600         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61601         "overflow" label definition and associated code with the
61602         same cpp condition that guards the sole use of that label.
61603
61604 2008-01-26  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61607         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61608         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61609         * lib/isnanl-nolibm.h (isnanl): Likewise.
61610         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61611
61612 2008-01-26  Bruno Haible  <bruno@clisp.org>
61613
61614         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61615         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61616
61617 2008-01-26  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61620         GCC >= 4.0 built-in.
61621         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61622
61623 2008-01-26  Bruno Haible  <bruno@clisp.org>
61624
61625         Rename isnan, applicable to 'double' only, to isnand.
61626         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61627         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61628         (configure.ac): Update.
61629         (Include): Replace "isnan.h" with "isnand.h".
61630         * m4/isnand.m4: Renamed from m4/isnan.m4.
61631         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61632         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61633         instead of isnan.c.
61634         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61635         instead of HAVE_ISNAN_IN_LIBC.
61636         (isnand): Renamed from isnan.
61637         * lib/isnand.c: New file.
61638         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61639         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61640         (Makefile.am): Update.
61641         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61642         Include isnand.h instead of isnan.h.
61643         (main): Test isnand instead of isnan.
61644         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61645         isnan-nolibm.
61646         * modules/frexp (Depends-on): Likewise.
61647         * modules/frexp-tests (Depends-on): Likewise.
61648         * modules/frexp-nolibm (Depends-on): Likewise.
61649         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61650         * modules/isfinite (Depends-on): Likewise.
61651         * modules/round-tests (Depends-on): Likewise.
61652         * modules/signbit (Depends-on): Likewise.
61653         * modules/signbit-tests (Depends-on): Likewise.
61654         * modules/snprintf-posix (Depends-on): Likewise.
61655         * modules/sprintf-posix (Depends-on): Likewise.
61656         * modules/trunc-tests (Depends-on): Likewise.
61657         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61658         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61659         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61660         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61661         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61662         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61663         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61664         * modules/vasnprintf-posix (Depends-on): Likewise.
61665         * modules/vasprintf-posix (Depends-on): Likewise.
61666         * modules/vfprintf-posix (Depends-on): Likewise.
61667         * modules/vsnprintf-posix (Depends-on): Likewise.
61668         * modules/vsprintf-posix (Depends-on): Likewise.
61669         * lib/frexp.c: Include isnand.h instead of isnan.h.
61670         (ISNAN): Set to isnand instead of isnan.
61671         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61672         (gl_isfinited): Use isnand instead of isnan.
61673         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61674         (gl_signbitd): Use isnand instead of isnan.
61675         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61676         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61677         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61678         (main): Use isnand instead of isnan.
61679         * tests/test-round1.c: Include isnand.h.
61680         (main): Use isnand instead of isnan.
61681         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61682         (ISNAN): Set to isnand instead of isnan.
61683         * tests/test-trunc1.c: Include isnand.h.
61684         (main): Use isnand instead of isnan.
61685         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61686         (equal): Use isnand instead of isnan.
61687         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61688         isnand-nolibm.
61689         * NEWS: Mention the change.
61690
61691 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61692             Bruno Haible  <bruno@clisp.org>
61693
61694         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61695         the GCC builtins for signbits are present and set
61696         REPLACE_SIGNBIT_USING_GCC if so.
61697         * lib/math.in.h (signbit): Define using GCC builtins if
61698         REPLACE_SIGNBIT_USING_GCC is set.
61699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61700         REPLACE_SIGNBIT_USING_GCC.
61701         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61702
61703 2008-01-25  Jim Meyering  <meyering@redhat.com>
61704
61705         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61706         * lib/poll.c: Include <config.h>, not "config.h".
61707         * tests/test-getaddrinfo.c: Likewise.
61708
61709 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61710
61711         * modules/sockets-tests: New file.
61712
61713 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61714
61715         * modules/sockets: New module, can be used to call WSA_Startup and
61716         WSA_Cleanup when needed.
61717
61718         * lib/sockets.h, lib/sockets.c: New files.
61719
61720         * m4/sockets.m4: New file.
61721
61722         * tests/test-sockets.c: New file.
61723
61724 2008-01-19  Bruno Haible  <bruno@clisp.org>
61725
61726         * doc/posix-headers: Renamed from doc/headers.
61727         * doc/posix-functions: Renamed from doc/functions.
61728         * doc/gnulib.texi: Update.
61729
61730 2008-01-19  Bruno Haible  <bruno@clisp.org>
61731
61732         * doc/glibc-functions/strcasestr.texi: Include contents of
61733         doc/functions/strcasestr.texi, fixing the list of platforms.
61734         * doc/functions/strcasestr.texi: Remove file.
61735
61736 2008-01-19  Bruno Haible  <bruno@clisp.org>
61737
61738         * doc/glibc-functions/memmem.texi: Include contents of
61739         doc/functions/memmem.texi.
61740         * doc/functions/memmem.texi: Remove file.
61741
61742 2008-01-18  Bruno Haible  <bruno@clisp.org>
61743
61744         * doc/glibc-functions/*.texi: New files.
61745         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61746         to use the new files.
61747
61748 2008-01-17  Bruno Haible  <bruno@clisp.org>
61749
61750         * tests/test-gethostname.c (main): Fix printf statement.
61751
61752 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61753
61754         * modules/gethostname-tests: New file.
61755
61756         * tests/test-gethostname.c: New file.
61757
61758 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61759
61760         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61761         used by the UNAME case.  Reported by Bruno Haible
61762         <bruno@clisp.org>.
61763
61764 2008-01-17  Eric Blake  <ebb9@byu.net>
61765
61766         Convert c-strcasestr to be more efficient.
61767         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61768         (Depends-on): Add c-strcase, remove malloca, strnlen.
61769         * tests/test-c-strcasestr.c (main): Enhance test.
61770         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61771
61772 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61773
61774         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61775         Use it in creating po/Makevars.
61776
61777 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61778
61779         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61780         Applications that requires it should initialize libgcrypt
61781         manually.
61782
61783 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61784
61785         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61786
61787 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         Fix problem with getdate on mingw32 reported by Simon Josefsson
61790         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61791         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61792         tzname", when deciding whether to declare tzname.
61793         * lib/strftime.c (tzname): Likewise.
61794
61795 2008-01-15  Bruno Haible  <bruno@clisp.org>
61796
61797         Work around a MacOS X 10.5 bug in frexpl().
61798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61799         * doc/functions/frexpl.texi: Document the bug.
61800         Reported by Elias Pipping <pipping@gentoo.org>.
61801
61802 2008-01-14  Eric Blake  <ebb9@byu.net>
61803
61804         Touch up previous patch.
61805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61806         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61807
61808         Convert strcasestr module to use Two-Way algorithm.
61809         * modules/strcasestr-simple: New module, based on the old
61810         strcasestr, but with Two-Way rather than KMP.
61811         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61812         * lib/string.in.h (rpl_strcasestr): Declare.
61813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61814         performance.
61815         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61816         * modules/string (Makefile.am): Support strcasestr.
61817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61818         * modules/strcasestr-tests (Depends-on): Check for alarm.
61819         * tests/test-strcasestr.c: Augment test.
61820         * lib/str-two-way.h: Clean up stray macro.
61821         * NEWS: Document new module.
61822         * MODULES.html.sh (string handling): Likewise.
61823         * doc/functions/strcasestr.texi: New file.
61824         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61825         here, since it is not a POSIX function.
61826
61827 2008-01-14  Colin Watson  <cjwatson@debian.org>
61828             Bruno Haible  <bruno@clisp.org>
61829
61830         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61831         works fine; if not, set REPLACE_STRSIGNAL.
61832         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61834         REPLACE_STRSIGNAL.
61835         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61836         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61837         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61838
61839 2008-01-14  Bruno Haible  <bruno@clisp.org>
61840
61841         * modules/strsignal (Include): Change to <string.h>.
61842
61843 2008-01-14  Colin Watson  <cjwatson@debian.org>
61844
61845         * modules/argp (Notice): Add a notice recommending to change
61846         XGETTEXT_OPTIONS.
61847         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61848
61849 2008-01-13  Colin Watson  <cjwatson@debian.org>
61850
61851         * modules/strsignal-tests: New file.
61852         * tests/test-strsignal.c: New file.
61853
61854         * lib/strsignal.c: New file, from glibc with modifications.
61855         * lib/siglist.h: New file, from glibc with modifications.
61856         * lib/string.in.h (strsignal): New declaration.
61857         * m4/strsignal.m4: New file.
61858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61859         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61860         * modules/strsignal: New file.
61861         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61862         HAVE_DECL_STRSIGNAL.
61863
61864 2008-01-13  Bruno Haible  <bruno@clisp.org>
61865
61866         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61867         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61868         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61870
61871 2008-01-13  Bruno Haible  <bruno@clisp.org>
61872
61873         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61874         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61875         * lib/argp.h (__attribute__): Likewise.
61876         * lib/c-stack.c (__attribute__): Likewise.
61877         * lib/error.h (__attribute__): Likewise.
61878         * lib/fts.c (__attribute__): Likewise.
61879         * lib/openat.h (__attribute__): Likewise.
61880         * lib/stdio.in.h (__attribute__): Likewise.
61881         * lib/string.in.h (__attribute__): Likewise.
61882         * lib/utimens.c (__attribute__): Likewise.
61883         * lib/vasnprintf.h (__attribute__): Likewise.
61884         * lib/xalloc.h (__attribute__): Likewise.
61885         * lib/xprintf.h (__attribute__): Likewise.
61886         * lib/xstrtol.h (__attribute__): Likewise.
61887         * lib/xvasprintf.h (__attribute__): Likewise.
61888
61889 2008-01-12  Bruno Haible  <bruno@clisp.org>
61890
61891         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61892         * doc/glibc-headers/a.out.texi: New file.
61893         * doc/glibc-headers/aliases.texi: New file.
61894         * doc/glibc-headers/alloca.texi: New file.
61895         * doc/glibc-headers/ar.texi: New file.
61896         * doc/glibc-headers/argp.texi: New file.
61897         * doc/glibc-headers/argz.texi: New file.
61898         * doc/glibc-headers/byteswap.texi: New file.
61899         * doc/glibc-headers/crypt.texi: New file.
61900         * doc/glibc-headers/endian.texi: New file.
61901         * doc/glibc-headers/envz.texi: New file.
61902         * doc/glibc-headers/err.texi: New file.
61903         * doc/glibc-headers/error.texi: New file.
61904         * doc/glibc-headers/execinfo.texi: New file.
61905         * doc/glibc-headers/fpu_control.texi: New file.
61906         * doc/glibc-headers/fstab.texi: New file.
61907         * doc/glibc-headers/fts.texi: New file.
61908         * doc/glibc-headers/getopt.texi: New file.
61909         * doc/glibc-headers/ieee754.texi: New file.
61910         * doc/glibc-headers/ifaddrs.texi: New file.
61911         * doc/glibc-headers/libintl.texi: New file.
61912         * doc/glibc-headers/mcheck.texi: New file.
61913         * doc/glibc-headers/mntent.texi: New file.
61914         * doc/glibc-headers/obstack.texi: New file.
61915         * doc/glibc-headers/paths.texi: New file.
61916         * doc/glibc-headers/printf.texi: New file.
61917         * doc/glibc-headers/pty.texi: New file.
61918         * doc/glibc-headers/resolv.texi: New file.
61919         * doc/glibc-headers/shadow.texi: New file.
61920         * doc/glibc-headers/sysexits.texi: New file.
61921         * doc/glibc-headers/ttyent.texi: New file.
61922
61923 2008-01-12  Jim Meyering  <meyering@redhat.com>
61924
61925         announce-gen: emit Gnulib's git-based version string.
61926         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61927         New option --gnulib-version=V, where V is expected to be
61928         the output of running git describe in the gnulib directory.
61929         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61930         not useful, and plan to stop publishing an xdelta file with each
61931         coreutils release.
61932
61933         * build-aux/announce-gen: Also check for lzma-compressed files.
61934
61935 2008-01-11  Bruno Haible  <bruno@clisp.org>
61936
61937         * tests/test-memmem.c (main): Increase maximum allowed time.
61938         * tests/test-strstr.c (main): Likewise.
61939
61940 2008-01-11  Bruno Haible  <bruno@clisp.org>
61941
61942         * doc/functions/memmem.texi: Add more precisions about platforms.
61943         * doc/functions/strstr.texi: Likewise.
61944
61945 2008-01-10  Eric Blake  <ebb9@byu.net>
61946
61947         * m4/strstr.m4: Delete cruft from copy-n-paste.
61948         Reported by Bruno Haible.
61949
61950 2008-01-10  Bruno Haible  <bruno@clisp.org>
61951
61952         Make c-strstr rely on strstr.
61953         * lib/c-strstr.c: Don't include str-kmp.h.
61954         (c_strstr): Define in terms of strstr.
61955         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61956         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61957
61958 2008-01-10  Bruno Haible  <bruno@clisp.org>
61959
61960         * doc/gnulib.texi (String Functions in C Locale): New section.
61961         * doc/c-ctype.texi: New file.
61962         * doc/c-strcase.texi: New file.
61963         * doc/c-strcaseeq.texi: New file.
61964         * doc/c-strcasestr.texi: New file.
61965         * doc/c-strstr.texi: New file.
61966         * doc/c-strtod.texi: New file.
61967         * doc/c-strtold.texi: New file.
61968
61969 2008-01-10  Eric Blake  <ebb9@byu.net>
61970
61971         * lib/relocatable.h: Fix a comment.
61972
61973 2008-01-10  Eric Blake  <ebb9@byu.net>
61974
61975         Share two-way algorithm.
61976         * lib/str-two-way.h: New file, merged from...
61977         * lib/memmem.c: ...here...
61978         * lib/strstr.c: ...and here.
61979         * modules/memmem (Files): Use it.
61980         * modules/strstr (Files): Likewise.
61981
61982         Avoid quadratic strstr implementations.
61983         * lib/strstr.c: New file.
61984         * m4/strstr.m4: Likewise.
61985         * modules/strstr: Likewise.
61986         * modules/strstr-tests: Likewise.
61987         * tests/test-strstr.c: Likewise.
61988         * lib/string.in.h (rpl_strstr): Declare.
61989         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61991         * modules/string (Makefile.am): Likewise.
61992         * MODULES.html.sh (string handling): Mention new module.
61993         * doc/functions/strstr.texi (strstr): Document the bug.
61994
61995 2008-01-10  Bruno Haible  <bruno@clisp.org>
61996
61997         * lib/relocatable.h (relocate): State whether result is freshly
61998         allocated or not.
61999         * lib/relocatable.c (relocate): Return a freshly allocated string
62000         instead of a pointer to a privately held string.
62001         Reported by Sylvain Beucler <beuc@gnu.org>.
62002
62003 2008-01-10  Colin Watson  <cjwatson@debian.org>
62004
62005         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62006         s/S_ISNLK/S_ISLNK/.
62007
62008 2008-01-09  Bruno Haible  <bruno@clisp.org>
62009
62010         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62011         and other files.
62012         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62013         if it's only a guess.
62014         * modules/memmem: Simplify by depending on memmem-simple.
62015
62016 2008-01-09  Bruno Haible  <bruno@clisp.org>
62017
62018         Work around OpenBSD 4.0 tdelete() bug.
62019         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62020         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62021         macros and don't redefine the enum values.
62022         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62023         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62024         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62025
62026 2008-01-09  Bruno Haible  <bruno@clisp.org>
62027
62028         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62029         (main): Don't perform the tests if setlocale did not install a UTF-8
62030         locale. Needed on OpenBSD 4.0.
62031         * modules/wcwidth-tests (Depends-on): Add localcharset.
62032
62033 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62036         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62037         * NEWS: announce this.
62038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62039
62040 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62041         and Eric Blake  <ebb9@byu.net>
62042
62043         Add memmem-simple module.
62044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62045         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62046         * modules/memmem-simple: New file.
62047         * modules/memmem (Description): Tweak.
62048         * MODULES.html.sh (string handling): Mention new module.
62049         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62050         addressed by memmem-simple.
62051         * NEWS: Document the difference.
62052
62053 2008-01-09  Eric Blake  <ebb9@byu.net>
62054
62055         Give gcc some memmem optimization hints.
62056         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62057         (strcasestr): Declare as pure.
62058         * modules/memmem (Maintainer): Claim my implementation.
62059
62060 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62061
62062         Support AIX 6.1 and higher.
62063         * build-aux/config.libpath: Likewise.
62064         * build-aux/config.rpath: Likewise.
62065
62066 2008-01-08  Jim Meyering  <meyering@redhat.com>
62067             Bruno Haible  <bruno@clisp.org>
62068
62069         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62070         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62071         Reported by Peter Fales in
62072         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62073
62074 2008-01-08  Bruno Haible  <bruno@clisp.org>
62075
62076         * modules/unictype/category-of (Depends-on): Add
62077         unictype/category-none.
62078         * modules/unictype/category-and-tests (Depends-on): Add
62079         unictype/category-{L,N,Lu,Nd}.
62080         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62081         * modules/unictype/category-or-tests (Depends-on): Add
62082         unictype/category-{L,N}.
62083         * modules/unictype/category-name-tests (Depends-on): Add
62084         unictype/category-{Z,Nl}.
62085         Reported by Simon Josefsson.
62086
62087 2008-01-08  Bruno Haible  <bruno@clisp.org>
62088
62089         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62090         convention better.
62091         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62092         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62093         Reported by Peter Miller <millerp@canb.auug.org.au>.
62094
62095 2008-01-08  Eric Blake  <ebb9@byu.net>
62096
62097         Rewrite memmem to guarantee linear complexity without malloc.
62098         * lib/memmem.c (memmem): Use Two-Way rather than
62099         Knuth-Morris-Pratt, to allow O(1) space usage.
62100         (critical_factorization, two_way_short_needle)
62101         (two_way_long_needle): New functions.
62102         (knuth_morris_pratt): Delete.
62103         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62104         Add stdint.
62105         * tests/test-memmem.c (main): Add tests for periodic needle and
62106         sublinear performance.
62107         * doc/functions/memmem.texi (memmem): Document other deficiencies
62108         in cygwin and older glibc.
62109
62110 2008-01-08  Bruno Haible  <bruno@clisp.org>
62111
62112         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62113         augmentation.
62114
62115 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62116
62117         Add a configure time option: --disable-acl.
62118         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62119         AC_ARG_ENABLE(acl).
62120
62121 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62122
62123         * tests/test-localename.c: Don't include obsolete "setenv.h".
62124
62125         * modules/localename-tests (Depends-on): Need unsetenv.
62126
62127 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62128
62129         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62130
62131 2008-01-06  Colin Watson  <cjwatson@debian.org>
62132
62133         * users.txt: Add man-db.
62134
62135 2008-01-07  Bruno Haible  <bruno@clisp.org>
62136
62137         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62138         previous section name.
62139
62140 2008-01-07  Bruno Haible  <bruno@clisp.org>
62141
62142         * lib/progname.c (set_program_name): Don't strip off a leading
62143         "lt-" prefix outside a .libs directory.
62144         Suggested by Paul Eggert.
62145
62146 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62147             Bruno Haible  <bruno@clisp.org>
62148
62149         Improve memory cleanup in 'relocatable' module.
62150         * lib/relocatable.h (compute_curr_prefix): Change return type to
62151         'char *'.
62152         * lib/relocatable.c (compute_curr_prefix): Change return type to
62153         'char *'. Free curr_installdir after use.
62154         (relocate): Free curr_prefix_better after use.
62155         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62156
62157 2008-01-01  Bruno Haible  <bruno@clisp.org>
62158
62159         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62160         failure on older glibc systems.
62161         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62162
62163 2008-01-05  Eric Blake  <ebb9@byu.net>
62164
62165         Avoid quadratic system memmem.
62166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62167         Reported by Ralf Wildenhues.
62168
62169         Fix memmem test for mingw.
62170         * modules/memmem-tests (configure.ac): Check for alarm.
62171         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62172         it.
62173         * doc/functions/memmem.texi: New file.
62174         * doc/gnulib.texi (Function Substitutes): Add memmem.
62175         Reported by Bruno Haible.
62176
62177 2008-01-04  Bruno Haible  <bruno@clisp.org>
62178
62179         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62180         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62181         gl_HEADER_STRING_H_DEFAULTS.
62182
62183 2008-01-04  Eric Blake  <ebb9@byu.net>
62184
62185         Shorten duration of memmem test.
62186         * tests/test-memmem.c (main): Use alarm to declare failure if test
62187         is taking too long.
62188         Reported by Ralf Wildenhues.
62189
62190 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62191
62192         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62193         string, needed by strerror.
62194
62195 2008-01-03  Colin Watson  <cjwatson@debian.org>
62196             Bruno Haible  <bruno@clisp.org>
62197
62198         * doc/gnulib-tool.texi (Localization): New section.
62199
62200 2008-01-02  Bruno Haible  <bruno@clisp.org>
62201
62202         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62203         variables to 'unsigned char *' type.
62204         Reported by Paul Eggert.
62205
62206 2008-01-02  Jim Meyering  <jim@meyering.net>
62207
62208         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62209
62210 2007-12-31  Jim Meyering  <jim@meyering.net>
62211
62212         Avoid use of private FTS type name.
62213         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62214
62215 2007-12-30  Karl Berry  <karl@gnu.org>
62216
62217         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62218         work around defect in Texinfo and/or the standalone Info browser.
62219
62220 2007-12-30  Bruno Haible  <bruno@clisp.org>
62221
62222         Unify 5 copies of the KMP code.
62223         * lib/str-kmp.h: New file.
62224         * lib/c-strcasestr.c: Include str-kmp.h.
62225         (knuth_morris_pratt): Remove function.
62226         (c_strcasestr): Update.
62227         * lib/c-strstr.c: Include str-kmp.h.
62228         (knuth_morris_pratt): Remove function.
62229         (c_strcasestr): Update.
62230         * lib/mbscasestr.c: Include str-kmp.h.
62231         (knuth_morris_pratt_unibyte): Remove function.
62232         * lib/mbsstr.c: Include str-kmp.h.
62233         (knuth_morris_pratt_unibyte): Remove function.
62234         * lib/strcasestr.c: Include str-kmp.h.
62235         (knuth_morris_pratt): Remove function.
62236         (strcasestr): Update.
62237         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62238         * modules/c-strstr (Files): Likewise.
62239         * modules/mbscasestr (Files): Likewise.
62240         * modules/mbsstr (Files): Likewise.
62241         * modules/strcasestr (Files): Likewise.
62242         Suggested by Paul Eggert.
62243
62244 2007-12-30  Bruno Haible  <bruno@clisp.org>
62245
62246         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62247         defined.
62248
62249 2007-12-30  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/xmalloca.h: Include xalloc.h.
62252         (xnmalloca): New macro.
62253
62254 2007-12-30  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/malloca.h (nmalloca): New macro.
62257         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62258         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62259         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62260         knuth_morris_pratt_multibyte): Likewise.
62261         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62262         knuth_morris_pratt_multibyte): Likewise.
62263         * lib/memmem.c (knuth_morris_pratt): Likewise.
62264         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62265
62266 2007-12-25  Bruno Haible  <bruno@clisp.org>
62267
62268         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62269         * lib/glob.c: Don't include openat.h.
62270         (link_exists2_p): Add back the code that deals with the
62271         !GLOB_ALTDIRFUNC case.
62272         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62273         let it do the filename concatenation.
62274         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62275         * modules/glob (Depends-on): Remove openat.
62276
62277 2007-12-31  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/dirfd (License): Change to LGPLv2+.
62280         Approved by Jim Meyering.
62281
62282 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62285         when multiplying M by sizeof (size_t).
62286
62287 2007-12-10  Martin Lambers  <marlam@marlam.de>
62288
62289         Override getpagesize on mingw.
62290         * lib/getpagesize.c: New file.
62291         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62292         * modules/getpagesize (Files): Add lib/getpagesize.c.
62293         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62295         REPLACE_GETPAGESIZE.
62296         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62297
62298 2007-12-25  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/localcharset (Notice): New field.
62301         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62302         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62303
62304 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62305             Bruno Haible  <bruno@clisp.org>
62306
62307         Avoid using the syntax symbol() in formatted documentation.
62308         * MODULES.html.sh (func_module): When replacing symbol() with a
62309         hyperlink, remove the parentheses. Show an error if some remain.
62310         Recognize and render the '...' syntax.
62311         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62312         Rework. Add paragraph about GCC's inlining.
62313         * doc/alloca.texi: Likewise.
62314         * doc/error.texi: Remove parentheses from symbol reference.
62315         * doc/gnulib-intro.texi: Likewise.
62316         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62317         * modules/fnmatch (Description): Reword to say "the ... function".
62318         * modules/full-read (Description): Likewise.
62319         * modules/full-write (Description): Likewise.
62320         * modules/safe-read (Description): Likewise.
62321         * modules/safe-write (Description): Likewise.
62322         * modules/strchrnul (Description): Likewise.
62323         * modules/trim (Description): Likewise.
62324         * modules/error (Description): Remove parentheses from symbol
62325         references.
62326         * modules/verror (Description): Likewise.
62327         Reported by Karl Berry.
62328
62329 2007-12-25  Bruno Haible  <bruno@clisp.org>
62330
62331         Fixup after 2007-10-16 commit.
62332         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62333
62334 2007-12-24  Bruno Haible  <bruno@clisp.org>
62335
62336         Make --enable-relocatable work with DESTDIR.
62337         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62338         to compute installdir from destprog.
62339         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62340         also set the RELOC_DESTDIR variable.
62341         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62342
62343 2007-12-24  Bruno Haible  <bruno@clisp.org>
62344
62345         Fix link error due to xalloc_die().
62346         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62347         of xreadlink.
62348         * lib/relocwrapper.c: Update comments.
62349         * build-aux/install-reloc: Remove xreadlink.c from file list.
62350         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62351         xreadlink.c.
62352         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62353
62354 2007-12-24  Bruno Haible  <bruno@clisp.org>
62355
62356         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62357         * lib/setenv.h: Remove file.
62358         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62359         lib/setenv.h.
62360         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62361         (Depends-on): Add stdlib.
62362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62363         gl_FUNC_UNSETENV.
62364         (Include): Replace setenv.h with <stdlib.h>.
62365         * modules/unsetenv: New file.
62366         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62367         * lib/unsetenv.c: Include <stdlib.h> first.
62368         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62369         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62370         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62371         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62372         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62373         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62375         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62376         * doc/functions/unsetenv.texi: Update.
62377         * modules/xsetenv (Depends-on): Add unsetenv.
62378         * modules/getdate (Depends-on): Likewise.
62379         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62380         * lib/xsetenv.c: Don't include setenv.h.
62381         * lib/getdate.y: Likewise.
62382         * lib/relocwrapper.c: Likewise.
62383         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62384         (Depends-on): Add stdlib.
62385         * NEWS: Mention the changes.
62386         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62387
62388 2007-12-23  Bruno Haible  <bruno@clisp.org>
62389
62390         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62391         indentation.
62392
62393 2007-12-23  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/c-strcasestr.c: Add more comments.
62396         * lib/c-strstr.c: Likewise.
62397         * lib/mbscasestr.c: Likewise.
62398         * lib/mbsstr.c: Likewise.
62399         * lib/strcasestr.c: Likewise.
62400         * lib/memmem.c: Likewise.
62401
62402 2007-12-23  Bruno Haible  <bruno@clisp.org>
62403
62404         * tests/test-memmem.c: Include <string.h> first.
62405
62406 2007-12-22  Bruno Haible  <bruno@clisp.org>
62407
62408         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62409         the contents of $testsbase.
62410         Reported by Ralf Wildenhues.
62411
62412 2007-12-22  Bruno Haible  <bruno@clisp.org>
62413
62414         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62415         two variables local_ldadd_before, local_ldadd_last.
62416
62417 2007-12-20  Eric Blake  <ebb9@byu.net>
62418
62419         Work around circular library issue when cross-compiling.
62420         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62421         that progname.o does not need to pull in rpl_memcmp.
62422
62423 2007-12-19  Eric Blake  <ebb9@byu.net>
62424
62425         Fix memmem to avoid O(n^2) worst-case complexity.
62426         * lib/memmem.c (knuth_morris_pratt): New function.
62427         (memmem): Use it if first few naive iterations fail.
62428         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62429         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62430         * modules/memchr (License): Likewise.
62431         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62432         malloca.
62433         * tests/test-memmem.c: Rewrite, borrowing ideas from
62434         test-mbsstr1.c; the old version wouldn't even compile!
62435         * modules/memmem-tests: New file.
62436         * lib/string.in.h (rpl_memmem): Add declaration.
62437         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62439         REPLACE_MEMMEM.
62440
62441 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62444         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62445         before any system include files, and undef after them all.  This
62446         should fix a problem on VMS reported by John E. Malmberg in
62447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62448
62449 2007-12-17  Eric Blake  <ebb9@byu.net>
62450
62451         Revert addition of verify, for BSD/OS.
62452         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62453         can't handle large files, for the sake of obsolete platforms.
62454         * modules/fseeko (Depends-on): Remove verify.
62455         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62456         * doc/functions/ftello.texi (ftello): Likewise.
62457         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62458         Reported by Larry Jones.
62459
62460 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62461
62462         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62463         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62464
62465 2007-12-17  Jim Meyering  <meyering@redhat.com>
62466
62467         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62468         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62469         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62470         * modules/getcwd (Depends-on): Add openat.
62471         Reported by Petr Salinger.
62472
62473 2007-12-17  Bruno Haible  <bruno@clisp.org>
62474
62475         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62476         avoid a segmentation fault of the configure test on x86_64 systems.
62477
62478 2007-12-15  Jim Meyering  <meyering@redhat.com>
62479
62480         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62481
62482 2007-12-13  Eric Blake  <ebb9@byu.net>
62483
62484         Another fseek test.
62485         * tests/test-fseek.c (main): Also test ungetc handling.
62486         * tests/test-fseeko.c (main): Likewise.
62487         * modules/fseeko (Depends-on): Add verify.
62488         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62489         large.
62490         Reported by Larry Jones.
62491
62492         Fix fseeko on mingw.
62493         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62494         seek.
62495
62496         Beef up fseek tests.
62497         * tests/test-fseek.c (main): Also test eof handling.
62498         * tests/test-fseeko.c (main): Likewise.
62499         Reported by Larry Jones.
62500
62501 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62502
62503         Fix fseeko on BSD-based platforms.
62504         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62505         successful seek.
62506
62507 2007-12-12  Eric Blake  <ebb9@byu.net>
62508
62509         Allow circular dependency of separate libtests.a
62510         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62511         when use_libtests.
62512
62513 2007-12-11  Eric Blake  <ebb9@byu.net>
62514
62515         Fix bug with -0.0L in previous patch.
62516         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62517         * tests/test-isnan.c (main): Also test on zeroes.
62518         * tests/test-isnanf.c (main): Likewise.
62519         * tests/test-isnanl.h (main): Likewise.
62520
62521         Detect pseudo-denormals on x86 even when cross-compiling.
62522         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62523         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62524         invalid bit patterns that happen to satisfy ==.
62525
62526         Avoid link failures with separate libtests.a.
62527         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62528         last, to satisfy circular dependencies.
62529
62530 2007-12-11  Eric Blake  <ebb9@byu.net>
62531         and Bruno Haible  <bruno@clisp.org>
62532
62533         Fix OpenBSD 4.0 <float.h> handling of long double.
62534         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62535         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62536         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62537
62538 2007-12-11  Jim Meyering  <meyering@redhat.com>
62539
62540         * users.txt: Add libvirt.
62541
62542         Support versions of autoconf prior to 2.59c.
62543         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62544         if it is not already defined.
62545
62546 2007-12-09  Bruno Haible  <bruno@clisp.org>
62547
62548         Let 'gnulib-tool --import' collect sources needed for the tests in
62549         tests/ rather than in lib/.
62550         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62551         argument. If true, add rules to generate libtests.a, and put libtests.a
62552         into $(LDADD). Consider source files in subdirectories and set
62553         uses_subdirs.
62554         (func_emit_initmacro_start, func_emit_initmacro_end,
62555         func_emit_initmacro_done): Pass all arguments explicitly.
62556         (func_import): Determine two module lists main_modules,
62557         testsrelated_modules. Determine use_libtests. Determine two variables
62558         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62559         instead of just sed_transform_lib_file. Determine two variables
62560         main_files and testsrelated_files. Compute 'files' as the union of
62561         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62562         func_add_or_update. In the generated gnulib-comp.m4, collect the
62563         object files for tests/ in different variables than those for lib/.
62564         Substitute LIBTESTS_LIBDEPS.
62565         (func_create_testdir): Combine the uses_subdirs results from
62566         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62567
62568 2007-12-09  Bruno Haible  <bruno@clisp.org>
62569
62570         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62571         the build-aux directory.
62572
62573 2007-12-09  Bruno Haible  <bruno@clisp.org>
62574
62575         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62576         introduced on 2006-09-09.
62577
62578 2007-12-07  Jim Meyering  <meyering@redhat.com>
62579
62580         Let these macros work also with autoconf-2.59.
62581         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62582         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62584
62585 2007-12-06  Jim Meyering  <meyering@redhat.com>
62586
62587         Avoid a configure-time syntax error in gl_FUNC_ACL.
62588         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62589         function in each branch, before testing the cache variable.
62590
62591 2007-12-04  Eric Blake  <ebb9@byu.net>
62592
62593         Make scripts executable.
62594         * build-aux/config.guess: Add execute permissions.
62595         * build-aux/config.sub: Likewise.
62596         * build-aux/gendocs.sh: Likewise.
62597
62598         Fix frexp on mingw.
62599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62600         cross-compiling.
62601         * doc/functions/frexp.texi (frexp): Document the bug.
62602
62603         Make cygwin fseeko check more reliable.
62604         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62605         version numbers, rather than unrelated feature check.
62606         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62607         * doc/functions/ftello.texi (ftello): Likewise.
62608         Reported by Bruno Haible.
62609
62610         * m4/strerror.m4: Bump version number.
62611
62612 2007-12-03  Bruno Haible  <bruno@clisp.org>
62613
62614         * doc/functions/mprotect.texi: Mention the mingw problem.
62615
62616 2007-12-03  Eric Blake  <ebb9@byu.net>
62617
62618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62619         REPLACE_STRERROR is initialized before this macro.
62620
62621 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62624         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62625         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62626         put -lsec in even for programs other than 'ls'.  This fixes a problem
62627         for gettext reported by Bruno Haible in
62628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62629         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62630         Add support for Solaris 10.  This isn't efficient, but should get the
62631         job done for now.
62632
62633 2007-12-03  James Youngman  <jay@gnu.org>
62634
62635         * doc/regexprops-generic.texi: change "an close-group" to "a
62636         close-group" and "illegal" to "not allowed".
62637
62638 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62639
62640         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62641         pr_byname.h. Needed for the rare case when the maintainer has done
62642         "make maintainer-clean" in the source directory and then attempts a
62643         build outside the source directory.
62644         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62645         scripts_byname.h.
62646
62647 2007-12-02  Martin Lambers <marlam@marlam.de>
62648             Bruno Haible  <bruno@clisp.org>
62649
62650         * lib/getpagesize.h: Remove file.
62651         * lib/unistd.in.h: Include declaration of getpagesize here.
62652         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62653         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62654         HAVE_SYS_PARAM_H.
62655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62656         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62657         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62658         (Depends-on): Add unistd.
62659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62660         (Include): Use <unistd.h> instead of getpagesize.h.
62661         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62662         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62663         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62664         gl_GETPAGESIZE invocation, already handled by module dependency.
62665         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62666
62667 2007-12-02  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/strings-tests: New file.
62670         * tests/test-strings.c: New file.
62671
62672         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62673         * lib/strings.in.h: New file.
62674         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62675         * m4/strings_h.m4: New file.
62676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62677         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62678         * modules/strings: New file.
62679         * modules/string (Makefile.am): Update.
62680         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62681         Reported by Karl Berry.
62682
62683 2007-12-01  Eric Blake  <ebb9@byu.net>
62684
62685         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62686         accommodate fix in cygwin 1.5.25.
62687
62688 2007-12-01  Jim Meyering  <meyering@redhat.com>
62689
62690         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62691         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62692         that would inhibit utf8-optimization of a regexp containing line-
62693         or buffer-anchors, e.g., `^', `$'.
62694
62695 2007-11-30  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62698         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62699         glthread_recursive_lock_init.
62700         * lib/lock.c (glthread_recursive_lock_init)
62701         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62702         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62703
62704 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         New function qset_acl, like set_acl but with syscall semantics.
62707         * lib/acl.h (qset_acl): New decl.
62708         * lib/acl.c (qset_acl): New function.
62709         (set_acl): Use new function.  Use more-consistent diagnostics.
62710
62711 2007-11-28  Jim Meyering  <meyering@redhat.com>
62712
62713         * modules/physmem (License): Change from GPL to LGPLv2+.
62714
62715 2007-11-26  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62718         'long double' type has excess precision.
62719         Reported by Jim Meyering in
62720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62721
62722 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62723
62724         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62725         Sync from <http://gnu.org/licenses>.
62726         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62727         with license text from same location.
62728         * doc/maintain.texi, doc/standards.texi:  Sync from
62729         <http://savannah.gnu.org/projects/gnustandards>.
62730
62731 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62732         and Jim Meyering  <meyering@redhat.com>
62733
62734         Adjust getdate' grammar to accept a slightly more regular language.
62735         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62736         Before, the former was rejected.
62737         * lib/getdate.y (digits_to_date_time): New function, factored
62738         out of ...
62739         (number): ...here.  Just call digits_to_date_time.
62740         (hybrid): New non-terminal to handle an <unsigned number,
62741         signed relative offset> sequence consistently.
62742
62743 2007-11-18  Jim Meyering  <meyering@redhat.com>
62744
62745         Pull my changes from coreutils:
62746         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62747         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62748         use of $gnulib_tool_option_extras, so that it's separated from the
62749         preceding argument.
62750
62751         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62752         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62753         parent destination directories before copying a file into place.
62754
62755 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62756
62757         bootstrap: work also with 4-argument variant of AC_INIT
62758         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62759
62760 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         Port test-getaddrinfo to Solaris.
62763         Problem reported by Bruno Haible in
62764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62765         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62766         explanation of setting 'hints'.
62767         Don't reject an implementation merely because it returns EAI_SERVICE.
62768         (EAI_SERVICE): Define to 0 if not defined.
62769
62770 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         The license of gnu-make and posix-shell is now "GPLed build tool".
62773         * modules/gnu-make (License): Likewise.
62774         * modules/posix-shell (License): Likewise.
62775
62776         New module posix-shell, for determining a POSIX shell
62777         or perhaps something that is close enough to a POSIX shell.
62778         * m4/posix-shell.m4: New file.
62779         * modules/posix-shell: New file.
62780
62781         * MODULES.html.sh: Mention new module.
62782
62783         New module gnu-make, for determining whether we're using GNU Make.
62784         * m4/gnu-make.m4: New file.
62785         * modules/gnu-make: New file.
62786         * MODULES.html.sh: Mention new module.
62787
62788 2007-11-14  Jim Meyering  <meyering@redhat.com>
62789
62790         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62791         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62792         use this macro to create a function _definition_.
62793         Remove useless "#undef ARGMATCH_DIE".
62794
62795 2007-11-14  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/config.charset: Update for OpenBSD 4.1.
62798         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62799
62800 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         Document 64-bit #if problems in stdint.texi.
62803         * doc/headers/stdint.texi (stdint.h): Mention problems with
62804         64-bit-#if, and how to work around them.
62805
62806         Don't insist on 'long long int' support in the preprocessor.  It
62807         breaks too many things.  For example, PRIdMAX still uses a 'long
62808         long int' format with the latest Sun compiler, even though
62809         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62810         preprocessor problem.  This causes the latest coreutils to dump
62811         core on Solaris 10 sparc with the Sun C compiler.
62812         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62813         the troublesome expressions at configure-time, not at #if-time.
62814         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62815         preprocessor.
62816         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62817         compile-time C checks, done at 'configure'-time.
62818         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62819         * modules/inttypes (Makefile): Substitute the new symbols that
62820         gl_INTTYPES_H now generates.
62821         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62822
62823 2007-11-12  Bruno Haible  <bruno@clisp.org>
62824
62825         Tests for Unicode character classification functions.
62826
62827         * modules/unictype/bidicategory-byname-tests: New file.
62828         * modules/unictype/bidicategory-name-tests: New file.
62829         * modules/unictype/bidicategory-of-tests: New file.
62830         * modules/unictype/bidicategory-test-tests: New file.
62831         * modules/unictype/block-list-tests: New file.
62832         * modules/unictype/block-of-tests: New file.
62833         * modules/unictype/block-test-tests: New file.
62834         * modules/unictype/category-C-tests: New file.
62835         * modules/unictype/category-Cc-tests: New file.
62836         * modules/unictype/category-Cf-tests: New file.
62837         * modules/unictype/category-Cn-tests: New file.
62838         * modules/unictype/category-Co-tests: New file.
62839         * modules/unictype/category-Cs-tests: New file.
62840         * modules/unictype/category-L-tests: New file.
62841         * modules/unictype/category-Ll-tests: New file.
62842         * modules/unictype/category-Lm-tests: New file.
62843         * modules/unictype/category-Lo-tests: New file.
62844         * modules/unictype/category-Lt-tests: New file.
62845         * modules/unictype/category-Lu-tests: New file.
62846         * modules/unictype/category-M-tests: New file.
62847         * modules/unictype/category-Mc-tests: New file.
62848         * modules/unictype/category-Me-tests: New file.
62849         * modules/unictype/category-Mn-tests: New file.
62850         * modules/unictype/category-N-tests: New file.
62851         * modules/unictype/category-Nd-tests: New file.
62852         * modules/unictype/category-Nl-tests: New file.
62853         * modules/unictype/category-No-tests: New file.
62854         * modules/unictype/category-P-tests: New file.
62855         * modules/unictype/category-Pc-tests: New file.
62856         * modules/unictype/category-Pd-tests: New file.
62857         * modules/unictype/category-Pe-tests: New file.
62858         * modules/unictype/category-Pf-tests: New file.
62859         * modules/unictype/category-Pi-tests: New file.
62860         * modules/unictype/category-Po-tests: New file.
62861         * modules/unictype/category-Ps-tests: New file.
62862         * modules/unictype/category-S-tests: New file.
62863         * modules/unictype/category-Sc-tests: New file.
62864         * modules/unictype/category-Sk-tests: New file.
62865         * modules/unictype/category-Sm-tests: New file.
62866         * modules/unictype/category-So-tests: New file.
62867         * modules/unictype/category-Z-tests: New file.
62868         * modules/unictype/category-Zl-tests: New file.
62869         * modules/unictype/category-Zp-tests: New file.
62870         * modules/unictype/category-Zs-tests: New file.
62871         * modules/unictype/category-and-not-tests: New file.
62872         * modules/unictype/category-and-tests: New file.
62873         * modules/unictype/category-byname-tests: New file.
62874         * modules/unictype/category-name-tests: New file.
62875         * modules/unictype/category-none-tests: New file.
62876         * modules/unictype/category-of-tests: New file.
62877         * modules/unictype/category-or-tests: New file.
62878         * modules/unictype/category-test-withtable-tests: New file.
62879         * modules/unictype/combining-class-tests: New file.
62880         * modules/unictype/ctype-alnum-tests: New file.
62881         * modules/unictype/ctype-alpha-tests: New file.
62882         * modules/unictype/ctype-blank-tests: New file.
62883         * modules/unictype/ctype-cntrl-tests: New file.
62884         * modules/unictype/ctype-digit-tests: New file.
62885         * modules/unictype/ctype-graph-tests: New file.
62886         * modules/unictype/ctype-lower-tests: New file.
62887         * modules/unictype/ctype-print-tests: New file.
62888         * modules/unictype/ctype-punct-tests: New file.
62889         * modules/unictype/ctype-space-tests: New file.
62890         * modules/unictype/ctype-upper-tests: New file.
62891         * modules/unictype/ctype-xdigit-tests: New file.
62892         * modules/unictype/decimal-digit-tests: New file.
62893         * modules/unictype/digit-tests: New file.
62894         * modules/unictype/mirror-tests: New file.
62895         * modules/unictype/numeric-tests: New file.
62896         * modules/unictype/property-alphabetic-tests: New file.
62897         * modules/unictype/property-ascii-hex-digit-tests: New file.
62898         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62899         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62900         * modules/unictype/property-bidi-block-separator-tests: New file.
62901         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62902         * modules/unictype/property-bidi-common-separator-tests: New file.
62903         * modules/unictype/property-bidi-control-tests: New file.
62904         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62905         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62906         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62907         * modules/unictype/property-bidi-european-digit-tests: New file.
62908         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62909         * modules/unictype/property-bidi-left-to-right-tests: New file.
62910         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62911         * modules/unictype/property-bidi-other-neutral-tests: New file.
62912         * modules/unictype/property-bidi-pdf-tests: New file.
62913         * modules/unictype/property-bidi-segment-separator-tests: New file.
62914         * modules/unictype/property-bidi-whitespace-tests: New file.
62915         * modules/unictype/property-byname-tests: New file.
62916         * modules/unictype/property-combining-tests: New file.
62917         * modules/unictype/property-composite-tests: New file.
62918         * modules/unictype/property-currency-symbol-tests: New file.
62919         * modules/unictype/property-dash-tests: New file.
62920         * modules/unictype/property-decimal-digit-tests: New file.
62921         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62922         * modules/unictype/property-deprecated-tests: New file.
62923         * modules/unictype/property-diacritic-tests: New file.
62924         * modules/unictype/property-extender-tests: New file.
62925         * modules/unictype/property-format-control-tests: New file.
62926         * modules/unictype/property-grapheme-base-tests: New file.
62927         * modules/unictype/property-grapheme-extend-tests: New file.
62928         * modules/unictype/property-grapheme-link-tests: New file.
62929         * modules/unictype/property-hex-digit-tests: New file.
62930         * modules/unictype/property-hyphen-tests: New file.
62931         * modules/unictype/property-id-continue-tests: New file.
62932         * modules/unictype/property-id-start-tests: New file.
62933         * modules/unictype/property-ideographic-tests: New file.
62934         * modules/unictype/property-ids-binary-operator-tests: New file.
62935         * modules/unictype/property-ids-trinary-operator-tests: New file.
62936         * modules/unictype/property-ignorable-control-tests: New file.
62937         * modules/unictype/property-iso-control-tests: New file.
62938         * modules/unictype/property-join-control-tests: New file.
62939         * modules/unictype/property-left-of-pair-tests: New file.
62940         * modules/unictype/property-line-separator-tests: New file.
62941         * modules/unictype/property-logical-order-exception-tests: New file.
62942         * modules/unictype/property-lowercase-tests: New file.
62943         * modules/unictype/property-math-tests: New file.
62944         * modules/unictype/property-non-break-tests: New file.
62945         * modules/unictype/property-not-a-character-tests: New file.
62946         * modules/unictype/property-numeric-tests: New file.
62947         * modules/unictype/property-other-alphabetic-tests: New file.
62948         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62949         * modules/unictype/property-other-grapheme-extend-tests: New file.
62950         * modules/unictype/property-other-id-continue-tests: New file.
62951         * modules/unictype/property-other-id-start-tests: New file.
62952         * modules/unictype/property-other-lowercase-tests: New file.
62953         * modules/unictype/property-other-math-tests: New file.
62954         * modules/unictype/property-other-uppercase-tests: New file.
62955         * modules/unictype/property-paired-punctuation-tests: New file.
62956         * modules/unictype/property-paragraph-separator-tests: New file.
62957         * modules/unictype/property-pattern-syntax-tests: New file.
62958         * modules/unictype/property-pattern-white-space-tests: New file.
62959         * modules/unictype/property-private-use-tests: New file.
62960         * modules/unictype/property-punctuation-tests: New file.
62961         * modules/unictype/property-quotation-mark-tests: New file.
62962         * modules/unictype/property-radical-tests: New file.
62963         * modules/unictype/property-sentence-terminal-tests: New file.
62964         * modules/unictype/property-soft-dotted-tests: New file.
62965         * modules/unictype/property-space-tests: New file.
62966         * modules/unictype/property-terminal-punctuation-tests: New file.
62967         * modules/unictype/property-test-tests: New file.
62968         * modules/unictype/property-titlecase-tests: New file.
62969         * modules/unictype/property-unassigned-code-value-tests: New file.
62970         * modules/unictype/property-unified-ideograph-tests: New file.
62971         * modules/unictype/property-uppercase-tests: New file.
62972         * modules/unictype/property-variation-selector-tests: New file.
62973         * modules/unictype/property-white-space-tests: New file.
62974         * modules/unictype/property-xid-continue-tests: New file.
62975         * modules/unictype/property-xid-start-tests: New file.
62976         * modules/unictype/property-zero-width-tests: New file.
62977         * modules/unictype/scripts-tests: New file.
62978         * modules/unictype/syntax-c-ident-tests: New file.
62979         * modules/unictype/syntax-c-whitespace-tests: New file.
62980         * modules/unictype/syntax-java-ident-tests: New file.
62981         * modules/unictype/syntax-java-whitespace-tests: New file.
62982         * tests/unictype/test-bidi_byname.c: New file.
62983         * tests/unictype/test-bidi_name.c: New file.
62984         * tests/unictype/test-bidi_of.c: New file.
62985         * tests/unictype/test-bidi_test.c: New file.
62986         * tests/unictype/test-block_list.c: New file.
62987         * tests/unictype/test-block_of.c: New file.
62988         * tests/unictype/test-block_test.c: New file.
62989         * tests/unictype/test-categ_and.c: New file.
62990         * tests/unictype/test-categ_and_not.c: New file.
62991         * tests/unictype/test-categ_byname.c: New file.
62992         * tests/unictype/test-categ_name.c: New file.
62993         * tests/unictype/test-categ_none.c: New file.
62994         * tests/unictype/test-categ_of.c: New file.
62995         * tests/unictype/test-categ_or.c: New file.
62996         * tests/unictype/test-categ_test_withtable.c: New file.
62997         * tests/unictype/test-combining.c: New file.
62998         * tests/unictype/test-decdigit.c: New file.
62999         * tests/unictype/test-digit.c: New file.
63000         * tests/unictype/test-mirror.c: New file.
63001         * tests/unictype/test-numeric.c: New file.
63002         * tests/unictype/test-pr_byname.c: New file.
63003         * tests/unictype/test-pr_test.c: New file.
63004         * tests/unictype/test-predicate-part1.h: New file.
63005         * tests/unictype/test-predicate-part2.h: New file.
63006         * tests/unictype/test-scripts.c: New file.
63007         * tests/unictype/test-sy_c_ident.c: New file.
63008         * tests/unictype/test-sy_java_ident.c: New file.
63009
63010         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63011         for Unicode 5.0.0.
63012         * tests/unictype/test-categ_Cc.c: Likewise.
63013         * tests/unictype/test-categ_Cf.c: Likewise.
63014         * tests/unictype/test-categ_Cn.c: Likewise.
63015         * tests/unictype/test-categ_Co.c: Likewise.
63016         * tests/unictype/test-categ_Cs.c: Likewise.
63017         * tests/unictype/test-categ_L.c: Likewise.
63018         * tests/unictype/test-categ_Ll.c: Likewise.
63019         * tests/unictype/test-categ_Lm.c: Likewise.
63020         * tests/unictype/test-categ_Lo.c: Likewise.
63021         * tests/unictype/test-categ_Lt.c: Likewise.
63022         * tests/unictype/test-categ_Lu.c: Likewise.
63023         * tests/unictype/test-categ_M.c: Likewise.
63024         * tests/unictype/test-categ_Mc.c: Likewise.
63025         * tests/unictype/test-categ_Me.c: Likewise.
63026         * tests/unictype/test-categ_Mn.c: Likewise.
63027         * tests/unictype/test-categ_N.c: Likewise.
63028         * tests/unictype/test-categ_Nd.c: Likewise.
63029         * tests/unictype/test-categ_Nl.c: Likewise.
63030         * tests/unictype/test-categ_No.c: Likewise.
63031         * tests/unictype/test-categ_P.c: Likewise.
63032         * tests/unictype/test-categ_Pc.c: Likewise.
63033         * tests/unictype/test-categ_Pd.c: Likewise.
63034         * tests/unictype/test-categ_Pe.c: Likewise.
63035         * tests/unictype/test-categ_Pf.c: Likewise.
63036         * tests/unictype/test-categ_Pi.c: Likewise.
63037         * tests/unictype/test-categ_Po.c: Likewise.
63038         * tests/unictype/test-categ_Ps.c: Likewise.
63039         * tests/unictype/test-categ_S.c: Likewise.
63040         * tests/unictype/test-categ_Sc.c: Likewise.
63041         * tests/unictype/test-categ_Sk.c: Likewise.
63042         * tests/unictype/test-categ_Sm.c: Likewise.
63043         * tests/unictype/test-categ_So.c: Likewise.
63044         * tests/unictype/test-categ_Z.c: Likewise.
63045         * tests/unictype/test-categ_Zl.c: Likewise.
63046         * tests/unictype/test-categ_Zp.c: Likewise.
63047         * tests/unictype/test-categ_Zs.c: Likewise.
63048         * tests/unictype/test-ctype_alnum.c: Likewise.
63049         * tests/unictype/test-ctype_alpha.c: Likewise.
63050         * tests/unictype/test-ctype_blank.c: Likewise.
63051         * tests/unictype/test-ctype_cntrl.c: Likewise.
63052         * tests/unictype/test-ctype_digit.c: Likewise.
63053         * tests/unictype/test-ctype_graph.c: Likewise.
63054         * tests/unictype/test-ctype_lower.c: Likewise.
63055         * tests/unictype/test-ctype_print.c: Likewise.
63056         * tests/unictype/test-ctype_punct.c: Likewise.
63057         * tests/unictype/test-ctype_space.c: Likewise.
63058         * tests/unictype/test-ctype_upper.c: Likewise.
63059         * tests/unictype/test-ctype_xdigit.c: Likewise.
63060         * tests/unictype/test-decdigit.h: Likewise.
63061         * tests/unictype/test-digit.h: Likewise.
63062         * tests/unictype/test-numeric.h: Likewise.
63063         * tests/unictype/test-pr_alphabetic.c: Likewise.
63064         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63065         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63066         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63067         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63068         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63069         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63070         * tests/unictype/test-pr_bidi_control.c: Likewise.
63071         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63072         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63073         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63074         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63075         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63076         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63077         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63078         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63079         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63080         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63081         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63082         * tests/unictype/test-pr_combining.c: Likewise.
63083         * tests/unictype/test-pr_composite.c: Likewise.
63084         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63085         * tests/unictype/test-pr_dash.c: Likewise.
63086         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63087         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63088         * tests/unictype/test-pr_deprecated.c: Likewise.
63089         * tests/unictype/test-pr_diacritic.c: Likewise.
63090         * tests/unictype/test-pr_extender.c: Likewise.
63091         * tests/unictype/test-pr_format_control.c: Likewise.
63092         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63093         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63094         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63095         * tests/unictype/test-pr_hex_digit.c: Likewise.
63096         * tests/unictype/test-pr_hyphen.c: Likewise.
63097         * tests/unictype/test-pr_id_continue.c: Likewise.
63098         * tests/unictype/test-pr_id_start.c: Likewise.
63099         * tests/unictype/test-pr_ideographic.c: Likewise.
63100         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63101         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63102         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63103         * tests/unictype/test-pr_iso_control.c: Likewise.
63104         * tests/unictype/test-pr_join_control.c: Likewise.
63105         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63106         * tests/unictype/test-pr_line_separator.c: Likewise.
63107         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63108         * tests/unictype/test-pr_lowercase.c: Likewise.
63109         * tests/unictype/test-pr_math.c: Likewise.
63110         * tests/unictype/test-pr_non_break.c: Likewise.
63111         * tests/unictype/test-pr_not_a_character.c: Likewise.
63112         * tests/unictype/test-pr_numeric.c: Likewise.
63113         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63114         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63115         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63116         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63117         * tests/unictype/test-pr_other_id_start.c: Likewise.
63118         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63119         * tests/unictype/test-pr_other_math.c: Likewise.
63120         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63121         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63122         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63123         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63124         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63125         * tests/unictype/test-pr_private_use.c: Likewise.
63126         * tests/unictype/test-pr_punctuation.c: Likewise.
63127         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63128         * tests/unictype/test-pr_radical.c: Likewise.
63129         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63130         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63131         * tests/unictype/test-pr_space.c: Likewise.
63132         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63133         * tests/unictype/test-pr_titlecase.c: Likewise.
63134         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63135         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63136         * tests/unictype/test-pr_uppercase.c: Likewise.
63137         * tests/unictype/test-pr_variation_selector.c: Likewise.
63138         * tests/unictype/test-pr_white_space.c: Likewise.
63139         * tests/unictype/test-pr_xid_continue.c: Likewise.
63140         * tests/unictype/test-pr_xid_start.c: Likewise.
63141         * tests/unictype/test-pr_zero_width.c: Likewise.
63142         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63143         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63144
63145 2007-11-12  Bruno Haible  <bruno@clisp.org>
63146
63147         Unicode character classification functions.
63148         * lib/unictype.h: New file.
63149         * modules/unictype/base: New file.
63150         * modules/unictype/category-L: New file.
63151         * modules/unictype/category-Lu: New file.
63152         * modules/unictype/category-Ll: New file.
63153         * modules/unictype/category-Lt: New file.
63154         * modules/unictype/category-Lm: New file.
63155         * modules/unictype/category-Lo: New file.
63156         * modules/unictype/category-M: New file.
63157         * modules/unictype/category-Mn: New file.
63158         * modules/unictype/category-Mc: New file.
63159         * modules/unictype/category-Me: New file.
63160         * modules/unictype/category-N: New file.
63161         * modules/unictype/category-Nd: New file.
63162         * modules/unictype/category-Nl: New file.
63163         * modules/unictype/category-No: New file.
63164         * modules/unictype/category-P: New file.
63165         * modules/unictype/category-Pc: New file.
63166         * modules/unictype/category-Pd: New file.
63167         * modules/unictype/category-Ps: New file.
63168         * modules/unictype/category-Pe: New file.
63169         * modules/unictype/category-Pi: New file.
63170         * modules/unictype/category-Pf: New file.
63171         * modules/unictype/category-Po: New file.
63172         * modules/unictype/category-S: New file.
63173         * modules/unictype/category-Sm: New file.
63174         * modules/unictype/category-Sc: New file.
63175         * modules/unictype/category-Sk: New file.
63176         * modules/unictype/category-So: New file.
63177         * modules/unictype/category-Z: New file.
63178         * modules/unictype/category-Zs: New file.
63179         * modules/unictype/category-Zl: New file.
63180         * modules/unictype/category-Zp: New file.
63181         * modules/unictype/category-C: New file.
63182         * modules/unictype/category-Cc: New file.
63183         * modules/unictype/category-Cf: New file.
63184         * modules/unictype/category-Cs: New file.
63185         * modules/unictype/category-Co: New file.
63186         * modules/unictype/category-Cn: New file.
63187         * modules/unictype/category-or: New file.
63188         * modules/unictype/category-of: New file.
63189         * modules/unictype/category-test: New file.
63190         * modules/unictype/category-test-withtable: New file.
63191         * modules/unictype/category-byname: New file.
63192         * modules/unictype/category-none: New file.
63193         * modules/unictype/category-and: New file.
63194         * modules/unictype/category-and-not: New file.
63195         * modules/unictype/category-name: New file.
63196         * modules/unictype/combining-class: New file.
63197         * modules/unictype/category-all: New file.
63198         * modules/unictype/bidicategory-all: New file.
63199         * modules/unictype/bidicategory-byname: New file.
63200         * modules/unictype/bidicategory-name: New file.
63201         * modules/unictype/bidicategory-of: New file.
63202         * modules/unictype/bidicategory-test: New file.
63203         * modules/unictype/decimal-digit: New file.
63204         * modules/unictype/digit: New file.
63205         * modules/unictype/numeric: New file.
63206         * modules/unictype/mirror: New file.
63207         * modules/unictype/property-white-space: New file.
63208         * modules/unictype/property-alphabetic: New file.
63209         * modules/unictype/property-other-alphabetic: New file.
63210         * modules/unictype/property-not-a-character: New file.
63211         * modules/unictype/property-default-ignorable-code-point: New file.
63212         * modules/unictype/property-other-default-ignorable-code-point: New
63213         file.
63214         * modules/unictype/property-deprecated: New file.
63215         * modules/unictype/property-logical-order-exception: New file.
63216         * modules/unictype/property-variation-selector: New file.
63217         * modules/unictype/property-private-use: New file.
63218         * modules/unictype/property-unassigned-code-value: New file.
63219         * modules/unictype/property-uppercase: New file.
63220         * modules/unictype/property-other-uppercase: New file.
63221         * modules/unictype/property-lowercase: New file.
63222         * modules/unictype/property-other-lowercase: New file.
63223         * modules/unictype/property-titlecase: New file.
63224         * modules/unictype/property-soft-dotted: New file.
63225         * modules/unictype/property-id-start: New file.
63226         * modules/unictype/property-other-id-start: New file.
63227         * modules/unictype/property-id-continue: New file.
63228         * modules/unictype/property-other-id-continue: New file.
63229         * modules/unictype/property-xid-start: New file.
63230         * modules/unictype/property-xid-continue: New file.
63231         * modules/unictype/property-pattern-white-space: New file.
63232         * modules/unictype/property-pattern-syntax: New file.
63233         * modules/unictype/property-join-control: New file.
63234         * modules/unictype/property-grapheme-base: New file.
63235         * modules/unictype/property-grapheme-extend: New file.
63236         * modules/unictype/property-other-grapheme-extend: New file.
63237         * modules/unictype/property-grapheme-link: New file.
63238         * modules/unictype/property-bidi-control: New file.
63239         * modules/unictype/property-bidi-left-to-right: New file.
63240         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63241         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63242         * modules/unictype/property-bidi-european-digit: New file.
63243         * modules/unictype/property-bidi-eur-num-separator: New file.
63244         * modules/unictype/property-bidi-eur-num-terminator: New file.
63245         * modules/unictype/property-bidi-arabic-digit: New file.
63246         * modules/unictype/property-bidi-common-separator: New file.
63247         * modules/unictype/property-bidi-block-separator: New file.
63248         * modules/unictype/property-bidi-segment-separator: New file.
63249         * modules/unictype/property-bidi-whitespace: New file.
63250         * modules/unictype/property-bidi-non-spacing-mark: New file.
63251         * modules/unictype/property-bidi-boundary-neutral: New file.
63252         * modules/unictype/property-bidi-pdf: New file.
63253         * modules/unictype/property-bidi-embedding-or-override: New file.
63254         * modules/unictype/property-bidi-other-neutral: New file.
63255         * modules/unictype/property-hex-digit: New file.
63256         * modules/unictype/property-ascii-hex-digit: New file.
63257         * modules/unictype/property-ideographic: New file.
63258         * modules/unictype/property-unified-ideograph: New file.
63259         * modules/unictype/property-radical: New file.
63260         * modules/unictype/property-ids-binary-operator: New file.
63261         * modules/unictype/property-ids-trinary-operator: New file.
63262         * modules/unictype/property-zero-width: New file.
63263         * modules/unictype/property-space: New file.
63264         * modules/unictype/property-non-break: New file.
63265         * modules/unictype/property-iso-control: New file.
63266         * modules/unictype/property-format-control: New file.
63267         * modules/unictype/property-dash: New file.
63268         * modules/unictype/property-hyphen: New file.
63269         * modules/unictype/property-punctuation: New file.
63270         * modules/unictype/property-line-separator: New file.
63271         * modules/unictype/property-paragraph-separator: New file.
63272         * modules/unictype/property-quotation-mark: New file.
63273         * modules/unictype/property-sentence-terminal: New file.
63274         * modules/unictype/property-terminal-punctuation: New file.
63275         * modules/unictype/property-currency-symbol: New file.
63276         * modules/unictype/property-math: New file.
63277         * modules/unictype/property-other-math: New file.
63278         * modules/unictype/property-paired-punctuation: New file.
63279         * modules/unictype/property-left-of-pair: New file.
63280         * modules/unictype/property-combining: New file.
63281         * modules/unictype/property-composite: New file.
63282         * modules/unictype/property-decimal-digit: New file.
63283         * modules/unictype/property-numeric: New file.
63284         * modules/unictype/property-diacritic: New file.
63285         * modules/unictype/property-extender: New file.
63286         * modules/unictype/property-ignorable-control: New file.
63287         * modules/unictype/property-test: New file.
63288         * modules/unictype/property-byname: New file.
63289         * modules/unictype/property-all: New file.
63290         * modules/unictype/scripts: New file.
63291         * modules/unictype/scripts-all: New file.
63292         * modules/unictype/block-of: New file.
63293         * modules/unictype/block-test: New file.
63294         * modules/unictype/block-list: New file.
63295         * modules/unictype/block-all: New file.
63296         * modules/unictype/syntax-c-whitespace: New file.
63297         * modules/unictype/syntax-java-whitespace: New file.
63298         * modules/unictype/syntax-c-ident: New file.
63299         * modules/unictype/syntax-java-ident: New file.
63300         * modules/unictype/ctype-alnum: New file.
63301         * modules/unictype/ctype-alpha: New file.
63302         * modules/unictype/ctype-cntrl: New file.
63303         * modules/unictype/ctype-digit: New file.
63304         * modules/unictype/ctype-graph: New file.
63305         * modules/unictype/ctype-lower: New file.
63306         * modules/unictype/ctype-print: New file.
63307         * modules/unictype/ctype-punct: New file.
63308         * modules/unictype/ctype-space: New file.
63309         * modules/unictype/ctype-upper: New file.
63310         * modules/unictype/ctype-xdigit: New file.
63311         * modules/unictype/ctype-blank: New file.
63312         * lib/unictype/bidi_byname.c: New file.
63313         * lib/unictype/bidi_name.c: New file.
63314         * lib/unictype/bidi_of.c: New file.
63315         * lib/unictype/bidi_test.c: New file.
63316         * lib/unictype/bitmap.h: New file.
63317         * lib/unictype/block_test.c: New file.
63318         * lib/unictype/blocks.c: New file.
63319         * lib/unictype/categ_C.c: New file.
63320         * lib/unictype/categ_Cc.c: New file.
63321         * lib/unictype/categ_Cf.c: New file.
63322         * lib/unictype/categ_Cn.c: New file.
63323         * lib/unictype/categ_Co.c: New file.
63324         * lib/unictype/categ_Cs.c: New file.
63325         * lib/unictype/categ_L.c: New file.
63326         * lib/unictype/categ_Ll.c: New file.
63327         * lib/unictype/categ_Lm.c: New file.
63328         * lib/unictype/categ_Lo.c: New file.
63329         * lib/unictype/categ_Lt.c: New file.
63330         * lib/unictype/categ_Lu.c: New file.
63331         * lib/unictype/categ_M.c: New file.
63332         * lib/unictype/categ_Mc.c: New file.
63333         * lib/unictype/categ_Me.c: New file.
63334         * lib/unictype/categ_Mn.c: New file.
63335         * lib/unictype/categ_N.c: New file.
63336         * lib/unictype/categ_Nd.c: New file.
63337         * lib/unictype/categ_Nl.c: New file.
63338         * lib/unictype/categ_No.c: New file.
63339         * lib/unictype/categ_P.c: New file.
63340         * lib/unictype/categ_Pc.c: New file.
63341         * lib/unictype/categ_Pd.c: New file.
63342         * lib/unictype/categ_Pe.c: New file.
63343         * lib/unictype/categ_Pf.c: New file.
63344         * lib/unictype/categ_Pi.c: New file.
63345         * lib/unictype/categ_Po.c: New file.
63346         * lib/unictype/categ_Ps.c: New file.
63347         * lib/unictype/categ_S.c: New file.
63348         * lib/unictype/categ_Sc.c: New file.
63349         * lib/unictype/categ_Sk.c: New file.
63350         * lib/unictype/categ_Sm.c: New file.
63351         * lib/unictype/categ_So.c: New file.
63352         * lib/unictype/categ_Z.c: New file.
63353         * lib/unictype/categ_Zl.c: New file.
63354         * lib/unictype/categ_Zp.c: New file.
63355         * lib/unictype/categ_Zs.c: New file.
63356         * lib/unictype/categ_and.c: New file.
63357         * lib/unictype/categ_and_not.c: New file.
63358         * lib/unictype/categ_byname.c: New file.
63359         * lib/unictype/categ_name.c: New file.
63360         * lib/unictype/categ_none.c: New file.
63361         * lib/unictype/categ_of.c: New file.
63362         * lib/unictype/categ_or.c: New file.
63363         * lib/unictype/categ_test.c: New file.
63364         * lib/unictype/combining.c: New file.
63365         * lib/unictype/ctype_alnum.c: New file.
63366         * lib/unictype/ctype_alpha.c: New file.
63367         * lib/unictype/ctype_blank.c: New file.
63368         * lib/unictype/ctype_cntrl.c: New file.
63369         * lib/unictype/ctype_digit.c: New file.
63370         * lib/unictype/ctype_graph.c: New file.
63371         * lib/unictype/ctype_lower.c: New file.
63372         * lib/unictype/ctype_print.c: New file.
63373         * lib/unictype/ctype_punct.c: New file.
63374         * lib/unictype/ctype_space.c: New file.
63375         * lib/unictype/ctype_upper.c: New file.
63376         * lib/unictype/ctype_xdigit.c: New file.
63377         * lib/unictype/decdigit.c: New file.
63378         * lib/unictype/digit.c: New file.
63379         * lib/unictype/identsyntaxmap.h: New file.
63380         * lib/unictype/mirror.c: New file.
63381         * lib/unictype/numeric.c: New file.
63382         * lib/unictype/pr_alphabetic.c: New file.
63383         * lib/unictype/pr_ascii_hex_digit.c: New file.
63384         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63385         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63386         * lib/unictype/pr_bidi_block_separator.c: New file.
63387         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63388         * lib/unictype/pr_bidi_common_separator.c: New file.
63389         * lib/unictype/pr_bidi_control.c: New file.
63390         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63391         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63392         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63393         * lib/unictype/pr_bidi_european_digit.c: New file.
63394         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63395         * lib/unictype/pr_bidi_left_to_right.c: New file.
63396         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63397         * lib/unictype/pr_bidi_other_neutral.c: New file.
63398         * lib/unictype/pr_bidi_pdf.c: New file.
63399         * lib/unictype/pr_bidi_segment_separator.c: New file.
63400         * lib/unictype/pr_bidi_whitespace.c: New file.
63401         * lib/unictype/pr_byname.c: New file.
63402         * lib/unictype/pr_byname.gperf: New file.
63403         * lib/unictype/pr_combining.c: New file.
63404         * lib/unictype/pr_composite.c: New file.
63405         * lib/unictype/pr_currency_symbol.c: New file.
63406         * lib/unictype/pr_dash.c: New file.
63407         * lib/unictype/pr_decimal_digit.c: New file.
63408         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63409         * lib/unictype/pr_deprecated.c: New file.
63410         * lib/unictype/pr_diacritic.c: New file.
63411         * lib/unictype/pr_extender.c: New file.
63412         * lib/unictype/pr_format_control.c: New file.
63413         * lib/unictype/pr_grapheme_base.c: New file.
63414         * lib/unictype/pr_grapheme_extend.c: New file.
63415         * lib/unictype/pr_grapheme_link.c: New file.
63416         * lib/unictype/pr_hex_digit.c: New file.
63417         * lib/unictype/pr_hyphen.c: New file.
63418         * lib/unictype/pr_id_continue.c: New file.
63419         * lib/unictype/pr_id_start.c: New file.
63420         * lib/unictype/pr_ideographic.c: New file.
63421         * lib/unictype/pr_ids_binary_operator.c: New file.
63422         * lib/unictype/pr_ids_trinary_operator.c: New file.
63423         * lib/unictype/pr_ignorable_control.c: New file.
63424         * lib/unictype/pr_iso_control.c: New file.
63425         * lib/unictype/pr_join_control.c: New file.
63426         * lib/unictype/pr_left_of_pair.c: New file.
63427         * lib/unictype/pr_line_separator.c: New file.
63428         * lib/unictype/pr_logical_order_exception.c: New file.
63429         * lib/unictype/pr_lowercase.c: New file.
63430         * lib/unictype/pr_math.c: New file.
63431         * lib/unictype/pr_non_break.c: New file.
63432         * lib/unictype/pr_not_a_character.c: New file.
63433         * lib/unictype/pr_numeric.c: New file.
63434         * lib/unictype/pr_other_alphabetic.c: New file.
63435         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63436         * lib/unictype/pr_other_grapheme_extend.c: New file.
63437         * lib/unictype/pr_other_id_continue.c: New file.
63438         * lib/unictype/pr_other_id_start.c: New file.
63439         * lib/unictype/pr_other_lowercase.c: New file.
63440         * lib/unictype/pr_other_math.c: New file.
63441         * lib/unictype/pr_other_uppercase.c: New file.
63442         * lib/unictype/pr_paired_punctuation.c: New file.
63443         * lib/unictype/pr_paragraph_separator.c: New file.
63444         * lib/unictype/pr_pattern_syntax.c: New file.
63445         * lib/unictype/pr_pattern_white_space.c: New file.
63446         * lib/unictype/pr_private_use.c: New file.
63447         * lib/unictype/pr_punctuation.c: New file.
63448         * lib/unictype/pr_quotation_mark.c: New file.
63449         * lib/unictype/pr_radical.c: New file.
63450         * lib/unictype/pr_sentence_terminal.c: New file.
63451         * lib/unictype/pr_soft_dotted.c: New file.
63452         * lib/unictype/pr_space.c: New file.
63453         * lib/unictype/pr_terminal_punctuation.c: New file.
63454         * lib/unictype/pr_test.c: New file.
63455         * lib/unictype/pr_titlecase.c: New file.
63456         * lib/unictype/pr_unassigned_code_value.c: New file.
63457         * lib/unictype/pr_unified_ideograph.c: New file.
63458         * lib/unictype/pr_uppercase.c: New file.
63459         * lib/unictype/pr_variation_selector.c: New file.
63460         * lib/unictype/pr_white_space.c: New file.
63461         * lib/unictype/pr_xid_continue.c: New file.
63462         * lib/unictype/pr_xid_start.c: New file.
63463         * lib/unictype/pr_zero_width.c: New file.
63464         * lib/unictype/scripts.c: New file.
63465         * lib/unictype/sy_c_ident.c: New file.
63466         * lib/unictype/sy_c_whitespace.c: New file.
63467         * lib/unictype/sy_java_ident.c: New file.
63468         * lib/unictype/sy_java_whitespace.c: New file.
63469
63470         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63471         Unicode 5.0.0.
63472         * lib/unictype/blocks.h: Likewise.
63473         * lib/unictype/categ_C.h: Likewise.
63474         * lib/unictype/categ_Cc.h: Likewise.
63475         * lib/unictype/categ_Cf.h: Likewise.
63476         * lib/unictype/categ_Cn.h: Likewise.
63477         * lib/unictype/categ_Co.h: Likewise.
63478         * lib/unictype/categ_Cs.h: Likewise.
63479         * lib/unictype/categ_L.h: Likewise.
63480         * lib/unictype/categ_Ll.h: Likewise.
63481         * lib/unictype/categ_Lm.h: Likewise.
63482         * lib/unictype/categ_Lo.h: Likewise.
63483         * lib/unictype/categ_Lt.h: Likewise.
63484         * lib/unictype/categ_Lu.h: Likewise.
63485         * lib/unictype/categ_M.h: Likewise.
63486         * lib/unictype/categ_Mc.h: Likewise.
63487         * lib/unictype/categ_Me.h: Likewise.
63488         * lib/unictype/categ_Mn.h: Likewise.
63489         * lib/unictype/categ_N.h: Likewise.
63490         * lib/unictype/categ_Nd.h: Likewise.
63491         * lib/unictype/categ_Nl.h: Likewise.
63492         * lib/unictype/categ_No.h: Likewise.
63493         * lib/unictype/categ_P.h: Likewise.
63494         * lib/unictype/categ_Pc.h: Likewise.
63495         * lib/unictype/categ_Pd.h: Likewise.
63496         * lib/unictype/categ_Pe.h: Likewise.
63497         * lib/unictype/categ_Pf.h: Likewise.
63498         * lib/unictype/categ_Pi.h: Likewise.
63499         * lib/unictype/categ_Po.h: Likewise.
63500         * lib/unictype/categ_Ps.h: Likewise.
63501         * lib/unictype/categ_S.h: Likewise.
63502         * lib/unictype/categ_Sc.h: Likewise.
63503         * lib/unictype/categ_Sk.h: Likewise.
63504         * lib/unictype/categ_Sm.h: Likewise.
63505         * lib/unictype/categ_So.h: Likewise.
63506         * lib/unictype/categ_Z.h: Likewise.
63507         * lib/unictype/categ_Zl.h: Likewise.
63508         * lib/unictype/categ_Zp.h: Likewise.
63509         * lib/unictype/categ_Zs.h: Likewise.
63510         * lib/unictype/categ_of.h: Likewise.
63511         * lib/unictype/combining.h: Likewise.
63512         * lib/unictype/ctype_alnum.h: Likewise.
63513         * lib/unictype/ctype_alpha.h: Likewise.
63514         * lib/unictype/ctype_blank.h: Likewise.
63515         * lib/unictype/ctype_cntrl.h: Likewise.
63516         * lib/unictype/ctype_digit.h: Likewise.
63517         * lib/unictype/ctype_graph.h: Likewise.
63518         * lib/unictype/ctype_lower.h: Likewise.
63519         * lib/unictype/ctype_print.h: Likewise.
63520         * lib/unictype/ctype_punct.h: Likewise.
63521         * lib/unictype/ctype_space.h: Likewise.
63522         * lib/unictype/ctype_upper.h: Likewise.
63523         * lib/unictype/ctype_xdigit.h: Likewise.
63524         * lib/unictype/decdigit.h: Likewise.
63525         * lib/unictype/digit.h: Likewise.
63526         * lib/unictype/mirror.h: Likewise.
63527         * lib/unictype/numeric.h: Likewise.
63528         * lib/unictype/pr_alphabetic.h: Likewise.
63529         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63530         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63531         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63532         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63533         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63534         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63535         * lib/unictype/pr_bidi_control.h: Likewise.
63536         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63537         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63538         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63539         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63540         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63541         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63542         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63543         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63544         * lib/unictype/pr_bidi_pdf.h: Likewise.
63545         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63546         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63547         * lib/unictype/pr_combining.h: Likewise.
63548         * lib/unictype/pr_composite.h: Likewise.
63549         * lib/unictype/pr_currency_symbol.h: Likewise.
63550         * lib/unictype/pr_dash.h: Likewise.
63551         * lib/unictype/pr_decimal_digit.h: Likewise.
63552         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63553         * lib/unictype/pr_deprecated.h: Likewise.
63554         * lib/unictype/pr_diacritic.h: Likewise.
63555         * lib/unictype/pr_extender.h: Likewise.
63556         * lib/unictype/pr_format_control.h: Likewise.
63557         * lib/unictype/pr_grapheme_base.h: Likewise.
63558         * lib/unictype/pr_grapheme_extend.h: Likewise.
63559         * lib/unictype/pr_grapheme_link.h: Likewise.
63560         * lib/unictype/pr_hex_digit.h: Likewise.
63561         * lib/unictype/pr_hyphen.h: Likewise.
63562         * lib/unictype/pr_id_continue.h: Likewise.
63563         * lib/unictype/pr_id_start.h: Likewise.
63564         * lib/unictype/pr_ideographic.h: Likewise.
63565         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63566         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63567         * lib/unictype/pr_ignorable_control.h: Likewise.
63568         * lib/unictype/pr_iso_control.h: Likewise.
63569         * lib/unictype/pr_join_control.h: Likewise.
63570         * lib/unictype/pr_left_of_pair.h: Likewise.
63571         * lib/unictype/pr_line_separator.h: Likewise.
63572         * lib/unictype/pr_logical_order_exception.h: Likewise.
63573         * lib/unictype/pr_lowercase.h: Likewise.
63574         * lib/unictype/pr_math.h: Likewise.
63575         * lib/unictype/pr_non_break.h: Likewise.
63576         * lib/unictype/pr_not_a_character.h: Likewise.
63577         * lib/unictype/pr_numeric.h: Likewise.
63578         * lib/unictype/pr_other_alphabetic.h: Likewise.
63579         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63580         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63581         * lib/unictype/pr_other_id_continue.h: Likewise.
63582         * lib/unictype/pr_other_id_start.h: Likewise.
63583         * lib/unictype/pr_other_lowercase.h: Likewise.
63584         * lib/unictype/pr_other_math.h: Likewise.
63585         * lib/unictype/pr_other_uppercase.h: Likewise.
63586         * lib/unictype/pr_paired_punctuation.h: Likewise.
63587         * lib/unictype/pr_paragraph_separator.h: Likewise.
63588         * lib/unictype/pr_pattern_syntax.h: Likewise.
63589         * lib/unictype/pr_pattern_white_space.h: Likewise.
63590         * lib/unictype/pr_private_use.h: Likewise.
63591         * lib/unictype/pr_punctuation.h: Likewise.
63592         * lib/unictype/pr_quotation_mark.h: Likewise.
63593         * lib/unictype/pr_radical.h: Likewise.
63594         * lib/unictype/pr_sentence_terminal.h: Likewise.
63595         * lib/unictype/pr_soft_dotted.h: Likewise.
63596         * lib/unictype/pr_space.h: Likewise.
63597         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63598         * lib/unictype/pr_titlecase.h: Likewise.
63599         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63600         * lib/unictype/pr_unified_ideograph.h: Likewise.
63601         * lib/unictype/pr_uppercase.h: Likewise.
63602         * lib/unictype/pr_variation_selector.h: Likewise.
63603         * lib/unictype/pr_white_space.h: Likewise.
63604         * lib/unictype/pr_xid_continue.h: Likewise.
63605         * lib/unictype/pr_xid_start.h: Likewise.
63606         * lib/unictype/pr_zero_width.h: Likewise.
63607         * lib/unictype/scripts.h: Likewise.
63608         * lib/unictype/scripts_byname.gperf: Likewise.
63609         * lib/unictype/sy_c_ident.h: Likewise.
63610         * lib/unictype/sy_c_whitespace.h: Likewise.
63611         * lib/unictype/sy_java_ident.h: Likewise.
63612         * lib/unictype/sy_java_whitespace.h: Likewise.
63613
63614         * lib/unictype/Makefile: New file.
63615         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63616         glibc.
63617         * lib/unictype/3level.h: New file, copied from glibc.
63618         * lib/unictype/3levelbit.h: New file.
63619
63620 2007-11-11  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/gperf: New file.
63623         * modules/iconv_open (Depends-on): Add it.
63624         (Makefile.am): Remove the GPERF definition.
63625
63626 2007-11-11  Bruno Haible  <bruno@clisp.org>
63627
63628         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63629         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63630
63631 2007-11-11  Bruno Haible  <bruno@clisp.org>
63632
63633         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63634         (usage): Remove function.
63635
63636 2007-11-11  Bruno Haible  <bruno@clisp.org>
63637
63638         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63639         gl_FUNC_CEILF_LIBS.
63640         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63641         gl_FUNC_CEIL_LIBS.
63642         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63643         gl_FUNC_CEILL_LIBS.
63644         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63645         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63646         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63647
63648 2007-11-11  Bruno Haible  <bruno@clisp.org>
63649
63650         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63651         roundf were declared but do not exist on functions.
63652         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63653         roundl were declared but do not exist on functions.
63654         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63655         HAVE_FLOORL_AND_CEILL, respectively.
63656         Needed for Sun C on Solaris 10.
63657
63658 2007-11-11  Bruno Haible  <bruno@clisp.org>
63659
63660         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63661         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63662         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63663         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63664         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63665         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63666         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63667         HAVE_DECL_ROUNDF.
63668         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63669         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63671         of HAVE_DECL_ROUND*.
63672         * modules/math (Makefile.am): Update.
63673
63674 2007-11-10  Bruno Haible  <bruno@clisp.org>
63675
63676         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63677         ptrdiff_t as m4/intl.m4.
63678
63679 2007-11-10  Jim Meyering  <meyering@redhat.com>
63680
63681         Avoid link failure for the argmatch test.
63682         * tests/test-argmatch.c (usage): Define function to avoid a link
63683         failure: argmatch_die requires a usage function.
63684
63685 2007-11-09  Bruno Haible  <bruno@clisp.org>
63686
63687         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63688         * doc/functions/vsnprintf.texi: Likewise.
63689         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63690         with a size argument < 2.
63691
63692 2007-11-09  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63695         buffer. Fixes an inefficiency introduced on 2007-11-03.
63696
63697 2007-11-09  Bruno Haible  <bruno@clisp.org>
63698
63699         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63700         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63701
63702 2007-11-08  Jim Meyering  <meyering@redhat.com>
63703
63704         Change cache variable name prefix "jm_" to "gl_" everywhere.
63705         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63706         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63707         * m4/uptime.m4: s/gl_/jm_/
63708
63709 2007-11-07  Bruno Haible  <bruno@clisp.org>
63710
63711         Update to GNU gettext 0.17.
63712         * m4/intl.m4: Update to GNU gettext 0.17.
63713         * m4/po.m4: Likewise.
63714         * modules/gettext (Files): Remove m4/ulonglong.m4.
63715         (configure.ac): Require gettext infrastructure from version 0.17.
63716
63717 2007-11-06  Bruno Haible  <bruno@clisp.org>
63718
63719         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63720         symbolic values are not defined in a public header.
63721         * lib/freadable.c (freadable) [QNX]: Likewise.
63722         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63723         * lib/freading.c (freading) [QNX]: Likewise.
63724         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63725         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63726         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63727         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63728         Reported by Alain Magloire.
63729
63730         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63731
63732 2007-11-05  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63735         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63736         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63737         Reported by Eric Blake.
63738
63739 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63740             Bruno Haible  <bruno@clisp.org>
63741
63742         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63743         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63744         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63745         (malloc): Undefine also before including <stdlib.h>.
63746         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63747         Needed on OSF/1 4.0.
63748
63749 2007-11-05  Jim Meyering  <meyering@redhat.com>
63750
63751         git-version-gen: sync from coreutils.
63752         * build-aux/git-version-gen: Add comments.
63753         Change the first '-' to '.' in the snapshot version string,
63754         e.g., 6.9-377-08144 -> 6.9.377-08144
63755         Remove first parameter.
63756         Don't declare a version "-dirty" merely because a time
63757         stamp has changed.
63758
63759 2007-11-04  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/lock.h: Protect all macro definitions containing an 'if'
63762         statement through a "do { ... } while (0)".
63763         * lib/tls.h: Likewise.
63764
63765 2007-11-04  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63768
63769 2007-11-04  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63772         * modules/fprintf-posix (Depends-on): Add nocrash.
63773         * modules/snprintf-posix (Depends-on): Likewise.
63774         * modules/sprintf-posix (Depends-on): Likewise.
63775         * modules/vasnprintf-posix (Depends-on): Likewise.
63776         * modules/vasprintf-posix (Depends-on): Likewise.
63777         * modules/vfprintf-posix (Depends-on): Likewise.
63778         * modules/vsnprintf-posix (Depends-on): Likewise.
63779         * modules/vsprintf-posix (Depends-on): Likewise.
63780         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63781         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63782         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63783         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63784         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63785         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63786         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63787
63788 2007-11-04  Bruno Haible  <bruno@clisp.org>
63789
63790         * modules/nocrash: New file.
63791         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63792         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63793
63794 2007-11-04  Bruno Haible  <bruno@clisp.org>
63795
63796         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63797         precision handling.
63798         * tests/test-vasprintf-posix.c (test_function): Likewise.
63799         * tests/test-snprintf-posix.h (test_function): Likewise.
63800         * tests/test-sprintf-posix.h (test_function): Likewise.
63801
63802         Fix *printf behaviour for large precisions on mingw and BeOS.
63803         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63804         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63806         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63808         gl_PRINTF_PRECISION and test its result. Invoke
63809         gl_PREREQ_VASNPRINTF_PRECISION.
63810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63817         * doc/functions/fprintf.texi: Update.
63818         * doc/functions/printf.texi: Update.
63819         * doc/functions/snprintf.texi: Update.
63820         * doc/functions/sprintf.texi: Update.
63821         * doc/functions/vfprintf.texi: Update.
63822         * doc/functions/vprintf.texi: Update.
63823         * doc/functions/vsnprintf.texi: Update.
63824         * doc/functions/vsprintf.texi: Update.
63825
63826 2007-11-04  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63829
63830 2007-11-04  Bruno Haible  <bruno@clisp.org>
63831
63832         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63833         Reported by Sylvain Beucler <beuc@gnu.org>.
63834
63835 2007-11-03  Bruno Haible  <bruno@clisp.org>
63836
63837         * tests/test-fprintf-posix2.sh: New file.
63838         * tests/test-fprintf-posix2.c: New file.
63839         * modules/fprintf-posix-tests (Files): Add them.
63840         (TESTS): Add test-fprintf-posix2.sh.
63841         (configure.ac): Check for getrlimit and setrlimit.
63842         (check_PROGRAMS): Add test-fprintf-posix2.
63843
63844         * tests/test-printf-posix2.sh: New file.
63845         * tests/test-printf-posix2.c: New file.
63846         * modules/printf-posix-tests (Files): Add them.
63847         (TESTS): Add test-printf-posix2.sh.
63848         (configure.ac): Check for getrlimit and setrlimit.
63849         (check_PROGRAMS): Add test-printf-posix2.
63850
63851         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63852         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63853         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63854         (decode_double): New function, copied from decode_long_double.
63855         (scale10_round_decimal_decoded): New function, extracted from
63856         scale10_round_decimal_long_double.
63857         (scale10_round_decimal_long_double): Use it.
63858         (scale10_round_decimal_double): New function.
63859         (floorlog10): New function.
63860         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63862         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63864         gl_PRINTF_ENOMEM and test its result. Invoke
63865         gl_PREREQ_VASNPRINTF_ENOMEM.
63866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63873         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63874         * modules/snprintf-posix (Depends-on): Likewise.
63875         * modules/sprintf-posix (Depends-on): Likewise.
63876         * modules/vasnprintf-posix (Depends-on): Likewise.
63877         * modules/vasprintf-posix (Depends-on): Likewise.
63878         * modules/vfprintf-posix (Depends-on): Likewise.
63879         * modules/vsnprintf-posix (Depends-on): Likewise.
63880         * modules/vsprintf-posix (Depends-on): Likewise.
63881         * doc/functions/fprintf.texi: Update.
63882         * doc/functions/printf.texi: Update.
63883         * doc/functions/snprintf.texi: Update.
63884         * doc/functions/sprintf.texi: Update.
63885         * doc/functions/vfprintf.texi: Update.
63886         * doc/functions/vprintf.texi: Update.
63887         * doc/functions/vsnprintf.texi: Update.
63888         * doc/functions/vsprintf.texi: Update.
63889
63890 2007-11-03  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/frexp-nolibm-tests: New file.
63893
63894         * modules/frexp-nolibm: New file.
63895         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63896
63897 2007-11-03  Bruno Haible  <bruno@clisp.org>
63898
63899         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63900         value is C99 compliant.
63901         Needed for OSF/1 5.1.
63902
63903 2007-11-03  Bruno Haible  <bruno@clisp.org>
63904
63905         Fix out-of-memory handling of vasnprintf.
63906         * lib/printf-parse.c: Include <errno.h>.
63907         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63908         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63909         is already set.
63910
63911 2007-11-02  Eric Blake  <ebb9@byu.net>
63912
63913         Fix tests on cygwin.
63914         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63915
63916 2007-11-01  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63919         warning.
63920         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63921         needed for POSIX compatibility.
63922
63923 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63924
63925         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63926         for compatibility with GNU.
63927
63928 2007-11-01  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63931         (putenv): Renamed from rpl_putenv. Change argument type from
63932         'const char *' to 'char *'.
63933         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63934         of defining putenv in config.h, just set REPLACE_PUTENV.
63935         * modules/putenv (Depends-on): Add stdlib.
63936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63937         (Include): Use <stdlib.h>.
63938         * lib/stdlib.in.h (putenv): New declaration.
63939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63940         REPLACE_PUTENV.
63941         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63942         REPLACE_PUTENV.
63943         Needed for MacOS X 10.5.0.
63944         Reported by Peter O'Gorman <peter@pogma.com>.
63945
63946 2007-11-01  Jim Meyering  <meyering@redhat.com>
63947
63948         Treat an empty date string exactly like "0".
63949         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63950         if the remaining date string (to be parsed) is empty, use "0".
63951         Reported by Mischa Molhoek and discussed in this thread:
63952         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63953
63954 2007-10-31  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63957         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63958         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63959         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63960         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63961         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63962
63963 2007-10-31  Bruno Haible  <bruno@clisp.org>
63964
63965         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63966         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63967         (AC_TYPE_LONG_LONG_INT): Use it.
63968         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63969         it as well.
63970         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63971         to m4/longlong.m4.
63972         * modules/stdint (Files): Remove m4/ulonglong.m4.
63973         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63974         m4/ulonglong.m4.
63975         * modules/strtoumax (Files): Likewise.
63976
63977 2007-10-30  Bruno Haible  <bruno@clisp.org>
63978
63979         * modules/xvasprintf-posix: New file.
63980         Suggested by Eric Blake.
63981
63982 2007-10-30  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/xprintf-posix-tests: New file.
63985         * tests/test-xprintf-posix.sh: New file.
63986         * tests/test-xprintf-posix.c: New file.
63987         * tests/test-xfprintf-posix.c: New file.
63988
63989         * modules/xprintf-posix: New file.
63990
63991 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63992
63993         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63994         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63995         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63996
63997 2007-10-29  Bruno Haible  <bruno@clisp.org>
63998
63999         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64000         contain the special marker '_cv_'.
64001         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64002         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64003         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64004         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64005         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64006         Reported by Ralf Wildenhues.
64007
64008 2007-10-29  Bruno Haible  <bruno@clisp.org>
64009
64010         * gnulib-tool (func_import): When --lgpl is not specified, set
64011         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64012         GPLv3.
64013         Reported by Simon Josefsson.
64014
64015 2007-10-28  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64018         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64019         HAVE_DECL_ISFINITE.
64020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64021         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64022         HAVE_DECL_ISFINITE.
64023
64024 2007-10-28  Bruno Haible  <bruno@clisp.org>
64025
64026         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64027         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64028
64029 2007-10-28  Bruno Haible  <bruno@clisp.org>
64030
64031         Fix link errors with Sun C 5.0 on Solaris 10.
64032         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64033         function is declared but not present in the compiler's libm.
64034         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64035         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64036         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64037         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64038         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64039         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64040         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64042         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64043         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64044         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64045         HAVE_DECL_FLOORL.
64046
64047 2007-10-28  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64050         gl_FUNC_FLOORL. Cache the result.
64051         (gl_FUNC_FLOORL): Use it.
64052         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64053         gl_FUNC_CEILL. Cache the result.
64054         (gl_FUNC_CEILL): Use it.
64055
64056         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64057         gl_FUNC_FLOOR. Cache the result.
64058         (gl_FUNC_FLOOR): Use it.
64059         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64060         gl_FUNC_CEIL. Cache the result.
64061         (gl_FUNC_CEIL): Use it.
64062
64063         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64064         gl_FUNC_FLOORF. Cache the result.
64065         (gl_FUNC_FLOORF): Use it.
64066         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64067         gl_FUNC_CEILF. Cache the result.
64068         (gl_FUNC_CEILF): Use it.
64069
64070 2007-10-28  Bruno Haible  <bruno@clisp.org>
64071
64072         * gnulib-tool: Allow specifying the LGPL version number through
64073         --lgpl=2 or --lgpl=3.
64074         (func_usage): Document --lgpl with argument.
64075         Handle --lgpl=... arguments.
64076         (func_import): Recognize also gl_LGPL calls with an argument. When
64077         --lgpl=2 is used and the module's license is just LGPL, report an
64078         error. Set sed_transform_lib_file according to the lgpl variable. In
64079         the generated files, use --lgpl or gl_LGPL invocations with argument,
64080         if necessary.
64081         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64082         an LGPv2+ license.
64083         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64084         gl_LGPL macro.
64085
64086 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64087             Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64090         (u16_uctomb_aux): Likewise.
64091         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64092         !HAVE_INLINE.
64093         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64094
64095 2007-10-28  Bruno Haible  <bruno@clisp.org>
64096
64097         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64098         Invoke AM_GETTEXT_OPTION if it exists.
64099         * modules/vasprintf: Likewise.
64100         * modules/verror: Likewise.
64101         * modules/xprintf: Likewise.
64102         * modules/xvasprintf: Likewise.
64103
64104 2007-10-27  Ben Pfaff  <blp@gnu.org>
64105
64106         * lib/math.in.h: Define isfinite macro and prototypes for
64107         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64108         implementations.
64109         * m4/math_h.m4: New substitutions for isfinite module.
64110         * lib/isfinite.c: New file.
64111         * m4/isfinite.m4: New file.
64112         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64113         * modules/isfinite: New file.
64114         * modules/isfinite-tests: New file.
64115         * tests/tests-isfinite.c: New file.
64116         * doc/functions/isfinite.texi: Mention isfinite module.
64117         * MODULES.html.sh: Mention new module.
64118
64119 2007-10-27  Ben Pfaff  <blp@gnu.org>
64120
64121         Ralf Wildenhues reported that Tru64 4.0D declares the round
64122         functions but does not have definitions.
64123         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64124         cannot be found in any library, set the output variable to
64125         "missing" instead of "".
64126         * m4/round.m4: Also use our substitute if we cannot find round in
64127         any library, even if it is declared.
64128         * m4/roundf.m4: Likewise for roundf.
64129         * m4/roundl.m4: Likewise for roundl.
64130         * lib/math.in.h: Undefine roundf, round, roundl before defining
64131         their replacements, to allow for hypothetical systems where these
64132         may be defined as macros but not available in libraries.
64133
64134 2007-10-27  Bruno Haible  <bruno@clisp.org>
64135
64136         * doc/gnulib.texi: Invoke @firstparagraphindent.
64137         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64138         changes in gnulib.
64139         (Source changes): New section.
64140
64141 2007-10-26  Bruno Haible  <bruno@clisp.org>
64142
64143         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64144         borrowed from autoconf.
64145
64146 2007-10-26  Bruno Haible  <bruno@clisp.org>
64147
64148         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64149         strerror returned the empty string. Needed on HP-UX 11.00.
64150
64151 2007-10-24  Micah Cowan  <micah@cowan.name>
64152
64153         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64154         * build-aux/bootstrap: Remove support for now-unnecessary option,
64155         --cvs-user, and envvars CVS_USER, CVS_RSH.
64156
64157 2007-10-24  Jim Meyering  <meyering@redhat.com>
64158
64159         Avoid diagnostics from sha1sum when there is no cached checksum.
64160         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64161         if the po.s1 file hasn't been created yet.
64162
64163         * build-aux/bootstrap: Sync from coreutils:
64164         2007-10-24  Jim Meyering  <meyering@redhat.com>
64165         Get gnulib from the git repository, not from an obsolete cvs one.
64166         * build-aux/bootstrap: Suggestion from Micah Cowan.
64167         2007-10-04  Jim Meyering  <jim@meyering.net>
64168         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64169         (update_po_files): Work also when there are no .po files in po/.
64170
64171 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * README: Append ".git" to git and cg examples.
64174         Problem reported by Benoit Sigoure.
64175
64176 2007-10-23  Micah Cowan  <micah@cowan.name>
64177
64178         * users.txt: Add wget.
64179
64180 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64181
64182         Fix linking of some unistdio tests on FreeBSD.
64183         * modules/unistdio/u16-vsnprintf-tests
64184         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64185         * modules/unistdio/u16-vsprintf-tests
64186         (test_u16_vsnprintf1_LDADD): Likewise.
64187         * modules/unistdio/u32-vsnprintf-tests
64188         (test_u32_vsnprintf1_LDADD): Likewise.
64189         * modules/unistdio/u32-vsprintf-tests
64190         (test_u32_vsprintf1_LDADD): Likewise.
64191         * modules/unistdio/u8-vsnprintf-tests
64192         (test_u8_vsnprintf1_LDADD): Likewise.
64193         * modules/unistdio/u8-vsprintf-tests
64194         (test_u8_vsprintf1_LDADD): Likewise.
64195         * modules/unistdio/ulc-vsnprintf-tests
64196         (test_ulc_vsnprintf1_LDADD): Likewise.
64197         * modules/unistdio/ulc-vsprintf-tests
64198         (test_ulc_vsprintf1_LDADD): Likewise.
64199
64200         Fix linking of some uniconv tests on FreeBSD.
64201         * modules/uniconv/u16-conv-from-enc-tests
64202         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64203         * modules/uniconv/u16-conv-to-enc-tests
64204         (test_u16_conv_to_enc_LDADD): Likewise.
64205         * modules/uniconv/u16-strconv-from-enc-tests
64206         (test_u16_strconv_from_enc_LDADD): Likewise.
64207         * modules/uniconv/u16-strconv-to-enc-tests
64208         (test_u16_strconv_to_enc_LDADD): Likewise.
64209         * modules/uniconv/u32-conv-from-enc-tests
64210         (test_u32_conv_from_enc_LDADD): Likewise.
64211         * modules/uniconv/u32-conv-to-enc-tests
64212         (test_u32_conv_to_enc_LDADD): Likewise.
64213         * modules/uniconv/u32-strconv-from-enc-tests
64214         (test_u32_strconv_from_enc_LDADD): Likewise.
64215         * modules/uniconv/u32-strconv-to-enc-tests
64216         (test_u32_strconv_to_enc_LDADD): Likewise.
64217         * modules/uniconv/u8-conv-from-enc-tests
64218         (test_u8_conv_from_enc_LDADD): Likewise.
64219         * modules/uniconv/u8-conv-to-enc-tests
64220         (test_u8_conv_to_enc_LDADD): Likewise.
64221         * modules/uniconv/u8-strconv-from-enc-tests
64222         (test_u8_strconv_from_enc_LDADD): Likewise.
64223         * modules/uniconv/u8-strconv-to-enc-tests
64224         (test_u8_strconv_to_enc_LDADD): Likewise.
64225
64226 2007-10-22  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64229         size.
64230
64231 2007-10-22  Eric Blake  <ebb9@byu.net>
64232
64233         Tweak x*printf documentation.
64234         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64235         variable name and comments.
64236         Suggested by Bruno Haible.
64237
64238 2007-10-22  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/acl.c (copy_acl): Fix file name in comment.
64241
64242 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         Fix Tru64 problem with stdbool.h.
64245         * lib/stdbool.in.h (false, true):
64246         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64247         Don't declare as an enum in this situation; it runs afoul of Tru64.
64248         Problem reported by Steven M. Schweda in
64249         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64250
64251 2007-10-22  Eric Blake  <ebb9@byu.net>
64252
64253         Also wrap vf?printf.
64254         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64255         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64256         (xvprintf, xvfprintf): New functions.
64257
64258 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64259
64260         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64261         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64262
64263         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64264         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64265
64266 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64269         by Bruno Haible.
64270
64271 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64272
64273         * lib/getloadavg.c
64274         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64275         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64276
64277         * tests/test-i-ring.c: Work for C89.
64278
64279 2007-10-22  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64282         -1u, in preprocessor expression, so that we don't test for the bug
64283         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64285
64286 2007-10-22  Eric Blake  <ebb9@byu.net>
64287
64288         * tests/test-yesno.sh: Silence stderr during test.
64289
64290 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64291
64292         * modules/crypto/gc-camellia: New file.
64293
64294         * m4/gc-camellia.m4: New file.
64295
64296         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64297
64298         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64299
64300 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64301
64302         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64303         --help to stdout.  Reported by sms@antinode.org (Steven
64304         M. Schweda).
64305
64306 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64307
64308         * users.txt: Fix link to libksba.
64309
64310 2007-10-21  Ben Pfaff  <blp@gnu.org>
64311
64312         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64313         round.c roundf implementation that depends on floorf and ceilf to
64314         be tested unconditionally.
64315
64316 2007-10-21  Ben Pfaff  <blp@gnu.org>
64317
64318         * m4/check-libm-func.m4: Removed.
64319         * m4/check-math-lib.m4: New file.
64320         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64321         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64322         definition and lack of AC_LIBOBJ([roundf]).
64323         * m4/roundl.m4: Ditto, and similarly for roundl.
64324         * modules/round: Reference new m4 file.
64325         * modules/roundf: Ditto.
64326         * modules/roundl: Ditto.
64327         * tests/test-round2.c (main): Use ROUND instead of round.
64328         Bug report from Bruno Haible.
64329
64330 2007-10-21  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64333         context.
64334
64335 2007-10-21  Bruno Haible  <bruno@clisp.org>
64336
64337         * tests/test-wcwidth.c (main): Allow negative result for some control
64338         characters.
64339
64340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64341         Needed on OSF/1 5.1.
64342
64343 2007-10-21  Bruno Haible  <bruno@clisp.org>
64344
64345         * tests/test-floorf1.c: Include isnanf.h.
64346         (main): Use isnanf() instead of isnan().
64347         * tests/test-ceilf1.c: Include isnanf.h.
64348         (main): Use isnanf() instead of isnan().
64349         * tests/test-truncf1.c: Include isnanf.h.
64350         (main): Use isnanf() instead of isnan().
64351         * tests/test-roundf1.c: Include isnanf.h.
64352         (main): Use isnanf() instead of isnan().
64353
64354 2007-10-21  Eric Blake  <ebb9@byu.net>
64355
64356         * users.txt: Update URL for m4.
64357
64358 2007-10-21  Bruno Haible  <bruno@clisp.org>
64359
64360         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64361
64362 2007-10-21  Bruno Haible  <bruno@clisp.org>
64363
64364         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64365         Git's management files if the CVS files are not present.
64366
64367 2007-10-20  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64370         gcc-3.4.x.
64371
64372 2007-10-20  Ben Pfaff  <blp@gnu.org>
64373
64374         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64375         implementations.
64376         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64377         * lib/round.c: New file.
64378         * lib/roundf.c: New file.
64379         * lib/roundl.c: New file.
64380         * m4/round.m4: New file.
64381         * m4/roundf.m4: New file.
64382         * m4/roundl.m4: New file.
64383         * m4/check-libm-func-m4: New file.
64384         * modules/math: Replace round, roundf, roundl related @VARS@ in
64385         math.in.h.
64386         * modules/round: New file.
64387         * modules/round-tests: New file.
64388         * modules/roundf: New file.
64389         * modules/roundf-tests: New file.
64390         * modules/roundl: New file.
64391         * modules/roundl-tests: New file.
64392         * tests/test-round1.c: New file.
64393         * tests/test-round2.c: New file.
64394         * tests/test-roundf1.c: New file.
64395         * tests/test-roundf2.c: New file.
64396         * tests/test-roundl.c: New file.
64397         * doc/functions/round.texi: Mention round module.
64398         * doc/functions/roundf.texi: Mention roundf module.
64399         * doc/functions/roundl.texi: Mention roundl module.
64400         * MODULES.html.sh: Mention new modules.
64401         Thanks to Bruno Haible for suggestions.
64402
64403 2007-10-20  Jim Meyering  <meyering@redhat.com>
64404
64405         * lib/xprintf.c: Include <config.h> unconditionally.
64406
64407         Change xprintf's license to GPL.
64408         * modules/xprintf (License): s/LGPL/GPL/, since this module
64409         depends on modules (exit and exitfail) which are GPL.
64410         Suggestion from Bruno Haible.
64411
64412         xprintf fixes.
64413         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64414         Use a clearer diagnostic.
64415         Patch from Bruno Haible.
64416
64417 2007-10-20  Bruno Haible  <bruno@clisp.org>
64418
64419         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64420         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64421         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64422
64423 2007-10-20  Bruno Haible  <bruno@clisp.org>
64424
64425         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64426         precision in the comparison result > x - 1 or similar.
64427         * tests/test-ceilf2.c (correct_result_p): Likewise.
64428         * tests/test-truncf2.c (correct_result_p): Likewise.
64429         * tests/test-trunc2.c (correct_result_p): Likewise.
64430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64431
64432 2007-10-20  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/ceil: New file.
64435         * m4/ceil.m4: New file.
64436         * doc/functions/ceil.texi: Mention the 'ceil' module.
64437
64438 2007-10-20  Bruno Haible  <bruno@clisp.org>
64439
64440         * modules/floor: New file.
64441         * m4/floor.m4: New file.
64442         * doc/functions/floor.texi: Mention the 'floor' module.
64443
64444 2007-10-20  Bruno Haible  <bruno@clisp.org>
64445
64446         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64447         of %a.
64448         * modules/floorf-tests (Depends-on): Likewise.
64449         * modules/truncf-tests (Depends-on): Likewise.
64450         * modules/trunc-tests (Depends-on): Likewise.
64451         Reported by Ben Pfaff.
64452
64453 2007-10-19  Jim Meyering  <meyering@redhat.com>
64454
64455         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64456         Don't bother testing specific errno values.  Just test ferror.
64457
64458         New module: xprintf
64459         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64460
64461 2007-10-19  Bruno Haible  <bruno@clisp.org>
64462
64463         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64464         syntax.
64465         * modules/javaexec (Makefile.am): Likewise.
64466         * modules/relocatable-prog (Makefile.am): Likewise.
64467         Suggested by Jim Meyering.
64468
64469 2007-10-18  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64472         Reported by Jim Meyering.
64473
64474 2007-10-18  Eric Blake  <ebb9@byu.net>
64475
64476         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64477
64478 2007-10-18  Bruno Haible  <bruno@clisp.org>
64479
64480         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64481         the format string into writable memory. Needed in Fortify conditions.
64482
64483 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64484             Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64487         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64488         * modules/trim (Depends-on): Add mbchar.
64489         (configure.ac): Add gl_FUNC_MBRTOWC.
64490         (Makefile.am): Augment lib_SOURCES.
64491
64492 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         Modify glob.c to use fstatat and dirfd, to simplify it.
64495         Suggested by Eric Blake.
64496         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64497         Don't include <stdbool.h>; not used.
64498         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64499         (link_exists_p): Simplify implementation, since we can now assume
64500         dirfd and fstatat.
64501         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64502
64503 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64504
64505         * gnulib-tool (func_get_dependencies): Fix sed script to
64506         match only tests.
64507
64508 2007-10-17  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64511         allow locale names without encoding suffix.
64512         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64513         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64514
64515 2007-10-16  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64518         * lib/getgroups.c (getgroups): Likewise.
64519         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64520
64521 2007-10-16  Bruno Haible  <bruno@clisp.org>
64522
64523         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64524         * modules/malloc-posix (License): Likewise.
64525         * modules/realloc-posix (License): Likewise.
64526         * modules/calloc-posix (License): Likewise.
64527         * modules/intprops (License): Change from GPL to LGPL, with
64528         Paul Eggert's approval.
64529
64530 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64531
64532         Merge glibc changes into lib/glob.c.
64533
64534         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64535         2007-10-15 04:59:03 UTC.  Here are the changes:
64536
64537         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64538
64539         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64540
64541         * lib/glob.c: Add some branch prediction throughout.
64542
64543         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64544
64545         [BZ #5103]
64546         * lib/glob.c (glob): Recognize patterns starting \/.
64547
64548         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64549
64550         [BZ #3996]
64551         * lib/glob.c (attribute_hidden): Define if not defined.
64552         (glob): Unescape dirname, filename or username when needed and not
64553         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64554         is NULL.  Handle unescaped [ in pattern without closing ].
64555         Don't pass GLOB_CHECK down to recursive glob for directories.
64556         (__glob_pattern_type): New function.
64557         (__glob_pattern_p): Implement using __glob_pattern_type.
64558         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64559         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64560         Remove unreachable code.
64561
64562         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64563
64564         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64565         explain why there are no leaks.
64566
64567         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64568
64569         [BZ #3253]
64570         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64571         time, rather allocate increasingly bigger arrays of pointers, if
64572         possible with alloca, if too large with malloc.
64573
64574 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64577         Problem reported by H.Merijn Brand in
64578         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64579         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64580         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64581
64582 2007-10-15  Bruno Haible  <bruno@clisp.org>
64583
64584         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64585         with explicit rpl_ prefix.
64586         * lib/fopen.c (fopen): Likewise.
64587         * lib/freopen.c (freopen): Likewise.
64588         * lib/iconv.c (iconv): Likewise.
64589         * lib/iconv_close.c (iconv_close): Likewise.
64590
64591 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64592
64593         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64594
64595 2007-10-15  Bruno Haible  <bruno@clisp.org>
64596
64597         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64598         <stddef.h> instead of <stdlib.h> since we only need NULL.
64599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64600
64601 2007-10-15  Bruno Haible  <bruno@clisp.org>
64602
64603         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64604         Replace paragraph talking about LIBOBJS.
64605         Reported by Colin Watson <cjwatson@debian.org>.
64606
64607 2007-10-15  Bruno Haible  <bruno@clisp.org>
64608
64609         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64610         <stdlib.h> before using NULL.
64611
64612 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64613
64614         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64615         Reported by Albert Chin <china@thewrittenword.com>.
64616
64617 2007-10-14  Bruno Haible  <bruno@clisp.org>
64618
64619         * modules/iconv_open-utf-tests: New file.
64620         * tests/test-iconv-utf.c: New file.
64621
64622         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64623         * modules/iconv_open-utf: New file.
64624         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64625         (iconv, iconv_close): New declarations.
64626         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64627         be defined.
64628         (iconv_open): Add special handling of conversion between UTF-8 and
64629         UTF-{16,32}{BE,LE}.
64630         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64631         * lib/iconv_close.c: New file.
64632         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64633         gl_FUNC_ICONV_OPEN.
64634         (gl_FUNC_ICONV_OPEN): Use it.
64635         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64636         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64637         and REPLACE_ICONV_UTF.
64638         * modules/iconv_open (Depends-on): Add c-strcase.
64639         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64640         ICONV_CONST.
64641         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64642
64643 2007-10-13  Albert Chin  <china@thewrittenword.com>
64644             Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64647         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64648
64649 2007-10-13  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64652         defined, use the ISO C99 inline semantics.
64653         * lib/argp.h (ARGP_EI): Likewise.
64654
64655 2007-10-13  Bruno Haible  <bruno@clisp.org>
64656
64657         Handle 'inline' change in gcc 4.3.0.
64658         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64659         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64660         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64661         argp_fmtstream_point): Disable 'extern' declaration if the function
64662         definition is going to be provided inline.
64663         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64664         semantics, not the ISO C99 inline semantics.
64665         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64666         'extern' declaration if the function definition is going to be provided
64667         inline.
64668         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64669         the GNU C inline semantics, not the ISO C99 inline semantics. With
64670         GCC 4.2, avoid a warning.
64671
64672 2007-10-13  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/freading.h (freading): Enable the use of __freading for
64675         glibc >= 2.7.
64676         * lib/freading.c (freading): Likewise.
64677
64678 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64681         "warning: C99 inline functions are not supported; using GNU89".
64682
64683 2007-10-12  Bruno Haible  <bruno@clisp.org>
64684
64685         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64686         of 2.
64687         * tests/test-ceilf2.c: New file.
64688         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64689
64690         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64691         * modules/ceilf-tests: Update.
64692
64693 2007-10-12  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64696         of 2.
64697         * tests/test-floorf2.c: New file.
64698         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64699
64700         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64701         * modules/floorf-tests: Update.
64702
64703 2007-10-12  Bruno Haible  <bruno@clisp.org>
64704
64705         * tests/test-trunc2.c: New file.
64706         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64707
64708         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64709         * modules/trunc-tests: Update.
64710
64711 2007-10-12  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64714         of 2.
64715         * tests/test-truncf2.c: New file.
64716         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64717
64718         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64719         * modules/truncf-tests: Update.
64720
64721 2007-10-11  Eric Blake  <ebb9@byu.net>
64722
64723         Don't claim strerror is broken on Interix.
64724         * doc/functions/strerror.texi (strerror): Known broken systems are
64725         now Solaris 8, and not Interix.
64726         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64727         Interix on cross-compile.
64728         Reported by Martin Koeppe in
64729         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64730
64731 2007-10-11  Bruno Haible  <bruno@clisp.org>
64732
64733         * modules/i-ring-tests: New file.
64734         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64735         instead of assert.
64736
64737 2007-10-11  Bruno Haible  <bruno@clisp.org>
64738
64739         * modules/filenamecat-tests: New file.
64740         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64741         * lib/filenamecat.c: Remove test code.
64742
64743 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64746
64747         * lib/strerror.c: Include <string.h> always, to test interface,
64748         and to remove the need for the dummy.
64749         Include intprops.h to compute width instead of doing it ourselves
64750         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64751         (strerror): Define it to return NULL if there's no system strerror.
64752         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64753         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64754         ancient pre-strerror Unix systems well any more.  Saying "unknown
64755         system error" is enough.
64756         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64757         simpler strerror.c implementation.
64758         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64759         Simplify the tests to reflect the simpler strerror implementation.
64760         * modules/strerror (Depends-on): Add intprops.
64761
64762 2007-10-09  Eric Blake  <ebb9@byu.net>
64763
64764         Silence test-fpending.
64765         * modules/fpending-tests (Files): Add wrapper script.
64766         * tests/test-fpending.sh: New file.
64767
64768 2007-10-09  Bruno Haible  <bruno@clisp.org>
64769
64770         * MODULES.html.sh (func_module): Don't create a hyperlink for
64771         function names like 'printf_frexp'.
64772         (Misc): Add crc, memxor.
64773         (Characteristics of floating types): New section.
64774         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64775         isnanf-nolibm, signbit, trunc, truncf, truncl.
64776         (Enhancements for ISO C 99 functions): New subsection Input/output.
64777         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64778         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64779         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64780         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64781         (Enhancements for POSIX:2001 functions): Add chdir-long.
64782         (File system functions): Add areadlink, chdir-safer, read-file.
64783         Remove cycle-check.
64784         (File system as inode set): New section.
64785         (Date and time): Add gethrxtime.
64786         (Multithreading): Add openmp.
64787         (Internationalization functions): Add localename.
64788         (Unicode string functions): Add unistr/u*-mbsnlen.
64789         (Support for maintaining and releasing projects): Add git-version-gen.
64790         (Lone files): Remove directories.
64791
64792 2007-10-08  Ben Pfaff  <blp@gnu.org>
64793
64794         * lib/xmalloca.h: Fix typo in comment.
64795
64796 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64799         when avoiding problems with integer overflow.  Use a portable test
64800         instead.
64801
64802 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64803
64804         * modules/dummy (License): Change to LGPLv2+.
64805         * modules/float (License): Likewise
64806         * modules/realloc (License): Likewise
64807         * modules/stdlib (License): Likewise
64808
64809 2007-10-07  Bruno Haible  <bruno@clisp.org>
64810
64811         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64812         * floor.c (TWO_MANT_DIG): Likewise.
64813         * ceil.c (TWO_MANT_DIG): Likewise.
64814         Reported by Ben Pfaff.
64815
64816 2007-10-07  Bruno Haible  <bruno@clisp.org>
64817
64818         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64819         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64820         * lib/frexp.c (FUNC): Likewise.
64821         * lib/printf-frexp.h (printf_frexp): Likewise.
64822         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64823         * lib/printf-frexp.c (FUNC): Likewise.
64824         Suggested by Jim Meyering.
64825
64826 2007-10-07  Jim Meyering  <meyering@redhat.com>
64827
64828         Make xnanosleep's integer overflow test more robust.
64829         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64830         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64831
64832 2007-10-07  Bruno Haible  <bruno@clisp.org>
64833
64834         * NEWS: Mention the license change.
64835
64836         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64837         abbreviations in the modules files.
64838
64839         Change copyright notice from GPLv2+ to GPLv3+.
64840         * README: Change copyright notice.
64841         * MODULES.html.sh: Likewise.
64842         * build-aux/bootstrap.conf: Likewise.
64843         * build-aux/config.libpath: Likewise.
64844         * build-aux/csharpcomp.sh.in: Likewise.
64845         * build-aux/csharpexec.sh.in: Likewise.
64846         * build-aux/install-reloc: Likewise.
64847         * build-aux/javacomp.sh.in: Likewise.
64848         * build-aux/javaexec.sh.in: Likewise.
64849         * build-aux/ldd.sh.in: Likewise.
64850         * build-aux/reloc-ldflags: Likewise.
64851         * build-aux/relocatable.sh.in: Likewise.
64852         * build-aux/x-to-1.in: Likewise.
64853         * check-module: Likewise.
64854         * config/srclistvars.sh: Likewise.
64855         * gnulib-tool: Likewise.
64856         * lib/acl-internal.h: Likewise.
64857         * lib/acl.c: Likewise.
64858         * lib/acl.h: Likewise.
64859         * lib/acl_entries.c: Likewise.
64860         * lib/areadlink-with-size.c: Likewise.
64861         * lib/areadlink.c: Likewise.
64862         * lib/areadlink.h: Likewise.
64863         * lib/argmatch.c: Likewise.
64864         * lib/argmatch.h: Likewise.
64865         * lib/argp-ba.c: Likewise.
64866         * lib/argp-eexst.c: Likewise.
64867         * lib/argp-fmtstream.c: Likewise.
64868         * lib/argp-fmtstream.h: Likewise.
64869         * lib/argp-fs-xinl.c: Likewise.
64870         * lib/argp-help.c: Likewise.
64871         * lib/argp-namefrob.h: Likewise.
64872         * lib/argp-parse.c: Likewise.
64873         * lib/argp-pin.c: Likewise.
64874         * lib/argp-pv.c: Likewise.
64875         * lib/argp-pvh.c: Likewise.
64876         * lib/argp-xinl.c: Likewise.
64877         * lib/argp.h: Likewise.
64878         * lib/at-func.c: Likewise.
64879         * lib/atanl.c: Likewise.
64880         * lib/backupfile.c: Likewise.
64881         * lib/backupfile.h: Likewise.
64882         * lib/basename.c: Likewise.
64883         * lib/binary-io.h: Likewise.
64884         * lib/byteswap.in.h: Likewise.
64885         * lib/c-stack.c: Likewise.
64886         * lib/c-stack.h: Likewise.
64887         * lib/c-strcasestr.c: Likewise.
64888         * lib/c-strcasestr.h: Likewise.
64889         * lib/c-strstr.c: Likewise.
64890         * lib/c-strstr.h: Likewise.
64891         * lib/c-strtod.c: Likewise.
64892         * lib/calloc.c: Likewise.
64893         * lib/canon-host.c: Likewise.
64894         * lib/canon-host.h: Likewise.
64895         * lib/canonicalize-lgpl.c: Likewise.
64896         * lib/canonicalize.c: Likewise.
64897         * lib/canonicalize.h: Likewise.
64898         * lib/ceil.c: Likewise.
64899         * lib/ceilf.c: Likewise.
64900         * lib/ceill.c: Likewise.
64901         * lib/chdir-long.c: Likewise.
64902         * lib/chdir-long.h: Likewise.
64903         * lib/chdir-safer.c: Likewise.
64904         * lib/chdir-safer.h: Likewise.
64905         * lib/chown.c: Likewise.
64906         * lib/classpath.c: Likewise.
64907         * lib/classpath.h: Likewise.
64908         * lib/clean-temp.c: Likewise.
64909         * lib/clean-temp.h: Likewise.
64910         * lib/cloexec.c: Likewise.
64911         * lib/close-stream.c: Likewise.
64912         * lib/closein.c: Likewise.
64913         * lib/closein.h: Likewise.
64914         * lib/closeout.c: Likewise.
64915         * lib/closeout.h: Likewise.
64916         * lib/concat-filename.c: Likewise.
64917         * lib/copy-file.c: Likewise.
64918         * lib/copy-file.h: Likewise.
64919         * lib/count-one-bits.h: Likewise.
64920         * lib/crc.c: Likewise.
64921         * lib/crc.h: Likewise.
64922         * lib/creat-safer.c: Likewise.
64923         * lib/csharpcomp.c: Likewise.
64924         * lib/csharpcomp.h: Likewise.
64925         * lib/csharpexec.c: Likewise.
64926         * lib/csharpexec.h: Likewise.
64927         * lib/cycle-check.c: Likewise.
64928         * lib/cycle-check.h: Likewise.
64929         * lib/diacrit.c: Likewise.
64930         * lib/diacrit.h: Likewise.
64931         * lib/diffseq.h: Likewise.
64932         * lib/dirchownmod.c: Likewise.
64933         * lib/dirent.in.h: Likewise.
64934         * lib/dirfd.c: Likewise.
64935         * lib/dirfd.h: Likewise.
64936         * lib/dirname.c: Likewise.
64937         * lib/dirname.h: Likewise.
64938         * lib/dummy.c: Likewise.
64939         * lib/dup-safer.c: Likewise.
64940         * lib/dup2.c: Likewise.
64941         * lib/eealloc.h: Likewise.
64942         * lib/error.c: Likewise.
64943         * lib/error.h: Likewise.
64944         * lib/euidaccess.c: Likewise.
64945         * lib/exclude.c: Likewise.
64946         * lib/exclude.h: Likewise.
64947         * lib/execute.c: Likewise.
64948         * lib/execute.h: Likewise.
64949         * lib/exitfail.c: Likewise.
64950         * lib/exitfail.h: Likewise.
64951         * lib/expl.c: Likewise.
64952         * lib/fatal-signal.c: Likewise.
64953         * lib/fatal-signal.h: Likewise.
64954         * lib/fbufmode.c: Likewise.
64955         * lib/fbufmode.h: Likewise.
64956         * lib/fchdir.c: Likewise.
64957         * lib/fchmodat.c: Likewise.
64958         * lib/fchownat.c: Likewise.
64959         * lib/fcntl--.h: Likewise.
64960         * lib/fcntl-safer.h: Likewise.
64961         * lib/fcntl.in.h: Likewise.
64962         * lib/fd-safer.c: Likewise.
64963         * lib/fflush.c: Likewise.
64964         * lib/file-has-acl.c: Likewise.
64965         * lib/file-set.c: Likewise.
64966         * lib/file-type.c: Likewise.
64967         * lib/file-type.h: Likewise.
64968         * lib/fileblocks.c: Likewise.
64969         * lib/filemode.c: Likewise.
64970         * lib/filemode.h: Likewise.
64971         * lib/filename.h: Likewise.
64972         * lib/filenamecat.c: Likewise.
64973         * lib/filenamecat.h: Likewise.
64974         * lib/findprog.c: Likewise.
64975         * lib/findprog.h: Likewise.
64976         * lib/float.in.h: Likewise.
64977         * lib/floor.c: Likewise.
64978         * lib/floorf.c: Likewise.
64979         * lib/floorl.c: Likewise.
64980         * lib/fopen-safer.c: Likewise.
64981         * lib/fopen.c: Likewise.
64982         * lib/fpending.c: Likewise.
64983         * lib/fpending.h: Likewise.
64984         * lib/fprintf.c: Likewise.
64985         * lib/fprintftime.h: Likewise.
64986         * lib/fpucw.h: Likewise.
64987         * lib/fpurge.c: Likewise.
64988         * lib/fpurge.h: Likewise.
64989         * lib/freadable.c: Likewise.
64990         * lib/freadable.h: Likewise.
64991         * lib/freadahead.c: Likewise.
64992         * lib/freadahead.h: Likewise.
64993         * lib/freading.c: Likewise.
64994         * lib/freading.h: Likewise.
64995         * lib/free.c: Likewise.
64996         * lib/freopen.c: Likewise.
64997         * lib/frexp.c: Likewise.
64998         * lib/frexpl.c: Likewise.
64999         * lib/fseek.c: Likewise.
65000         * lib/fseterr.c: Likewise.
65001         * lib/fseterr.h: Likewise.
65002         * lib/fstatat.c: Likewise.
65003         * lib/fstrcmp.c: Likewise.
65004         * lib/fstrcmp.h: Likewise.
65005         * lib/fsusage.c: Likewise.
65006         * lib/fsusage.h: Likewise.
65007         * lib/ftell.c: Likewise.
65008         * lib/ftello.c: Likewise.
65009         * lib/fts-cycle.c: Likewise.
65010         * lib/fts.c: Likewise.
65011         * lib/fts_.h: Likewise.
65012         * lib/full-read.c: Likewise.
65013         * lib/full-read.h: Likewise.
65014         * lib/full-write.c: Likewise.
65015         * lib/full-write.h: Likewise.
65016         * lib/fwritable.c: Likewise.
65017         * lib/fwritable.h: Likewise.
65018         * lib/fwriteerror.c: Likewise.
65019         * lib/fwriteerror.h: Likewise.
65020         * lib/fwriting.c: Likewise.
65021         * lib/fwriting.h: Likewise.
65022         * lib/gcd.c: Likewise.
65023         * lib/gcd.h: Likewise.
65024         * lib/getcwd.c: Likewise.
65025         * lib/getdate.h: Likewise.
65026         * lib/getdate.y: Likewise.
65027         * lib/getdomainname.c: Likewise.
65028         * lib/getdomainname.h: Likewise.
65029         * lib/getgroups.c: Likewise.
65030         * lib/gethostname.c: Likewise.
65031         * lib/gethrxtime.c: Likewise.
65032         * lib/gethrxtime.h: Likewise.
65033         * lib/getloadavg.c: Likewise.
65034         * lib/getndelim2.c: Likewise.
65035         * lib/getndelim2.h: Likewise.
65036         * lib/getnline.c: Likewise.
65037         * lib/getnline.h: Likewise.
65038         * lib/getopt.c: Likewise.
65039         * lib/getopt.in.h: Likewise.
65040         * lib/getopt1.c: Likewise.
65041         * lib/getopt_int.h: Likewise.
65042         * lib/getpagesize.h: Likewise.
65043         * lib/getsubopt.c: Likewise.
65044         * lib/gettime.c: Likewise.
65045         * lib/getugroups.c: Likewise.
65046         * lib/getugroups.h: Likewise.
65047         * lib/getusershell.c: Likewise.
65048         * lib/gl_anyavltree_list1.h: Likewise.
65049         * lib/gl_anyavltree_list2.h: Likewise.
65050         * lib/gl_anyhash_list1.h: Likewise.
65051         * lib/gl_anyhash_list2.h: Likewise.
65052         * lib/gl_anylinked_list1.h: Likewise.
65053         * lib/gl_anylinked_list2.h: Likewise.
65054         * lib/gl_anyrbtree_list1.h: Likewise.
65055         * lib/gl_anyrbtree_list2.h: Likewise.
65056         * lib/gl_anytree_list1.h: Likewise.
65057         * lib/gl_anytree_list2.h: Likewise.
65058         * lib/gl_anytree_oset.h: Likewise.
65059         * lib/gl_anytreehash_list1.h: Likewise.
65060         * lib/gl_anytreehash_list2.h: Likewise.
65061         * lib/gl_array_list.c: Likewise.
65062         * lib/gl_array_list.h: Likewise.
65063         * lib/gl_array_oset.c: Likewise.
65064         * lib/gl_array_oset.h: Likewise.
65065         * lib/gl_avltree_list.c: Likewise.
65066         * lib/gl_avltree_list.h: Likewise.
65067         * lib/gl_avltree_oset.c: Likewise.
65068         * lib/gl_avltree_oset.h: Likewise.
65069         * lib/gl_avltreehash_list.c: Likewise.
65070         * lib/gl_avltreehash_list.h: Likewise.
65071         * lib/gl_carray_list.c: Likewise.
65072         * lib/gl_carray_list.h: Likewise.
65073         * lib/gl_linked_list.c: Likewise.
65074         * lib/gl_linked_list.h: Likewise.
65075         * lib/gl_linkedhash_list.c: Likewise.
65076         * lib/gl_linkedhash_list.h: Likewise.
65077         * lib/gl_list.c: Likewise.
65078         * lib/gl_list.h: Likewise.
65079         * lib/gl_oset.c: Likewise.
65080         * lib/gl_oset.h: Likewise.
65081         * lib/gl_rbtree_list.c: Likewise.
65082         * lib/gl_rbtree_list.h: Likewise.
65083         * lib/gl_rbtree_oset.c: Likewise.
65084         * lib/gl_rbtree_oset.h: Likewise.
65085         * lib/gl_rbtreehash_list.c: Likewise.
65086         * lib/gl_rbtreehash_list.h: Likewise.
65087         * lib/gl_sublist.c: Likewise.
65088         * lib/gl_sublist.h: Likewise.
65089         * lib/group-member.c: Likewise.
65090         * lib/group-member.h: Likewise.
65091         * lib/hard-locale.c: Likewise.
65092         * lib/hard-locale.h: Likewise.
65093         * lib/hash-pjw.c: Likewise.
65094         * lib/hash-pjw.h: Likewise.
65095         * lib/hash-triple.c: Likewise.
65096         * lib/hash.c: Likewise.
65097         * lib/hash.h: Likewise.
65098         * lib/human.c: Likewise.
65099         * lib/human.h: Likewise.
65100         * lib/i-ring.c: Likewise.
65101         * lib/i-ring.h: Likewise.
65102         * lib/idcache.c: Likewise.
65103         * lib/imaxabs.c: Likewise.
65104         * lib/imaxdiv.c: Likewise.
65105         * lib/inet_pton.c: Likewise.
65106         * lib/inet_pton.h: Likewise.
65107         * lib/intprops.h: Likewise.
65108         * lib/inttostr.c: Likewise.
65109         * lib/inttostr.h: Likewise.
65110         * lib/inttypes.in.h: Likewise.
65111         * lib/isapipe.c: Likewise.
65112         * lib/isdir.c: Likewise.
65113         * lib/isnan.c: Likewise.
65114         * lib/isnan.h: Likewise.
65115         * lib/isnanf.c: Likewise.
65116         * lib/isnanf.h: Likewise.
65117         * lib/isnanl-nolibm.h: Likewise.
65118         * lib/isnanl.c: Likewise.
65119         * lib/isnanl.h: Likewise.
65120         * lib/javacomp.c: Likewise.
65121         * lib/javacomp.h: Likewise.
65122         * lib/javaexec.c: Likewise.
65123         * lib/javaexec.h: Likewise.
65124         * lib/javaversion.c: Likewise.
65125         * lib/javaversion.h: Likewise.
65126         * lib/javaversion.java: Likewise.
65127         * lib/lbrkprop.h: Likewise.
65128         * lib/lchmod.h: Likewise.
65129         * lib/lchown.c: Likewise.
65130         * lib/ldexpl.c: Likewise.
65131         * lib/linebreak.c: Likewise.
65132         * lib/linebreak.h: Likewise.
65133         * lib/linebuffer.c: Likewise.
65134         * lib/linebuffer.h: Likewise.
65135         * lib/locale.in.h: Likewise.
65136         * lib/logl.c: Likewise.
65137         * lib/long-options.c: Likewise.
65138         * lib/long-options.h: Likewise.
65139         * lib/lstat.c: Likewise.
65140         * lib/lstat.h: Likewise.
65141         * lib/math.in.h: Likewise.
65142         * lib/mbchar.c: Likewise.
65143         * lib/mbchar.h: Likewise.
65144         * lib/mbfile.h: Likewise.
65145         * lib/mbiter.h: Likewise.
65146         * lib/mbscasecmp.c: Likewise.
65147         * lib/mbscasestr.c: Likewise.
65148         * lib/mbschr.c: Likewise.
65149         * lib/mbscspn.c: Likewise.
65150         * lib/mbslen.c: Likewise.
65151         * lib/mbsncasecmp.c: Likewise.
65152         * lib/mbsnlen.c: Likewise.
65153         * lib/mbspbrk.c: Likewise.
65154         * lib/mbspcasecmp.c: Likewise.
65155         * lib/mbsrchr.c: Likewise.
65156         * lib/mbssep.c: Likewise.
65157         * lib/mbsspn.c: Likewise.
65158         * lib/mbsstr.c: Likewise.
65159         * lib/mbstok_r.c: Likewise.
65160         * lib/mbswidth.c: Likewise.
65161         * lib/mbswidth.h: Likewise.
65162         * lib/mbuiter.h: Likewise.
65163         * lib/memcasecmp.c: Likewise.
65164         * lib/memcasecmp.h: Likewise.
65165         * lib/memchr.c: Likewise.
65166         * lib/memcmp.c: Likewise.
65167         * lib/memcoll.c: Likewise.
65168         * lib/memcoll.h: Likewise.
65169         * lib/memcpy.c: Likewise.
65170         * lib/memrchr.c: Likewise.
65171         * lib/mkancesdirs.c: Likewise.
65172         * lib/mkdir-p.c: Likewise.
65173         * lib/mkdir-p.h: Likewise.
65174         * lib/mkdir.c: Likewise.
65175         * lib/mkdirat.c: Likewise.
65176         * lib/mkdtemp.c: Likewise.
65177         * lib/mkstemp-safer.c: Likewise.
65178         * lib/mkstemp.c: Likewise.
65179         * lib/modechange.c: Likewise.
65180         * lib/modechange.h: Likewise.
65181         * lib/mountlist.c: Likewise.
65182         * lib/mountlist.h: Likewise.
65183         * lib/mpsort.c: Likewise.
65184         * lib/nanosleep.c: Likewise.
65185         * lib/obstack.c: Likewise.
65186         * lib/obstack.h: Likewise.
65187         * lib/open-safer.c: Likewise.
65188         * lib/open.c: Likewise.
65189         * lib/openat-die.c: Likewise.
65190         * lib/openat-priv.h: Likewise.
65191         * lib/openat-proc.c: Likewise.
65192         * lib/openat.c: Likewise.
65193         * lib/openat.h: Likewise.
65194         * lib/pagealign_alloc.c: Likewise.
65195         * lib/pagealign_alloc.h: Likewise.
65196         * lib/physmem.c: Likewise.
65197         * lib/physmem.h: Likewise.
65198         * lib/pipe-safer.c: Likewise.
65199         * lib/pipe.c: Likewise.
65200         * lib/pipe.h: Likewise.
65201         * lib/posixtm.c: Likewise.
65202         * lib/posixtm.h: Likewise.
65203         * lib/posixver.c: Likewise.
65204         * lib/printf-frexp.c: Likewise.
65205         * lib/printf-frexp.h: Likewise.
65206         * lib/printf-frexpl.c: Likewise.
65207         * lib/printf-frexpl.h: Likewise.
65208         * lib/printf.c: Likewise.
65209         * lib/progname.c: Likewise.
65210         * lib/progname.h: Likewise.
65211         * lib/progreloc.c: Likewise.
65212         * lib/putenv.c: Likewise.
65213         * lib/quote.c: Likewise.
65214         * lib/quote.h: Likewise.
65215         * lib/quotearg.c: Likewise.
65216         * lib/quotearg.h: Likewise.
65217         * lib/raise.c: Likewise.
65218         * lib/readline.c: Likewise.
65219         * lib/readline.h: Likewise.
65220         * lib/readlink.c: Likewise.
65221         * lib/readtokens.c: Likewise.
65222         * lib/readtokens.h: Likewise.
65223         * lib/readtokens0.c: Likewise.
65224         * lib/readtokens0.h: Likewise.
65225         * lib/readutmp.c: Likewise.
65226         * lib/readutmp.h: Likewise.
65227         * lib/realloc.c: Likewise.
65228         * lib/relocwrapper.c: Likewise.
65229         * lib/rename-dest-slash.c: Likewise.
65230         * lib/rename.c: Likewise.
65231         * lib/rmdir.c: Likewise.
65232         * lib/rpmatch.c: Likewise.
65233         * lib/safe-read.c: Likewise.
65234         * lib/safe-read.h: Likewise.
65235         * lib/safe-write.c: Likewise.
65236         * lib/safe-write.h: Likewise.
65237         * lib/same-inode.h: Likewise.
65238         * lib/same.c: Likewise.
65239         * lib/same.h: Likewise.
65240         * lib/save-cwd.c: Likewise.
65241         * lib/save-cwd.h: Likewise.
65242         * lib/savedir.c: Likewise.
65243         * lib/savedir.h: Likewise.
65244         * lib/savewd.c: Likewise.
65245         * lib/savewd.h: Likewise.
65246         * lib/search.in.h: Likewise.
65247         * lib/setenv.c: Likewise.
65248         * lib/setenv.h: Likewise.
65249         * lib/settime.c: Likewise.
65250         * lib/sh-quote.c: Likewise.
65251         * lib/sh-quote.h: Likewise.
65252         * lib/sig2str.c: Likewise.
65253         * lib/sig2str.h: Likewise.
65254         * lib/signal.in.h: Likewise.
65255         * lib/signbitd.c: Likewise.
65256         * lib/signbitf.c: Likewise.
65257         * lib/signbitl.c: Likewise.
65258         * lib/sigprocmask.c: Likewise.
65259         * lib/sincosl.c: Likewise.
65260         * lib/sleep.c: Likewise.
65261         * lib/sprintf.c: Likewise.
65262         * lib/sqrtl.c: Likewise.
65263         * lib/stat-time.h: Likewise.
65264         * lib/stdio--.h: Likewise.
65265         * lib/stdio-safer.h: Likewise.
65266         * lib/stdlib--.h: Likewise.
65267         * lib/stdlib-safer.h: Likewise.
65268         * lib/stdlib.in.h: Likewise.
65269         * lib/stpcpy.c: Likewise.
65270         * lib/stpncpy.c: Likewise.
65271         * lib/strchrnul.c: Likewise.
65272         * lib/strcspn.c: Likewise.
65273         * lib/strerror.c: Likewise.
65274         * lib/strftime.c: Likewise.
65275         * lib/strftime.h: Likewise.
65276         * lib/striconveh.c: Likewise.
65277         * lib/striconveh.h: Likewise.
65278         * lib/striconveha.c: Likewise.
65279         * lib/striconveha.h: Likewise.
65280         * lib/stripslash.c: Likewise.
65281         * lib/strnlen1.c: Likewise.
65282         * lib/strnlen1.h: Likewise.
65283         * lib/strtod.c: Likewise.
65284         * lib/strtoimax.c: Likewise.
65285         * lib/strtok_r.c: Likewise.
65286         * lib/strtol.c: Likewise.
65287         * lib/strtoll.c: Likewise.
65288         * lib/strtoul.c: Likewise.
65289         * lib/strtoull.c: Likewise.
65290         * lib/sysexits.in.h: Likewise.
65291         * lib/tempname.c: Likewise.
65292         * lib/tempname.h: Likewise.
65293         * lib/timespec.h: Likewise.
65294         * lib/tls.c: Likewise.
65295         * lib/tls.h: Likewise.
65296         * lib/tmpdir.c: Likewise.
65297         * lib/tmpdir.h: Likewise.
65298         * lib/tmpfile-safer.c: Likewise.
65299         * lib/tmpfile.c: Likewise.
65300         * lib/trigl.c: Likewise.
65301         * lib/trigl.h: Likewise.
65302         * lib/trim.c: Likewise.
65303         * lib/trim.h: Likewise.
65304         * lib/trunc.c: Likewise.
65305         * lib/truncf.c: Likewise.
65306         * lib/truncl.c: Likewise.
65307         * lib/tsearch.c: Likewise.
65308         * lib/unicodeio.c: Likewise.
65309         * lib/unicodeio.h: Likewise.
65310         * lib/unistd--.h: Likewise.
65311         * lib/unistd-safer.h: Likewise.
65312         * lib/unistdio/ulc-fprintf.c: Likewise.
65313         * lib/unistdio/ulc-vfprintf.c: Likewise.
65314         * lib/unlinkdir.c: Likewise.
65315         * lib/unlinkdir.h: Likewise.
65316         * lib/unlocked-io.h: Likewise.
65317         * lib/unsetenv.c: Likewise.
65318         * lib/userspec.c: Likewise.
65319         * lib/utime.c: Likewise.
65320         * lib/utimecmp.c: Likewise.
65321         * lib/utimecmp.h: Likewise.
65322         * lib/utimens.c: Likewise.
65323         * lib/verify.h: Likewise.
65324         * lib/verror.c: Likewise.
65325         * lib/verror.h: Likewise.
65326         * lib/version-etc-fsf.c: Likewise.
65327         * lib/version-etc.c: Likewise.
65328         * lib/version-etc.h: Likewise.
65329         * lib/vfprintf.c: Likewise.
65330         * lib/vprintf.c: Likewise.
65331         * lib/vsprintf.c: Likewise.
65332         * lib/w32spawn.h: Likewise.
65333         * lib/wait-process.c: Likewise.
65334         * lib/wait-process.h: Likewise.
65335         * lib/wcwidth.c: Likewise.
65336         * lib/write-any-file.c: Likewise.
65337         * lib/xalloc-die.c: Likewise.
65338         * lib/xalloc.h: Likewise.
65339         * lib/xasprintf.c: Likewise.
65340         * lib/xgetcwd.c: Likewise.
65341         * lib/xgetcwd.h: Likewise.
65342         * lib/xgetdomainname.c: Likewise.
65343         * lib/xgetdomainname.h: Likewise.
65344         * lib/xgethostname.c: Likewise.
65345         * lib/xmalloc.c: Likewise.
65346         * lib/xmalloca.c: Likewise.
65347         * lib/xmalloca.h: Likewise.
65348         * lib/xmemcoll.c: Likewise.
65349         * lib/xnanosleep.c: Likewise.
65350         * lib/xreadlink.c: Likewise.
65351         * lib/xreadlink.h: Likewise.
65352         * lib/xsetenv.c: Likewise.
65353         * lib/xsetenv.h: Likewise.
65354         * lib/xstriconv.c: Likewise.
65355         * lib/xstriconv.h: Likewise.
65356         * lib/xstrndup.c: Likewise.
65357         * lib/xstrndup.h: Likewise.
65358         * lib/xstrtod.c: Likewise.
65359         * lib/xstrtod.h: Likewise.
65360         * lib/xstrtol-error.c: Likewise.
65361         * lib/xstrtol.c: Likewise.
65362         * lib/xstrtol.h: Likewise.
65363         * lib/xtime.h: Likewise.
65364         * lib/xvasprintf.c: Likewise.
65365         * lib/xvasprintf.h: Likewise.
65366         * lib/yesno.c: Likewise.
65367         * lib/yesno.h: Likewise.
65368         * posix-modules: Likewise.
65369         * tests/test-alloca-opt.c: Likewise.
65370         * tests/test-arcfour.c: Likewise.
65371         * tests/test-arctwo.c: Likewise.
65372         * tests/test-argmatch.c: Likewise.
65373         * tests/test-argp-2.sh: Likewise.
65374         * tests/test-argp.c: Likewise.
65375         * tests/test-arpa_inet.c: Likewise.
65376         * tests/test-array_list.c: Likewise.
65377         * tests/test-array_oset.c: Likewise.
65378         * tests/test-atexit.c: Likewise.
65379         * tests/test-avltree_list.c: Likewise.
65380         * tests/test-avltree_oset.c: Likewise.
65381         * tests/test-avltreehash_list.c: Likewise.
65382         * tests/test-base64.c: Likewise.
65383         * tests/test-binary-io.c: Likewise.
65384         * tests/test-byteswap.c: Likewise.
65385         * tests/test-c-ctype.c: Likewise.
65386         * tests/test-c-strcasecmp.c: Likewise.
65387         * tests/test-c-strcasestr.c: Likewise.
65388         * tests/test-c-strncasecmp.c: Likewise.
65389         * tests/test-c-strstr.c: Likewise.
65390         * tests/test-canonicalize-lgpl.c: Likewise.
65391         * tests/test-canonicalize.c: Likewise.
65392         * tests/test-carray_list.c: Likewise.
65393         * tests/test-ceilf.c: Likewise.
65394         * tests/test-ceill.c: Likewise.
65395         * tests/test-count-one-bits.c: Likewise.
65396         * tests/test-crc.c: Likewise.
65397         * tests/test-dirname.c: Likewise.
65398         * tests/test-fbufmode.c: Likewise.
65399         * tests/test-fcntl.c: Likewise.
65400         * tests/test-fflush.c: Likewise.
65401         * tests/test-floorf.c: Likewise.
65402         * tests/test-floorl.c: Likewise.
65403         * tests/test-fopen.c: Likewise.
65404         * tests/test-fprintf-posix.c: Likewise.
65405         * tests/test-fprintf-posix.h: Likewise.
65406         * tests/test-fpurge.c: Likewise.
65407         * tests/test-freadable.c: Likewise.
65408         * tests/test-freadahead.c: Likewise.
65409         * tests/test-freading.c: Likewise.
65410         * tests/test-freopen.c: Likewise.
65411         * tests/test-frexp.c: Likewise.
65412         * tests/test-frexpl.c: Likewise.
65413         * tests/test-fseek.c: Likewise.
65414         * tests/test-fseeko.c: Likewise.
65415         * tests/test-fseterr.c: Likewise.
65416         * tests/test-fstrcmp.c: Likewise.
65417         * tests/test-ftell.c: Likewise.
65418         * tests/test-ftello.c: Likewise.
65419         * tests/test-fwritable.c: Likewise.
65420         * tests/test-fwriting.c: Likewise.
65421         * tests/test-getaddrinfo.c: Likewise.
65422         * tests/test-getpass.c: Likewise.
65423         * tests/test-gettimeofday.c: Likewise.
65424         * tests/test-hmac-md5.c: Likewise.
65425         * tests/test-hmac-sha1.c: Likewise.
65426         * tests/test-iconv.c: Likewise.
65427         * tests/test-iconvme.c: Likewise.
65428         * tests/test-inttypes.c: Likewise.
65429         * tests/test-isnan.c: Likewise.
65430         * tests/test-isnanf.c: Likewise.
65431         * tests/test-isnanl-nolibm.c: Likewise.
65432         * tests/test-isnanl.c: Likewise.
65433         * tests/test-isnanl.h: Likewise.
65434         * tests/test-ldexpl.c: Likewise.
65435         * tests/test-linked_list.c: Likewise.
65436         * tests/test-linkedhash_list.c: Likewise.
65437         * tests/test-locale.c: Likewise.
65438         * tests/test-localename.c: Likewise.
65439         * tests/test-lock.c: Likewise.
65440         * tests/test-lseek.c: Likewise.
65441         * tests/test-malloca.c: Likewise.
65442         * tests/test-math.c: Likewise.
65443         * tests/test-mbscasecmp.c: Likewise.
65444         * tests/test-mbscasestr1.c: Likewise.
65445         * tests/test-mbscasestr2.c: Likewise.
65446         * tests/test-mbscasestr3.c: Likewise.
65447         * tests/test-mbscasestr4.c: Likewise.
65448         * tests/test-mbschr.c: Likewise.
65449         * tests/test-mbscspn.c: Likewise.
65450         * tests/test-mbsncasecmp.c: Likewise.
65451         * tests/test-mbspbrk.c: Likewise.
65452         * tests/test-mbspcasecmp.c: Likewise.
65453         * tests/test-mbsrchr.c: Likewise.
65454         * tests/test-mbsspn.c: Likewise.
65455         * tests/test-mbsstr1.c: Likewise.
65456         * tests/test-mbsstr2.c: Likewise.
65457         * tests/test-mbsstr3.c: Likewise.
65458         * tests/test-md5.c: Likewise.
65459         * tests/test-memmem.c: Likewise.
65460         * tests/test-netinet_in.c: Likewise.
65461         * tests/test-open.c: Likewise.
65462         * tests/test-printf-frexp.c: Likewise.
65463         * tests/test-printf-frexpl.c: Likewise.
65464         * tests/test-printf-posix.c: Likewise.
65465         * tests/test-printf-posix.h: Likewise.
65466         * tests/test-rbtree_list.c: Likewise.
65467         * tests/test-rbtree_oset.c: Likewise.
65468         * tests/test-rbtreehash_list.c: Likewise.
65469         * tests/test-read-file.c: Likewise.
65470         * tests/test-rijndael.c: Likewise.
65471         * tests/test-search.c: Likewise.
65472         * tests/test-signbit.c: Likewise.
65473         * tests/test-sleep.c: Likewise.
65474         * tests/test-snprintf-posix.c: Likewise.
65475         * tests/test-snprintf-posix.h: Likewise.
65476         * tests/test-snprintf.c: Likewise.
65477         * tests/test-sprintf-posix.c: Likewise.
65478         * tests/test-sprintf-posix.h: Likewise.
65479         * tests/test-stat-time.c: Likewise.
65480         * tests/test-stdbool.c: Likewise.
65481         * tests/test-stdint.c: Likewise.
65482         * tests/test-stdio.c: Likewise.
65483         * tests/test-stdlib.c: Likewise.
65484         * tests/test-stpncpy.c: Likewise.
65485         * tests/test-strcasestr.c: Likewise.
65486         * tests/test-striconv.c: Likewise.
65487         * tests/test-striconveh.c: Likewise.
65488         * tests/test-striconveha.c: Likewise.
65489         * tests/test-string.c: Likewise.
65490         * tests/test-sys_select.c: Likewise.
65491         * tests/test-sys_socket.c: Likewise.
65492         * tests/test-sys_stat.c: Likewise.
65493         * tests/test-sys_time.c: Likewise.
65494         * tests/test-sysexits.c: Likewise.
65495         * tests/test-time.c: Likewise.
65496         * tests/test-tls.c: Likewise.
65497         * tests/test-trunc.c: Likewise.
65498         * tests/test-truncf.c: Likewise.
65499         * tests/test-truncl.c: Likewise.
65500         * tests/test-unistd.c: Likewise.
65501         * tests/test-vasnprintf-posix.c: Likewise.
65502         * tests/test-vasnprintf-posix2.c: Likewise.
65503         * tests/test-vasnprintf.c: Likewise.
65504         * tests/test-vasprintf-posix.c: Likewise.
65505         * tests/test-vasprintf.c: Likewise.
65506         * tests/test-verify.c: Likewise.
65507         * tests/test-vfprintf-posix.c: Likewise.
65508         * tests/test-vprintf-posix.c: Likewise.
65509         * tests/test-vsnprintf-posix.c: Likewise.
65510         * tests/test-vsnprintf.c: Likewise.
65511         * tests/test-vsprintf-posix.c: Likewise.
65512         * tests/test-wchar.c: Likewise.
65513         * tests/test-wctype.c: Likewise.
65514         * tests/test-wcwidth.c: Likewise.
65515         * tests/test-xstrtol.c: Likewise.
65516         * tests/test-xvasprintf.c: Likewise.
65517         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65518         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65519         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65520         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65521         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65522         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65523         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65524         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65525         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65526         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65527         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65528         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65529         * tests/uniname/test-uninames.c: Likewise.
65530         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65531         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65532         * tests/unistdio/test-u16-printf1.h: Likewise.
65533         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65534         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65535         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65536         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65537         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65538         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65539         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65540         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65541         * tests/unistdio/test-u32-printf1.h: Likewise.
65542         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65543         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65544         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65545         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65546         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65547         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65548         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65549         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65550         * tests/unistdio/test-u8-printf1.h: Likewise.
65551         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65552         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65553         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65554         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65555         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65556         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65557         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65558         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65559         * tests/unistdio/test-ulc-printf1.h: Likewise.
65560         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65561         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65562         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65563         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65564         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65565         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65566         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65567         * tests/uniwidth/test-u16-width.c: Likewise.
65568         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65569         * tests/uniwidth/test-u32-width.c: Likewise.
65570         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65571         * tests/uniwidth/test-u8-width.c: Likewise.
65572         * tests/uniwidth/test-uc_width.c: Likewise.
65573         * config/srclist-update: Likewise.
65574         (fixlicense): Update to GPLv3+.
65575
65576         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65577         * tests/test-tsearch.c: Change copyright notice.
65578
65579         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65580         * lib/c-strcaseeq.h: Change copyright notice.
65581         * lib/streq.h: Likewise.
65582         * lib/uniconv.h: Likewise.
65583         * lib/uniconv/u-conv-from-enc.h: Likewise.
65584         * lib/uniconv/u-conv-to-enc.h: Likewise.
65585         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65586         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65587         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65588         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65589         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65590         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65591         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65592         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65593         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65594         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65595         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65596         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65597         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65598         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65599         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65600         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65601         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65602         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65603         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65604         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65605         * lib/uniname.h: Likewise.
65606         * lib/uniname/uniname.c: Likewise.
65607         * lib/unistdio.h: Likewise.
65608         * lib/unistdio/u-asnprintf.h: Likewise.
65609         * lib/unistdio/u-asprintf.h: Likewise.
65610         * lib/unistdio/u-printf-args.c: Likewise.
65611         * lib/unistdio/u-printf-args.h: Likewise.
65612         * lib/unistdio/u-printf-parse.h: Likewise.
65613         * lib/unistdio/u-snprintf.h: Likewise.
65614         * lib/unistdio/u-sprintf.h: Likewise.
65615         * lib/unistdio/u-vasprintf.h: Likewise.
65616         * lib/unistdio/u-vsnprintf.h: Likewise.
65617         * lib/unistdio/u-vsprintf.h: Likewise.
65618         * lib/unistdio/u16-asnprintf.c: Likewise.
65619         * lib/unistdio/u16-asprintf.c: Likewise.
65620         * lib/unistdio/u16-printf-parse.c: Likewise.
65621         * lib/unistdio/u16-snprintf.c: Likewise.
65622         * lib/unistdio/u16-sprintf.c: Likewise.
65623         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65624         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65625         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65626         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65627         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65628         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65629         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65630         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65631         * lib/unistdio/u16-vasnprintf.c: Likewise.
65632         * lib/unistdio/u16-vasprintf.c: Likewise.
65633         * lib/unistdio/u16-vsnprintf.c: Likewise.
65634         * lib/unistdio/u16-vsprintf.c: Likewise.
65635         * lib/unistdio/u32-asnprintf.c: Likewise.
65636         * lib/unistdio/u32-asprintf.c: Likewise.
65637         * lib/unistdio/u32-printf-parse.c: Likewise.
65638         * lib/unistdio/u32-snprintf.c: Likewise.
65639         * lib/unistdio/u32-sprintf.c: Likewise.
65640         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65641         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65642         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65643         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65644         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65645         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65646         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65647         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65648         * lib/unistdio/u32-vasnprintf.c: Likewise.
65649         * lib/unistdio/u32-vasprintf.c: Likewise.
65650         * lib/unistdio/u32-vsnprintf.c: Likewise.
65651         * lib/unistdio/u32-vsprintf.c: Likewise.
65652         * lib/unistdio/u8-asnprintf.c: Likewise.
65653         * lib/unistdio/u8-asprintf.c: Likewise.
65654         * lib/unistdio/u8-printf-parse.c: Likewise.
65655         * lib/unistdio/u8-snprintf.c: Likewise.
65656         * lib/unistdio/u8-sprintf.c: Likewise.
65657         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65658         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65659         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65660         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65661         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65662         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65663         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65664         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65665         * lib/unistdio/u8-vasnprintf.c: Likewise.
65666         * lib/unistdio/u8-vasprintf.c: Likewise.
65667         * lib/unistdio/u8-vsnprintf.c: Likewise.
65668         * lib/unistdio/u8-vsprintf.c: Likewise.
65669         * lib/unistdio/ulc-asnprintf.c: Likewise.
65670         * lib/unistdio/ulc-asprintf.c: Likewise.
65671         * lib/unistdio/ulc-printf-parse.c: Likewise.
65672         * lib/unistdio/ulc-snprintf.c: Likewise.
65673         * lib/unistdio/ulc-sprintf.c: Likewise.
65674         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65675         * lib/unistdio/ulc-vasprintf.c: Likewise.
65676         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65677         * lib/unistdio/ulc-vsprintf.c: Likewise.
65678         * lib/unistr.h: Likewise.
65679         * lib/unistr/u-cpy-alloc.h: Likewise.
65680         * lib/unistr/u-cpy.h: Likewise.
65681         * lib/unistr/u-endswith.h: Likewise.
65682         * lib/unistr/u-move.h: Likewise.
65683         * lib/unistr/u-set.h: Likewise.
65684         * lib/unistr/u-startswith.h: Likewise.
65685         * lib/unistr/u-stpcpy.h: Likewise.
65686         * lib/unistr/u-stpncpy.h: Likewise.
65687         * lib/unistr/u-strcat.h: Likewise.
65688         * lib/unistr/u-strcpy.h: Likewise.
65689         * lib/unistr/u-strcspn.h: Likewise.
65690         * lib/unistr/u-strdup.h: Likewise.
65691         * lib/unistr/u-strlen.h: Likewise.
65692         * lib/unistr/u-strncat.h: Likewise.
65693         * lib/unistr/u-strncpy.h: Likewise.
65694         * lib/unistr/u-strnlen.h: Likewise.
65695         * lib/unistr/u-strpbrk.h: Likewise.
65696         * lib/unistr/u-strspn.h: Likewise.
65697         * lib/unistr/u-strstr.h: Likewise.
65698         * lib/unistr/u-strtok.h: Likewise.
65699         * lib/unistr/u16-check.c: Likewise.
65700         * lib/unistr/u16-chr.c: Likewise.
65701         * lib/unistr/u16-cmp.c: Likewise.
65702         * lib/unistr/u16-cpy-alloc.c: Likewise.
65703         * lib/unistr/u16-cpy.c: Likewise.
65704         * lib/unistr/u16-endswith.c: Likewise.
65705         * lib/unistr/u16-mblen.c: Likewise.
65706         * lib/unistr/u16-mbsnlen.c: Likewise.
65707         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65708         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65709         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65710         * lib/unistr/u16-mbtouc.c: Likewise.
65711         * lib/unistr/u16-mbtoucr.c: Likewise.
65712         * lib/unistr/u16-move.c: Likewise.
65713         * lib/unistr/u16-next.c: Likewise.
65714         * lib/unistr/u16-prev.c: Likewise.
65715         * lib/unistr/u16-set.c: Likewise.
65716         * lib/unistr/u16-startswith.c: Likewise.
65717         * lib/unistr/u16-stpcpy.c: Likewise.
65718         * lib/unistr/u16-stpncpy.c: Likewise.
65719         * lib/unistr/u16-strcat.c: Likewise.
65720         * lib/unistr/u16-strchr.c: Likewise.
65721         * lib/unistr/u16-strcmp.c: Likewise.
65722         * lib/unistr/u16-strcpy.c: Likewise.
65723         * lib/unistr/u16-strcspn.c: Likewise.
65724         * lib/unistr/u16-strdup.c: Likewise.
65725         * lib/unistr/u16-strlen.c: Likewise.
65726         * lib/unistr/u16-strmblen.c: Likewise.
65727         * lib/unistr/u16-strmbtouc.c: Likewise.
65728         * lib/unistr/u16-strncat.c: Likewise.
65729         * lib/unistr/u16-strncmp.c: Likewise.
65730         * lib/unistr/u16-strncpy.c: Likewise.
65731         * lib/unistr/u16-strnlen.c: Likewise.
65732         * lib/unistr/u16-strpbrk.c: Likewise.
65733         * lib/unistr/u16-strrchr.c: Likewise.
65734         * lib/unistr/u16-strspn.c: Likewise.
65735         * lib/unistr/u16-strstr.c: Likewise.
65736         * lib/unistr/u16-strtok.c: Likewise.
65737         * lib/unistr/u16-to-u32.c: Likewise.
65738         * lib/unistr/u16-to-u8.c: Likewise.
65739         * lib/unistr/u16-uctomb-aux.c: Likewise.
65740         * lib/unistr/u16-uctomb.c: Likewise.
65741         * lib/unistr/u32-check.c: Likewise.
65742         * lib/unistr/u32-chr.c: Likewise.
65743         * lib/unistr/u32-cmp.c: Likewise.
65744         * lib/unistr/u32-cpy-alloc.c: Likewise.
65745         * lib/unistr/u32-cpy.c: Likewise.
65746         * lib/unistr/u32-endswith.c: Likewise.
65747         * lib/unistr/u32-mblen.c: Likewise.
65748         * lib/unistr/u32-mbsnlen.c: Likewise.
65749         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65750         * lib/unistr/u32-mbtouc.c: Likewise.
65751         * lib/unistr/u32-mbtoucr.c: Likewise.
65752         * lib/unistr/u32-move.c: Likewise.
65753         * lib/unistr/u32-next.c: Likewise.
65754         * lib/unistr/u32-prev.c: Likewise.
65755         * lib/unistr/u32-set.c: Likewise.
65756         * lib/unistr/u32-startswith.c: Likewise.
65757         * lib/unistr/u32-stpcpy.c: Likewise.
65758         * lib/unistr/u32-stpncpy.c: Likewise.
65759         * lib/unistr/u32-strcat.c: Likewise.
65760         * lib/unistr/u32-strchr.c: Likewise.
65761         * lib/unistr/u32-strcmp.c: Likewise.
65762         * lib/unistr/u32-strcpy.c: Likewise.
65763         * lib/unistr/u32-strcspn.c: Likewise.
65764         * lib/unistr/u32-strdup.c: Likewise.
65765         * lib/unistr/u32-strlen.c: Likewise.
65766         * lib/unistr/u32-strmblen.c: Likewise.
65767         * lib/unistr/u32-strmbtouc.c: Likewise.
65768         * lib/unistr/u32-strncat.c: Likewise.
65769         * lib/unistr/u32-strncmp.c: Likewise.
65770         * lib/unistr/u32-strncpy.c: Likewise.
65771         * lib/unistr/u32-strnlen.c: Likewise.
65772         * lib/unistr/u32-strpbrk.c: Likewise.
65773         * lib/unistr/u32-strrchr.c: Likewise.
65774         * lib/unistr/u32-strspn.c: Likewise.
65775         * lib/unistr/u32-strstr.c: Likewise.
65776         * lib/unistr/u32-strtok.c: Likewise.
65777         * lib/unistr/u32-to-u16.c: Likewise.
65778         * lib/unistr/u32-to-u8.c: Likewise.
65779         * lib/unistr/u32-uctomb.c: Likewise.
65780         * lib/unistr/u8-check.c: Likewise.
65781         * lib/unistr/u8-chr.c: Likewise.
65782         * lib/unistr/u8-cmp.c: Likewise.
65783         * lib/unistr/u8-cpy-alloc.c: Likewise.
65784         * lib/unistr/u8-cpy.c: Likewise.
65785         * lib/unistr/u8-endswith.c: Likewise.
65786         * lib/unistr/u8-mblen.c: Likewise.
65787         * lib/unistr/u8-mbsnlen.c: Likewise.
65788         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65789         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65790         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65791         * lib/unistr/u8-mbtouc.c: Likewise.
65792         * lib/unistr/u8-mbtoucr.c: Likewise.
65793         * lib/unistr/u8-move.c: Likewise.
65794         * lib/unistr/u8-next.c: Likewise.
65795         * lib/unistr/u8-prev.c: Likewise.
65796         * lib/unistr/u8-set.c: Likewise.
65797         * lib/unistr/u8-startswith.c: Likewise.
65798         * lib/unistr/u8-stpcpy.c: Likewise.
65799         * lib/unistr/u8-stpncpy.c: Likewise.
65800         * lib/unistr/u8-strcat.c: Likewise.
65801         * lib/unistr/u8-strchr.c: Likewise.
65802         * lib/unistr/u8-strcmp.c: Likewise.
65803         * lib/unistr/u8-strcpy.c: Likewise.
65804         * lib/unistr/u8-strcspn.c: Likewise.
65805         * lib/unistr/u8-strdup.c: Likewise.
65806         * lib/unistr/u8-strlen.c: Likewise.
65807         * lib/unistr/u8-strmblen.c: Likewise.
65808         * lib/unistr/u8-strmbtouc.c: Likewise.
65809         * lib/unistr/u8-strncat.c: Likewise.
65810         * lib/unistr/u8-strncmp.c: Likewise.
65811         * lib/unistr/u8-strncpy.c: Likewise.
65812         * lib/unistr/u8-strnlen.c: Likewise.
65813         * lib/unistr/u8-strpbrk.c: Likewise.
65814         * lib/unistr/u8-strrchr.c: Likewise.
65815         * lib/unistr/u8-strspn.c: Likewise.
65816         * lib/unistr/u8-strstr.c: Likewise.
65817         * lib/unistr/u8-strtok.c: Likewise.
65818         * lib/unistr/u8-to-u16.c: Likewise.
65819         * lib/unistr/u8-to-u32.c: Likewise.
65820         * lib/unistr/u8-uctomb-aux.c: Likewise.
65821         * lib/unistr/u8-uctomb.c: Likewise.
65822         * lib/unitypes.h: Likewise.
65823         * lib/uniwidth.h: Likewise.
65824         * lib/uniwidth/cjk.h: Likewise.
65825         * lib/uniwidth/u16-strwidth.c: Likewise.
65826         * lib/uniwidth/u16-width.c: Likewise.
65827         * lib/uniwidth/u32-strwidth.c: Likewise.
65828         * lib/uniwidth/u32-width.c: Likewise.
65829         * lib/uniwidth/u8-strwidth.c: Likewise.
65830         * lib/uniwidth/u8-width.c: Likewise.
65831         * lib/uniwidth/width.c: Likewise.
65832
65833 2007-10-07  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65836         The file is still under LGPL (see modules/inttypes).
65837
65838 2007-10-06  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/trunc (Dependencies): Add 'extensions'.
65841         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65842         Reported by Ben Pfaff <blp@gnu.org>.
65843
65844 2007-10-06  Bruno Haible  <bruno@clisp.org>
65845
65846         * modules/freopen-tests: New file.
65847         * tests/test-freopen.c: New file.
65848
65849         * modules/fopen-tests: New file.
65850         * tests/test-fopen.c: New file.
65851
65852         * modules/fopen: New file.
65853         * lib/fopen.c: New file.
65854         * m4/fopen.m4: New file.
65855         * modules/freopen: New file.
65856         * lib/freopen.c: New file.
65857         * m4/freopen.m4: New file.
65858         * lib/stdio.in.h (fopen, freopen): New declarations.
65859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65860         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65861         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65862         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65863         * doc/functions/fopen.texi: Mention the 'fopen' module.
65864         * doc/functions/freopen.texi: Mention the 'freopen' module.
65865
65866 2007-10-06  Bruno Haible  <bruno@clisp.org>
65867
65868         * modules/open-tests: New file.
65869         * tests/test-open.c: New file.
65870
65871         * modules/open: New file.
65872         * lib/open.c: New file.
65873         * m4/open.m4: New file.
65874         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65875         lib/open.c does.
65876         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65877         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65878         macros.
65879         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65880         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65881         REPLACE_OPEN.
65882         * doc/functions/open.texi: Mention the 'open' module.
65883
65884 2007-10-04  Bruno Haible  <bruno@clisp.org>
65885
65886         * modules/ceill-tests: New file.
65887         * tests/test-ceill.c: New file.
65888
65889         * modules/ceill: New file.
65890         * lib/ceill.c: Replace entire file.
65891         * m4/ceill.m4: New file.
65892         * lib/math.in.h (ceill): Replace declaration.
65893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65894         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65895         * doc/functions/ceill.texi: Mention the 'ceill' module.
65896         * modules/mathl (Files): Remove lib/ceill.c.
65897         (Depends-on): Add ceill.
65898
65899 2007-10-04  Bruno Haible  <bruno@clisp.org>
65900
65901         * modules/ceilf-tests: New file.
65902         * tests/test-ceilf.c: New file.
65903
65904         * modules/ceilf: New file.
65905         * lib/ceil.c: New file.
65906         * lib/ceilf.c: New file.
65907         * m4/ceilf.m4: New file.
65908         * lib/math.in.h (ceilf): New declaration.
65909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65910         HAVE_DECL_CEILF.
65911         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65912         HAVE_DECL_CEILF.
65913         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65914
65915 2007-10-04  Bruno Haible  <bruno@clisp.org>
65916
65917         * modules/floorl-tests: New file.
65918         * tests/test-floorl.c: New file.
65919
65920         * modules/floorl: New file.
65921         * lib/floorl.c: Replace entire file.
65922         * m4/floorl.m4: New file.
65923         * lib/math.in.h (floorl): Replace declaration.
65924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65925         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65926         * doc/functions/floorl.texi: Mention the 'floorl' module.
65927         * modules/mathl (Files): Remove lib/floorl.c.
65928         (Depends-on): Add floorl.
65929
65930 2007-10-04  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/floorf-tests: New file.
65933         * tests/test-floorf.c: New file.
65934
65935         * modules/floorf: New file.
65936         * lib/floor.c: New file.
65937         * lib/floorf.c: New file.
65938         * m4/floorf.m4: New file.
65939         * lib/math.in.h (floorf): New declaration.
65940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65941         HAVE_DECL_FLOORF.
65942         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65943         HAVE_DECL_FLOORF.
65944         * doc/functions/floorf.texi: Mention the 'floorf' module.
65945
65946 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65947             Bruno Haible  <bruno@clisp.org>
65948
65949         Advertise for the Git server instead of the CVS server.
65950         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65951         repository instead of the CVS one.
65952         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65953         about all VCS systems generically.
65954         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65955
65956 2007-10-04  Bruno Haible  <bruno@clisp.org>
65957
65958         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65959         means.
65960         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65961
65962 2007-10-04  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/truncl-tests: New file.
65965         * tests/test-truncl.c: New file.
65966
65967         * modules/truncl: New file.
65968         * lib/truncl.c: New file.
65969         * m4/truncl.m4: New file.
65970         * lib/math.in.h (truncl): New declaration.
65971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65972         HAVE_DECL_TRUNCL.
65973         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65974         HAVE_DECL_TRUNCL.
65975         * doc/functions/truncl.texi: Mention the 'truncl' module.
65976
65977 2007-10-04  Bruno Haible  <bruno@clisp.org>
65978
65979         * modules/truncf-tests: New file.
65980         * tests/test-truncf.c: New file.
65981
65982         * modules/truncf: New file.
65983         * lib/trunc.c: Make paramerizable through USE_* macros.
65984         * lib/truncf.c: New file.
65985         * m4/truncf.m4: New file.
65986         * lib/math.in.h (truncf): New declaration.
65987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65988         HAVE_DECL_TRUNCF.
65989         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65990         HAVE_DECL_TRUNCF.
65991         * doc/functions/truncf.texi: Mention the 'truncf' module.
65992
65993 2007-10-03  Bruno Haible  <bruno@clisp.org>
65994
65995         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65996         augmentation also for tests modules.
65997         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65998         * modules/atexit-tests (Makefile.am): Likewise.
65999         * modules/binary-io-tests (Makefile.am): Likewise.
66000         * modules/c-strcase-tests (Makefile.am): Likewise.
66001         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66002         * modules/canonicalize-tests (Makefile.am): Likewise.
66003         * modules/closein-tests (Makefile.am): Likewise.
66004         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66005         * modules/freadahead-tests (Makefile.am): Likewise.
66006         * modules/fseek-tests (Makefile.am): Likewise.
66007         * modules/fseeko-tests (Makefile.am): Likewise.
66008         * modules/ftell-tests (Makefile.am): Likewise.
66009         * modules/ftello-tests (Makefile.am): Likewise.
66010         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66011         * modules/isnanl-tests (Makefile.am): Likewise.
66012         * modules/lseek-tests (Makefile.am): Likewise.
66013         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66014         * modules/mbscasestr-tests (Makefile.am): Likewise.
66015         * modules/mbschr-tests (Makefile.am): Likewise.
66016         * modules/mbscspn-tests (Makefile.am): Likewise.
66017         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66018         * modules/mbspbrk-tests (Makefile.am): Likewise.
66019         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66020         * modules/mbsrchr-tests (Makefile.am): Likewise.
66021         * modules/mbsspn-tests (Makefile.am): Likewise.
66022         * modules/mbsstr-tests (Makefile.am): Likewise.
66023         * modules/printf-posix-tests (Makefile.am): Likewise.
66024         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66025         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66026         * modules/tsearch-tests (Makefile.am): Likewise.
66027         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66028         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66029         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66030         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66031         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66032         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66033         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66034         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66035         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66036         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66037         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66038         * modules/xstrtol-tests (Makefile.am): Likewise.
66039         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66040         * modules/yesno-tests (Makefile.am): Likewise.
66041
66042 2007-10-03  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/trunc-tests: New file.
66045         * tests/test-trunc.c: New file.
66046
66047         * modules/trunc: New file.
66048         * lib/trunc.c: New file.
66049         * m4/trunc.m4: New file.
66050         * lib/math.in.h (trunc): New declaration.
66051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66052         HAVE_DECL_TRUNC.
66053         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66054         HAVE_DECL_TRUNC.
66055         * doc/functions/trunc.texi: Mention the 'trunc' module.
66056
66057 2007-10-03  Bruno Haible  <bruno@clisp.org>
66058
66059         * tests/test-fpending.c: New file, mostly copied
66060         from coreutils/lib/t-fpending.c.
66061         * modules/fpending-tests: New file.
66062
66063 2007-10-03  Bruno Haible  <bruno@clisp.org>
66064
66065         Port the stdio extensions to QNX (untested).
66066         * lib/fseterr.c (fseterr): Add support for QNX.
66067         * lib/fbufmode.c (fbufmode): Likewise.
66068         * lib/freadable.c (freadable): Likewise.
66069         * lib/fwritable.c (fwritable): Likewise.
66070         * lib/freading.c (freading): Likewise.
66071         * lib/fwriting.c (fwriting): Likewise.
66072         * lib/freadahead.c (freadahed): Likewise.
66073         * lib/fpurge.c (fpurge): Likewise.
66074         * lib/fseeko.c (rpl_fseeko): Likewise.
66075
66076 2007-10-03  Bruno Haible  <bruno@clisp.org>
66077             Jim Meyering  <jim@meyering.net>
66078             Eric Blake  <ebb9@byu.net>
66079
66080         * doc/relocatable.texi: Use @command instead of @program.
66081
66082 2007-10-02  Jim Meyering  <jim@meyering.net>
66083
66084         Perform one more "_.h" -> ".in.h" substitution.
66085         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66086         instead of unistd_.h here, too.
66087
66088 2007-10-01  Bruno Haible  <bruno@clisp.org>
66089
66090         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66091         Needed for the alloca-opt module.
66092
66093 2007-09-30  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66096         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66097         alloca_.h.
66098         * lib/argz.in.h: Renamed from lib/argz_.h.
66099         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66100         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66101         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66102         byteswap_.h.
66103         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66104         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66105         dirent_.h.
66106         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66107         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66108         fcntl_.h.
66109         * lib/float.in.h: Renamed from lib/float_.h.
66110         * modules/float (Files, Makefile.am): Use float.in.h instead of
66111         float_.h.
66112         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66113         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66114         fnmatch_.h.
66115         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66116         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66117         getopt_.h.
66118         * lib/glob.in.h: Renamed from lib/glob_.h.
66119         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66120         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66121         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66122         iconv_.h.
66123         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66124         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66125         inttypes_.h.
66126         * lib/locale.in.h: Renamed from lib/locale_.h.
66127         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66128         locale_.h.
66129         * lib/math.in.h: Renamed from lib/math_.h.
66130         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66131         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66132         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66133         of netinet_in_.h. Add dependency.
66134         * lib/poll.in.h: Renamed from lib/poll_.h.
66135         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66136         * lib/search.in.h: Renamed from lib/search_.h.
66137         * modules/search (Files, Makefile.am): Use search.in.h instead of
66138         search_.h.
66139         * lib/signal.in.h: Renamed from lib/signal_.h.
66140         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66141         _signal.h.
66142         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66143         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66144         stdbool_.h.
66145         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66146         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66147         stdint_.h.
66148         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66149         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66150         stdio_.h.
66151         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66152         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66153         stdlib_.h.
66154         * lib/string.in.h: Renamed from lib/string_.h.
66155         * modules/string (Files, Makefile.am): Use string.in.h instead of
66156         string_.h.
66157         * doc/gnulib-tool.texi (Initial import): Update.
66158         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66159         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66160         of sys_select_.h. Add dependency.
66161         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66162         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66163         of sys_socket_.h.
66164         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66165         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66166         sys_stat_.h.
66167         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66168         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66169         sys_time_.h.
66170         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66171         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66172         sysexits_.h.
66173         * lib/time.in.h: Renamed from lib/time_.h.
66174         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66175         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66176         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66177         unistd_.h.
66178         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66179         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66180         wchar_.h.
66181         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66182         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66183         wctype_.h.
66184         * build-aux/bootstrap (slurp): Update.
66185         * lib/.cppi-disable: Update.
66186
66187 2007-09-30  Bruno Haible  <bruno@clisp.org>
66188
66189         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66190         Needed on BeOS.
66191
66192 2007-09-30  Bruno Haible  <bruno@clisp.org>
66193
66194         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66195
66196 2007-09-29  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66199
66200 2007-09-29  Bruno Haible  <bruno@clisp.org>
66201
66202         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66203         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66204         * build-aux/install-reloc: Compile also areadlink.c.
66205         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66206
66207 2007-09-29  Bruno Haible  <bruno@clisp.org>
66208
66209         * gnulib-tool (func_emit_initmacro_done): Indentation.
66210
66211 2007-09-29  Bruno Haible  <bruno@clisp.org>
66212
66213         * README: Add CVS checkout update instructions.
66214         Info from Bob Proulx <bob@proulx.com>.
66215
66216 2007-09-28  Eric Blake  <ebb9@byu.net>
66217
66218         Provide move-if-change.
66219         * build-aux/move-if-change: New file, based on best practice
66220         rather than any canonical upstream location.
66221
66222 2007-09-28  Jim Meyering  <jim@meyering.net>
66223
66224         Fix canonicalize loop-detection corner case.
66225         Do not attempt to stat the symlink values stored via seen_triple.
66226         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66227         on linux-2.6.18, (but not 2.6.22).
66228         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66229         triple_compare.  The former compares dev,ino,filename, while the latter
66230         would actually stat dirname(filename) when dev and ino were equal.
66231         * lib/hash-triple.c: Install <string.h>.
66232         (STREQ): Define.
66233         (triple_compare_ino_str): New function.
66234         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66235
66236 2007-09-28  Eric Blake  <ebb9@byu.net>
66237
66238         Enforce that AC_REPLACE_FUNCS files exist.
66239         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66240         override check for typos.
66241
66242         Fix test-closein on Solaris 10.
66243         * tests/test-closein.c (main): Don't assume stdin can be inherited
66244         closed on all systems.
66245         * tests/test-closein.sh: Likewise.
66246         Reported by Piotr Tarnowski.
66247
66248 2007-09-28  Jim Meyering  <jim@meyering.net>
66249
66250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66251
66252 2007-09-27  Jim Meyering  <jim@meyering.net>
66253
66254         canonicalize: Avoid a false-positive cycle failure.
66255         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66256         Sort.  Remove cycle-check.
66257         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66258         not cycle-check.h.
66259         (seen_triple): New function.
66260         (canonicalize_filename_mode): Use it instead of cycle-check.
66261         * tests/test-canonicalize.c: Add a test for this bug.
66262         * tests/test-canonicalize.sh: Set up and run the test.
66263
66264         New module, file-set, from coreutils.
66265         * modules/file-set: Define it.
66266         * lib/file-set.c, lib/file-set.h: Implement.
66267
66268         New module, hash-triple, from coreutils.
66269         * modules/hash-triple: Define it.
66270         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66271
66272 2007-09-25  Eric Blake  <ebb9@byu.net>
66273
66274         Fix strerror on Interix.
66275         * lib/string_.h (strerror): Declare replacement.
66276         * doc/functions/strerror.texi (strerror): Document the Interix
66277         shortcoming.
66278         * modules/string (Makefile.am): Support new hooks.
66279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66280         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66281         gl_FUNC_STRERROR_SEPARATE.
66282         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66283         * lib/strerror.c (rpl_strerror): Provide replacement.
66284         * modules/strerror (Depends-on): Add string.
66285         (configure.ac): Detect use of module.
66286         * tests/test-strerror.c: New file.
66287         * modules/strerror-tests: New test module.
66288         * modules/argp (Depends-on): Add strerror.
66289         * modules/error (Depends-on): Likewise.
66290         Reported by Martin Koeppe.
66291
66292 2007-09-24  Bruno Haible  <bruno@clisp.org>
66293
66294         * README: Update git instructions.
66295
66296 2007-09-24  Eric Blake  <ebb9@byu.net>
66297
66298         Revert fpending breakage from 2007-09-08.
66299         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66300         __fpending.c.
66301
66302 2007-09-24  Jim Meyering  <jim@meyering.net>
66303
66304         filenamecat.c: Add a test.
66305         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66306         showing how the function works when DIR is the empty string.
66307
66308 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66309
66310         * tests/test-canonicalize.sh: Turn on executable bit.
66311
66312 2007-09-19  Eric Blake  <ebb9@byu.net>
66313
66314         * README: Update CVS instructions.
66315
66316 2007-09-18  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/areadlink: New file.
66319         * lib/areadlink.h (areadlink): New declaration.
66320         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66321
66322 2007-09-17  Jim Meyering  <jim@meyering.net>
66323
66324         * lib/savewd.c (ESTALE) [!defined]: Define.
66325         Reported to be required on Interix by Martin Koeppe.
66326
66327 2007-09-17  Bruno Haible  <bruno@clisp.org>
66328
66329         * gnulib-tool (func_version): Use $version.
66330
66331 2007-09-16  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66334         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66335         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66336         Reported by Greg Schafer <gschafer@zip.com.au>.
66337
66338 2007-09-15  Bruno Haible  <bruno@clisp.org>
66339
66340         * gnulib-tool (sed): Try a little harder to make bash understand the
66341         alias.
66342         Reported by Bruce Korb <bruce.korb@gmail.com>.
66343
66344 2007-09-13  Eric Blake  <ebb9@byu.net>
66345
66346         * ChangeLog: Remove conflict markers.
66347
66348 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66349
66350         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66351         Reported by Bruno Haible <bruno@clisp.org>.
66352
66353 2007-09-12  Bruno Haible  <bruno@clisp.org>
66354
66355         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66356         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66357         is not defined.
66358
66359 2007-09-12  Eric Blake  <ebb9@byu.net>
66360
66361         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66362         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66363         Autoconf definition.
66364         * modules/euidaccess (Depends-on): Add extensions, for
66365         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66366         * modules/fnmatch (Depends-on): Likewise.
66367         * modules/getaddrinfo (Depends-on): Likewise.
66368         * modules/getdelim (Depends-on): Likewise.
66369         * modules/getline (Depends-on): Likewise.
66370         * modules/getsubopt (Depends-on): Likewise.
66371         * modules/gettext (Depends-on): Likewise.
66372         * modules/group-member (Depends-on): Likewise.
66373         * modules/mbchar (Depends-on): Likewise.
66374         * modules/memmem (Depends-on): Likewise.
66375         * modules/mempcpy (Depends-on): Likewise.
66376         * modules/memrchr (Depends-on): Likewise.
66377         * modules/pagealign_alloc (Depends-on): Likewise.
66378         * modules/readutmp (Depends-on): Likewise.
66379         * modules/stpcpy (Depends-on): Likewise.
66380         * modules/stpncpy (Depends-on): Likewise.
66381         * modules/strchrnul (Depends-on): Likewise.
66382         * modules/strndup (Depends-on): Likewise.
66383         * modules/strsep (Depends-on): Likewise.
66384         * modules/strverscmp (Depends-on): Likewise.
66385         * modules/vasprintf (Depends-on): Likewise.
66386         * modules/wcwidth (Depends-on): Likewise.
66387         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66388         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66389         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66390         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66393         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66394         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66395         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66396         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66398         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66399         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66400         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66401         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66402         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66403         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66404         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66405         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66406         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66408         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66409         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66410         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66411         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66413         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66414         so that lock.m4 can be used in gettext without extensions module.
66415
66416 2007-09-11  Bruno Haible  <bruno@clisp.org>
66417
66418         * m4/isc-posix.m4: Remove file.
66419         Suggested by Eric Blake.
66420
66421 2007-09-11  Eric Blake  <ebb9@byu.net>
66422
66423         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66424
66425 2007-09-10  Bruno Haible  <bruno@clisp.org>
66426
66427         * posix-modules: Fix typo in error message.
66428         Reported by Matt <mkraai@beckman.com>.
66429
66430 2007-09-09  Bruno Haible  <bruno@clisp.org>
66431
66432         * doc/functions/getdelim.texi: Update list of platforms lacking the
66433         function.
66434         * doc/functions/getline.texi: Likewise.
66435
66436 2007-09-09  Jim Meyering  <jim@meyering.net>
66437
66438         * lib/hash.c (hash_initialize): Detect calloc failure.
66439         Reported by Bruno Haible.
66440
66441 2007-09-09  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66444         malloc or realloc fails.
66445
66446 2007-09-09  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/getcwd (Depends-on): Add malloc-posix.
66449         * modules/glob (Depends-on): Likewise.
66450         * modules/putenv (Depends-on): Likewise.
66451         * modules/strdup (Depends-on): Likewise.
66452         * modules/getdelim (Depends-on): Add realloc-posix.
66453         * modules/read-file (Depends-on): Likewise.
66454
66455 2007-09-09  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66458         (gl_FUNC_MALLOC_POSIX): Require it.
66459         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66460         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66461         * modules/realloc (Files): Add m4/malloc.m4.
66462         * modules/calloc (Files): Likewise.
66463
66464 2007-09-09  Bruno Haible  <bruno@clisp.org>
66465
66466         * modules/malloc-posix: New file.
66467         * modules/malloc (Depends-on): Add malloc-posix.
66468         * lib/malloc.c: Include errno.h.
66469         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66470         and a POSIX-compatible malloc into a single function. Set ENOMEM
66471         when returning NULL.
66472         * m4/malloc.m4: New file.
66473         * doc/functions/malloc.texi: Mention the malloc-posix module.
66474         * lib/stdlib_.h (malloc): New declaration.
66475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66476         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66477         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66478         and HAVE_MALLOC_POSIX.
66479
66480 2007-09-09  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/realloc-posix: New file.
66483         * modules/realloc (Depends-on): Add realloc-posix.
66484         * lib/realloc.c: Include errno.h.
66485         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66486         and a POSIX-compatible realloc into a single function. Set ENOMEM
66487         when returning NULL.
66488         * m4/realloc.m4: New file.
66489         * doc/functions/realloc.texi: Mention the realloc-posix module.
66490         * lib/stdlib_.h (realloc): New declaration.
66491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66492         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66493         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66494         and HAVE_REALLOC_POSIX.
66495
66496 2007-09-09  Bruno Haible  <bruno@clisp.org>
66497
66498         * modules/calloc-posix: New file.
66499         * modules/calloc (Depends-on): Add calloc-posix.
66500         * lib/calloc.c: Include errno.h.
66501         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66502         and a POSIX-compatible calloc into a single function. Set ENOMEM
66503         when returning NULL.
66504         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66505         * doc/functions/calloc.texi: Mention the calloc-posix module.
66506         * lib/stdlib_.h (calloc): New declaration.
66507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66508         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66509         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66510         and HAVE_CALLOC_POSIX.
66511
66512 2007-09-09  Bruno Haible  <bruno@clisp.org>
66513
66514         Allow for modules to show an arbitrary notice.
66515         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66516         * gnulib-tool: New option --extract-notice.
66517         (func_usage): Document it.
66518         (sed_extract_prog): Update.
66519         (func_get_notice): New function.
66520         (func_modules_notice): New function.
66521         (func_import, func_create_testdir): Invoke it.
66522         Suggested by Jim Meyering.
66523
66524 2007-09-09  Bruno Haible  <bruno@clisp.org>
66525
66526         * gnulib-tool: New options --verbose, --quiet.
66527         (func_usage): Document them.
66528         (verbose): New variable.
66529         (func_execute_command): New function.
66530         (func_import): Don't show the module list and the file list if
66531         $verbose < 0.
66532         (func_create_testdir): Likewise. Use func_execute_command.
66533         (func_create_megatestdir): Use func_execute_command.
66534
66535 2007-09-08  Bruno Haible  <bruno@clisp.org>
66536
66537         * gnulib-tool (func_import): Prefer rsync over wget when available,
66538         for fetching the PO files.
66539
66540 2007-09-08  Bruno Haible  <bruno@clisp.org>
66541
66542         * posix-modules: New file. Portions copied from gnulib-tool.
66543         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66544
66545 2007-09-08  Jim Meyering  <jim@meyering.net>
66546
66547         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66548         * lib/fpending.h: Rename from __fpending.h.
66549         * lib/fpending.c: Rename from __fpending.c.
66550         Include "fpending.h", not "__fpending.h".
66551         * lib/__fpending.h, lib/__fpending.c: Remove files.
66552         * modules/fpending (Files): Reflect new file names.
66553         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66554
66555 2007-09-08  Bruno Haible  <bruno@clisp.org>
66556
66557         * m4/inttypes-h.m4: Remove stub file.
66558
66559 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66560
66561         * doc/headers/stdint.texi: Discuss #include_next issue.
66562
66563 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66566
66567 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66568
66569         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66570         in variable name.
66571
66572 2007-09-03  Jim Meyering  <jim@meyering.net>
66573
66574         New module: git-version-gen.
66575         * modules/git-version-gen: New file.
66576
66577         Import changes from coreutils for bootstrap script.
66578
66579         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66580
66581         bootstrap: uses rsync to download the .po files
66582         * build-aux/bootstrap (po_download_command_format): New global.
66583         (download_po_files): Use rsync.
66584         (update_po_files): Don't remove .po files after download,
66585         so future rsync runs can take advantage of the copies.
66586
66587         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66588
66589         Solve the unnecessary-.po-file-regeneration problem once and for all.
66590         * build-aux/bootstrap (download_po_files): New function, renamed from
66591         get_translations.  Now, downloads, but doesn't update LINGUAS.
66592         (update_po_files): New function.
66593
66594         bootstrap: Ignore more.
66595         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66596         uniwidth to e.g., lib/.gitignore.
66597         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66598
66599         * build-aux/bootstrap: New setting: vc_ignore.
66600         (insert_sorted_if_absent): Create $file if absent.
66601         Adapt to new, possibly empty, list: $vc_ignore.
66602
66603         bootstrap: generate more ignorable names
66604         * build-aux/bootstrap (slurp): When generating ignorable names,
66605         also map .sin to .sed, .gperf to .c, and .y to .c.
66606
66607 2007-09-03  Jim Meyering  <jim@meyering.net>
66608
66609         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66610         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66611
66612 2007-09-02  Bruno Haible  <bruno@clisp.org>
66613
66614         Fix mis-recognition of 'mcs' on QNX 6.
66615         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66616         output contains the string "Mono".
66617         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66618         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66619
66620 2007-09-01  Bruno Haible  <bruno@clisp.org>
66621
66622         Fix collision between uniwidth/* and linebreak modules.
66623         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66624         u32_width): Remove declarations.
66625         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66626         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66627         streq3, streq2, streq1, streq0): Remove functions.
66628         (STREQ): Remove macro.
66629         (is_cjk_encoding): Remove function.
66630         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66631         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66632         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66633         * NEWS: Document the change.
66634
66635 2007-09-01  Bruno Haible  <bruno@clisp.org>
66636
66637         * lib/streq.h: Add double-inclusion guard.
66638
66639 2007-09-01  Karl Berry  <karl@gnu.org>
66640
66641         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66642
66643 2007-08-28  Jim Meyering  <jim@meyering.net>
66644
66645         Rename mreadlink_with_size to areadlink_with_size.
66646         * NEWS: Document the change.
66647         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66648         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66649         * lib/mreadlink.h: Rename this to...
66650         * lib/areadlink.h: ...this.
66651         * modules/mreadlink-with-size: Rename this to...
66652         * modules/areadlink-with-size: ...this.
66653         * lib/canonicalize.c: Reflect the renaming.
66654         * modules/canonicalize: Likewise.
66655
66656 2007-08-26  Bruno Haible  <bruno@clisp.org>
66657
66658         * gnulib-tool (func_import): When deciding which files to remove,
66659         consider also dangling symbolic links.
66660         Reported by Eric Blake.
66661
66662 2007-08-26  Bruno Haible  <bruno@clisp.org>
66663
66664         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66665
66666 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66667
66668         * lib/readline.c: Don't include getline.h, the prototype is now
66669         found in stdio.h.
66670
66671 2007-08-23  Jim Meyering  <jim@meyering.net>
66672
66673         Getdelim touchup.
66674         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66675         around the funlockfile call, since funlockfile never sets errno.
66676         Don't set errno upon failed realloc.
66677
66678 2007-08-22  Eric Blake  <ebb9@byu.net>
66679
66680         Getline touchups.
66681         * lib/getdelim.c (getdelim): Revert regression that required *n to
66682         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66683         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66684         getdelim, rather than whether implementation is missing.
66685         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66686         * lib/stdio_.h (getline): Also declare if replacement is
66687         required.
66688         * doc/functions/getdelim.texi: New file.
66689         * doc/functions/getline.texi: Likewise.
66690         * doc/gnulib.texi (Function Substitutes): Add new files.
66691         Reported by Bruno Haible.
66692
66693 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66694
66695         * users.txt: Add Guile.
66696
66697 2007-08-22  Eric Blake  <ebb9@byu.net>
66698
66699         * tests/test-getdelim.c (main): Use remove, not unlink.
66700         * tests/test-getline.c (main): Likewise.
66701
66702         Move getline and getdelim into stdio.h, per POSIX 200x.
66703         * modules/getline (Files): Remove getline.h.
66704         (Depends-on): Add stdio.
66705         (configure.ac): Add module indicator.
66706         * modules/getdelim (Files): Remove getdelim.h.
66707         (Depends-on): Add stdio.
66708         (configure.ac): Add module indicator.
66709         * modules/stdio (Makefile.am): Work with new indicators.
66710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66712         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66713         * lib/getdelim.h: Delete.
66714         * lib/getline.h: Delete.
66715         * lib/stdio_.h (getdelim, getline): Declare.
66716         * modules/getdelim-tests: New module.
66717         * modules/getline-tests: Likewise.
66718         * tests/test-getdelim.c: New file.
66719         * tests/test-getline.c: Likewise.
66720         * NEWS: Document the change.
66721         * lib/getline.c: Update choice of header.
66722         * lib/csharpcomp.c: Likewise.
66723         * lib/getpass.c: Likewise.
66724         * lib/javacomp.c: Likewise.
66725         * lib/javaversion.c: Likewise.
66726         * lib/yesno.c: Likewise.
66727         * lib/getdelim.c: Likewise.
66728         (getdelim): Set errno on failure, and avoid memory leak.
66729
66730 2007-08-19  Bruno Haible  <bruno@clisp.org>
66731
66732         * modules/closein (Depends-on): Add freadahead.
66733         * lib/closein.c: Include freadahead.h.
66734         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66735         is zero.
66736
66737 2007-08-19  Bruno Haible  <bruno@clisp.org>
66738
66739         * modules/freadahead-tests: New file.
66740         * tests/test-freadahead.sh: New file.
66741         * tests/test-freadahead.c: New file.
66742
66743         * modules/freadahead: New file.
66744         * lib/freadahead.h: New file.
66745         * lib/freadahead.c: New file.
66746         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66747         fbufmode, fpurge, freadable, fwritable.
66748
66749 2007-08-19  Eric Blake  <ebb9@byu.net>
66750
66751         Test yesno in combination with closein.
66752         * lib/yesno.c (yesno): Document use of stdin.
66753         * modules/yesno-tests (Files): New module.
66754         * tests/test-yesno.c (main): New file.
66755         * tests/test-yesno.sh: Likewise.
66756
66757 2007-08-19  Bruno Haible  <bruno@clisp.org>
66758
66759         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66760         * lib/fseeko.c (rpl_fseeko): Likewise.
66761         * lib/fseterr.c (fseterr): Likewise.
66762
66763 2007-08-19  Bruno Haible  <bruno@clisp.org>
66764
66765         * tests/test-lseek.c (main): Disable a test for BeOS.
66766         * doc/functions/lseek.texi: Document the BeOS bug.
66767
66768 2007-08-19  Bruno Haible  <bruno@clisp.org>
66769             Eric Blake  <ebb9@byu.net>
66770
66771         * lib/lseek.c: Include <sys/stat.h>.
66772         (rpl_lseek): Add workaround code also for Unix platforms.
66773         Needed for BeOS.
66774         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66775         * doc/functions/lseek.texi: Document BeOS definiency.
66776
66777 2007-08-18  Bruno Haible  <bruno@clisp.org>
66778
66779         * modules/fstrcmp-tests: New file.
66780         * tests/test-fstrcmp.c: New file.
66781
66782 2007-08-18  Bruno Haible  <bruno@clisp.org>
66783
66784         * modules/fstrcmp: New file, from GNU gettext with modifications.
66785         * lib/fstrcmp.h: New file, from GNU gettext.
66786         * lib/fstrcmp.c: New file, from GNU gettext.
66787         * MODULES.html.sh (String handling): Add fstrcmp.
66788
66789 2007-08-18  Bruno Haible  <bruno@clisp.org>
66790
66791         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66792         'bool'.
66793         (diag, compareseq): Remove const from the ctxt argument.
66794         (USE_HEURISTIC): Undefine at the end.
66795
66796 2007-08-18  Jim Meyering  <jim@meyering.net>
66797
66798         New file: lib/idcache.h
66799         * NEWS: Mention the addition.
66800         * modules/idcache (Files): Add lib/idcache.h
66801         * lib/idcache.c: Include "idcache.h".
66802         Don't include <sys/types.h>.
66803         Add a FIXME comment.
66804         Move file-scoped "static" declarations to the top.
66805         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66806
66807 2007-08-17  Bruno Haible  <bruno@clisp.org>
66808         and Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * MODULES.html.sh: Add diffseq.
66811         * modules/diffseq: New file.
66812         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66813         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66814
66815 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         Import changes from coreutils for bootstrap script.
66818
66819         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * build-aux/bootstrap (slurp): Work even in environments where
66822         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66823         current code does not slurp files whose names start with ".", and
66824         this looks like it might be a troublesome area.
66825
66826         2007-07-11  Jim Meyering  <jim@meyering.net>
66827
66828         If there's a GPL vN copyright comment, require that N == 3.
66829
66830         2007-07-08  Jim Meyering  <jim@meyering.net>
66831
66832         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66833         * build-aux/bootstrap (mam_template): Move definition out of loop.
66834
66835         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66836
66837         * build-aux/bootstrap (symlink_to_dir): Rename function from
66838         symlink_to_gnulib.  Add a directory parameter.  Update all
66839         callers.
66840         (cp_mark_as_generated): Also check for -- and link to -- files in
66841         gl/.
66842
66843         2007-07-08  Jim Meyering  <jim@meyering.net>
66844
66845         Adapt to deeper hierarchy in gnulib.
66846         * build-aux/bootstrap (symlink_to_dir): If the destination
66847         directory doesn't exist, create it. This is required at least for
66848         "lib/uniwidth/cjk.h".
66849
66850         2007-05-15  Jim Meyering  <jim@meyering.net>
66851
66852         * build-aux/bootstrap: Now that generated Makefile.am files
66853         are no longer under version control, they must be created at
66854         bootstrap time.
66855
66856 2007-08-14  Ben Pfaff  <blp@gnu.org>
66857
66858         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66859
66860 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66863         given the changes below.
66864         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66865         even on hosts that have padding bits beyond the supported 64.
66866
66867 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66870         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66871         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66872         depends on it.
66873         (xstrtol_error): Remove.
66874         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66875         but with a different signature.
66876         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66877         * lib/xstrtol-error.c: Include exitfail.h.
66878         (xstrtol_fatal): New function, with a different signature from the
66879         old xstrtol_error, so that the caller need not worry about passing
66880         in an exit status, or about storage management of the option argument.
66881         (xstrtol_error): Now a static function.  Redo signature to
66882         implement xstrtol_fatal.  Output the correct number of hyphens in
66883         front of the option so that the caller need not worry about
66884         storage management.
66885         (N_): New macro.
66886         (_): Remove; not used now.
66887         * modules/xstrtol: Depend on getopt.
66888         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66889         of old STRTOL_FATAL_ERROR macro.
66890         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66891         of test program.
66892         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66893         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66894
66895 2007-08-08  Eric Blake  <ebb9@byu.net>
66896
66897         * lib/xstrtol-error.c: Add missing include.
66898
66899         Move xstrtol messages into gnulib domain, when --pobase is used.
66900         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66901         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66902         * modules/xstrtol (Files): Distribute new file.
66903         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66904         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66905         * tests/test-xstrtol.c: ...into new file.
66906         * tests/test-xstrtoul.c: Also test xstrtoul.
66907         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66908         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66909         * tests/test-xstrtol.sh: Drive the tests.
66910         * tests/test-xstrtoimax.sh: Likewise.
66911         * tests/test-xstrtoumax.sh: Likewise.
66912         * modules/xstrtol-tests: New module.
66913         * modules/xstrtoimax-tests: Likewise.
66914         * modules/xstrtoumax-tests: Likewise.
66915
66916 2007-08-08  Jim Meyering  <jim@meyering.net>
66917
66918         New function: mfile_name_concat.
66919         * lib/filenamecat.c (mfile_name_concat): New function, just like
66920         file_name_concat, but return NULL upon failure rather than exiting
66921         with a diagnostic.
66922         * lib/filenamecat.h: Declare it.
66923
66924 2007-08-07  Bruno Haible  <bruno@clisp.org>
66925
66926         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66927         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66928         warning from gcc.
66929         Reported by Eric Blake.
66930
66931 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66932
66933         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66934         * modules/crypto/arcfour (License): Likewise.
66935         * modules/crypto/des-tests (License): Likewise.
66936         * modules/crypto/gc-arctwo-tests (License): Likewise.
66937         * modules/crypto/gc-des-tests (License): Likewise.
66938         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66939         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66940         * modules/crypto/gc-md2-tests (License): Likewise.
66941         * modules/crypto/gc-md4-tests (License): Likewise.
66942         * modules/crypto/gc-md5-tests (License): Likewise.
66943         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66944         * modules/crypto/gc-rijndael-tests (License): Likewise.
66945         * modules/crypto/gc-sha1-tests (License): Likewise.
66946         * modules/crypto/gc-tests (License): Likewise.
66947         * modules/crypto/hmac-md5 (License): Likewise.
66948         * modules/crypto/hmac-sha1 (License): Likewise.
66949         * modules/crypto/md2-tests (License): Likewise.
66950         * modules/crypto/md4-tests (License): Likewise.
66951         * modules/crypto/md5 (License): Likewise.
66952         * modules/crypto/rijndael (License): Likewise.
66953         * modules/crypto/sha1 (License): Likewise.
66954         * modules/memxor (License): Likewise.
66955
66956 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66957         and Bruno Haible  <bruno@clisp.org>
66958
66959         * NEWS: Describe interface changes to human, xstrtol.
66960         * lib/human.h: Include <xstrtol.h>.
66961         (human_options): Return enum strtol_error, not int.  Remove
66962         bool arg; take int * instead.
66963         * lib/human.c: Don't include "gettext.h".
66964         (_): Remove; no longer used.
66965         Don't include <xstrtol.h>, since human.h does it.
66966         (human_options): Adjust to abovementioned interface changes.
66967         Do not report error to stderr; that's now the caller's
66968         responsibility.
66969         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66970         interface change.
66971         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66972         Str, Argument_type_string.  All uses changed.  Put " argument"
66973         in diagnostics to make them clearer.  Change wording of suffix
66974         message for clarity.
66975         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66976         Argument_type_string.
66977         (STRTOL_FATAL_WARN): Remove; no longer used.
66978         * modules/human (Depends-on): Remove gettext-h.
66979
66980 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66981
66982         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66983
66984 2007-07-31  Bruno Haible  <bruno@clisp.org>
66985
66986         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66987         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66988         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66989
66990 2007-07-31  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66993         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66994
66995 2007-07-30  Bruno Haible  <bruno@clisp.org>
66996
66997         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66998         * modules/c-ctype (License): Likewise.
66999         * modules/c-strcase (License): Likewise.
67000         * modules/check-version (License): Likewise.
67001         * modules/iconv (License): Likewise.
67002         * modules/iconv_open (License): Likewise.
67003         * modules/read-file (License): Likewise.
67004         * modules/striconv (License): Likewise.
67005         * modules/strverscmp (License): Likewise.
67006         * modules/vasprintf (License): Likewise.
67007         * modules/crypto/des (License): Likewise.
67008         * modules/crypto/gc (License): Likewise.
67009         * modules/crypto/gc-arcfour (License): Likewise.
67010         * modules/crypto/gc-arctwo (License): Likewise.
67011         * modules/crypto/gc-des (License): Likewise.
67012         * modules/crypto/gc-hmac-md5 (License): Likewise.
67013         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67014         * modules/crypto/gc-md2 (License): Likewise.
67015         * modules/crypto/gc-md4 (License): Likewise.
67016         * modules/crypto/gc-md5 (License): Likewise.
67017         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67018         * modules/crypto/gc-random (License): Likewise.
67019         * modules/crypto/gc-rijndael (License): Likewise.
67020         * modules/crypto/gc-sha1 (License): Likewise.
67021         * modules/crypto/md2 (License): Likewise.
67022         * modules/crypto/md4 (License): Likewise.
67023
67024 2007-07-30  Jim Meyering  <jim@meyering.net>
67025
67026         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67027         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67028         it has valid stat data.  This bug would cause du not to count the
67029         sizes of inaccessible directories.
67030         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67031         in <http://bugzilla.redhat.com/250077>.
67032
67033 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67034             Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67037         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67038         #include_next, gives a diagnostic about it, but reports no error in
67039         the exit code.
67040         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67041
67042 2007-07-24  Ben Pfaff  <blp@gnu.org>
67043
67044         Improve name: "count-one-bits" is better than "popcount".
67045         * MODULES.html.sh: Update name.
67046         * lib/popcount.h: Renamed lib/count-one-bits.h.
67047         (popcount): Renamed count_one_bits.
67048         (popcountl): Renamed count_one_bits_l.
67049         (popcountll): Renamed count_one_bits_ll.
67050         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67051         * modules/popcount: Renamed module/count-one-bits.
67052         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67053         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67054
67055 2007-07-23  Ben Pfaff  <blp@gnu.org>
67056
67057         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67058         better code generation, and add U to large constants to avoid
67059         warnings, in non-GCC case.
67060         Suggested by Bruno Haible.
67061
67062 2007-07-23  Ben Pfaff  <blp@gnu.org>
67063
67064         * lib/popcount.h: Use verify_true instead of if...abort.
67065         * modules/popcount: Depend on verify module.
67066         Suggested by Jim Meyering.
67067
67068 2007-07-23  Bruno Haible  <bruno@clisp.org>
67069
67070         * gnulib-tool (func_import): Create a .cvsignore file also when the
67071         directory is not yet in CVS but the toplevel directory is. When
67072         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67073         Reported by Karl Berry.
67074
67075 2007-07-22  Ben Pfaff  <blp@gnu.org>
67076
67077         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67078         case.
67079         Suggested by Eric Blake.
67080
67081 2007-07-22  Ben Pfaff  <blp@gnu.org>
67082
67083         New module: popcount.
67084         * MODULES.html.sh: Add popcount.
67085         * modules/popcount: New file.
67086         * modules/popcount-tests: New file.
67087         * tests/test-popcount.c: New file.
67088         * lib/popcount.h: New file.
67089         * m4/popcount.m4: New file.
67090
67091 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * build-aux/announce-gen: Update to GPLv3.
67094
67095         * build-aux/config.guess: Update from config.
67096
67097 2007-07-21  Bruno Haible  <bruno@clisp.org>
67098
67099         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67100         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67101
67102 2007-07-20  Jim Meyering  <jim@meyering.net>
67103
67104         * check-module: Diagnose a self-dependency.
67105
67106 2007-07-19  Bruno Haible  <bruno@clisp.org>
67107
67108         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67109         empty.
67110         Reported by Eric Blake.
67111
67112 2007-07-18  Bruno Haible  <bruno@clisp.org>
67113
67114         * gnulib-tool: New options --po-base, --po-domain.
67115         (func_usage): Document them.
67116         (pobase, po_domain): New variables.
67117         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67118         DEFAULT_TEXT_DOMAIN.
67119         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67120         (func_import): Consider pobase and po_domain. Create a po/ directory.
67121         (func_create_testdir): Set pobase and po_domain to empty.
67122         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67123         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67124
67125 2007-07-18  Bruno Haible  <bruno@clisp.org>
67126
67127         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67128         EXTRA_DIST augmentation for files in build-aux/.
67129
67130 2007-07-16  Bruno Haible  <bruno@clisp.org>
67131
67132         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67133         * modules/getdelim (License): Likewise.
67134
67135 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67136
67137         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67138         * modules/d-type (License): Likewise.
67139         * modules/extensions (License): Likewise.
67140         * modules/fnmatch (License): Likewise.
67141         * modules/fseeko (License): Likewise.
67142         * modules/getaddrinfo (License): Likewise.
67143         * modules/getline (License): Likewise.
67144         * modules/getlogin_r (License): Likewise.
67145         * modules/getpass (License): Likewise.
67146         * modules/gettimeofday (License): Likewise.
67147         * modules/glob (License): Likewise.
67148         * modules/inet_ntop (License): Likewise.
67149         * modules/malloc (License): Likewise.
67150         * modules/malloca (License): Likewise.
67151         * modules/memmem (License): Likewise.
67152         * modules/mempcpy (License): Likewise.
67153         * modules/memset (License): Likewise.
67154         * modules/minmax (License): Likewise.
67155         * modules/mktime (License): Likewise.
67156         * modules/netinet_in (License): Likewise.
67157         * modules/pathmax (License): Likewise.
67158         * modules/poll (License): Likewise.
67159         * modules/regex (License): Likewise.
67160         * modules/snprintf (License): Likewise.
67161         * modules/stdbool (License): Likewise.
67162         * modules/stdint (License): Likewise.
67163         * modules/stdio (License): Likewise.
67164         * modules/strcase (License): Likewise.
67165         * modules/strcasestr (License): Likewise.
67166         * modules/strdup (License): Likewise.
67167         * modules/string (License): Likewise.
67168         * modules/strndup (License): Likewise.
67169         * modules/strnlen (License): Likewise.
67170         * modules/strpbrk (License): Likewise.
67171         * modules/strptime (License): Likewise.
67172         * modules/strsep (License): Likewise.
67173         * modules/sys_select (License): Likewise.
67174         * modules/sys_socket (License): Likewise.
67175         * modules/sys_stat (License): Likewise.
67176         * modules/sys_time (License): Likewise.
67177         * modules/time (License): Likewise.
67178         * modules/time_r (License): Likewise.
67179         * modules/timegm (License): Likewise.
67180         * modules/unistd (License): Likewise.
67181         * modules/vsnprintf (License): Likewise.
67182         * modules/wctype (License): Likewise.
67183
67184 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67185
67186         * modules/argz (License): LGPLv2+.
67187
67188 2007-07-15  Karl Berry  <karl@gnu.org>
67189
67190         * doc/gnulib.texi: revise node structure per new fdl.texi.
67191
67192 2007-07-14  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67195         the output file.
67196         * lib/uniname/uninames.h: Regenerated.
67197
67198 2007-07-14  Karl Berry  <karl@gnu.org>
67199
67200         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67201         omitting sectioning and index commands.
67202
67203 2007-07-13  Bruno Haible  <bruno@clisp.org>
67204
67205         New gnulib-tool option --more-symlinks.
67206         * gnulib-tool (func_usage): Document --more-symlinks.
67207         (do_copyrights): New variable.
67208         Recognize option --more-symlinks.
67209         (func_import): Don't add a copyright notice transform to
67210         sed_transform_lib_file if do_copyrights is empty.
67211
67212 2007-07-13  Bruno Haible  <bruno@clisp.org>
67213
67214         * lib/vasnprintf.c (decimal_point_char): Define also if
67215         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67216         && !NEED_PRINTF_DIRECTIVE_A.
67217         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67218         Gary V. Vaughan <gary@gnu.org>.
67219
67220 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/inttypes_.h: Undo previous change, since it was fixed
67223         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67224
67225 2007-07-13  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67228         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67229
67230 2007-07-13  Jim Meyering  <jim@meyering.net>
67231
67232         df: Don't fail for Tru64's "file-on-file mount".
67233         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67234         so we fall through and use statfs instead.  Details here:
67235         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67236         Reported by Albert Chin.
67237
67238 2007-07-13  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67241         * modules/configmake (License): Likewise.
67242         * modules/gettext (License): Likewise.
67243         * modules/gettext-h (License): Likewise.
67244         * modules/include_next (License): Likewise.
67245         * modules/link-warning (License): Likewise.
67246         * modules/localcharset (License): Likewise.
67247         * modules/localename (License): Likewise.
67248         * modules/lock (License): Likewise.
67249         * modules/relocatable-lib-lgpl (License): Likewise.
67250         * modules/size_max (License): Likewise.
67251         * modules/vasnprintf (License): Likewise.
67252         * modules/wchar (License): Likewise.
67253         * modules/xsize (License): Likewise.
67254
67255 2007-07-13  Bruno Haible  <bruno@clisp.org>
67256
67257         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67258         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67259
67260 2007-07-12  Bruno Haible  <bruno@clisp.org>
67261
67262         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67263         in the modules files.
67264
67265 2007-07-11  Karl Berry  <karl@gnu.org>
67266
67267         * MODULES.html.sh (func_module): use
67268          sed -e '\|^'"${includefile}"'$|d'
67269          instead of /.../d, to avoid errors on $includefile's containing /.
67270
67271 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67272
67273         * gnulib-tool (func_import): Avoid duplication of --avoid
67274         statements
67275         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67276         names to `_' in variable names.
67277
67278 2007-07-10  Eric Blake  <ebb9@byu.net>
67279
67280         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67281         * NEWS: Document this change.
67282
67283 2007-07-08  Bruno Haible  <bruno@clisp.org>
67284
67285         Update to Unicode 5.0.
67286         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67287         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67288         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67289         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67290         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67291         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67292         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67293         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67294         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67295         U+10A3F, U+1D242..U+1D244.
67296         (nonspacing_table_ind): Update.
67297         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67298         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67299
67300 2007-07-08  Bruno Haible  <bruno@clisp.org>
67301
67302         Update to Unicode 5.0.
67303         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67304         code transform. Extend the name index field of unicode_name_to_code and
67305         unicode_code_to_name from 16 to 24 bits.
67306         * lib/uniname/uniname.c (unicode_character_name,
67307         unicode_name_character): Add the range 0x12xxx to the code transform.
67308         * lib/uniname/uninames.h: Regenerated.
67309         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67310
67311 2007-07-07  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/wcwidth-tests: New file.
67314         * tests/test-wcwidth.c: New file.
67315
67316         Work around MacOS X wcwidth() bug.
67317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67318         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67319         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67320         original wcwidth in non-UTF-8 locales.
67321         * modules/wcwidth (Depends-on): Add localcharset, streq,
67322         uniwidth/width.
67323         * doc/functions/wcwidth.texi: Update.
67324
67325 2007-07-07  Bruno Haible  <bruno@clisp.org>
67326
67327         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67328         (wcwidth): New declaration.
67329         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67330         macros.
67331         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67332         here. Prepare for creating <wchar.h> unconditionally.
67333         * modules/wchar (Depends-on): Add link-warning.
67334         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67335         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67336         * lib/wcwidth.h: Remove file.
67337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67338         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67339         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67340         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67341         (Include): Replace wcwidth.h with <wchar.h>.
67342         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67343         * lib/mbchar.h: Don't include wcwidth.h.
67344         * lib/mbswidth.c: Likewise.
67345         * NEWS: Mention the change.
67346
67347 2007-07-07  Bruno Haible  <bruno@clisp.org>
67348
67349         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67350         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67351         definition with an external declaration.
67352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67353         defined as a function. Remove AC_C_INLINE requirement.
67354         * modules/wcwidth (Files): Add lib/wcwidth.c.
67355         (Makefile.am): Remove redundant statement.
67356
67357 2007-07-07  Bruno Haible  <bruno@clisp.org>
67358
67359         * MODULES.html.sh (Unicode string functions): Add the new modules.
67360
67361         * tests/uniwidth/test-u32-strwidth.c: New file.
67362         * modules/uniwidth/u32-strwidth-tests: New file.
67363
67364         * lib/uniwidth/u32-strwidth.c: New file.
67365         * modules/uniwidth/u32-strwidth: New file.
67366
67367         * tests/uniwidth/test-u16-strwidth.c: New file.
67368         * modules/uniwidth/u16-strwidth-tests: New file.
67369
67370         * lib/uniwidth/u16-strwidth.c: New file.
67371         * modules/uniwidth/u16-strwidth: New file.
67372
67373         * tests/uniwidth/test-u8-strwidth.c: New file.
67374         * modules/uniwidth/u8-strwidth-tests: New file.
67375
67376         * lib/uniwidth/u8-strwidth.c: New file.
67377         * modules/uniwidth/u8-strwidth: New file.
67378
67379         * tests/uniwidth/test-u32-width.c: New file.
67380         * modules/uniwidth/u32-width-tests: New file.
67381
67382         * lib/uniwidth/u32-width.c: New file.
67383         * modules/uniwidth/u32-width: New file.
67384
67385         * tests/uniwidth/test-u16-width.c: New file.
67386         * modules/uniwidth/u16-width-tests: New file.
67387
67388         * lib/uniwidth/u16-width.c: New file.
67389         * modules/uniwidth/u16-width: New file.
67390
67391         * tests/uniwidth/test-u8-width.c: New file.
67392         * modules/uniwidth/u8-width-tests: New file.
67393
67394         * lib/uniwidth/u8-width.c: New file.
67395         * modules/uniwidth/u8-width: New file.
67396
67397         * tests/uniwidth/test-uc_width.c: New file.
67398         * modules/uniwidth/width-tests: New file.
67399
67400         * lib/uniwidth/width.c: New file, from GNU libiconv.
67401         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67402         * modules/uniwidth/width: New file.
67403
67404         * lib/uniwidth.h: New file, from GNU libiconv.
67405         * modules/uniwidth/base: New file.
67406
67407 2007-07-07  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/uniname.h: New file, from GNU gettext.
67410         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67411         * lib/uniname/uninames.h: New file, from GNU gettext.
67412         * lib/uniname/uniname.c: New file, from GNU gettext.
67413         * tests/uniname/test-uninames.sh: New file.
67414         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67415         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67416         * modules/uniname/base: New file.
67417         * modules/uniname/uniname: New file.
67418         * modules/uniname/uniname-tests: New file.
67419         * MODULES.html.sh (Unicode string functions): Add the new modules.
67420
67421 2007-07-06  Bruno Haible  <bruno@clisp.org>
67422
67423         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67424
67425 2007-07-06  Bruno Haible  <bruno@clisp.org>
67426
67427         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67428         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67429         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67430         include <sys/time.h>.
67431         Reported by Eric Blake.
67432
67433 2007-07-06  Eric Blake  <ebb9@byu.net>
67434
67435         Fix testing canonicalize on cygwin.
67436         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67437         Revert patch from 2007-06-19.
67438         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67439         canonicalize module is also in use.
67440         * tests/test-canonicalize.c: New file.
67441         * tests/test-canonicalize.sh: Likewise.
67442         * modules/canonicalize-tests: Likewise.
67443
67444 2007-07-06  Jim Meyering  <jim@meyering.net>
67445
67446         * lib/getugroups.c (getugroups): Detect getgrent failure.
67447         Adjust comment to reflect reality: this function may return -1.
67448
67449 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67450
67451         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67452         the new TP address.
67453         (usage): Fix typo
67454         (gnulib_mk): New variable.
67455
67456 2007-07-05  Jim Meyering  <jim@meyering.net>
67457
67458         Don't let endgrent clobber errno, no matter how improbable.
67459         * lib/getugroups.c (getugroups): Save and restore errno around
67460         endgrent call.
67461
67462         Close the group DB even when failing with 2^31 or more members.
67463         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67464
67465 2007-07-04  Jim Meyering  <jim@meyering.net>
67466
67467         * lib/getugroups.h: New file.
67468         * lib/getugroups.c: Include "getugroups.h".
67469         Remove uses of "register" keyword.
67470         Move local variable, "cp", down into scope where used.
67471         Give "username" parameter the "const" attribute.
67472         * modules/getugroups (Files): Add lib/getugroups.h
67473
67474 2007-07-04  Karl Berry  <karl@gnu.org>
67475
67476         * MODULES.html.sh (func_all_modules): Complete rename of
67477         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67478
67479 2007-07-02  Bruno Haible  <bruno@clisp.org>
67480
67481         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67482         mode, when inttypes.h comes from gnulib.
67483         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67484
67485 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67486
67487         * NEWS: Mention lgpl module name change.
67488
67489         * modules/lgpl-2.1: Renamed from lgpl.
67490
67491         * NEWS: Mention gpl module name change.
67492
67493         * modules/gpl-3.0: New file, based on gpl-2.0.
67494
67495         * modules/gpl-2.0: Renamed from gpl.
67496
67497         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67498         doc/gpl-2.0.texi.
67499
67500 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67503         #define __STDC_LIMIT_MACROS temporarily while including
67504         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67505         Problem reported by Joel E. Denny in
67506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67507
67508 2007-07-01  Bruno Haible  <bruno@clisp.org>
67509
67510         * lib/unistdio.h: New file.
67511         * lib/unistdio/u-asnprintf.h: New file.
67512         * lib/unistdio/u-asprintf.h: New file.
67513         * lib/unistdio/u-printf-args.c: New file.
67514         * lib/unistdio/u-printf-args.h: New file.
67515         * lib/unistdio/u-printf-parse.h: New file.
67516         * lib/unistdio/u-snprintf.h: New file.
67517         * lib/unistdio/u-sprintf.h: New file.
67518         * lib/unistdio/u-vasprintf.h: New file.
67519         * lib/unistdio/u-vsnprintf.h: New file.
67520         * lib/unistdio/u-vsprintf.h: New file.
67521         * lib/unistdio/ulc-asnprintf.c: New file.
67522         * lib/unistdio/ulc-asprintf.c: New file.
67523         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67524         * lib/unistdio/ulc-printf-parse.c: New file.
67525         * lib/unistdio/ulc-snprintf.c: New file.
67526         * lib/unistdio/ulc-sprintf.c: New file.
67527         * lib/unistdio/ulc-vasnprintf.c: New file.
67528         * lib/unistdio/ulc-vasprintf.c: New file.
67529         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67530         * lib/unistdio/ulc-vsnprintf.c: New file.
67531         * lib/unistdio/ulc-vsprintf.c: New file.
67532         * lib/unistdio/u8-asnprintf.c: New file.
67533         * lib/unistdio/u8-asprintf.c: New file.
67534         * lib/unistdio/u8-printf-parse.c: New file.
67535         * lib/unistdio/u8-snprintf.c: New file.
67536         * lib/unistdio/u8-sprintf.c: New file.
67537         * lib/unistdio/u8-vasnprintf.c: New file.
67538         * lib/unistdio/u8-vasprintf.c: New file.
67539         * lib/unistdio/u8-vsnprintf.c: New file.
67540         * lib/unistdio/u8-vsprintf.c: New file.
67541         * lib/unistdio/u8-u8-asnprintf.c: New file.
67542         * lib/unistdio/u8-u8-asprintf.c: New file.
67543         * lib/unistdio/u8-u8-snprintf.c: New file.
67544         * lib/unistdio/u8-u8-sprintf.c: New file.
67545         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67546         * lib/unistdio/u8-u8-vasprintf.c: New file.
67547         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67548         * lib/unistdio/u8-u8-vsprintf.c: New file.
67549         * lib/unistdio/u16-asnprintf.c: New file.
67550         * lib/unistdio/u16-asprintf.c: New file.
67551         * lib/unistdio/u16-printf-parse.c: New file.
67552         * lib/unistdio/u16-snprintf.c: New file.
67553         * lib/unistdio/u16-sprintf.c: New file.
67554         * lib/unistdio/u16-vasnprintf.c: New file.
67555         * lib/unistdio/u16-vasprintf.c: New file.
67556         * lib/unistdio/u16-vsnprintf.c: New file.
67557         * lib/unistdio/u16-vsprintf.c: New file.
67558         * lib/unistdio/u16-u16-asnprintf.c: New file.
67559         * lib/unistdio/u16-u16-asprintf.c: New file.
67560         * lib/unistdio/u16-u16-snprintf.c: New file.
67561         * lib/unistdio/u16-u16-sprintf.c: New file.
67562         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67563         * lib/unistdio/u16-u16-vasprintf.c: New file.
67564         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67565         * lib/unistdio/u16-u16-vsprintf.c: New file.
67566         * lib/unistdio/u32-asnprintf.c: New file.
67567         * lib/unistdio/u32-asprintf.c: New file.
67568         * lib/unistdio/u32-printf-parse.c: New file.
67569         * lib/unistdio/u32-snprintf.c: New file.
67570         * lib/unistdio/u32-sprintf.c: New file.
67571         * lib/unistdio/u32-vasnprintf.c: New file.
67572         * lib/unistdio/u32-vasprintf.c: New file.
67573         * lib/unistdio/u32-vsnprintf.c: New file.
67574         * lib/unistdio/u32-vsprintf.c: New file.
67575         * lib/unistdio/u32-u32-asnprintf.c: New file.
67576         * lib/unistdio/u32-u32-asprintf.c: New file.
67577         * lib/unistdio/u32-u32-snprintf.c: New file.
67578         * lib/unistdio/u32-u32-sprintf.c: New file.
67579         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67580         * lib/unistdio/u32-u32-vasprintf.c: New file.
67581         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67582         * lib/unistdio/u32-u32-vsprintf.c: New file.
67583         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67584         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67585         * tests/unistdio/test-ulc-printf1.h: New file.
67586         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67587         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67588         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67589         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67590         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67591         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67592         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67593         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67594         * tests/unistdio/test-u8-asnprintf1.c: New file.
67595         * tests/unistdio/test-u8-asnprintf1.h: New file.
67596         * tests/unistdio/test-u8-printf1.h: New file.
67597         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67598         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67599         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67600         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67601         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67602         * tests/unistdio/test-u8-vasprintf1.c: New file.
67603         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67604         * tests/unistdio/test-u8-vsprintf1.c: New file.
67605         * tests/unistdio/test-u16-asnprintf1.c: New file.
67606         * tests/unistdio/test-u16-asnprintf1.h: New file.
67607         * tests/unistdio/test-u16-printf1.h: New file.
67608         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67609         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67610         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67611         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67612         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67613         * tests/unistdio/test-u16-vasprintf1.c: New file.
67614         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67615         * tests/unistdio/test-u16-vsprintf1.c: New file.
67616         * tests/unistdio/test-u32-asnprintf1.c: New file.
67617         * tests/unistdio/test-u32-asnprintf1.h: New file.
67618         * tests/unistdio/test-u32-printf1.h: New file.
67619         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67620         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67621         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67622         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67623         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67624         * tests/unistdio/test-u32-vasprintf1.c: New file.
67625         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67626         * tests/unistdio/test-u32-vsprintf1.c: New file.
67627         * modules/unistdio/base: New file.
67628         * modules/unistdio/u-printf-args: New file.
67629         * modules/unistdio/ulc-asnprintf: New file.
67630         * modules/unistdio/ulc-asprintf: New file.
67631         * modules/unistdio/ulc-fprintf: New file.
67632         * modules/unistdio/ulc-printf-parse: New file.
67633         * modules/unistdio/ulc-snprintf: New file.
67634         * modules/unistdio/ulc-sprintf: New file.
67635         * modules/unistdio/ulc-vasnprintf: New file.
67636         * modules/unistdio/ulc-vasprintf: New file.
67637         * modules/unistdio/ulc-vfprintf: New file.
67638         * modules/unistdio/ulc-vsnprintf: New file.
67639         * modules/unistdio/ulc-vsprintf: New file.
67640         * modules/unistdio/u8-asnprintf: New file.
67641         * modules/unistdio/u8-asprintf: New file.
67642         * modules/unistdio/u8-printf-parse: New file.
67643         * modules/unistdio/u8-snprintf: New file.
67644         * modules/unistdio/u8-sprintf: New file.
67645         * modules/unistdio/u8-vasnprintf: New file.
67646         * modules/unistdio/u8-vasprintf: New file.
67647         * modules/unistdio/u8-vsnprintf: New file.
67648         * modules/unistdio/u8-vsprintf: New file.
67649         * modules/unistdio/u8-u8-asnprintf: New file.
67650         * modules/unistdio/u8-u8-asprintf: New file.
67651         * modules/unistdio/u8-u8-snprintf: New file.
67652         * modules/unistdio/u8-u8-sprintf: New file.
67653         * modules/unistdio/u8-u8-vasnprintf: New file.
67654         * modules/unistdio/u8-u8-vasprintf: New file.
67655         * modules/unistdio/u8-u8-vsnprintf: New file.
67656         * modules/unistdio/u8-u8-vsprintf: New file.
67657         * modules/unistdio/u16-asnprintf: New file.
67658         * modules/unistdio/u16-asprintf: New file.
67659         * modules/unistdio/u16-printf-parse: New file.
67660         * modules/unistdio/u16-snprintf: New file.
67661         * modules/unistdio/u16-sprintf: New file.
67662         * modules/unistdio/u16-vasnprintf: New file.
67663         * modules/unistdio/u16-vasprintf: New file.
67664         * modules/unistdio/u16-vsnprintf: New file.
67665         * modules/unistdio/u16-vsprintf: New file.
67666         * modules/unistdio/u16-u16-asnprintf: New file.
67667         * modules/unistdio/u16-u16-asprintf: New file.
67668         * modules/unistdio/u16-u16-snprintf: New file.
67669         * modules/unistdio/u16-u16-sprintf: New file.
67670         * modules/unistdio/u16-u16-vasnprintf: New file.
67671         * modules/unistdio/u16-u16-vasprintf: New file.
67672         * modules/unistdio/u16-u16-vsnprintf: New file.
67673         * modules/unistdio/u16-u16-vsprintf: New file.
67674         * modules/unistdio/u32-asnprintf: New file.
67675         * modules/unistdio/u32-asprintf: New file.
67676         * modules/unistdio/u32-printf-parse: New file.
67677         * modules/unistdio/u32-snprintf: New file.
67678         * modules/unistdio/u32-sprintf: New file.
67679         * modules/unistdio/u32-vasnprintf: New file.
67680         * modules/unistdio/u32-vasprintf: New file.
67681         * modules/unistdio/u32-vsnprintf: New file.
67682         * modules/unistdio/u32-vsprintf: New file.
67683         * modules/unistdio/u32-u32-asnprintf: New file.
67684         * modules/unistdio/u32-u32-asprintf: New file.
67685         * modules/unistdio/u32-u32-snprintf: New file.
67686         * modules/unistdio/u32-u32-sprintf: New file.
67687         * modules/unistdio/u32-u32-vasnprintf: New file.
67688         * modules/unistdio/u32-u32-vasprintf: New file.
67689         * modules/unistdio/u32-u32-vsnprintf: New file.
67690         * modules/unistdio/u32-u32-vsprintf: New file.
67691         * modules/unistdio/ulc-asnprintf-tests: New file.
67692         * modules/unistdio/ulc-vasnprintf-tests: New file.
67693         * modules/unistdio/ulc-vasprintf-tests: New file.
67694         * modules/unistdio/ulc-vsnprintf-tests: New file.
67695         * modules/unistdio/ulc-vsprintf-tests: New file.
67696         * modules/unistdio/u8-asnprintf-tests: New file.
67697         * modules/unistdio/u8-vasnprintf-tests: New file.
67698         * modules/unistdio/u8-vasprintf-tests: New file.
67699         * modules/unistdio/u8-vsnprintf-tests: New file.
67700         * modules/unistdio/u8-vsprintf-tests: New file.
67701         * modules/unistdio/u16-asnprintf-tests: New file.
67702         * modules/unistdio/u16-vasnprintf-tests: New file.
67703         * modules/unistdio/u16-vasprintf-tests: New file.
67704         * modules/unistdio/u16-vsnprintf-tests: New file.
67705         * modules/unistdio/u16-vsprintf-tests: New file.
67706         * modules/unistdio/u32-asnprintf-tests: New file.
67707         * modules/unistdio/u32-vasnprintf-tests: New file.
67708         * modules/unistdio/u32-vasprintf-tests: New file.
67709         * modules/unistdio/u32-vsnprintf-tests: New file.
67710         * modules/unistdio/u32-vsprintf-tests: New file.
67711         * MODULES.html.sh (Unicode string functions): Add the new modules.
67712
67713 2007-07-01  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/sprintf.c (sprintf): Limit the available length estimation,
67716         to avoid address wraparound.
67717         * lib/vsprintf.c (vsprintf): Likewise.
67718         * modules/sprintf-posix (Dependencies): Add stdint.
67719         * modules/vsprintf-posix (Dependencies): Likewise.
67720
67721 2007-07-01  Bruno Haible  <bruno@clisp.org>
67722
67723         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67724         Windows PATH as well. Conservative double-quoting. Comments.
67725
67726 2007-07-01  Bruno Haible  <bruno@clisp.org>
67727             Eric Blake  <ebb9@byu.net>
67728             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67729
67730         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67731         empty components in $PATH, denoting '.'.
67732
67733 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67734
67735         * gnulib-tool: Fix indentation.
67736         (func_create_megatestdir): Likewise.
67737         Report by Bruno Haible.
67738
67739 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67740
67741         Sync from Automake.
67742         * build-aux/gnupload: Fix shell portability issues with for loops.
67743         Report by Karl Berry.
67744
67745 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67746
67747         * build-aux/maint.mk (POURL): Use translationproject.org.
67748
67749 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67750             Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67753         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67754         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67755         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67756         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67757
67758 2007-06-27  Bruno Haible  <bruno@clisp.org>
67759
67760         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67761         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67762
67763 2007-06-26  Karl Berry  <karl@gnu.org>
67764
67765         * MODULES.html.sh: remove xreadlink-with-size.
67766
67767 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67770         method that I hope also handles the double-include problem noted
67771         by Bruno Haible in
67772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67773
67774 2007-06-23  Bruno Haible  <bruno@clisp.org>
67775
67776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67777         Don't let the 'mostlyclean' target fail if the last subdirectory could
67778         not be removed.
67779         Reported by Karl Berry.
67780
67781 2007-06-23  Bruno Haible  <bruno@clisp.org>
67782
67783         * gnulib-tool (echo): Add a speedier workaround for ksh.
67784         * tests/test-echo.sh: Likewise.
67785
67786 2007-06-23  Bruno Haible  <bruno@clisp.org>
67787
67788         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67789         * tests/test-echo.sh: Likewise.
67790
67791 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67792
67793         * gnulib-tool (IFS): Initialize early, so we don't set it to
67794         empty later.
67795         (self_abspathname): Rewrite algorithm to set it, reindent.
67796         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67797         (func_create_megatestdir): Merge some sed scripts.
67798
67799 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67800
67801         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67802         exposed by Sun Studio 11 cc on Solaris 8.
67803
67804 2007-06-22  Bruno Haible  <bruno@clisp.org>
67805
67806         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67807         backslashes.
67808         * tests/test-echo.sh: New file.
67809
67810 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67811
67812         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67813         simplify `sed_replace_build_aux' scripts, they are portable but
67814         echoing them with `echo' is not.
67815         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67816
67817 2007-06-21  Karl Berry  <karl@gnu.org>
67818
67819         * config/srclist.txt: guess we can't handle the licenses via
67820         srclist at the moment.
67821
67822 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         * MODULES.html.sh: Add include_next.
67825         * modules/include_next: New file.
67826
67827 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67830         INCLUDE_NEXT.
67831         (gl_CHECK_NEXT_HEADERS): New macro.
67832         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67833         the obsolescent gl_ABSOLUTE_HEADER.
67834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67835         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67836         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67837         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67838         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67839         * m4/math_h.m4 (gl_MATH_H): Likewise.
67840         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67841         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67842         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67843         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67844         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67845         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67846         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67851         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67852         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67853         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67854         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67855         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67856         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67857         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67858         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67859         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67860         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67861         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67862         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67863         * lib/float_.h: Likewise.
67864         * lib/inttypes_.h: Likewise.
67865         * lib/math_.h: Likewise.
67866         * lib/search_.h: Likewise.
67867         * lib/signal_.h: Likewise.
67868         * lib/stdint_.h: Likewise.
67869         * lib/stdio_.h: Likewise.
67870         * lib/stdlib_.h: Likewise.
67871         * lib/string_.h: Likewise.
67872         * lib/sys_stat_.h: Likewise.
67873         * lib/sys_time_.h: Likewise.
67874         * lib/time_.h: Likewise.
67875         * lib/unistd_.h: Likewise.
67876         * lib/wchar_.h: Likewise.
67877         * lib/wctype_.h: Likewise.
67878         * lib/dirent_.h: Likewise.
67879         * lib/iconv_.h: Likewise.
67880         * lib/locale_.h: Likewise.
67881         * lib/netinet_in_.h: Likewise.
67882         * lib/sys_select_.h: Likewise.
67883         * lib/sys_socket_.h: Likewise.
67884         * lib/sysexits_.h: Likewise.
67885         * modules/fcntl (Depends-on): Depend on include_next, not
67886         absolute_header.
67887         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67888         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67889         * modules/fchdir: Likewise.
67890         * modules/float: Likewise.
67891         * modules/iconv_open: Likewise.
67892         * modules/inttypes: Likewise.
67893         * modules/locale: Likewise.
67894         * modules/math: Likewise.
67895         * modules/netinet_in: Likewise.
67896         * modules/search: Likewise.
67897         * modules/signal: Likewise.
67898         * modules/stdint: Likewise.
67899         * modules/stdio: Likewise.
67900         * modules/stdlib: Likewise.
67901         * modules/string: Likewise.
67902         * modules/sys_select: Likewise.
67903         * modules/sys_socket: Likewise.
67904         * modules/sys_stat: Likewise.
67905         * modules/sys_time: Likewise.
67906         * modules/sysexits: Likewise.
67907         * modules/time: Likewise.
67908         * modules/unistd: Likewise.
67909         * modules/wchar: Likewise.
67910         * modules/wctype: Likewise.
67911         * modules/sys_stat: Change maintainer to "all".
67912         * modules/unistd: Likewise.
67913
67914 2007-06-20  Karl Berry  <karl@gnu.org>
67915
67916         * config/srclist.txt: track www changes in license files.
67917
67918 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67919
67920         * build-aux/bootstrap: Remove stray dot.
67921         Make sure build_aux settings are honored when linking
67922         gnulib_extra_files.
67923
67924 2007-06-19  Eric Blake  <ebb9@byu.net>
67925
67926         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67927         Allow compilation on cygwin.
67928
67929 2007-06-19  Jim Meyering  <jim@meyering.net>
67930
67931         xreadlink-with-size: Remove module.  No longer used.
67932         Ex-callers now use xreadlink or mreadlink-with-size.
67933         * modules/xreadlink-with-size: Remove module.
67934         * lib/xreadlink-with-size.c: Remove file.
67935         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67936         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67937         just before the function definition *is* accurate.
67938
67939         Eliminate one way canonicalize_filename_mode could exit.
67940         * lib/canonicalize.c (canonicalize_filename_mode):
67941         Use mreadlink_with_size, not xreadlink_with_size.
67942
67943 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         Detect porting problems to FreeBSD/arm, which has time_t wider than
67946         long int.  Original problem reported for GNU diff by Xin Li in
67947         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67948         * modules/getdate (Depends-on): Add intprops, verify.
67949         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67950         is an integer type no wider than long int.
67951
67952 2007-06-18  Jim Meyering  <jim@meyering.net>
67953
67954         New module: mreadlink-with-size.
67955         * MODULES.html.sh: Add mreadlink-with-size.
67956         * modules/mreadlink-with-size: New module
67957         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67958         not xreadlink-with-size.
67959         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67960
67961 2007-06-16  Bruno Haible  <bruno@clisp.org>
67962
67963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67964         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67965         Reported by Gary V. Vaughan <gary@gnu.org>.
67966
67967 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         Revamp lchown so that it lives in unistd.h where it belongs.
67970         * lib/lchown.h: Remove.
67971         * lib/dirchownmod.c: Don't include lib/lchown.h.
67972         * lib/fchownat.c: Likewise.
67973         * lib/openat.c: Likewise.
67974         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67975         does not follow symlinks.
67976         (EOPNOTSUPP): Define if not defined.
67977         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67978         is defined to 0.
67979         (lchown): New decl.
67980         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67981         Do not check for lchown decl.
67982         Set REPLACE_LCHOWN.
67983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67984         REPLACE_LCHOWN.
67985         * modules/chown: Make it clear it follows symlinks.
67986         * modules/lchown: Make it clear it doesn't follow symlinks.
67987         (Files): Remove lib/lchown.h
67988         (Depends-on): Add unistd.
67989         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67990         (Include): Include <unistd.h>, not "lchown.h".
67991         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67992         REPLACE_LCHOWN.
67993
67994 2007-06-15  Jim Meyering  <jim@meyering.net>
67995
67996         Change license (GPL to LGPL) of fsusage and dependents.
67997         * modules/fsusage (License): Change to LGPL.
67998         * modules/full-read (License): Likewise.
67999         * modules/full-write (License): Likewise.
68000         * modules/safe-read (License): Likewise.
68001         * modules/safe-write (License): Likewise.
68002
68003 2007-06-14  Ben Pfaff  <blp@gnu.org>
68004
68005         Missing part of allocsa -> malloca transition.
68006         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68007         gl_MALLOCA.
68008
68009 2007-06-12  Bruno Haible  <bruno@clisp.org>
68010
68011         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68012         to ia64, x86_64, i386.
68013         Reported by Eric Blake.
68014
68015 2007-06-12  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68018         cross-compiling to x86_64.
68019
68020 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68023         glitch reported by Ralf Wildenhues in
68024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68025
68026         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68027         Vin Shelton.
68028
68029 2007-06-11  Bruno Haible  <bruno@clisp.org>
68030
68031         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68032         replacement string.
68033         Reported by Eric Blake.
68034
68035 2007-06-10  Bruno Haible  <bruno@clisp.org>
68036
68037         Prepare vasnprintf code for use with Unicode strings.
68038         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68039         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68040         TYPE_U32_STRING.
68041         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68042         a_u32_string variants.
68043         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68044         * lib/printf-args.c: Don't include config.h and the specification
68045         header if PRINTF_FETCHARGS is already defined.
68046         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68047         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68048         TYPE_U16_STRING, TYPE_U32_STRING.
68049         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68050         u16_directive, u16_directives, u32_directive, u32_directives): New
68051         types.
68052         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68053         New declarations.
68054         * lib/printf-parse.c: Don't include config.h and the specification
68055         header if PRINTF_PARSE is already defined. Eliminate the set of
68056         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68057         them now. Include c-ctype.h.
68058         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68059         directive and CHAR_T_ONLY_ASCII.
68060         * lib/vasnprintf.c: Don't include config.h and the specification header
68061         if VASNPRINTF is already defined.
68062         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68063         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68064         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68065         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68066         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68067         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68068         code accordingly.
68069         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68070         pad_ourselves also in this case, with the 'c' and 's' directives, and
68071         with a different notion of "width".
68072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68073
68074 2007-06-10  Bruno Haible  <bruno@clisp.org>
68075
68076         * modules/unistr/u32-mbsnlen: New file.
68077         * lib/unistr/u32-mbsnlen.c: New file.
68078
68079         * modules/unistr/u16-mbsnlen: New file.
68080         * lib/unistr/u16-mbsnlen.c: New file.
68081
68082         * modules/unistr/u8-mbsnlen: New file.
68083         * lib/unistr/u8-mbsnlen.c: New file.
68084
68085         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68086         declarations.
68087
68088 2007-06-10  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/string_.h (mbsnlen): New declaration.
68091         * lib/mbsnlen.c: New file.
68092         * m4/mbsnlen.m4: New file.
68093         * modules/mbsnlen: New file.
68094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68095         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68096         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68097
68098 2007-06-10  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68101
68102 2007-06-10  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68105         * lib/mbuiter.h: Likewise.
68106
68107 2007-06-10  Bruno Haible  <bruno@clisp.org>
68108
68109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68110         declaration.
68111
68112 2007-06-10  Karl Berry  <karl@gnu.org>
68113
68114         * config/srclist.txt: remove gettext entries, Bruno prefers
68115         to update individually.
68116
68117 2007-06-10  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68120         'maxlen'. Ensure only length + width bytes are allocated, not
68121         length + 1 + width.
68122
68123 2007-06-09  Bruno Haible  <bruno@clisp.org>
68124
68125         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68126         (CHAR_T): Remove macro.
68127         (VASNPRINTF): Update.
68128
68129 2007-06-09  Bruno Haible  <bruno@clisp.org>
68130
68131         * MODULES.html.sh (Unicode string functions): Add the new modules.
68132
68133         * modules/uniconv/u32-conv-to-enc: New file.
68134         * lib/uniconv/u32-conv-to-enc.c: New file.
68135         * modules/uniconv/u32-conv-to-enc-tests: New file.
68136         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68137
68138         * modules/uniconv/u16-conv-to-enc: New file.
68139         * lib/uniconv/u16-conv-to-enc.c: New file.
68140         * lib/uniconv/u-conv-to-enc.h: New file.
68141         * modules/uniconv/u16-conv-to-enc-tests: New file.
68142         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68143
68144         * modules/uniconv/u8-conv-to-enc: New file.
68145         * lib/uniconv/u8-conv-to-enc.c: New file.
68146         * modules/uniconv/u8-conv-to-enc-tests: New file.
68147         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68148
68149         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68150         u32_conv_to_encoding): New declarations.
68151
68152 2007-06-09  Bruno Haible  <bruno@clisp.org>
68153
68154         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68155
68156 2007-06-09  Bruno Haible  <bruno@clisp.org>
68157
68158         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68159         * modules/malloca: Renamed from modules/allocsa, updated.
68160         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68161         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68162         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68163         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68164         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68165         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68166         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68167         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68168         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68169         * modules/c-strcasestr (Depends-on): Update.
68170         * lib/c-strcasestr.c: Update.
68171         * modules/c-strstr (Depends-on): Update.
68172         * lib/c-strstr.c: Update.
68173         * modules/canonicalize-lgpl (Depends-on): Update.
68174         * lib/canonicalize-lgpl.c: Update.
68175         * modules/clean-temp (Depends-on): Update.
68176         * lib/clean-temp.c: Update.
68177         * modules/csharpcomp (Depends-on): Update.
68178         * lib/csharpcomp.c: Update.
68179         * modules/csharpexec (Depends-on): Update.
68180         * lib/csharpexec.c: Update.
68181         * modules/javacomp (Depends-on): Update.
68182         * lib/javacomp.c: Update.
68183         * modules/javaexec (Depends-on): Update.
68184         * lib/javaexec.c: Update.
68185         * modules/mbscasestr (Depends-on): Update.
68186         * lib/mbscasestr.c: Update.
68187         * modules/mbsstr (Depends-on): Update.
68188         * lib/mbsstr.c: Update.
68189         * modules/setenv (Depends-on): Update.
68190         * lib/setenv.c: Update.
68191         * modules/strcasestr (Depends-on): Update.
68192         * lib/strcasestr.c: Update.
68193         * modules/striconveha (Depends-on): Update.
68194         * lib/striconveha.c: Update.
68195         * modules/relocatable-prog-wrapper (Files): Update.
68196         * lib/relocwrapper.c: Update.
68197         * build-aux/install-reloc: Update.
68198         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68199
68200 2007-06-08  Bruno Haible  <bruno@clisp.org>
68201
68202         Port to uClibc.
68203         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68204         * lib/fpurge.c (fpurge): Likewise.
68205         * lib/freading.c (freading): Likewise.
68206         * lib/fseeko.c (rpl_fseeko): Likewise.
68207         * lib/fseterr.c (fseterr): Likewise.
68208         * lib/fwriting.c (fwriting): Likewise.
68209         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68210
68211 2007-06-08  Bruno Haible  <bruno@clisp.org>
68212
68213         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68214         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68215         * modules/gettext (Files): Add m4/intlmacosx.m4.
68216
68217 2007-06-07  Bruno Haible  <bruno@clisp.org>
68218
68219         * modules/localename-tests: New file.
68220         * tests/test-localename.c: New file.
68221
68222         New module 'localename'.
68223         * lib/localename.h: New file.
68224         * lib/localename.c: New file, from GNU gettext.
68225         * m4/localename.m4: New file.
68226         * modules/localename: New file.
68227
68228 2007-06-07  Bruno Haible  <bruno@clisp.org>
68229
68230         Work around the lack of <wchar.h> on some builds of uClibc.
68231         * doc/headers/wchar.texi: Update.
68232         * lib/wchar_.h: Include <wchar.h> only if it exists.
68233         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68234         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68235         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68236         doesn't exist.
68237         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68238         * modules/mbfile (Depends-on): Add wchar.
68239         * modules/mbiter (Depends-on): Likewise.
68240         * modules/mbuiter (Depends-on): Likewise.
68241         Reported by Simon Josefsson.
68242
68243 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         Work around problem reported by Steven M. Schweda in
68246         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68247         Tru64 5.1B with the Compaq compiler environment installed declares
68248         an 'isblank' function but does not define it in the C library.
68249         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68250         * lib/regex_internal.h (isblank): Likewise.
68251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68252         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68253
68254 2007-06-05  Bruno Haible  <bruno@clisp.org>
68255
68256         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68257         ia64.
68258         * modules/printf-safe: New file.
68259         * modules/fprintf-posix (Depends-on): Add printf-safe.
68260         * modules/printf-posix (Depends-on): Likewise.
68261         * modules/snprintf-posix (Depends-on): Likewise.
68262         * modules/sprintf-posix (Depends-on): Likewise.
68263         * modules/vasnprintf-posix (Depends-on): Likewise.
68264         * modules/vasprintf-posix (Depends-on): Likewise.
68265         * modules/vfprintf-posix (Depends-on): Likewise.
68266         * modules/vprintf-posix (Depends-on): Likewise.
68267         * modules/vsnprintf-posix (Depends-on): Likewise.
68268         * modules/vsprintf-posix (Depends-on): Likewise.
68269         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68270         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68271         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68272         "no" on i386, x86_64, ia64.
68273         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68274         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68275         on i386, x86_64, ia64.
68276         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68277         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68278         on i386, x86_64, ia64.
68279         * tests/test-vasnprintf-posix.c: Include float.h.
68280         (LDBL80_WORDS): New macro.
68281         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68282         on i386, x86_64, ia64.
68283         * tests/test-vasprintf-posix.c: Include float.h.
68284         (LDBL80_WORDS): New macro.
68285         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68286         on i386, x86_64, ia64.
68287         * tests/test-snprintf-posix.c: Include float.h.
68288         * tests/test-sprintf-posix.c: Likewise.
68289         * tests/test-vsnprintf-posix.c: Likewise.
68290         * tests/test-vsprintf-posix.c: Likewise.
68291
68292 2007-06-05  Bruno Haible  <bruno@clisp.org>
68293
68294         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68295         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68296         non-IEEE numbers on i386, x86_64, ia64.
68297         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68298         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68299         * tests/test-isnanl.h: Include float.h.
68300         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68301
68302 2007-06-05  Bruno Haible  <bruno@clisp.org>
68303
68304         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68305         also the %a / %A. Handle the %a / %A code before this extra handling.
68306
68307 2007-06-05  Bruno Haible  <bruno@clisp.org>
68308
68309         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68310         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68311
68312 2007-06-05  Bruno Haible  <bruno@clisp.org>
68313
68314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68315         typo in variable name.
68316
68317 2007-06-05  Eric Blake  <ebb9@byu.net>
68318
68319         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68320         Reported by Simon Josefsson.
68321
68322 2007-06-04  Bruno Haible  <bruno@clisp.org>
68323
68324         Avoid test failures on some PowerPC platforms.
68325         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68326         Define differently for PowerPC.
68327         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68328         Reported by Gary V. Vaughan <gary@gnu.org>.
68329
68330 2007-06-02  Bruno Haible  <bruno@clisp.org>
68331
68332         Fix test-stdint failure on FreeBSD/ia64.
68333         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68334         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68335         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68336         * doc/headers/stdint.texi: Update.
68337
68338 2007-06-01  Bruno Haible  <bruno@clisp.org>
68339
68340         * tests/test-binary-io.c (main): Pass a third argument to open().
68341         Reported by Gary V. Vaughan <gary@gnu.org>.
68342
68343 2007-06-01  Bruno Haible  <bruno@clisp.org>
68344
68345         * doc/functions/frexpl.texi: Update for mingw.
68346
68347 2007-06-01  Bruno Haible  <bruno@clisp.org>
68348
68349         * tests/test-lseek.c (main): Disable test of errno for invalid third
68350         argument.
68351         * doc/functions/lseek.texi: Update.
68352         Reported by Gary V. Vaughan <gary@gnu.org>.
68353
68354 2007-05-28  Bruno Haible  <bruno@clisp.org>
68355
68356         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68357
68358 2007-05-31  Eric Blake  <ebb9@byu.net>
68359
68360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68361         cross compiling.
68362
68363 2007-05-30  Eric Blake  <ebb9@byu.net>
68364         and Bruno Haible  <bruno@clisp.org>
68365
68366         Work around mingw test failures exposed by m4-1.4.9b.
68367         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68368         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68369         moment.
68370
68371 2007-05-30  Bruno Haible  <bruno@clisp.org>
68372
68373         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68374         assuming that they are closed. Needed on HP-UX 11.
68375
68376 2007-05-29  Bruno Haible  <bruno@clisp.org>
68377
68378         Fix a problem with #include_next.
68379         * lib/dirent_.h: Split the double-inclusion guard.
68380         * lib/fcntl_.h: Likewise.
68381         * lib/float_.h: Likewise.
68382         * lib/iconv_.h: Likewise.
68383         * lib/inttypes_.h: Likewise.
68384         * lib/locale_.h: Likewise.
68385         * lib/math_.h: Likewise.
68386         * lib/netinet_in_.h: Likewise.
68387         * lib/search_.h: Likewise.
68388         * lib/signal_.h: Likewise.
68389         * lib/stdint_.h: Likewise.
68390         * lib/stdio_.h: Likewise.
68391         * lib/stdlib_.h: Likewise.
68392         * lib/string_.h: Likewise.
68393         * lib/sys_select_.h: Likewise.
68394         * lib/sys_socket_.h: Likewise.
68395         * lib/sys_stat_.h: Likewise.
68396         * lib/sys_time_.h: Likewise.
68397         * lib/sysexits_.h: Likewise.
68398         * lib/time_.h: Likewise.
68399         * lib/unistd_.h: Likewise.
68400         * lib/wchar_.h: Likewise.
68401         * lib/wctype_.h: Likewise.
68402
68403 2007-05-29  Bruno Haible  <bruno@clisp.org>
68404
68405         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68406         for the moment.
68407
68408 2007-05-29  Bruno Haible  <bruno@clisp.org>
68409
68410         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68411         invocation.
68412         Reported by Eric Blake.
68413
68414 2007-05-29  Bruno Haible  <bruno@clisp.org>
68415
68416         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68417         compiling case.
68418
68419 2007-05-29  Eric Blake  <ebb9@byu.net>
68420             Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68423         cross compiles.
68424
68425 2007-05-28  Eric Blake  <ebb9@byu.net>
68426
68427         * modules/closein-tests (test_closein_LDADD): Support test on
68428         cygwin with libtool.
68429
68430 2007-05-28  Bruno Haible  <bruno@clisp.org>
68431
68432         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68433         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68434         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68435         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68436         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68437         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68438         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68439         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68440         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68441
68442 2007-05-28  Eric Blake  <ebb9@byu.net>
68443
68444         Unconditionally include <config.h> in unit tests.
68445         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68446         * tests/test-allocsa.c, tests/test-arcfour.c,
68447         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68448         tests/test-array_list.c, tests/test-array_oset.c,
68449         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68450         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68451         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68452         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68453         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68454         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68455         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68456         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68457         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68458         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68459         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68460         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68461         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68462         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68463         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68464         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68465         test-md5.c, test-memmem.c, test-printf-posix.c,
68466         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68467         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68468         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68469         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68470         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68471         test-vasnprintf-posix2.c, test-vasnprintf.c,
68472         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68473         test-vfprintf-posix.c, test-vprintf-posix.c,
68474         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68475         test-xvasprintf.c: Likewise.
68476
68477 2007-05-28  Bruno Haible  <bruno@clisp.org>
68478
68479         * gnulib-tool (func_import): Remember the --with-tests command-line
68480         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68481         Reported by Eric Blake.
68482
68483 2007-05-28  Bruno Haible  <bruno@clisp.org>
68484
68485         * modules/ftell-tests: New file.
68486         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68487         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68488
68489         * lib/ftell.c: New file.
68490         * modules/ftell: New file.
68491         * m4/ftell.m4: New file.
68492         * doc/functions/ftell.texi: Update.
68493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68494         REPLACE_FTELL.
68495         * lib/stdio_.h (rpl_ftell): New declaration.
68496         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68497         REPLACE_FTELL.
68498
68499 2007-05-28  Eric Blake  <ebb9@byu.net>
68500
68501         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68502
68503 2007-05-28  Bruno Haible  <bruno@clisp.org>
68504
68505         * modules/fseek-tests: New file.
68506         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68507         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68508
68509         * lib/fseek.c: New file.
68510         * modules/fseek: New file.
68511         * m4/fseek.m4: New file.
68512         * doc/functions/fseek.texi: Update.
68513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68514         REPLACE_FSEEK.
68515         * lib/stdio_.h (rpl_fseek): New declaration.
68516         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68517         REPLACE_FSEEK.
68518
68519 2007-05-28  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/stdio_.h (fflush): More comments.
68522
68523 2007-05-28  Bruno Haible  <bruno@clisp.org>
68524
68525         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68526         runtime test.
68527
68528 2007-05-28  Eric Blake  <ebb9@byu.net>
68529
68530         Improve lseek module.
68531         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68532         * lib/unistd_.h (lseek): Scale back link warning message.
68533         * tests/test-lseek.c: Beef up test.
68534         * tests/test-lseek.sh: Exercise more facets of lseek.
68535         Reported by Bruno Haible.
68536
68537 2007-05-28  Bruno Haible  <bruno@clisp.org>
68538
68539         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68540         to define.
68541
68542 2007-05-27  Bruno Haible  <bruno@clisp.org>
68543
68544         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68545
68546 2007-05-27  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/openmp: New file.
68549         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68550         Noah Misch.
68551
68552 2007-05-26  Bruno Haible  <bruno@clisp.org>
68553
68554         * modules/chdir-long (Depends-on): Add fchdir.
68555         * modules/chdir-safer (Depends-on): Likewise.
68556         * modules/fts (Depends-on): Likewise.
68557         * modules/fts-lgpl (Depends-on): Likewise.
68558         * modules/openat (Depends-on): Likewise.
68559         * modules/savewd (Depends-on): Likewise.
68560
68561 2007-05-24  Eric Blake  <ebb9@byu.net>
68562
68563         Fix lseek on mingw.
68564         * modules/lseek: New module.
68565         * m4/lseek.m4: New file.
68566         * lib/lseek.c: New file.
68567         * modules/lseek-tests: New file.
68568         * tests/test-lseek.c: New file.
68569         * tests/test-lseek.sh: New file.
68570         * MODULES.html.sh: Document lseek module.
68571         * modules/fflush (Depends-on): Add lseek, fseeko.
68572         * modules/fseeko (Depends-on): Likewise.
68573         * modules/ftello (Depends-on): Likewise.
68574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68575         broken.
68576         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68577         broken.
68578         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68579         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68580         * lib/ftello.c (rpl_ftello): Likewise.
68581         * tests/test-fseeko.c (main): Test this.
68582         * tests/test-fseeko.sh: Likewise.
68583         * tests/test-ftello.c (main): Likewise.
68584         * tests/test-ftello.sh: Likewise.
68585         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68586         implies replacing fseek.
68587         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68588         HAVE_FTELLO.
68589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68590         * modules/unistd (Makefile.am): Likewise.
68591         * lib/unistd_.h (lseek): Declare a replacement.
68592         * doc/functions/lseek.texi (lseek): Document this fix.
68593         * doc/functions/fseek.texi (fseek): Likewise.
68594         * doc/functions/ftell.texi (ftell): Likewise.
68595
68596 2007-05-24  Bruno Haible  <bruno@clisp.org>
68597
68598         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68599         in the printed representation of a NaN.
68600         * tests/test-vasprintf-posix.c (test_function): Likewise.
68601         * tests/test-snprintf-posix.h (test_function): Likewise.
68602         * tests/test-sprintf-posix.h (test_function): Likewise.
68603         Reported by Eric Blake.
68604
68605 2007-05-23  Eric Blake  <ebb9@byu.net>
68606
68607         Fix fseeko/ftello on cygwin 1.5.24.
68608         * doc/functions/fseeko.texi (fseeko): Document the fix.
68609         * doc/functions/ftello.texi (ftello): Document the fix.
68610         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68611         * doc/functions/stdout.text (stdout): New file.
68612         * doc/functions/stderr.text (stderr): New file.
68613         * doc/gnulib.texi (Function Substitutes): Use new files.
68614         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68615         prior to 1.7.0.
68616         * tests/test-ftello.c (main): Likewise for ftello.
68617         * tests/test-fseeko.sh: New file.
68618         * tests/test-ftello.sh: New file.
68619         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68620         with seekable stdin.
68621         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68623         (gl_REPLACE_FSEEKO): New macro.
68624         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68625         * modules/fseeko (Files): Distribute fseeko.c.
68626         * modules/ftello (Files): Distribute ftello.c.
68627         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68628         mode.
68629         * lib/ftello.c (rpl_ftello): New file.
68630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68631         fseeko, ftello.
68632         (gl_STDIN_LARGE_OFFSET): New macro.
68633         * modules/stdio (Makefile.am): Perform the replacement.
68634         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68635
68636 2007-05-23  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68639         GNULIB_POSIXCHECK is defined.
68640
68641 2007-05-21  Bruno Haible  <bruno@clisp.org>
68642
68643         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68644         Check also the output for NaN arguments. When cross-compiling, guess
68645         no on IRIX.
68646         * lib/vasnprintf.c: Update comments.
68647         * tests/test-vasnprintf-posix.c (strisnan): New function.
68648         (test_function): Use it.
68649         * tests/test-vasprintf-posix.c (strisnan): New function.
68650         (test_function): Use it.
68651         * tests/test-snprintf-posix.h (strisnan): New function.
68652         (test_function): Use it.
68653         * tests/test-sprintf-posix.h (strisnan): New function.
68654         (test_function): Use it.
68655         Reported by Eric Blake.
68656
68657 2007-05-20  Bruno Haible  <bruno@clisp.org>
68658
68659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68660         numbers that fails on BeOS.
68661         * doc/functions/frexpl.texi: Update.
68662
68663 2007-05-20  Jim Meyering  <jim@meyering.net>
68664
68665         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68666         forced upon us by glibc-2.6.
68667
68668 2007-05-20  Bruno Haible  <bruno@clisp.org>
68669
68670         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68671         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68672         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68673         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68674         NEED_PRINTF_INFINITE.
68675         (is_infinitel): New function.
68676         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68678         gl_PREREQ_VASNPRINTF_INFINITE.
68679         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68681         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68682         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68683         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68684         gl_PREREQ_VASNPRINTF_INFINITE.
68685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68689         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68692         * doc/functions/fprintf.texi: Update.
68693         * doc/functions/printf.texi: Update.
68694         * doc/functions/snprintf.texi: Update.
68695         * doc/functions/sprintf.texi: Update.
68696         * doc/functions/vfprintf.texi: Update.
68697         * doc/functions/vprintf.texi: Update.
68698         * doc/functions/vsnprintf.texi: Update.
68699         * doc/functions/vsprintf.texi: Update.
68700
68701 2007-05-20  Bruno Haible  <bruno@clisp.org>
68702
68703         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68704         was not found in libc.
68705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68706
68707 2007-05-20  Bruno Haible  <bruno@clisp.org>
68708
68709         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68710         printed as "-nan" instead of "nan".
68711         * tests/test-vasprintf-posix.c (test_function): Likewise.
68712         * tests/test-snprintf-posix.h (test_function): Likewise.
68713         * tests/test-sprintf-posix.h (test_function): Likewise.
68714         Needed for HP-UX 11.
68715
68716 2007-05-20  Jim Meyering  <jim@meyering.net>
68717
68718         Fix buggy test for the fchownat-deref bug.
68719         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68720         symlink required for the run-test.  Without it, this test would
68721         always declare that fchownat doesn't work, and client code would
68722         unnecessarily use the replacement function with fixed libc.
68723         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68724         Reported by Greg Schafer.
68725
68726 2007-05-19  Bruno Haible  <bruno@clisp.org>
68727
68728         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68729         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68730         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68731         Needed for IRIX 6.5 and Solaris 2.5.1.
68732
68733 2007-05-19  Bruno Haible  <bruno@clisp.org>
68734
68735         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68736         (test_function): Skip tests involving -0.0 on platforms where
68737         -0.0 = 0.0.
68738         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68739         (test_function): Skip tests involving -0.0 on platforms where
68740         -0.0 = 0.0.
68741         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68742         (test_function): Skip tests involving -0.0 on platforms where
68743         -0.0 = 0.0.
68744         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68745         (test_function): Skip tests involving -0.0 on platforms where
68746         -0.0 = 0.0.
68747         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68748         tests.
68749         * tests/test-printf-posix.h (test_function): Likewise.
68750         * tests/test-printf-posix.output: Remove all -0.0 related results.
68751         Needed for IRIX 6.5.
68752
68753 2007-05-19  Bruno Haible  <bruno@clisp.org>
68754
68755         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68756         printed as "nan0x7fffffff" instead of "nan".
68757         * tests/test-vasprintf-posix.c (test_function): Likewise.
68758         * tests/test-snprintf-posix.h (test_function): Likewise.
68759         * tests/test-sprintf-posix.h (test_function): Likewise.
68760         * tests/test-fprintf-posix.h (NaN): Remove macro.
68761         (test_function): Remove all NaN related tests.
68762         * tests/test-printf-posix.h (NaN): Remove macro.
68763         (test_function): Remove all NaN related tests.
68764         * tests/test-printf-posix.output: Remove all NaN related results.
68765         Needed for IRIX 6.5.
68766
68767 2007-05-19  Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68771
68772 2007-05-19  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/float_.h: New file.
68775         * m4/float_h.m4: New file.
68776         * modules/float: New file.
68777         * modules/isnanl (Dependencies): Add float.
68778         * modules/isnanl-nolibm (Dependencies): Likewise.
68779         * modules/mathl (Dependencies): Likewise.
68780         * modules/printf-frexpl (Dependencies): Likewise.
68781         * modules/signbit (Dependencies): Likewise.
68782         * modules/vasnprintf (Dependencies): Likewise.
68783         * doc/headers/float.texi: Update.
68784
68785 2007-05-19  Jim Meyering  <jim@meyering.net>
68786
68787         * lib/utimens.c (gl_futimens): Rename from futimens,
68788         now that glibc-2.6 declares futimens.
68789         * lib/utimens.h: Likewise.
68790
68791 2007-05-19  Bruno Haible  <bruno@clisp.org>
68792
68793         Avoid test failures on mingw.
68794         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68795         * tests/test-printf-posix.sh: Likewise.
68796         * tests/test-vfprintf-posix.sh: Likewise.
68797         * tests/test-vprintf-posix.sh: Likewise.
68798
68799 2007-05-19  Bruno Haible  <bruno@clisp.org>
68800
68801         Fix *printf result for NaN, Inf, -0.0 on mingw.
68802         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68803         * lib/vasnprintf.c: Include math.h and isnan.h.
68804         (is_infinite_or_zero): New function.
68805         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68806         values in the %f, %F, %e, %E, %g, %G directives.
68807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68809         gl_PRINTF_INFINITE and test its result. Invoke
68810         gl_PREREQ_VASNPRINTF_INFINITE.
68811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68812         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68813         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68814         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68815         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68817         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68818         * doc/functions/fprintf.texi: Update.
68819         * doc/functions/printf.texi: Update.
68820         * doc/functions/snprintf.texi: Update.
68821         * doc/functions/sprintf.texi: Update.
68822         * doc/functions/vfprintf.texi: Update.
68823         * doc/functions/vprintf.texi: Update.
68824         * doc/functions/vsnprintf.texi: Update.
68825         * doc/functions/vsprintf.texi: Update.
68826
68827 2007-05-19  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68830         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68831         Instead of multiplying with 10^k, set extra_zeroes to k.
68832         (scale10_round_long_double): Remove function.
68833
68834 2007-05-18  Bruno Haible  <bruno@clisp.org>
68835
68836         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68837         introduced on 2007-05-06.
68838
68839 2007-05-18  Bruno Haible  <bruno@clisp.org>
68840
68841         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68842         %g directives.
68843         * tests/test-vasprintf-posix.c (test_function): Likewise.
68844         * tests/test-snprintf-posix.h (test_function): Likewise.
68845         * tests/test-sprintf-posix.h (test_function): Likewise.
68846
68847 2007-05-18  Bruno Haible  <bruno@clisp.org>
68848
68849         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68850         (strmatch): New function.
68851         (test_function): Test the %f directive on numbers of various exponents.
68852         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68853         (strmatch): New function.
68854         (test_function): Test the %f directive on numbers of various exponents.
68855         * tests/test-snprintf-posix.h (strmatch): New function.
68856         (test_function): Test the %f directive on numbers of various exponents.
68857         * tests/test-sprintf-posix.h (strmatch): New function.
68858         (test_function): Test the %f directive on numbers of various exponents.
68859         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68860         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68861         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68862         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68863
68864 2007-05-18  Bruno Haible  <bruno@clisp.org>
68865
68866         Add support for 'long double' number output.
68867         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68868         * lib/vasnprintf.c: Include math.h and float+.h.
68869         (mp_limb_t): New type.
68870         (GMP_LIMB_BITS): New macro.
68871         (mp_twolimb_t): New type.
68872         (GMP_TWOLIMB_BITS): New macro.
68873         (mpn_t): New type.
68874         (multiply, divide, convert_to_decimal, decode_long_double,
68875         scale10_round_long_double, scale10_round_decimal_long_double,
68876         floorlog10l): New functions.
68877         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68878         for the %f, %F, %e, %E, %g, %G directives.
68879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68881         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68882         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68890         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68891         * modules/snprintf-posix (Depends-on): Likewise.
68892         * modules/sprintf-posix (Depends-on): Likewise.
68893         * modules/vasnprintf-posix (Depends-on): Likewise.
68894         * modules/vasprintf-posix (Depends-on): Likewise.
68895         * modules/vfprintf-posix (Depends-on): Likewise.
68896         * modules/vsnprintf-posix (Depends-on): Likewise.
68897         * modules/vsprintf-posix (Depends-on): Likewise.
68898         * modules/vasnprintf (Files): Add lib/float+.h.
68899         * doc/functions/fprintf.texi: Update.
68900         * doc/functions/printf.texi: Update.
68901         * doc/functions/snprintf.texi: Update.
68902         * doc/functions/sprintf.texi: Update.
68903         * doc/functions/vfprintf.texi: Update.
68904         * doc/functions/vprintf.texi: Update.
68905         * doc/functions/vsnprintf.texi: Update.
68906         * doc/functions/vsprintf.texi: Update.
68907
68908 2007-05-18  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68911
68912 2007-05-18  Bruno Haible  <bruno@clisp.org>
68913
68914         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68915         for printing 64-bit integers. Needed for mingw.
68916
68917 2007-05-18  Bruno Haible  <bruno@clisp.org>
68918
68919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68920         gl_FUNC_FREXPL_WORKS.
68921         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68922
68923 2007-05-18  Bruno Haible  <bruno@clisp.org>
68924
68925         * modules/frexpl-nolibm-tests: New file.
68926
68927         * modules/frexpl-nolibm: New file.
68928         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68929
68930 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68933         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68934         GCC 4.2, which otherwise issues a lot of warnings.
68935         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68936         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68937         Likewise.
68938         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68939         * modules/iconv_open (iconv.h): Likewise.
68940         * modules/locale (locale.h): Likewise.
68941         * modules/netinet_in (netinet/in.h): Likewise.
68942         * modules/sys_select (sys_select.h): Likewise.
68943         * modules/sys_socket (sys/socket.h): Likewise.
68944         * modules/sys_stat (sys/stat.h): Likewise.
68945         * modules/sysexits (sysexits.h): Likewise.
68946         * modules/unistd (unistd.h): Likewise.
68947
68948 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68949
68950         * modules/closein-tests (Makefile.am): Distribute
68951         `test-closein.sh'.
68952
68953 2007-05-17  Bruno Haible  <bruno@clisp.org>
68954
68955         * tests/test-printf-posix.output: Renamed from
68956         tests/test-fprintf-posix.out.
68957         * modules/fprintf-posix-tests: Update.
68958         * modules/printf-posix-tests: Update.
68959         * modules/vfprintf-posix-tests: Update.
68960         * modules/vprintf-posix-tests: Update.
68961         * tests/test-fprintf-posix.sh: Update.
68962         * tests/test-printf-posix.sh: Update.
68963         * tests/test-vfprintf-posix.sh: Update.
68964         * tests/test-vprintf-posix.sh: Update.
68965         Reported by Ralf Wildenhues.
68966
68967 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68970         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68971         GCC 4.2, which otherwise issues a lot of warnings.
68972         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68973         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68974         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68975         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68976         it should no longer be needed.
68977         * lib/string_.h: Likewise.
68978         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68979         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68980         * modules/inttypes (inttypes.h): Likewise.
68981         * modules/math (math.h): Likewise.
68982         * modules/search (search.h): Likewise.
68983         * modules/signal (signal.h): Likewise.
68984         * modules/stdint (stdint.h): Likewise.
68985         * modules/stdio (stdio.h): Likewise.
68986         * modules/stdlib (stdlib.h): Likewise.
68987         * modules/string (string.h): Likewise.
68988         * modules/sys_time (sys/time.h): Likewise.
68989         * modules/time (time.h): Likewise.
68990         * modules/wchar (wchar.h): Likewise.
68991         * modules/wctype (wtype.h): Likewise.
68992
68993 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68994
68995         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68996
68997 2007-05-13  Bruno Haible  <bruno@clisp.org>
68998
68999         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69000         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69001         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69002         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69003         (gl_PREREQ_STRTOK_R): Don't require it here.
69004
69005 2007-05-13  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69008         when used in C++ mode.
69009
69010 2007-05-12  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/linebuffer.h: Tweak doc.
69013         * lib/linebuffer.c: Likewise.
69014
69015 2007-05-12  James Youngman  <jay@gnu.org>
69016
69017         * lib/linebuffer.c (readlinebuffer_delim): New function,
69018         like readlinebuffer, but use a caller-specified delimiter.
69019         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69020         as the delimiter.
69021         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69022
69023 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69024
69025         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69026         * modules/openat (Files): Remove openat-die.c.
69027         (Depends-on): Add openat-die.
69028         * modules/openat-die: New module.
69029
69030 2007-05-06  Bruno Haible  <bruno@clisp.org>
69031
69032         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69033         Update with info about Cygwin.
69034         * doc/functions/fprintf.texi: Update.
69035         * doc/functions/printf.texi: Update.
69036         * doc/functions/snprintf.texi: Update.
69037         * doc/functions/sprintf.texi: Update.
69038         * doc/functions/vfprintf.texi: Update.
69039         * doc/functions/vprintf.texi: Update.
69040         * doc/functions/vsnprintf.texi: Update.
69041         * doc/functions/vsprintf.texi: Update.
69042         Reported by Eric Blake.
69043
69044 2007-05-06  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69047         padding ourselves for the floating-point directives.
69048         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69051         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69052         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69060         * tests/test-snprintf-posix.h (test_function): Also check the width
69061         and some flags in the %f directive.
69062         * tests/test-sprintf-posix.h (test_function): Likewise.
69063         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69064         * tests/test-vasprintf-posix.c (test_function): Likewise.
69065         * doc/functions/fprintf.texi: Update.
69066         * doc/functions/printf.texi: Update.
69067         * doc/functions/snprintf.texi: Update.
69068         * doc/functions/sprintf.texi: Update.
69069         * doc/functions/vfprintf.texi: Update.
69070         * doc/functions/vprintf.texi: Update.
69071         * doc/functions/vsnprintf.texi: Update.
69072         * doc/functions/vsprintf.texi: Update.
69073
69074 2007-05-06  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69077         pass the ' flag character to sprintf or snprintf.
69078         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69081         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69082         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69085         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69087         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69090         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69091         flag.
69092         * tests/test-sprintf-posix.h (test_function): Likewise.
69093         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69094         * tests/test-vasprintf-posix.c (test_function): Likewise.
69095         * doc/functions/fprintf.texi: Update.
69096         * doc/functions/printf.texi: Update.
69097         * doc/functions/snprintf.texi: Update.
69098         * doc/functions/sprintf.texi: Update.
69099         * doc/functions/vfprintf.texi: Update.
69100         * doc/functions/vprintf.texi: Update.
69101         * doc/functions/vsnprintf.texi: Update.
69102         * doc/functions/vsprintf.texi: Update.
69103
69104 2007-05-01  Bruno Haible  <bruno@clisp.org>
69105
69106         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69107
69108 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69111         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69112
69113 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69116         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69118
69119 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69120
69121         * lib/argp-help.c (struct hol_entry): New member `ord'.
69122         (HOL_ENTRY_PTRCMP): Use ord for comparison
69123         (hol_sort): Initialize ord.
69124
69125 2007-05-01  Bruno Haible  <bruno@clisp.org>
69126
69127         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69128         Reported by Eric Blake.
69129         * doc/gnulib.texi (Function Substitutes): Update.
69130
69131 2007-05-01  Bruno Haible  <bruno@clisp.org>
69132
69133         * doc/functions.texi: Remove file, now redundant through
69134         doc/functions/*.texi.
69135
69136 2007-05-01  Bruno Haible  <bruno@clisp.org>
69137
69138         * modules/argp (Depends-on): Add sleep.
69139
69140 2007-05-01  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/sleep-tests: New file.
69143         * tests/test-sleep.c: New file.
69144
69145         * modules/sleep: New file.
69146         * lib/sleep.c: New file.
69147         * m4/sleep.m4: New file.
69148         * lib/unistd_.h (sleep): New declaration.
69149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69150         HAVE_SLEEP.
69151         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69152         * doc/functions/sleep.texi: Document the sleep module.
69153
69154 2007-05-01  Bruno Haible  <bruno@clisp.org>
69155
69156         * lib/sigprocmask.h: Remove file.
69157         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69158         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69159         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69160         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69161         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69162         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69163         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69164         HAVE_SIGSET_T as a shell variable.
69165         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69166         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69167         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69168         (Depends-on): Add signal. Remove verify.
69169         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69170         (Include): Mention <signal.h> instead of sigprocmask.h.
69171         * NEWS: Mention the change.
69172         * lib/fatal-signal.c: Don't include sigprocmask.h.
69173
69174 2007-05-01  Bruno Haible  <bruno@clisp.org>
69175
69176         * modules/signal: New file.
69177         * lib/signal_.h: New file.
69178         * m4/signal_h.m4: New file.
69179
69180 2007-05-01  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69183         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69184         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69185         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69186
69187 2007-05-01  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69190         configure time.
69191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69192         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69193         * modules/sys_stat (Makefile.am): Substitute their values into
69194         sys/stat.h.
69195
69196 2007-05-01  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69199         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69200         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69201
69202 2007-05-01  Bruno Haible  <bruno@clisp.org>
69203
69204         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69205         'assert' module here.
69206
69207 2007-05-01  Bruno Haible  <bruno@clisp.org>
69208
69209         * doc/functions/*.texi: New files.
69210         * doc/functions/google-ranking.txt: New file.
69211         * doc/gnulib.texi (Function Substitutes): New chapter.
69212         (ctime, inet_ntoa): Remove sections.
69213         * doc/ctime.texi: Remove file.
69214         * doc/inet_ntoa.texi: Remove file.
69215         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69216         dependencies.
69217         (%.info): New rule, specifying a --reference-limit.
69218
69219 2007-05-01  Bruno Haible  <bruno@clisp.org>
69220
69221         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69222
69223 2007-05-01  Bruno Haible  <bruno@clisp.org>
69224
69225         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69226         the portability of 'mkdir' to mingw systems.
69227
69228 2007-05-01  Bruno Haible  <bruno@clisp.org>
69229
69230         * doc/headers/google-ranking.txt: New file.
69231
69232 2007-04-30  Eric Blake  <ebb9@byu.net>
69233
69234         Prefer fseeko to fseek.
69235         * modules/getpass (Depends-on): Add fseeko.
69236         * lib/getpass.c (getpass): Use fseeko, not fseek.
69237
69238 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69239
69240         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69241         assumes the sorting is stable, while most qsort implementations
69242         are not.  Use argument addresses to ensure they never compare as
69243         equal.
69244
69245         * tests/test-argp-2.sh (usage-indent test): Fix output
69246         (func_compare): Restore diff options
69247         * tests/test-argp.c: Restore #include "progname.h"
69248
69249 2007-04-29  Bruno Haible  <bruno@clisp.org>
69250
69251         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69253         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69255         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69256         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69257         (TESTS, check_PROGRAMS): Add test-snprintf.
69258         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69259         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69260         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69261         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69262         assertions that fail on HP-UX, OSF/1, or IRIX.
69263         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69264
69265 2007-04-29  Bruno Haible  <bruno@clisp.org>
69266
69267         * MODULES.html.sh (posix_functions): Remove 'contents'.
69268
69269 2007-04-29  Karl Berry  <karl@gnu.org>
69270
69271         * config/srclist.txt (gendocs_template_min): new entry.
69272
69273 2007-04-29  Bruno Haible  <bruno@clisp.org>
69274
69275         Work around fpurge bug on BSD systems.
69276         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69277         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69278         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69279         fpurge to rpl_fpurge if the system already has this function.
69280         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69281         the case where the system already has this function. Correct invariants
69282         on BSD systems.
69283         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69284         BSD systems.
69285
69286 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69287
69288         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69289         proposed by Sven Verdoolaege.
69290
69291         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69292         options.
69293         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69294         (usage and help tests): Update
69295
69296 2007-04-29  Bruno Haible  <bruno@clisp.org>
69297
69298         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69299         Print more information in case of failure. Disable a test on BeOS.
69300
69301 2007-04-29  Bruno Haible  <bruno@clisp.org>
69302
69303         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69304         This helps debugging on systems on which no gdb is available.
69305
69306 2007-04-29  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/freading.h: Improve comments.
69309         * lib/fwriting.h: Likewise.
69310         * tests/test-freading.c (main): Don't check freading immediately after
69311         repositioning. Needed for glibc.
69312
69313 2007-04-29  Bruno Haible  <bruno@clisp.org>
69314
69315         * lib/freading.c (freading): Trivial simplification.
69316
69317 2007-04-28  Bruno Haible  <bruno@clisp.org>
69318
69319         * tests/test-fwriting.c (main): Also test the interaction between
69320         fflush and fwriting.
69321         * modules/fwriting-tests (Depends-on): Add fflush.
69322
69323         * tests/test-freading.c (main): Also test the interaction between
69324         fflush and freading.
69325         * modules/freading-tests (Depends-on): Add fflush.
69326
69327 2007-04-28  Bruno Haible  <bruno@clisp.org>
69328
69329         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69330         fseeko and ftello.
69331         Suggested by Eric Blake.
69332
69333 2007-04-28  Jim Meyering  <jim@meyering.net>
69334
69335         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69336         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69337         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69338
69339 2007-04-27  Eric Blake  <ebb9@byu.net>
69340
69341         * doc/headers/assert.texi (assert.h): Document assert module use.
69342
69343 2007-04-27  Bruno Haible  <bruno@clisp.org>
69344
69345         * doc/headers/*.texi: New files.
69346         * doc/gnulib.texi (Header File Substitutes): New chapter.
69347         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69348         dependencies.
69349         (standards.info ,standards.html, standards.dvi): Update dependencies.
69350         (mostlyclean, clean): New targets.
69351
69352 2007-04-27  Bruno Haible  <bruno@clisp.org>
69353
69354         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69355         * modules/sysexits (Files, Makefile.am): Update.
69356
69357         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69358         * modules/sys_socket (Files, Makefile.am): Update.
69359
69360         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69361         * modules/sys_stat (Files, Makefile.am): Update.
69362
69363 2007-04-27  Eric Blake  <ebb9@byu.net>
69364
69365         * lib/freading.h: Improve comments.
69366         * lib/fwriting.h: Likewise.
69367         * lib/fflush.c: Likewise.
69368
69369         Fix closein for mingw.
69370         * modules/closein-tests: Add tests for closein.
69371         * tests/test-closein.c: New file.
69372         * tests/test-closein.sh: Likewise.
69373         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69374         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69375
69376 2007-04-27  Bruno Haible  <bruno@clisp.org>
69377
69378         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69379         version is < 6.
69380         * lib/math_.h [__DECC]: Likewise.
69381         * lib/stdio_.h [__DECC]: Likewise.
69382         * lib/stdlib_.h [__DECC]: Likewise.
69383         * lib/string_.h [__DECC]: Likewise.
69384         * lib/time_.h [__DECC]: Likewise.
69385         * lib/wchar_.h [__DECC]: Likewise.
69386         * lib/wctype_.h [__DECC]: Likewise.
69387
69388 2007-04-27  Bruno Haible  <bruno@clisp.org>
69389
69390         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69391
69392 2007-04-27  Bruno Haible  <bruno@clisp.org>
69393
69394         * lib/fflush.c: Add comments.
69395         * modules/fpurge-tests (Depends-on): Add fflush.
69396         * modules/freadable-tests (Depends-on): Likewise.
69397         * modules/fwritable-tests (Depends-on): Likewise.
69398
69399 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69400
69401         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69402         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69403         Report by Bruno Haible <bruno@clisp.org>.
69404
69405 2007-04-26  Eric Blake  <ebb9@byu.net>
69406
69407         Fix fflush on mingw.
69408         * modules/fflush (Depends-on): Add freading.
69409         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69410         but unread data.
69411
69412 2007-04-26  Eric Blake  <ebb9@byu.net>
69413         and Bruno Haible  <bruno@clisp.org>
69414
69415         Implement freading and fwriting.
69416         * lib/freading.c: New file.
69417         * lib/freading.h: Likewise.
69418         * m4/freading.m4: Likewise.
69419         * modules/freading: Likewise.
69420         * modules/freading-tests: Likewise.
69421         * tests/test-freading.c: Likewise.
69422         * lib/fwriting.c: New file.
69423         * lib/fwriting.h: Likewise.
69424         * m4/fwriting.m4: Likewise.
69425         * modules/fwriting: Likewise.
69426         * modules/fwriting-tests: Likewise.
69427         * tests/test-fwriting.c: Likewise.
69428         * MODULES.html.sh (File stream based Input/Output): Mention them.
69429
69430 2007-04-26  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69433         'long' when we assume it.
69434         Suggested by Eric Blake.
69435
69436 2007-04-26  Bruno Haible  <bruno@clisp.org>
69437
69438         Ensure fseeko, ftello are declared on glibc systems.
69439         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69440         * modules/fseeko (configure.ac-early): Likewise.
69441         * modules/ftello (configure.ac-early): Likewise.
69442         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69443         AC_FUNC_FSEEKO for this.
69444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69445         (gl_CHECK_FSEEKO): Remove macro.
69446
69447 2007-04-26  Bruno Haible  <bruno@clisp.org>
69448
69449         * tests/test-fflush.c (main): Also check the ftell result after
69450         fflush and fseek/fseeko.
69451         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69452         file descriptor position cache in the stream.
69453         * lib/fseeko.c (rpl_fseeko): Likewise.
69454
69455 2007-04-26  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/fflush-tests (Depends-on): Add fseeko.
69458
69459 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69460             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69461
69462         * lib/argz_.h: ensure error_t definition is obtained in same
69463         mechanism system argz.h would have.
69464         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69465         argz facilities are known bad.  Err on the side of caution if
69466         cross-compiling.
69467
69468 2007-04-25  Eric Blake  <ebb9@byu.net>
69469
69470         * lib/fpurge.c (includes): Use stdlib.h for free.
69471         * tests/test-fflush.c (main): Also test fflush-fseeko.
69472
69473 2007-04-25  Bruno Haible  <bruno@clisp.org>
69474
69475         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69476         * lib/fseeko.c: New file.
69477         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69478         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69479         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69480         gl_FUNC_FSEEKO.
69481         (gl_FUNC_FSEEKO): Invoke it.
69482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69483         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69484         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69485
69486 2007-04-25  Bruno Haible  <bruno@clisp.org>
69487
69488         * modules/fflush (Depends-on): Add ftello.
69489
69490 2007-04-25  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/ftello-tests: New file.
69493         * tests/test-ftello.c: New file.
69494
69495         * modules/ftello: New file.
69496         * m4/ftello.m4: New file.
69497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69498         HAVE_FTELLO.
69499         * lib/stdio_.h (ftello): New declaration.
69500         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69501         HAVE_FTELLO.
69502
69503 2007-04-25  Bruno Haible  <bruno@clisp.org>
69504
69505         * modules/fseeko-tests: New file.
69506         * tests/test-fseeko.c: New file.
69507
69508         * modules/fseeko: New file.
69509         * m4/fseeko.m4: New file.
69510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69511         HAVE_FSEEKO.
69512         * lib/stdio_.h (fseeko): New declaration.
69513         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69514         HAVE_FSEEKO.
69515
69516 2007-04-25  Bruno Haible  <bruno@clisp.org>
69517
69518         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69519
69520 2007-04-25  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69523         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69524         * tests/test-unistd.c: Likewise.
69525         * tests/test-fcntl.c: Likewise.
69526
69527 2007-04-23  Eric Blake  <ebb9@byu.net>
69528
69529         * lib/fflush.c: Fix missing include.
69530         Reported by Bruno Haible.
69531
69532 2007-04-23  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69535         Reported by Eric Blake.
69536
69537 2007-04-23  Bruno Haible  <bruno@clisp.org>
69538
69539         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69540
69541 2007-04-23  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69544
69545 2007-04-23  Bruno Haible  <bruno@clisp.org>
69546
69547         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69548         Needed on HP-UX 11.
69549
69550 2007-04-16  Eric Blake  <ebb9@byu.net>
69551
69552         Make fflush rely on fpurge.
69553         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69554         open coding all variants.
69555         * modules/fflush (Depends-on): Add fpurge and unistd.
69556         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69557         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69558
69559         Fix --with-tests compilation on cygwin.
69560         * modules/argmatch-tests (Makefile.am): List gnulib library first
69561         in LDADD.
69562         * modules/argp-tests (Makefile.am): Likewise.
69563         * modules/array-list-tests (Makefile.am): Likewise.
69564         * modules/array-oset-tests (Makefile.am): Likewise.
69565         * modules/avltree-list-tests (Makefile.am): Likewise.
69566         * modules/avltree-oset-tests (Makefile.am): Likewise.
69567         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69568         * modules/carray-list-tests (Makefile.am): Likewise.
69569         * modules/dirname-tests (Makefile.am): Likewise.
69570         * modules/frexp-tests (Makefile.am): Likewise.
69571         * modules/isnanl-tests (Makefile.am): Likewise.
69572         * modules/linked-list-tests (Makefile.am): Likewise.
69573         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69574         * modules/lock-tests (Makefile.am): Likewise.
69575         * modules/rbtree-list-tests (Makefile.am): Likewise.
69576         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69577         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69578         * modules/tls-tests (Makefile.am): Likewise.
69579         * modules/tsearch-tests (Makefile.am): Likewise.
69580         * modules/xvasprintf-tests (Makefile.am): Likewise.
69581
69582         Fix fpurge for cygwin.
69583         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69584         value.
69585         * modules/fpurge-tests (Depends-on): Clean up trash.
69586
69587 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69588
69589         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69590
69591         * m4/autobuild.m4: Re-indent.
69592
69593 2007-04-13  Bruno Haible  <bruno@clisp.org>
69594
69595         * modules/fpurge-tests: New file.
69596         * tests/test-fpurge.c: New file.
69597
69598         * modules/fpurge: New file.
69599         * lib/fpurge.h: New file.
69600         * lib/fpurge.c: New file.
69601         * m4/fpurge.m4: New file.
69602
69603 2007-04-13  Bruno Haible  <bruno@clisp.org>
69604
69605         * modules/fbufmode-tests: New file.
69606         * tests/test-fbufmode.c: New file.
69607
69608         * modules/fbufmode: New file.
69609         * lib/fbufmode.h: New file.
69610         * lib/fbufmode.c: New file.
69611         * m4/fbufmode.m4: New file.
69612
69613 2007-04-13  Bruno Haible  <bruno@clisp.org>
69614
69615         * modules/fwritable-tests: New file.
69616         * tests/test-fwritable.c: New file.
69617
69618         * modules/fwritable: New file.
69619         * lib/fwritable.h: New file.
69620         * lib/fwritable.c: New file.
69621         * m4/fwritable.m4: New file.
69622
69623 2007-04-13  Bruno Haible  <bruno@clisp.org>
69624
69625         * modules/freadable-tests: New file.
69626         * tests/test-freadable.c: New file.
69627
69628         * modules/freadable: New file.
69629         * lib/freadable.h: New file.
69630         * lib/freadable.c: New file.
69631         * m4/freadable.m4: New file.
69632
69633 2007-04-13  Bruno Haible  <bruno@clisp.org>
69634
69635         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69636         MOSTLYCLEANFILES.
69637
69638 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69641         gzip bootstrap.conf to avoid dragging in i18n machinery.
69642         (gnulib_tool_option): Use it.
69643
69644 2007-04-13  Bruno Haible  <bruno@clisp.org>
69645
69646         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69647         %F directives.
69648         * tests/test-vasprintf-posix.c (test_function): Likewise.
69649         * tests/test-snprintf-posix.h (test_function): Likewise.
69650         * tests/test-sprintf-posix.h (test_function): Likewise.
69651         * tests/test-fprintf-posix.h (test_function): Likewise.
69652         * tests/test-printf-posix.h (test_function): Likewise.
69653         * tests/test-fprintf-posix.out: Likewise.
69654
69655 2007-04-13  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69658         * modules/tls-tests (configure.ac): Likewise.
69659         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69660
69661 2007-04-13  Bruno Haible  <bruno@clisp.org>
69662
69663         * lib/tls.c (glthread_tls_get): Fix return type.
69664         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69665
69666 2007-04-12  Eric Blake  <ebb9@byu.net>
69667
69668         * modules/gettime (Depends-on): Remove gettime.
69669         Reported by Dmitry V. Levin.
69670
69671 2007-04-12  Bruno Haible  <bruno@clisp.org>
69672
69673         * modules/fflush (Include): Mention <stdio.h>.
69674         * modules/strtoimax (Include): Mention <inttypes.h>.
69675         * modules/strtoumax (Include): Likewise.
69676
69677 2007-04-12  Eric Blake  <ebb9@byu.net>
69678
69679         * .cvsignore: New file.
69680         * .gitignore: Likewise.
69681
69682 2007-04-12  Bruno Haible  <bruno@clisp.org>
69683
69684         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69685         not before, since $(LDADD) often contains libgnu.a.
69686         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69687         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69688         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69689         Needed on Cygwin.
69690
69691 2007-04-12  Eric Blake  <ebb9@byu.net>
69692
69693         Work around glibc's failure to flush stdin on fclose.
69694         * lib/closein.c (close_stdin): Flush stdin before closing.
69695
69696         Work around glibc's failure to reset seekable stdin on exit.
69697         * modules/closein: New module.
69698         * lib/closein.c: New file.
69699         * lib/closein.h: Likewise.
69700         * m4/closein.m4: Likewise.
69701         * MODULES.html.sh (File stream based Input/Output): Document it.
69702
69703 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69704
69705         * gnulib-tool: Rename generated 'autobuild' script to
69706         'do-autobuild' in --create-megatestdir output.
69707
69708         * doc/gnulib.texi (Build robot for gnulib): Fix.
69709
69710 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69711
69712         * modules/sysexits (Depends-on): Add absolute-header.
69713
69714 2007-04-12  Eric Blake  <ebb9@byu.net>
69715
69716         No need to preserve errno on success.
69717         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69718         Reported by Bruno Haible.
69719
69720 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69721
69722         * MODULES.html.sh (Support for maintaining and releasing
69723         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69724
69725 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69726
69727         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69728
69729 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69730
69731         * modules/autobuild: New module.
69732
69733         * m4/autobuild.m4: New file.
69734
69735 2007-04-11  Bruno Haible  <bruno@clisp.org>
69736
69737         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69738         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69739         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69742         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69743         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69748         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69749         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69751         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69752         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69754         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69755         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69757         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69758         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69760         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69761         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69763         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69764         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69765         Reported by Eric Blake.
69766
69767 2007-04-11  Bruno Haible  <bruno@clisp.org>
69768
69769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69770
69771 2007-04-10  Bruno Haible  <bruno@clisp.org>
69772
69773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69774         for NaN and Infinity. Needed on FreeBSD 6.1.
69775         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69776         regarding results for "%010a" of Infinity and NaN.
69777         * tests/test-vasprintf-posix.c (test_function): Likewise.
69778         * tests/test-snprintf-posix.h (test_function): Likewise.
69779         * tests/test-sprintf-posix.h (test_function): Likewise.
69780         * tests/test-fprintf-posix.h (test_function): Likewise.
69781         * tests/test-printf-posix.h (test_function): Likewise.
69782         * tests/test-fprintf-posix.out: Likewise.
69783
69784 2007-04-10  Bruno Haible  <bruno@clisp.org>
69785
69786         * modules/locale-tests: New file.
69787         * tests/test-locale.c: New file.
69788
69789         * modules/locale: New file.
69790         * lib/locale_.h: New file.
69791         * m4/locale_h.m4: New file.
69792
69793 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69794             Bruno Haible  <bruno@clisp.org>
69795
69796         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69797         be determined, test for availability of the copysignf, copysign,
69798         copysignl functions.
69799         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69800         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69801         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69802
69803 2007-04-09  Eric Blake  <ebb9@byu.net>
69804
69805         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69806         * modules/stdio (Makefile.am): Support fflush.
69807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69808         * modules/fflush: New file.
69809         * lib/fflush.c: Likewise.
69810         * m4/fflush.m4: Likewise.
69811         * modules/fflush-tests: New test.
69812         * tests/test-fflush.c: Likewise.
69813         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69814
69815 2007-04-06  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69818         (VASNPRINTF): Use signbit for faster determination whether to print a
69819         minus sign.
69820         * modules/vasnprintf (Files): Remove lib/float+.h.
69821         * modules/fprintf-posix (Depends-on): Add signbit.
69822         * modules/snprintf-posix (Depends-on): Likewise.
69823         * modules/sprintf-posix (Depends-on): Likewise.
69824         * modules/vasnprintf-posix (Depends-on): Likewise.
69825         * modules/vasprintf-posix (Depends-on): Likewise.
69826         * modules/vfprintf-posix (Depends-on): Likewise.
69827         * modules/vsnprintf-posix (Depends-on): Likewise.
69828         * modules/vsprintf-posix (Depends-on): Likewise.
69829
69830 2007-04-06  Bruno Haible  <bruno@clisp.org>
69831
69832         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69833         * tests/test-frexpl.c (main): Likewise.
69834         * tests/test-ldexpl.c (main): Likewise.
69835         * modules/frexp-tests (Depends-on): Add signbit.
69836         * modules/frexpl-tests (Depdends-on): Likewise.
69837         * modules/ldexpl-tests (Depdends-on): Likewise.
69838
69839 2007-04-06  Bruno Haible  <bruno@clisp.org>
69840
69841         * modules/signbit-tests: New file.
69842         * tests/test-signbit.c: New file.
69843
69844         * modules/signbit: New file.
69845         * lib/signbitf.c: New file.
69846         * lib/signbitd.c: New file.
69847         * lib/signbitl.c: New file.
69848         * m4/signbit.m4: New file.
69849         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69850         (signbit): New macro.
69851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69852         REPLACE_SIGNBIT.
69853         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69854         REPLACE_FREXPL into math.h.
69855
69856 2007-04-06  Bruno Haible  <bruno@clisp.org>
69857
69858         * modules/isnanf-nolibm-tests: New file.
69859         * tests/test-isnanf.c: New file.
69860
69861         * modules/isnanf-nolibm: New file.
69862         * lib/isnanf.h: New file.
69863         * lib/isnanf.c: New file.
69864         * lib/isnan.c: Consider the USE_FLOAT macro.
69865         * m4/isnanf.m4: New file.
69866
69867 2007-04-06  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69870         (Link): New section.
69871
69872         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69873
69874 2007-04-06  Bruno Haible  <bruno@clisp.org>
69875
69876         Assume the 'long double' type.
69877         * m4/longdouble.m4: Remove file.
69878         * config/srclist.txt: Don't mention longdouble.m4.
69879         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69880         * lib/float+.h: Likewise.
69881         * lib/frexp.c: Likewise.
69882         * lib/printf-args.h: Likewise.
69883         * lib/printf-args.c: Likewise.
69884         * lib/printf-frexp.c: Likewise.
69885         * lib/printf-parse.c: Likewise.
69886         * lib/vasnprintf.c: Likewise.
69887         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69888         * m4/intl.m4: Likewise.
69889         * m4/isnanl.m4: Likewise.
69890         * m4/printf.m4: Likewise.
69891         * m4/printf-frexpl.m4: Likewise.
69892         * m4/vasnprintf.m4: Likewise.
69893         * modules/allocsa (Files): Remove m4/longdouble.m4.
69894         * modules/gettext (Files): Likewise.
69895         * modules/relocatable-prog-wrapper (Files): Likewise.
69896         * modules/vasnprintf (Files): Likewise.
69897         * modules/isnanl (Files): Likewise.
69898         (Include): Simplify.
69899         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69900         (Include): Simplify.
69901         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69902         (Include): Simplify.
69903         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69904         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69905         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69906         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69907         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69908         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69909         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69910         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69911         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69912         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69913         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69914         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69915         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69916         * tests/test-isnanl.c: Likewise.
69917         * tests/test-snprintf-posix.h: Likewise.
69918         * tests/test-sprintf-posix.h: Likewise.
69919         * tests/test-vasnprintf-posix.c: Likewise.
69920         * tests/test-vasnprintf-posix2.c: Likewise.
69921         * tests/test-vasprintf-posix.c: Likewise.
69922
69923 2007-04-06  Bruno Haible  <bruno@clisp.org>
69924
69925         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69926         * lib/math_.h [__DECC]: Include the overridden include file through
69927         #include_next, outside the double-inclusion guard.
69928         * lib/stdio_.h [__DECC]: Likewise.
69929         * lib/stdlib_.h [__DECC]: Likewise.
69930         * lib/string_.h [__DECC]: Likewise.
69931         * lib/time_.h [__DECC]: Likewise.
69932         * lib/wchar_.h [__DECC]: Likewise.
69933         * lib/wctype_.h [__DECC]: Likewise.
69934         * lib/inttypes_.h [__DECC]: Likewise.
69935         Reported by Albert Chin <china@thewrittenword.com> in
69936         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69937
69938 2007-04-04  Eric Blake  <ebb9@byu.net>
69939
69940         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69941         1.5.x.
69942
69943 2007-04-04  Bruno Haible  <bruno@clisp.org>
69944
69945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69946         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69947
69948 2007-04-04  Bruno Haible  <bruno@clisp.org>
69949
69950         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69951         results for "%010a" of Infinity and NaN.
69952         * tests/test-vasprintf-posix.c (test_function): Likewise.
69953         * tests/test-snprintf-posix.h (test_function): Likewise.
69954         * tests/test-sprintf-posix.h (test_function): Likewise.
69955         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69956         * tests/test-printf-posix.h (test_function): Likewise.
69957         * tests/test-fprintf-posix.out: Update.
69958         Needed for FreeBSD 6.1.
69959
69960 2007-04-04  Bruno Haible  <bruno@clisp.org>
69961
69962         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69963         directly used by the gnulib modules nor by gnulib-tool.
69964
69965 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * DEPENDENCIES: Give overall description of version dependency
69968         desirability.  Use more-typical names for apps.
69969         Add shell, coreutils, diffutils, grep, tar, gzip.
69970
69971 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69972
69973         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69974
69975 2007-04-04  Karl Berry  <karl@gnu.org>
69976
69977         * MODULES.html.sh (func_module): missing '.
69978
69979 2007-04-03  Bruno Haible  <bruno@clisp.org>
69980
69981         * modules/argmatch-tests (Makefile.am): New variable
69982         test_argmatch_LDADD.
69983         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69984         * modules/array-list-tests (Makefile.am): New variable
69985         test_array_list_LDADD.
69986         * modules/array-oset-tests (Makefile.am): New variable
69987         test_array_oset_LDADD.
69988         * modules/avltree-list-tests (Makefile.am): New variable
69989         test_avltree_list_LDADD.
69990         * modules/avltree-oset-tests (Makefile.am): New variable
69991         test_avltree_oset_LDADD.
69992         * modules/avltreehash-list-tests (Makefile.am): New variable
69993         test_avltreehash_list_LDADD.
69994         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69995         test_canonicalize_lgpl_LDADD.
69996         * modules/carray-list-tests (Makefile.am): New variable
69997         test_carray_list_LDADD.
69998         * modules/dirname-tests (Makefile.am): New variable
69999         test_dirname_LDADD.
70000         * modules/linked-list-tests (Makefile.am): New variable
70001         test_linked_list_LDADD.
70002         * modules/linkedhash-list-tests (Makefile.am): New variable
70003         test_linkedhash_list_LDADD.
70004         * modules/rbtree-list-tests (Makefile.am): New variable
70005         test_rbtree_list_LDADD.
70006         * modules/rbtree-oset-tests (Makefile.am): New variable
70007         test_rbtree_oset_LDADD.
70008         * modules/rbtreehash-list-tests (Makefile.am): New variable
70009         test_rbtreehash_list_LDADD.
70010         * modules/xvasprintf-tests (Makefile.am): New variable
70011         test_xvasprintf_LDADD.
70012         Reported by Eric Blake.
70013
70014 2007-04-03  Eric Blake  <ebb9@byu.net>
70015
70016         * DEPENDENCIES: Weaken m4 requirements.
70017
70018 2007-04-03  Bruno Haible  <bruno@clisp.org>
70019
70020         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70021         * modules/isnanl-tests (configure.ac): Likewise.
70022
70023 2007-04-03  Ben Pfaff  <blp@gnu.org>
70024
70025         * modules/iconv_open: Add $(srcdir)/ to source directory
70026         references in Makefile fragments that call gperf, to fix VPATH
70027         builds.
70028
70029 2007-04-03  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70032         * lib/ldexpl.c: Undo last change.
70033
70034 2007-04-03  Bruno Haible  <bruno@clisp.org>
70035
70036         * modules/printf-frexpl (Depends-on): Undo last change.
70037         (Files): Add m4/ldexpl.m4.
70038
70039 2007-04-03  Bruno Haible  <bruno@clisp.org>
70040
70041         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70042         * modules/isnanl (Link): New section.
70043
70044         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70045         * modules/frexp (Link): New section.
70046
70047         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70048         * modules/frexpl (Link): New section.
70049
70050         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70051         * modules/ldexpl (Link): New section.
70052
70053 2007-04-03  Bruno Haible  <bruno@clisp.org>
70054
70055         * modules/TEMPLATE-EXTENDED: New file.
70056         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70057
70058 2007-04-03  Bruno Haible  <bruno@clisp.org>
70059
70060         * DEPENDENCIES: New file.
70061         Suggested by Simon Josefsson.
70062
70063 2007-04-03  Bruno Haible  <bruno@clisp.org>
70064
70065         * doc/gnulib.texi: Escape @.
70066
70067 2007-04-03  James Youngman  <jay@gnu.org>
70068         and Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70071         birthtime on all systems that have birthtime, not just those which
70072         use st_birthtimensec rather than st_birthtim.  Putting zero in
70073         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70074         that the birth time is not available for files on an NFS mount.
70075
70076 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70077
70078         * modules/memxor: Move back from crypto/, suggested by Bruno.
70079         * modules/crypto/hmac-sha1: Fix memxor dependency.
70080
70081         * modules/crypto/gc: Moved from ../.
70082
70083 2007-04-02  Eric Blake  <ebb9@byu.net>
70084
70085         * lib/ldexpl.c (includes): Avoid libm.
70086
70087         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70088
70089 2007-04-02  Bruno Haible  <bruno@clisp.org>
70090
70091         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70092         on IRIX.
70093
70094 2007-04-02  Bruno Haible  <bruno@clisp.org>
70095
70096         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70097         x86 or x86_64 platforms running MacOS X.
70098         Reported by Ryan Schmidt <@ryandesign.com>.
70099
70100 2007-04-02  Bruno Haible  <bruno@clisp.org>
70101
70102         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70103         i386.
70104
70105 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70106
70107         * modules/crypto/arcfour: Moved from ../.
70108         * modules/crypto/arcfour-tests: Moved from ../.
70109         * modules/crypto/arctwo: Moved from ../.
70110         * modules/crypto/arctwo-tests: Moved from ../.
70111         * modules/crypto/des: Moved from ../.
70112         * modules/crypto/des-tests: Moved from ../.
70113         * modules/crypto/gc-arcfour: Moved from ../.
70114         * modules/crypto/gc-arcfour-tests: Moved from ../.
70115         * modules/crypto/gc-arctwo: Moved from ../.
70116         * modules/crypto/gc-arctwo-tests: Moved from ../.
70117         * modules/crypto/gc-des: Moved from ../.
70118         * modules/crypto/gc-des-tests: Moved from ../.
70119         * modules/crypto/gc-hmac-md5: Moved from ../.
70120         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70121         * modules/crypto/gc-hmac-sha1: Moved from ../.
70122         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70123         * modules/crypto/gc-md2: Moved from ../.
70124         * modules/crypto/gc-md2-tests: Moved from ../.
70125         * modules/crypto/gc-md4: Moved from ../.
70126         * modules/crypto/gc-md4-tests: Moved from ../.
70127         * modules/crypto/gc-md5: Moved from ../.
70128         * modules/crypto/gc-md5-tests: Moved from ../.
70129         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70130         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70131         * modules/crypto/gc-random: Moved from ../.
70132         * modules/crypto/gc-rijndael: Moved from ../.
70133         * modules/crypto/gc-rijndael-tests: Moved from ../.
70134         * modules/crypto/gc-sha1: Moved from ../.
70135         * modules/crypto/gc-sha1-tests: Moved from ../.
70136         * modules/crypto/gc-tests: Moved from ../.
70137         * modules/crypto/hmac-md5: Moved from ../.
70138         * modules/crypto/hmac-md5-tests: Moved from ../.
70139         * modules/crypto/hmac-sha1: Moved from ../.
70140         * modules/crypto/hmac-sha1-tests: Moved from ../.
70141         * modules/crypto/md2: Moved from ../.
70142         * modules/crypto/md2-tests: Moved from ../.
70143         * modules/crypto/md4: Moved from ../.
70144         * modules/crypto/md4-tests: Moved from ../.
70145         * modules/crypto/md5: Moved from ../.
70146         * modules/crypto/md5-tests: Moved from ../.
70147         * modules/crypto/memxor: Moved from ../.
70148         * modules/crypto/rijndael: Moved from ../.
70149         * modules/crypto/rijndael-tests: Moved from ../.
70150         * modules/crypto/sha1: Moved from ../.
70151
70152 2007-03-30  James Youngman  <jay@gnu.org>
70153
70154         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70155         rename() to change the ctime of a file (because ctime is unaffected
70156         by rename on jfs2 on AIX 5.1).
70157         (main): Start by doing cleanup, in case a previous run failed leaving
70158         test files behind.
70159
70160 2007-03-31  Bruno Haible  <bruno@clisp.org>
70161
70162         Support old proprietary implementations of iconv.
70163         * modules/iconv_open: New file.
70164         * lib/iconv_.h: New file.
70165         * m4/iconv_h.m4: New file.
70166         * lib/iconv_open.c: New file.
70167         * lib/iconv_open-aix.gperf: New file.
70168         * lib/iconv_open-hpux.gperf: New file.
70169         * lib/iconv_open-irix.gperf: New file.
70170         * lib/iconv_open-osf.gperf: New file.
70171         * m4/iconv_open.m4: New file.
70172         * modules/linebreak (Depends-on): Add iconv_open.
70173         * modules/striconv (Depends-on): Likewise.
70174         * modules/striconveh (Depends-on): Likewise.
70175         * modules/unicodeio (Depends-on): Likewise.
70176         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70177         (iconv_t)(-1).
70178         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70179         conversion if cd is (iconv_t)(-1).
70180         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70181         is not possible.
70182
70183 2007-03-31  Bruno Haible  <bruno@clisp.org>
70184
70185         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70186         work on Solaris either. Protect also second use of "autodetect_jp".
70187
70188 2007-03-31  Bruno Haible  <bruno@clisp.org>
70189
70190         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70191         the function is not present.
70192
70193 2007-03-31  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70196         the function is not present.
70197
70198 2007-03-31  Bruno Haible  <bruno@clisp.org>
70199
70200         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70201         a bug in HP-UX iconv_open().
70202
70203 2007-03-31  Bruno Haible  <bruno@clisp.org>
70204
70205         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70206         (Mathematics <math.h>): New section, add fpieee.
70207         (Input/output <stdio.h>): Add fseterr.
70208         (Mathematics <math.h>): New section, add printf-frexp.
70209         (Container data structures): Add sublist.
70210         (Core language properties): Add fpucw, inline.
70211         (Functions for greatest-width integer types <inttypes.h>): Add
70212         imaxabs, imaxdiv, inttypes.
70213         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70214         isnanl-nolibm, ldexp.
70215         (Mathematics <math.h>): New section, add printf-frexpl.
70216         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70217         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70218         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70219         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70220         (Unicode string functions): Add unistr/u*-mbtoucr.
70221         (Java): Add javacomp-script, javaexec-script.
70222         (C#): Add csharpcomp-script, csharpexec-script.
70223         (Support for building libraries and executables): Add havelib,
70224         relocatable-*.
70225         (Support for maintaining and releasing projects): Renamed from
70226         'Support for maintaining and release projects'. Add announce-gen.
70227
70228 2007-03-31  Bruno Haible  <bruno@clisp.org>
70229
70230         * README: Talk primarily about git.
70231         (git and CVS): Renamed from CVS.
70232         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70233         gnulib is available through git.
70234         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70235
70236 2007-03-30  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70239         * lib/poll_.h: Likewise.
70240         * lib/stat_.h: Likewise.
70241         * lib/sys_time_.h: Likewise.
70242         * lib/sysexit_.h: Likewise.
70243         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70244         * lib/stdbool_.h: Likewise.
70245         * lib/byteswap_.h: Add double-inclusion guard.
70246
70247 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70248
70249         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70250
70251 2007-03-30  Karl Berry  <karl@gnu.org>
70252
70253         * config/srclist-update: double space after USA in the license
70254         substitution, since that's how it's usually (?) written.
70255
70256 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70259         reported by Bruno Haible.
70260
70261 2007-03-29  Bruno Haible  <bruno@clisp.org>
70262
70263         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70264         a bug in AIX iconv().
70265
70266 2007-03-29  Bruno Haible  <bruno@clisp.org>
70267
70268         * modules/ldexpl-tests: New file.
70269         * tests/test-ldexpl.c: New file.
70270
70271 2007-03-29  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/ldexpl.c: Include fpucw.h.
70274         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70275         multiplication.
70276         * modules/ldexpl (Depends-on): Add fpucw.
70277
70278 2007-03-29  Bruno Haible  <bruno@clisp.org>
70279
70280         * modules/ldexpl: New file.
70281         * m4/ldexpl.m4: New file.
70282         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70283         set.
70284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70285         REPLACE_LDEXPL.
70286         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70287         REPLACE_LDEXPL.
70288         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70289         gl_FUNC_LDEXPL_WORKS.
70290         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70291         * modules/mathl (Files): Remove lib/ldexpl.c.
70292         (Depends-on): Add ldexpl.
70293
70294 2007-03-29  Bruno Haible  <bruno@clisp.org>
70295
70296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70297
70298 2007-03-29  Bruno Haible  <bruno@clisp.org>
70299
70300         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70301         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70302         and possibly also HP-UX.
70303         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70304         work on AIX, IRIX, HP-UX, OSF/1.
70305         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70306         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70307         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70308         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70309         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70310         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70311
70312 2007-03-29  Bruno Haible  <bruno@clisp.org>
70313
70314         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70315
70316 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70319         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70320
70321 2007-03-29  Eric Blake  <ebb9@byu.net>
70322
70323         * lib/acl-internal.h: Remove redundant include.
70324         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70325         Cygwin when a file is locked.
70326
70327 2007-03-29  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70330         file.
70331         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70332
70333 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70336         try to remove a parent directory if the child couldn't be removed
70337         (except for the first rmdir, which could fail because the child
70338         doesn't exist).  Problem reported by Jeff Blaine in
70339         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70340
70341 2007-03-28  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/striconveh.c (utf8conv_carefully): New function.
70344         (mem_cd_iconveh_internal): Invoke it.
70345
70346 2007-03-28  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70349         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70350         input.
70351         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70352         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70353         unistr/u8-uctomb.
70354
70355 2007-03-28  Bruno Haible  <bruno@clisp.org>
70356
70357         * modules/unistr/u8-mbtoucr: New file.
70358         * lib/unistr/u8-mbtoucr.c: New file.
70359         * modules/unistr/u16-mbtoucr: New file.
70360         * lib/unistr/u16-mbtoucr.c: New file.
70361         * modules/unistr/u16-mbtoucr: New file.
70362         * lib/unistr/u16-mbtoucr.c: New file.
70363         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70364
70365 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70366             Bruno Haible  <bruno@clisp.org>
70367
70368         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70369         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70370         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70371
70372         * m4/stdio_h.m4: Add stubs for vasprintf too.
70373
70374         * modules/stdio: Support vasprintf in sed command.
70375
70376         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70377         vasprintf.h.  Add stdio module indicator.
70378
70379         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70380         vasprintf.h.
70381
70382         * lib/vasprintf.h: File removed.
70383
70384         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70385         * lib/vasprintf.c: Ditto.
70386         * lib/xvasprintf.c: Ditto.
70387         * tests/test-vasprintf-posix.c: Ditto.
70388         * tests/test-vasprintf.c: Ditto.
70389
70390 2007-03-27  Bruno Haible  <bruno@clisp.org>
70391
70392         Make vasnprintf multithread-safe.
70393         * lib/vasnprintf.c (decimal_point_char): New function.
70394         (VASNPRINTF): Use it.
70395         Suggested by Simon Josefsson.
70396
70397 2007-03-27  Eric Blake  <ebb9@byu.net>
70398
70399         Support sub-second birthtime on cygwin.
70400         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70401         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70402         (get_stat_birthtime): Also work with st_birthtim.
70403
70404 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70405
70406         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70407         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70408         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70409         (get_stat_birthtime_ns): Simplify compile-time tests.
70410         (get_stat_birthtime): Change the API to look like
70411         get_stat_mtime etc., except return a negative tv_nsec on error.
70412         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70413         Don't check for "spare" fields.
70414         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70415         or for struct stat.st_birthtime, as these tests aren't used.
70416         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70417
70418 2007-03-27  Bruno Haible  <bruno@clisp.org>
70419
70420         * lib/stat-time.h: Include <sys/stat.h>.
70421
70422 2007-03-27  James Youngman  <jay@gnu.org>
70423
70424         * lib/stat-time.h (get_stat_birthtime): New function for
70425           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70426         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70427           and its variants.
70428         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70429         * modules/stat-time-test: New file.
70430         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70431
70432 2007-03-26  Bruno Haible  <bruno@clisp.org>
70433
70434         Better support of signalling NaNs.
70435         * lib/atanl.c: Include isnanl.h.
70436         (atanl): Perform test for NaN at the beginning of the function and
70437         through a call to isnanl.
70438         * lib/cosl.c: Include isnanl.h.
70439         (cosl): Perform test for NaN at the beginning of the function and
70440         through a call to isnanl.
70441         * lib/ldexpl.c: Include isnanl.h.
70442         (ldexpl): Perform test for NaN through a call to isnanl.
70443         * lib/logl.c: Include isnanl.h.
70444         (logl): Perform test for NaN at the beginning of the function and
70445         through a call to isnanl.
70446         * lib/sinl.c: Include isnanl.h.
70447         (sinl): Perform test for NaN at the beginning of the function and
70448         through a call to isnanl.
70449         * lib/sqrtl.c: Include isnanl.h.
70450         (sqrtl): Perform test for NaN at the beginning of the function and
70451         through a call to isnanl.
70452         * lib/tanl.c: Include isnanl.h.
70453         (tanl): Perform test for NaN at the beginning of the function and
70454         through a call to isnanl.
70455         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70456         * modules/mathl (Depends-on): Add isnanl.
70457
70458 2007-03-26  Eric Blake  <ebb9@byu.net>
70459
70460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70461         regression in logic sense of previous patch.
70462
70463 2007-03-26  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70466         unportable shell command "if ! ...".
70467         Reported by Ralf Wildenhues.
70468
70469 2007-03-25  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70472         <sysexits.h> file, and only add EX_CONFIG.
70473         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70474         absolute file name and whether it is sufficient. Substitute also
70475         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70476         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70477         ABSOLUTE_SYSEXITS_H into sysexits.h.
70478
70479 2007-03-25  Bruno Haible  <bruno@clisp.org>
70480
70481         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70482         hints is NULL.
70483
70484 2007-03-25  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70487         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70488
70489 2007-03-25  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/vasnprintf.c: Include langinfo.h.
70492         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70493         multithread-safe.
70494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70503         Reported by Simon Josefsson.
70504
70505 2007-03-25  Bruno Haible  <bruno@clisp.org>
70506
70507         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70508         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70509         * modules/vasnprintf (Depends-on): Add stdint.
70510
70511 2007-03-25  Bruno Haible  <bruno@clisp.org>
70512
70513         * modules/fpieee: New file.
70514         * m4/fpieee.m4: New file.
70515         * modules/isnan-nolibm (Depends-on): Add fpieee.
70516         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70517         * modules/isnanl (Depends-on): Add fpieee.
70518
70519 2007-03-25  Bruno Haible  <bruno@clisp.org>
70520
70521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70522
70523 2007-03-25  Bruno Haible  <bruno@clisp.org>
70524
70525         Avoid test failures on IRIX 6.5.
70526         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70527         (main): Use it.
70528         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70529         macros.
70530         (main): Use them.
70531
70532 2007-03-25  Bruno Haible  <bruno@clisp.org>
70533
70534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70535         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70536         exists but doesn't work.
70537         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70538         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70540         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70541         math.h.
70542
70543 2007-03-25  Bruno Haible  <bruno@clisp.org>
70544
70545         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70546         returns inf. Needed on IRIX 6.5.
70547
70548 2007-03-25  Bruno Haible  <bruno@clisp.org>
70549
70550         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70551         (main): Use isnanl instead of x != x idiom.
70552         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70553
70554         * tests/test-frexp.c: Include isnan.h.
70555         (main): Use isnan instead of x != x idiom.
70556         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70557
70558 2007-03-25  Bruno Haible  <bruno@clisp.org>
70559
70560         * tests/test-frexp.c (NaN): New function/macro.
70561         (main): Use it instead of 0.0 / 0.0.
70562         * tests/test-isnan.c (NaN): New function/macro.
70563         (main): Use it instead of 0.0 / 0.0.
70564         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70565         (test_function): Use it instead of 0.0 / 0.0.
70566         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70567         (test_function): Use it instead of 0.0 / 0.0.
70568         * tests/test-snprintf-posix.h (NaN): New function/macro.
70569         (test_function): Use it instead of 0.0 / 0.0.
70570         * tests/test-sprintf-posix.h (NaN): New function/macro.
70571         (test_function): Use it instead of 0.0 / 0.0.
70572         * tests/test-fprintf-posix.h (NaN): New function/macro.
70573         (test_function): Use it instead of 0.0 / 0.0.
70574         * tests/test-printf-posix.h (NaN): New function/macro.
70575         (test_function): Use it instead of 0.0 / 0.0.
70576
70577         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70578
70579 2007-03-25  Bruno Haible  <bruno@clisp.org>
70580
70581         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70582
70583 2007-03-25  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/regexec.c (merge_state_with_log): Make static.
70586
70587 2007-03-25  Bruno Haible  <bruno@clisp.org>
70588
70589         * lib/trigl.c (kernel_rem_pio2): Make static.
70590
70591 2007-03-25  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/sincosl.c (sincosl_table): Make static.
70594
70595 2007-03-25  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70598         if the compiler does not support C99.
70599
70600 2007-03-25  Bruno Haible  <bruno@clisp.org>
70601
70602         * modules/time (Makefile.am): Ensure all rule action lines start with a
70603         tab.
70604
70605 2007-03-24  Bruno Haible  <bruno@clisp.org>
70606
70607         * modules/tsearch-tests: New file.
70608         * tests/test-tsearch.sh: New file.
70609         * tests/test-tsearch.c: New file, mostly copied from glibc.
70610
70611         * modules/search-tests: New file.
70612         * tests/test-search.c: New file.
70613
70614         * modules/search: New file.
70615         * lib/search_.h: New file, incorporating lib/tsearch.h.
70616         * m4/search_h.m4: New file.
70617         * lib/tsearch.h: Remove file.
70618         * lib/tsearch.c: Include search.h instead of tsearch.h.
70619         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70620         HAVE_TSEARCH.
70621         * modules/tsearch (Files): Remove lib/tsearch.h.
70622         (Depends-on): Add search.
70623         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70624         (Include): Change tsearch.h into search.h.
70625
70626 2007-03-24  Bruno Haible  <bruno@clisp.org>
70627
70628         * modules/fpucw: New file.
70629         * lib/fpucw.h: New file.
70630         * lib/frexp.c: Include fpucw.h.
70631         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70632         (FUNC): Use them.
70633         * lib/printf-frexp.c: Include fpucw.h.
70634         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70635         (FUNC): Use them.
70636         * lib/vasnprintf.c: Include fpucw.h.
70637         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70638         'long double' calculations.
70639         * tests/test-frexpl.c: Include fpucw.h.
70640         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70641         * tests/test-printf-frexpl.c: Include fpucw.h.
70642         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70643         * modules/frexpl (Depends-on): Add fpucw.
70644         * modules/printf-frexpl (Depends-on): Likewise.
70645         * modules/fprintf-posix (Depends-on): Likewise.
70646         * modules/snprintf-posix (Depends-on): Likewise.
70647         * modules/sprintf-posix (Depends-on): Likewise.
70648         * modules/vasnprintf-posix (Depends-on): Likewise.
70649         * modules/vasprintf-posix (Depends-on): Likewise.
70650         * modules/vfprintf-posix (Depends-on): Likewise.
70651         * modules/vsnprintf-posix (Depends-on): Likewise.
70652         * modules/vsprintf-posix (Depends-on): Likewise.
70653         * modules/frexpl-tests (Depends-on): Likewise.
70654         * modules/printf-frexpl-tests (Depends-on): Likewise.
70655
70656 2007-03-24  Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/float+.h: New file.
70659         * lib/isnan.c: Include float+.h.
70660         (SIZE): New macro.
70661         (FUNC): Compare only SIZE bytes of the value.
70662         * lib/vasnprintf.c: Include float+.h.
70663         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70664         SIZEOF_LDBL or SIZEOF_DBL bytes.
70665         * modules/isnan-nolibm (Files): Add lib/float+.h.
70666         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70667         * modules/isnanl (Files): Add lib/float+.h.
70668         * modules/vasnprintf (Files): Add lib/float+.h.
70669
70670 2007-03-24  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70673         include isnanl-nolibm.h.
70674
70675 2007-03-24  Bruno Haible  <bruno@clisp.org>
70676
70677         * tests/test-read-file.c (main): Don't produce spurious output for
70678         expected situations. Make the test fail if it encountered unexpected
70679         results.
70680
70681 2007-03-24  Bruno Haible  <bruno@clisp.org>
70682
70683         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70684         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70685
70686 2007-03-24  Bruno Haible  <bruno@clisp.org>
70687
70688         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70689
70690 2007-03-24  Bruno Haible  <bruno@clisp.org>
70691
70692         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70693         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70694
70695         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70696         * modules/utf8-ucs4: Turn into a symbolic link to module
70697         unistr/u8-mbtouc.
70698
70699         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70700         utf8-ucs4-unsafe.
70701         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70702         unistr/u8-mbtouc-unsafe.
70703
70704         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70705         * modules/utf16-ucs4: Turn into a symbolic link to module
70706         unistr/u16-mbtouc.
70707
70708         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70709         utf16-ucs4-unsafe.
70710         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70711         unistr/u16-mbtouc-unsafe.
70712
70713         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70714         * modules/ucs4-utf8: Turn into a symbolic link to module
70715         unistr/u8-ubtomb.
70716
70717         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70718         * modules/ucs4-utf16: Turn into a symbolic link to module
70719         unistr/u16-ubtomb.
70720
70721 2007-03-24  Bruno Haible  <bruno@clisp.org>
70722
70723         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70724         Enable the function only if HAVE_INLINE.
70725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70726         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70727         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70728         Enable the function only if HAVE_INLINE.
70729         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70730         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70731         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70732         Enable the function only if HAVE_INLINE.
70733         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70734         Enable the function only if HAVE_INLINE.
70735         * modules/utf8-ucs4: Update.
70736         * modules/utf8-ucs4-unsafe: Update.
70737         * modules/utf16-ucs4: Update.
70738         * modules/utf16-ucs4-unsafe: Update.
70739         * modules/ucs4-utf8: Update.
70740         * modules/ucs4-utf16: Update.
70741
70742 2007-03-24  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/utf8-ucs4.h: Remove file.
70745         * lib/utf8-ucs4-unsafe.h: Remove file.
70746         * lib/utf16-ucs4.h: Remove file.
70747         * lib/utf16-ucs4-unsafe.h: Remove file.
70748         * lib/ucs4-utf8.h: Remove file.
70749         * lib/ucs4-utf16.h: Remove file.
70750         * lib/unistr.h: Include their previous contents.
70751         * m4/utf-ucs4.m4: Remove file.
70752         * m4/ucs4-utf.m4: Remove file.
70753         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70754         (Depends-on): Add unistr/base.
70755         (configure.ac): Remove gl_UTF_UCS4.
70756         (Makefile.am): Update.
70757         (Include): Change to unistr.h.
70758         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70759         (Depends-on): Add unistr/base.
70760         (configure.ac): Remove gl_UTF_UCS4.
70761         (Makefile.am): Update.
70762         (Include): Change to unistr.h.
70763         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70764         (Depends-on): Add unistr/base.
70765         (configure.ac): Remove gl_UTF_UCS4.
70766         (Makefile.am): Update.
70767         (Include): Change to unistr.h.
70768         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70769         (Depends-on): Add unistr/base.
70770         (configure.ac): Remove gl_UTF_UCS4.
70771         (Makefile.am): Update.
70772         (Include): Change to unistr.h.
70773         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70774         (Depends-on): Add unistr/base.
70775         (configure.ac): Remove gl_UCS4_UTF.
70776         (Makefile.am): Update.
70777         (Include): Change to unistr.h.
70778         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70779         (Depends-on): Add unistr/base.
70780         (configure.ac): Remove gl_UCS4_UTF.
70781         (Makefile.am): Update.
70782         (Include): Change to unistr.h.
70783         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70784         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70785         utf8-ucs4-unsafe.h.
70786         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70787         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70788         utf16-ucs4-unsafe.h.
70789         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70790         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70791         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70792         * lib/unistr/u8-strchr.c: Likewise.
70793         * lib/unistr/u8-strrchr.c: Likewise.
70794         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70795         * lib/unistr/u16-strchr.c: Likewise.
70796         * lib/unistr/u16-strrchr.c: Likewise.
70797         * lib/striconveh.c: Update.
70798         * lib/linebreak.c: Update.
70799
70800 2007-03-24  Bruno Haible  <bruno@clisp.org>
70801
70802         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70803         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70804
70805 2007-03-22  Bruno Haible  <bruno@clisp.org>
70806
70807         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70808
70809 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * MODULES.html.sh (File system functions): New module write-any-file.
70812         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70813         * m4/write-any-file.m4: New files.
70814
70815 2007-03-23  Eric Blake  <ebb9@byu.net>
70816
70817         * gnulib-tool: Rearrange space-tab sequences, since some editors
70818         like to eat them.
70819
70820 2007-03-23  Eric Blake  <ebb9@byu.net>
70821
70822         * lib/version-etc.c (version_etc_va): Update license wording to
70823         be more concise.  Recommended by Richard Stallman.
70824
70825 2007-03-22  Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/poll.c (MSG_PEEK): New fallback definition.
70828
70829 2007-03-22  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70832         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70833         (main): Update.
70834         Fixes a compilation error on BeOS.
70835
70836 2007-03-22  Bruno Haible  <bruno@clisp.org>
70837
70838         * modules/frexpl-tests: New file.
70839         * tests/test-frexpl.c: New file.
70840
70841         * modules/frexpl: New file.
70842         * m4/frexpl.m4: New file.
70843         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70844         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70846         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70847         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70848         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70849
70850 2007-03-22  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/frexpl.c: Share code with lib/frexp.c.
70853         * modules/mathl (Files): Add lib/frexp.c.
70854         (Depends-on): Add isnanl-nolibm.
70855
70856 2007-03-22  Bruno Haible  <bruno@clisp.org>
70857
70858         * modules/printf-frexp (Files): Add m4/frexp.m4.
70859         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70860         only if the found frexp function actually works.
70861
70862 2007-03-22  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/frexp.c: Remove older implementation that uses divisions.
70865
70866 2007-03-21  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/frexp-tests: New file.
70869         * tests/test-frexp.c: New file.
70870
70871         * modules/frexp: New file.
70872         * lib/frexp.c: New file.
70873         * m4/frexp.m4: New file.
70874         * lib/math_.h (frexp): New declaration.
70875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70876         REPLACE_FREXP.
70877         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70878
70879 2007-03-21  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/isnanl-tests: New file.
70882         * tests/test-isnanl.c: New file.
70883
70884         * modules/isnanl: New file.
70885         * lib/isnanl.h: New file.
70886         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70887         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70888         gl_FUNC_ISNANL_WORKS.
70889         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70890         New macros.
70891
70892 2007-03-21  Bruno Haible  <bruno@clisp.org>
70893
70894         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70895         lib/isnanl.h.
70896         (Include): Update.
70897         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70898         * lib/vasnprintf.c: Update.
70899         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70900         tests/test-isnanl.h, remove tests/test-isnanl.c.
70901         (Makefile.am): Update.
70902         * tests/test-isnanl-nolibm.c: New file.
70903         * tests/test-isnanl.h: New file.
70904         * tests/test-isnanl.c: Remove file.
70905
70906 2007-03-21  Jim Meyering  <jim@meyering.net>
70907
70908         When trying to open ".", treat ESTALE like EACCES.
70909         * lib/savewd.c (savewd_save): Resort to forking not just upon
70910         failure with EACCES, but also when errno is ESTALE.
70911
70912 2007-03-20  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70915         Needed on AIX 5.1. Reported by Matthew Woehlke.
70916
70917 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         Suggestions by Bruno Haible:
70920         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70921         our own.
70922         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70923         * modules/acl (Depends-on): Add gettext.
70924
70925 2007-03-19  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/iconvme: Remove file.
70928         * lib/iconvme.h: Remove file.
70929         * lib/iconvme.c: Remove file.
70930         * m4/iconvme.m4: Remove file.
70931
70932 2007-03-19  Bruno Haible  <bruno@clisp.org>
70933
70934         * doc/relocatable-maint.texi: Break long shell script line.
70935         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70936
70937 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70940         handle file_has_acl.
70941         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70942         * lib/acl.c: Move header inclusions and related macro defns into
70943         lib/acl-internal.h.
70944         (S_ISLNK): Remove defn, since that's now done for us.
70945         (file_has_acl): Move to lib/file-has-acl.c.
70946         Call acl_trivial if available.  This is the crucial part of the fix.
70947         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70948         shared within the library.  Rewrite a bit, partly to make it compatible
70949         with the GNU coding style.
70950         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70951         Remove unnecessary double-quotes.
70952         Don't test for acl_to_text; the build will catch that.
70953         Replace acl_entries if it doesn't exist and it is needed.
70954         Check for -lsec and acl_trivial (as used on Solaris 10).
70955         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70956         lib/file-has-acl.c.
70957         (Depends-on): Add sys_stat, for S_ISLNK.
70958
70959 2007-03-19  Ben Pfaff  <blp@gnu.org>
70960
70961         * doc/gnulib.texi: Fix typos.
70962         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70963
70964 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70967         If size is zero here, buf must be zero.
70968
70969 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70970
70971         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70972         <bruno@clisp.org>.
70973
70974 2007-03-18  Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70977         Suggested by Eric Blake.
70978
70979 2007-03-18  Ben Pfaff  <blp@gnu.org>
70980
70981         * doc/relocatable.texi: Recommend using as prefix a directory
70982         that does not exist and will never be created.  Based on
70983         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70984         and others.
70985
70986 2007-03-17  Bruno Haible  <bruno@clisp.org>
70987
70988         * lib/fchownat.c: Include lchown.h.
70989
70990 2007-03-17  Bruno Haible  <bruno@clisp.org>
70991
70992         Fix endless loop when the given allocated size was > INT_MAX.
70993         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70994         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70995         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70996         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70997         * lib/sprintf.c (sprintf): Likewise.
70998
70999 2007-03-17  Bruno Haible  <bruno@clisp.org>
71000
71001         * tests/test-argp-2.sh (func_compare): Output a context diff.
71002
71003 2007-03-17  Bruno Haible  <bruno@clisp.org>
71004
71005         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71006         locale's decimal-point character.
71007
71008 2007-03-17  Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71011         before comparing it. Needed because on some platforms (e.g. x86) a
71012         'long double' occupies less bytes than sizeof (long double).
71013
71014 2007-03-17  Bruno Haible  <bruno@clisp.org>
71015
71016         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71017         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71018         * tests/test-getaddrinfo.c (simple): Likewise.
71019         * tests/test-read-file.c (main): Likewise.
71020
71021 2007-03-17  Bruno Haible  <bruno@clisp.org>
71022
71023         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71024
71025 2007-03-17  Bruno Haible  <bruno@clisp.org>
71026
71027         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71028         unused variable.
71029
71030 2007-03-17  Bruno Haible  <bruno@clisp.org>
71031
71032         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71033         * tests/test-c-strncasecmp.c: Likewise.
71034
71035 2007-03-17  Bruno Haible  <bruno@clisp.org>
71036
71037         * modules/stdlib (Depends-on): Add unistd.
71038         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71039         Needed for MacOS X 10.3.
71040
71041 2007-03-17  Bruno Haible  <bruno@clisp.org>
71042
71043         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71044
71045 2007-03-17  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71048
71049 2007-03-17  Bruno Haible  <bruno@clisp.org>
71050
71051         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71052         to reflect files copied from gnulib (with or without modifications).
71053         Suggested by Jim Meyering.
71054
71055 2007-03-17  Eric Blake  <ebb9@byu.net>
71056
71057         * NEWS: Document stdlib change from 2007-02-18.
71058
71059 2007-03-17  Jim Meyering  <jim@meyering.net>
71060
71061         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71062         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71063         someone uses a name containing shell meta-characters.
71064         Reported by Alfred M. Szmidt.
71065
71066         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71067
71068 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71069
71070         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71071         and copy gettext configuration files only if configure.ac contains
71072         a use of AM_GNU_GETTEXT_VERSION.
71073
71074 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71075
71076         * build-aux/bootstrap (gnulib_name): New variable.
71077         (gnulib_tool_options): Use it.
71078
71079 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71080
71081         * tests/test-des.c: Use new namespace.
71082
71083 2007-03-15  Bruno Haible  <bruno@clisp.org>
71084
71085         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71086         Reported by James Youngman <jay@gnu.org>.
71087
71088 2007-03-15  Bruno Haible  <bruno@clisp.org>
71089
71090         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71091         declared prototype. Needed with cc on OSF/1 5.1.
71092
71093 2007-03-15  Bruno Haible  <bruno@clisp.org>
71094
71095         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71096         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71097         (struct gl_list_implementation): Add dispose_fn argument to the
71098         'create_empty', 'create' methods.
71099         (struct gl_list_impl_base): Add field 'dispose_fn'.
71100         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71101         argument.
71102         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71103         dispose_fn argument.
71104         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71105         dispose_fn on the dropped values.
71106         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71107         dispose_fn argument.
71108         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71109         dropped values.
71110         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71111         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71112         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71113         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71114         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71115         argument.
71116         (gl_tree_list_free): Call dispose_fn on the dropped values.
71117         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71118         the dropped values.
71119         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71120         Add dispose_fn argument.
71121         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71122         Call dispose_fn on the dropped values.
71123         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71124         Add dispose_fn argument.
71125         (gl_sublist_create): Initialize the 'dispose_fn' field.
71126         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71127         * tests/test-array_list.c (main): Update.
71128         * tests/test-carray_list.c (main): Update.
71129         * tests/test-avltree_list.c (main): Update.
71130         * tests/test-rbtree_list.c (main): Update.
71131         * tests/test-avltreehash_list.c (main): Update.
71132         * tests/test-rbtreehash_list.c (main): Update.
71133         * tests/test-linked_list.c (main): Update.
71134         * tests/test-linkedhash_list.c (main): Update.
71135         * tests/test-array_oset.c (main): Update.
71136
71137 2007-03-15  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71140         (gl_oset_create_empty): Add dispose_fn argument.
71141         (struct gl_oset_implementation): Add dispose_fn argument to
71142         'create_empty' method.
71143         (struct gl_oset_impl_base): Add dispose_fn field.
71144         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71145         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71146         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71147         values.
71148         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71149         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71150         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71151         dropped value.
71152         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71153         dropped value.
71154         * tests/test-array_oset.c (main): Update.
71155         * tests/test-avltree_oset.c (main): Update.
71156         * tests/test-rbtree_oset.c (main): Update.
71157         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71158
71159 2007-03-13  Bruno Haible  <bruno@clisp.org>
71160
71161         * tests/test-stdbool.c (i): Update after last patch.
71162
71163 2007-03-12  Bruno Haible  <bruno@clisp.org>
71164
71165         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71166         the iswprint macro. Needed on Solaris 2.5.1.
71167
71168 2007-03-12  Bruno Haible  <bruno@clisp.org>
71169
71170         * tests/test-printf-frexp.c (main): Declare x as volatile.
71171
71172 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71173
71174         * doc/gnulib.texi (Build robot for gnulib): New section.
71175
71176 2007-03-12  Jim Meyering  <jim@meyering.net>
71177
71178         * build-aux/bootstrap: New file.
71179         * build-aux/bootstrap.conf: New file, from coreutils.
71180
71181 2007-03-11  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71184
71185 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71186
71187         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71188         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71189         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71190
71191 2007-03-11  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71194         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71195
71196 2007-03-11  Bruno Haible  <bruno@clisp.org>
71197
71198         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71199         formula. Needed for SunPRO C 5.0.
71200
71201 2007-03-11  Bruno Haible  <bruno@clisp.org>
71202
71203         * modules/long-options (Depends-on): Add getopt.
71204
71205 2007-03-11  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/modechange (Depends-on): Add stdbool.
71208
71209 2007-03-11  Bruno Haible  <bruno@clisp.org>
71210
71211         * modules/i-ring (Depends-on): Add stdbool.
71212
71213 2007-03-11  Bruno Haible  <bruno@clisp.org>
71214
71215         * modules/gc-des (Depends-on): Add stdbool.
71216
71217 2007-03-11  Bruno Haible  <bruno@clisp.org>
71218
71219         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71220
71221 2007-03-11  Bruno Haible  <bruno@clisp.org>
71222
71223         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71224
71225 2007-03-11  Bruno Haible  <bruno@clisp.org>
71226
71227         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71228
71229 2007-03-11  Bruno Haible  <bruno@clisp.org>
71230
71231         * lib/vasnprintf.c (sprintf): Undefine.
71232
71233 2007-03-11  Bruno Haible  <bruno@clisp.org>
71234
71235         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71236         initializers in SunPRO C and Compaq C compilers.
71237
71238 2007-03-11  Bruno Haible  <bruno@clisp.org>
71239
71240         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71241         decrementing code ANSI C compliant.
71242
71243 2007-03-11  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71246         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71247
71248 2007-03-11  Bruno Haible  <bruno@clisp.org>
71249
71250         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71251         <stdbool.h> substitute doesn't pass.
71252
71253 2007-03-11  Bruno Haible  <bruno@clisp.org>
71254
71255         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71256
71257 2007-03-11  Bruno Haible  <bruno@clisp.org>
71258
71259         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71260         script, for submission to autobuild.josefsson.org.
71261
71262 2007-03-10  Bruno Haible  <bruno@clisp.org>
71263
71264         * modules/canonicalize-lgpl-tests: New file.
71265         * tests/test-canonicalize-lgpl.sh: New file.
71266         * tests/test-canonicalize-lgpl.c: New file.
71267
71268         * modules/c-strcase-tests: New file.
71269         * tests/test-c-strcase.sh: New file.
71270         * tests/test-c-strcasecmp.c: New file.
71271         * tests/test-c-strncasecmp.c: New file.
71272
71273         * modules/atexit-tests: New file.
71274         * tests/test-atexit.sh: New file.
71275         * tests/test-atexit.c: New file.
71276
71277 2007-03-10  Bruno Haible  <bruno@clisp.org>
71278
71279         * tests/test-binary-io.sh: Use temporary filenames that are not so
71280         likely to clash with those of other tests (in a parallel make).
71281         * tests/test-binary-io.c: Likewise.
71282
71283 2007-03-10  Bruno Haible  <bruno@clisp.org>
71284
71285         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71286         fallback; use #error instead.
71287         Suggested by Simon Josefsson.
71288
71289 2007-03-10  Bruno Haible  <bruno@clisp.org>
71290
71291         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71292         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71293         first and the last.
71294
71295 2007-03-10  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71298
71299 2007-03-10  Bruno Haible  <bruno@clisp.org>
71300
71301         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71302         "make distcheck".
71303         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71304         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71305         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71306
71307 2007-03-10  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71310         variable.
71311         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71312         variable.
71313
71314 2007-03-09  Eric Blake  <ebb9@byu.net>
71315         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71316
71317         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71318         types are not being provided by gnulib.
71319         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71320         types are supported.
71321
71322 2007-03-10  Bruno Haible  <bruno@clisp.org>
71323
71324         * lib/stdio_.h (__attribute__): New macro.
71325         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71326         vsprintf): Specify __attribute__ __format__ for GCC.
71327         Suggested by Eric Blake.
71328
71329 2007-03-09  Bruno Haible  <bruno@clisp.org>
71330
71331         * modules/printf-posix-tests: New file.
71332         * tests/test-printf-posix.sh: New file.
71333         * tests/test-printf-posix.c: New file.
71334
71335         * modules/printf-posix: New file.
71336         * lib/printf.c: New file.
71337         * m4/printf-posix-rpl.m4: New file.
71338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71339         REPLACE_PRINTF.
71340         * lib/stdio_.h (printf): New declaration.
71341         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71342         ____strfmon____): New macros.
71343         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71344         REPLACE_PRINTF.
71345
71346 2007-03-09  Bruno Haible  <bruno@clisp.org>
71347
71348         * tests/test-vasnprintf-posix2.sh: New file.
71349         * tests/test-vasnprintf-posix2.c: New file.
71350         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71351         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71352         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71353
71354         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71355         a locale dependent decimal point, rather than always '.'.
71356
71357 2007-03-09  Eric Blake  <ebb9@byu.net>
71358
71359         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71360         spite of platforms like Tandem/NSK that define it to -1.
71361
71362 2007-03-08  Bruno Haible  <bruno@clisp.org>
71363
71364         * modules/vprintf-posix-tests: New file.
71365         * tests/test-vprintf-posix.sh: New file.
71366         * tests/test-vprintf-posix.c: New file.
71367         * tests/test-printf-posix.h: New file.
71368
71369         * modules/vprintf-posix: New file.
71370         * lib/vprintf.c: New file.
71371         * m4/vprintf-posix.m4: New file.
71372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71373         REPLACE_VPRINTF.
71374         * lib/stdio_.h (vprintf): New declaration.
71375         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71376         REPLACE_VPRINTF.
71377
71378 2007-03-08  Bruno Haible  <bruno@clisp.org>
71379
71380         * modules/fprintf-posix-tests: New file.
71381         * tests/test-fprintf-posix.sh: New file.
71382         * tests/test-fprintf-posix.c: New file.
71383
71384         * modules/fprintf-posix: New file.
71385         * lib/fprintf.c: New file.
71386         * m4/fprintf-posix.m4: New file.
71387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71388         REPLACE_FPRINTF.
71389         * lib/stdio_.h (fprintf): New declaration.
71390         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71391         REPLACE_FPRINTF.
71392
71393 2007-03-08  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/vfprintf-posix-tests: New file.
71396         * tests/test-vfprintf-posix.sh: New file.
71397         * tests/test-vfprintf-posix.c: New file.
71398         * tests/test-fprintf-posix.h: New file.
71399         * tests/test-fprintf-posix.out: New file.
71400
71401         * modules/vfprintf-posix: New file.
71402         * lib/vfprintf.c: New file.
71403         * m4/vfprintf-posix.m4: New file.
71404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71405         REPLACE_VFPRINTF.
71406         * lib/stdio_.h (vfprintf): New declaration.
71407         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71408         REPLACE_VFPRINTF.
71409
71410 2007-03-08  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71413
71414 2007-03-08  Bruno Haible  <bruno@clisp.org>
71415
71416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71417         instead of 'expr' invocations.
71418         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71422         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71423         Suggested by Paul Eggert.
71424
71425 2007-03-08  Bruno Haible  <bruno@clisp.org>
71426
71427         * modules/fseterr-tests: New file.
71428         * tests/test-fseterr.c: New file.
71429
71430         * modules/fseterr: New file.
71431         * lib/fseterr.h: New file.
71432         * lib/fseterr.c: New file.
71433
71434 2007-03-08  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71437         * lib/getopt_.h: Likewise.
71438         * lib/mbswidth.h: Likewise.
71439         * lib/setenv.h: Likewise.
71440         * lib/vasnprintf.h: Likewise.
71441         * lib/vasprintf.h: Likewise.
71442         * lib/verror.h: Likewise.
71443         * lib/xsetenv.h: Likewise.
71444         * lib/xvasprintf.h: Likewise.
71445
71446 2007-03-08  Jim Meyering  <jim@meyering.net>
71447
71448         * users.txt: Add parted.
71449
71450         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71451
71452 2007-03-07  Bruno Haible  <bruno@clisp.org>
71453
71454         * m4/printf.m4: Make the shell script snippets copy&pastable.
71455
71456 2007-03-02  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/netinet_in_.h: New file.
71459         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71460         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71461         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71462         (Depends-on): Add absolute-header.
71463         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71464         into netinet/in.h.
71465
71466 2007-03-03  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/sys_select_.h: New file.
71469         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71470         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71471         * modules/sys_select (Files): Add lib/sys_select_.h.
71472         (Depends-on): Add absolute-header.
71473         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71474         into sys/select.h.
71475
71476 2007-03-02  Bruno Haible  <bruno@clisp.org>
71477
71478         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71479         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71480         values.
71481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71482         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71483         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71484         * modules/sys_socket (Depends-on): Add absolute-header.
71485         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71486         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71487         (Include): Remove requirement of inclusion of <sys/types.h>.
71488
71489 2007-03-02  Bruno Haible  <bruno@clisp.org>
71490
71491         * lib/byteswap_.h (bswap_32): Fix formula.
71492
71493 2007-03-06  Bruno Haible  <bruno@clisp.org>
71494
71495         * modules/sprintf-posix-tests: New file.
71496         * tests/test-sprintf-posix.c: New file.
71497
71498         * modules/sprintf-posix: New file.
71499         * lib/sprintf.c: New file.
71500         * m4/sprintf-posix.m4: New file.
71501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71502         REPLACE_SPRINTF.
71503         * lib/stdio_.h (sprintf): New declaration.
71504         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71505         REPLACE_SPRINTF.
71506
71507 2007-03-06  Bruno Haible  <bruno@clisp.org>
71508
71509         * modules/vsprintf-posix-tests: New file.
71510         * tests/test-vsprintf-posix.c: New file.
71511         * tests/test-sprintf-posix.h: New file.
71512
71513         * modules/vsprintf-posix: New file.
71514         * lib/vsprintf.c: New file.
71515         * m4/vsprintf-posix.m4: New file.
71516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71517         REPLACE_VSPRINTF.
71518         * lib/stdio_.h (vsprintf): New declaration.
71519         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71520         REPLACE_VSPRINTF.
71521
71522 2007-03-06  Bruno Haible  <bruno@clisp.org>
71523
71524         * modules/vsnprintf (Depend-on): Remove minmax.
71525
71526 2007-03-06  Bruno Haible  <bruno@clisp.org>
71527
71528         * modules/snprintf-posix-tests: New file.
71529         * tests/test-snprintf-posix.c: New file.
71530
71531         * modules/snprintf-posix: New file.
71532         * m4/snprintf-posix.m4: New file.
71533         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71534         gl_FUNC_SNPRINTF.
71535         (gl_FUNC_SNPRINTF): Invoke it.
71536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71537         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71538         is set.
71539         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71540
71541 2007-03-06  Bruno Haible  <bruno@clisp.org>
71542
71543         * modules/vsnprintf-posix-tests: New file.
71544         * tests/test-vsnprintf-posix.c: New file.
71545         * tests/test-snprintf-posix.h: New file.
71546
71547         * modules/vsnprintf-posix: New file.
71548         * m4/vsnprintf-posix.m4: New file.
71549         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71550         gl_FUNC_VSNPRINTF.
71551         (gl_FUNC_VSNPRINTF): Invoke it.
71552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71553         * lib/stdio_.h (vsnprintf): Define as a replacement if
71554         REPLACE_VSNPRINTF is set.
71555         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71556
71557 2007-03-06  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71561
71562 2007-03-06  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71565         (asinl): Declare also if HAVE_DECL_ASINL is set.
71566         (atanl): Declare also if HAVE_DECL_ATANL is set.
71567         (ceill): Declare also if HAVE_DECL_CEILL is set.
71568         (cosl): Declare also if HAVE_DECL_COSL is set.
71569         (expl): Declare also if HAVE_DECL_EXPL is set.
71570         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71571         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71572         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71573         (logl): Declare also if HAVE_DECL_LOGL is set.
71574         (sinl): Declare also if HAVE_DECL_SINL is set.
71575         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71576         (tanl): Declare also if HAVE_DECL_TANL is set.
71577         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71579         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71580         declaration of frexpl, ldexpl.
71581         * modules/printf-frexpl (Depends-on): Add math.
71582         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71583
71584 2007-03-05  Bruno Haible  <bruno@clisp.org>
71585
71586         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71587         frexpl and ldexpl are declared.
71588         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71589
71590 2007-03-05  Bruno Haible  <bruno@clisp.org>
71591
71592         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71593         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71594
71595 2007-03-05  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/stdio_.h: Include <stddef.h>.
71598
71599 2007-03-05  Bruno Haible  <bruno@clisp.org>
71600
71601         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71602
71603 2007-03-05  Bruno Haible  <bruno@clisp.org>
71604
71605         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71606         NetBSD 4, from Ralf Wildenhues.
71607
71608 2007-03-04  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/vasprintf.h: Update #if logic for the case when the functions
71611         exist but are overridden.
71612
71613 2007-03-04  Bruno Haible  <bruno@clisp.org>
71614
71615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71616         implementations: glibc-2.4 and MacOS X 10.3.
71617         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71618         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71619         * tests/test-vasprintf-posix.c (test_function): Likewise.
71620
71621 2007-03-04  Bruno Haible  <bruno@clisp.org>
71622
71623         * modules/vasprintf-posix-tests: New file.
71624         * tests/test-vasprintf-posix.c: New file.
71625
71626         * modules/vasprintf-posix: New file.
71627         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71628         defined.
71629         * m4/vasprintf-posix.m4: New file.
71630         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71631         gl_FUNC_VASPRINTF.
71632         (gl_FUNC_VASPRINTF): Invoke it.
71633         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71634         here.
71635         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71636
71637 2007-03-04  Bruno Haible  <bruno@clisp.org>
71638
71639         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71640         REPLACE_GETTIMEOFDAY.
71641         * modules/sys_time (Makefile.am): Likewise.
71642         * m4/sys_time_h.m4: Likewise.
71643         * m4/gettimeofday.m4: Likewise.
71644
71645 2007-03-04  Bruno Haible  <bruno@clisp.org>
71646
71647         * modules/vasnprintf-posix-tests: New file.
71648         * tests/test-vasnprintf-posix.c: New file.
71649
71650         * modules/vasnprintf-posix: New file.
71651         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71652         printf-frexpl.h.
71653         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71654         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71655         REPLACE_VASNPRINTF is defined.
71656         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71657         gl_FUNC_VASNPRINTF.
71658         (gl_FUNC_VASNPRINTF): Invoke it.
71659         * m4/vasnprintf-posix.m4: New file.
71660         * m4/printf.m4: New file.
71661
71662 2007-03-04  Bruno Haible  <bruno@clisp.org>
71663
71664         Compile progreloc.c only if --enable-relocatable is specified.
71665         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71666         if --enable-relocatable was specified.
71667         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71668         lib_SOURCES.
71669
71670 2007-03-04  Jim Meyering  <jim@meyering.net>
71671
71672         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71673         Use it consistently, rather than enumerating errno constants.
71674
71675 2007-03-04  Bruno Haible  <bruno@clisp.org>
71676
71677         * modules/xvasprintf-tests: New file.
71678         * tests/test-xvasprintf.c: New file.
71679
71680         * modules/vasprintf-tests: New file.
71681         * tests/test-vasprintf.c: New file.
71682
71683         * modules/vasnprintf-tests: New file.
71684         * tests/test-vasnprintf.c: New file.
71685
71686         * modules/vsnprintf-tests: New file.
71687         * tests/test-vsnprintf.c: New file.
71688
71689         * modules/snprintf-tests: New file.
71690         * tests/test-snprintf.c: New file.
71691
71692 2007-03-04  Bruno Haible  <bruno@clisp.org>
71693
71694         Compile relocatable.c only if --enable-relocatable is specified.
71695         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71696         gl_RELOCATABLE_LIBRARY.
71697         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71698         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71699         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71700         gl_RELOCATABLE_LIBRARY.
71701         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71702         (Makefile.am): Remove lib_SOURCES.
71703         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71704         gl_RELOCATABLE_LIBRARY.
71705         (Makefile.am): Remove lib_SOURCES.
71706         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71707         always.
71708         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71709         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71710
71711 2007-03-04  Bruno Haible  <bruno@clisp.org>
71712
71713         * modules/argmatch-tests: New file.
71714         * tests/test-argmatch.c: New file.
71715
71716         * tests/test-allocsa.c (main): Halve the number of loop runs.
71717
71718         * modules/alloca-opt-tests: New file.
71719         * tests/test-alloca-opt.c: New file.
71720
71721 2007-03-04  Jim Meyering  <jim@meyering.net>
71722
71723         Work around difference between Linux ACLs and Solaris 10 ZFS.
71724         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71725         for EINVAL.
71726
71727 2007-03-03  Bruno Haible  <bruno@clisp.org>
71728
71729         * modules/relocatable-prog (Depends-on): Add back progreloc's
71730         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71731
71732 2007-03-03  Bruno Haible  <bruno@clisp.org>
71733
71734         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71735         * modules/relocatable-lib: New file.
71736
71737 2007-03-03  Bruno Haible  <bruno@clisp.org>
71738
71739         * modules/relocatable-prog: Renamed from modules/relocatable.
71740         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71741
71742 2007-03-03  Bruno Haible  <bruno@clisp.org>
71743
71744         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71745         m4/relocatable-lib.m4.
71746         (Depends-on): Remove 'relocatable'.
71747         (configure.ac): Add gl_RELOCATABLE_NOP.
71748
71749 2007-03-03  Bruno Haible  <bruno@clisp.org>
71750
71751         * modules/relocatable-prog-wrapper: New file.
71752         * modules/relocatable (Depends-on): Add it. Remove all other
71753         dependencies except progname.
71754         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71755
71756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71757         (gl_FUNC_STRERROR): Nop.
71758         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71759
71760         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71761         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71762
71763         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71764         (gl_FUNC_READLINK): Update.
71765
71766         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71767
71768 2007-03-03  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71771         * modules/xreadlink (Depends-on): Add unistd.
71772         * modules/xreadlink-with-size (Depends-on): Likewise.
71773
71774 2007-03-03  Bruno Haible  <bruno@clisp.org>
71775
71776         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71777         extracted from gt_FUNC_SETENV.
71778         (gt_FUNC_SETENV): Remove macro.
71779         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71780         remove gt_FUNC_SETENV.
71781
71782 2007-03-03  Bruno Haible  <bruno@clisp.org>
71783
71784         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71785         ENABLE_RELOCATABLE here.
71786         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71787
71788 2007-03-03  Bruno Haible  <bruno@clisp.org>
71789
71790         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71791         * tests/test-rbtreehash_list.c: Include progname.h.
71792         (main): Call set_program_name.
71793
71794         * modules/rbtree-oset-tests (Depends-on): Add progname.
71795         * tests/test-rbtree_oset.c: Include progname.h.
71796         (main): Call set_program_name.
71797
71798         * modules/rbtree-list-tests (Depends-on): Add progname.
71799         * tests/test-rbtree_list.c: Include progname.h.
71800         (main): Call set_program_name.
71801
71802         * modules/linked-list-tests (Depends-on): Add progname.
71803         * tests/test-linked_list.c: Include progname.h.
71804         (main): Call set_program_name.
71805
71806 2007-03-03  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71809         All uses of __restrict changed to _Restrict_.
71810         * lib/glob_.h (__restrict): Remove macro.
71811
71812 2007-03-02  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/gettext (configure.ac): Require gettext infrastructure
71815         from version 0.16.1.
71816
71817 2007-03-02  Bruno Haible  <bruno@clisp.org>
71818
71819         * modules/linkedhash-list-tests (Depends-on): Add progname.
71820         * tests/test-linkedhash_list.c: Include progname.h.
71821         (main): Call set_program_name.
71822
71823         * modules/carray-list-tests (Depends-on): Add progname.
71824         * tests/test-carray_list.c: Include progname.h.
71825         (main): Call set_program_name.
71826
71827         * modules/avltreehash-list-tests (Depends-on): Add progname.
71828         * tests/test-avltreehash_list.c: Include progname.h.
71829         (main): Call set_program_name.
71830
71831         * modules/avltree-oset-tests (Depends-on): Add progname.
71832         * tests/test-avltree_oset.c: Include progname.h.
71833         (main): Call set_program_name.
71834
71835         * modules/avltree-list-tests (Depends-on): Add progname.
71836         * tests/test-avltree_list.c: Include progname.h.
71837         (main): Call set_program_name.
71838
71839         * modules/array-oset-tests (Depends-on): Add progname.
71840         * tests/test-array_oset.c: Include progname.h.
71841         (main): Call set_program_name.
71842
71843         * modules/array-list-tests (Depends-on): Add progname.
71844         * tests/test-array_list.c: Include progname.h.
71845         (main): Call set_program_name.
71846
71847         * modules/argp-tests (Depends-on): Add progname.
71848         * tests/test-argp.c: Include argp.h first. Include progname.h.
71849         (main): Call set_program_name.
71850
71851 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * doc/gnulib-tool.texi (Initial import): Reword description of
71854         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71855         limited effect even if defined after the first system include.
71856
71857 2007-03-01  Bruno Haible  <bruno@clisp.org>
71858
71859         * build-aux/config.libpath: Update to libtool-1.5.22.
71860         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71861
71862 2007-03-01  Bruno Haible  <bruno@clisp.org>
71863
71864         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71865         foo_CFLAGS.
71866         Reported by Ralf Wildenhues.
71867
71868 2007-03-01  Bruno Haible  <bruno@clisp.org>
71869
71870         * build-aux/install-reloc: Remove object files left over by some
71871         compilers.
71872         Reported by Ralf Wildenhues.
71873
71874 2007-03-01  Bruno Haible  <bruno@clisp.org>
71875
71876         * build-aux/install-reloc: Break long lines.
71877
71878 2007-03-01  Bruno Haible  <bruno@clisp.org>
71879
71880         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71881         Reported by Ralf Wildenhues.
71882
71883 2007-03-01  Bruno Haible  <bruno@clisp.org>
71884
71885         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71886         include ordering constraints.
71887
71888 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71889
71890         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71892         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71893         as another example.
71894         * lib/time_.h: Fix misspelling.
71895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71896         Require gl_HEADER_TIME_H_DEFAULTS.
71897         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71898         * m4/time_r.m4 (gl_TIME_R): Likewise.
71899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71900
71901 2007-03-01  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71904         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71905
71906 2007-03-01  Jim Meyering  <jim@meyering.net>
71907
71908         * modules/xreadlink (Maintainer): Add my name.
71909         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71910
71911 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71912             Bruno Haible  <bruno@clisp.org>
71913
71914         * build-aux/install-reloc: Compile also c-ctype.c.
71915         * build-aux/relocatable.sh.in: New file.
71916         * doc/relocatable.texi: New file.
71917         * doc/relocatable-maint.texi: New file.
71918         * doc/gnulib.texi: Include relocatable-maint.texi.
71919         * lib/progreloc.c: Include unistd.h unconditionally.
71920         * lib/relocwrapper.c: Include unistd.h unconditionally.
71921         Include c-ctype.h.
71922         (add_dotbin): Use c_tolower.
71923         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71924         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71925         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71926         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71927         to m4/relocatable-lib.m4.
71928         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71929         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71930         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71931         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71932         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71933         * modules/relocatable: New file.
71934         * modules/relocatable-lib: New file.
71935         * modules/relocatable-script: New file.
71936
71937 2007-02-28  Bruno Haible  <bruno@clisp.org>
71938
71939         Import --enable-relocatable infrastructure.
71940         * build-aux/config.libpath: New file, from GNU gettext.
71941         * build-aux/install-reloc: New file, from GNU gettext.
71942         * build-aux/reloc-ldflags: New file, from GNU gettext.
71943         * lib/relocatable.h: New file, from GNU gettext.
71944         * lib/relocatable.c: New file, from GNU gettext.
71945         * lib/relocwrapper.c: New file, from GNU gettext.
71946         * m4/relocatable.m4: New file, from GNU gettext.
71947
71948 2007-02-28  Bruno Haible  <bruno@clisp.org>
71949
71950         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71951
71952         * modules/xreadlink: New file, from GNU gettext with modifications.
71953         * lib/xreadlink.c: New file, from GNU gettext.
71954         * lib/xreadlink.h: Add comments.
71955         (xreadlink): New declaration.
71956
71957         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71958         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71959         lib/xreadlink-with-size.c.
71960         (configure.ac): Remove gl_XREADLINK invocation.
71961         (Makefile.am): Augment lib_SOURCES.
71962         * m4/xreadlink.m4: Remove file.
71963         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71964         (xreadlink_with_size): Renamed from xreadink.
71965         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71966         * modules/canonicalize (Depends-on): Replace xreadlink with
71967         xreadlink-with-size.
71968         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71969
71970 2007-02-25  Jim Meyering  <jim@meyering.net>
71971
71972         * build-aux/announce-gen: When complaining about excess arguments,
71973         list them.
71974
71975 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * README: Document signed integer overflow situation more
71978         accurately.
71979
71980 2007-02-25  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71983         'a' or 'A' conversion.
71984
71985 2007-02-25  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/filename: Renamed from modules/pathname.
71988         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71989         lib/concatpath.c with lib/concat-filename.c.
71990         (Makefile.am): Update.
71991         (Include): Replace pathname.h with filename.h.
71992         * lib/filename.h: Renamed from lib/pathname.h.
71993         (concatenated_filename): Renamed from concatenated_pathname.
71994         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71995         (concatenated_filename): Renamed from concatenated_pathname.
71996         * lib/findprog.c: Include filename.h instead of pathname.h.
71997         (find_in_path): Update.
71998         * lib/javacomp.c: Include filename.h instead of pathname.h.
71999         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72000         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72001         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72002         is_oldgcj_14_13_usable, is_javac_usable): Update.
72003         * lib/javaexec.c: Include filename.h instead of pathname.h.
72004         (execute_java_class): Update.
72005         * modules/findprog: Update.
72006         * modules/javacomp: Update.
72007         * modules/javaexec: Update.
72008         * MODULES.html.sh (File system functions): Add 'filename', remove
72009         'pathname'.
72010
72011 2007-02-25  Bruno Haible  <bruno@clisp.org>
72012
72013         * modules/printf-frexpl-tests: New file.
72014         * tests/test-printf-frexpl.c: New file.
72015
72016         * modules/printf-frexpl: New file.
72017         * lib/printf-frexpl.h: New file.
72018         * lib/printf-frexpl.c: New file.
72019         * m4/printf-frexpl.m4: New file.
72020
72021 2007-02-25  Bruno Haible  <bruno@clisp.org>
72022
72023         * modules/printf-frexp-tests: New file.
72024         * tests/test-printf-frexp.c: New file.
72025
72026         * modules/printf-frexp: New file.
72027         * lib/printf-frexp.h: New file.
72028         * lib/printf-frexp.c: New file.
72029         * m4/printf-frexp.m4: New file.
72030
72031 2007-02-25  Bruno Haible  <bruno@clisp.org>
72032
72033         Assume automake >= 1.10 for the tests.
72034         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72035         * modules/arctwo-tests: Likewise.
72036         * modules/argp-tests: Likewise.
72037         * modules/avltree-list-tests: Likewise.
72038         * modules/avltree-oset-tests: Likewise.
72039         * modules/avltreehash-list-tests: Likewise.
72040         * modules/carray-list-tests: Likewise.
72041         * modules/crc-tests: Likewise.
72042         * modules/des-tests: Likewise.
72043         * modules/gc-arcfour-tests: Likewise.
72044         * modules/gc-arctwo-tests: Likewise.
72045         * modules/gc-des-tests: Likewise.
72046         * modules/gc-hmac-md5-tests: Likewise.
72047         * modules/gc-hmac-sha1-tests: Likewise.
72048         * modules/gc-md2-tests: Likewise.
72049         * modules/gc-md4-tests: Likewise.
72050         * modules/gc-md5-tests: Likewise.
72051         * modules/gc-pbkdf2-sha1-tests: Likewise.
72052         * modules/gc-rijndael-tests: Likewise.
72053         * modules/gc-sha1-tests: Likewise.
72054         * modules/gc-tests: Likewise.
72055         * modules/getaddrinfo-tests: Likewise.
72056         * modules/hmac-md5-tests: Likewise.
72057         * modules/hmac-sha1-tests: Likewise.
72058         * modules/linked-list-tests: Likewise.
72059         * modules/linkedhash-list-tests: Likewise.
72060         * modules/lock-tests: Likewise.
72061         * modules/md2-tests: Likewise.
72062         * modules/md4-tests: Likewise.
72063         * modules/md5-tests: Likewise.
72064         * modules/rbtree-list-tests: Likewise.
72065         * modules/rbtree-oset-tests: Likewise.
72066         * modules/rbtreehash-list-tests: Likewise.
72067         * modules/read-file-tests: Likewise.
72068         * modules/rijndael-tests: Likewise.
72069         * modules/stdint-tests: Likewise.
72070         * modules/tls-tests: Likewise.
72071
72072 2007-02-24  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72075         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72076         function; instead check whether isnan with a double argument links.
72077         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72078         function; instead check whether isnan with a 'long double' argument
72079         links.
72080         Reported by Eric Blake <ebb9@byu.net>.
72081
72082 2007-02-24  Bruno Haible  <bruno@clisp.org>
72083
72084         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72085         defined.
72086         * lib/isnanl.c: Remove all code. Just include isnan.c.
72087         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72088
72089 2007-02-25  Jim Meyering  <jim@meyering.net>
72090
72091         Avoid conflicting types for 'unsetenv' on FreeBSD.
72092         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72093         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72094         in stdlib.h.
72095
72096 2007-02-24  Bruno Haible  <bruno@clisp.org>
72097
72098         * modules/isnanl-nolibm-tests: New file.
72099         * tests/test-isnanl.c: New file.
72100
72101         * modules/isnanl-nolibm: New file.
72102         * lib/isnanl.h: New file.
72103         * lib/isnanl.c: New file.
72104         * m4/isnanl.m4: New file.
72105
72106 2007-02-24  Bruno Haible  <bruno@clisp.org>
72107
72108         * modules/isnan-nolibm-tests: New file.
72109         * tests/test-isnan.c: New file.
72110
72111         * modules/isnan-nolibm: New file.
72112         * lib/isnan.h: New file.
72113         * lib/isnan.c: New file.
72114         * m4/isnan.m4: New file.
72115
72116 2007-02-24  Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72119         assume that an exponent fits in 20 bits.
72120
72121 2007-02-24  Jim Meyering  <jim@meyering.net>
72122
72123         * m4/regex.m4: Update the description of the configure-time option,
72124         --without-included-regex, to state accurately what the defaults are,
72125         and perhaps to give people an idea why using this option is risky.
72126
72127 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72130         loops on small arguments.  This attempts to avoid the problem
72131         Bruno Haible reported for AIX 4.3.2 in
72132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72133
72134 2007-02-23  Bruno Haible  <bruno@clisp.org>
72135
72136         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72137         Needed for help2man.
72138
72139 2007-02-23  Karl Berry  <karl@gnu.org>
72140
72141         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72142         exists, foo.h should be cvs-ignored, not committed.
72143
72144 2007-02-23  Eric Blake  <ebb9@byu.net>
72145
72146         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72147         * lib/stat-time.h (includes): Likewise.
72148         * lib/utimecmp.c (includes): Likewise.
72149         * lib/utimens.h (includes): Likewise.
72150         * lib/getdate.y (includes): Also include "timespec.h" for use
72151         internal to the module.
72152         * modules/utimens (Depends-on): Revert yesterday's patch.
72153         * modules/nanosleep (Depends-on): Add missing dependency.
72154
72155 2007-02-22  Bruno Haible  <bruno@clisp.org>
72156
72157         * lib/glob.c: Don't include getlogin_r.h.
72158
72159 2007-02-22  Jim Meyering  <jim@meyering.net>
72160
72161         * modules/utimens (Depends-on): Add timespec, required for
72162         utimens.h's inclusion of timespec.h.
72163
72164 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72167         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72168         Schwab in
72169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72170         I'll try to think of a better way to fix the Solaris problem.
72171
72172         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72173         like glibc; on Solaris 10, it fails with errno == EINVAL.
72174         POSIX says the behavior is unspecified if the first argument is NULL,
72175         so play it safe and never pass NULL to the system getcwd.
72176
72177 2007-02-21  Jim Meyering  <jim@meyering.net>
72178
72179         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72180         of gettimeofday.  It would conflict with the one now always
72181         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72182         an IRIX 6.5 build failure.
72183
72184 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         Minor fixups to port to Solaris 10 with Sun C 5.8.
72187         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72188         * modules/getcwd (Depends-on): Add dirfd.
72189         * lib/putenv.c (putenv): #undef it.
72190         (rpl_putenv): New decl.
72191         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72192
72193 2007-02-20  Bruno Haible  <bruno@clisp.org>
72194
72195         * modules/stdio-tests: New file.
72196         * tests/test-stdio.c: New file.
72197
72198         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72199         (Depends-on): Add stdio.
72200         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72201         (Include): Use <stdio.h> instead of vsnprintf.h.
72202         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72203         HAVE_DECL_VSNPRINTF.
72204         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72205
72206         * modules/snprintf (Files): Remove lib/snprintf.h.
72207         (Depends-on): Add stdio.
72208         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72209         (Include): Use <stdio.h> instead of snprintf.h.
72210         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72211         HAVE_DECL_SNPRINTF.
72212         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72213         * lib/getaddrinfo.c: Likewise.
72214
72215         * modules/stdio: New file.
72216         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72217         * lib/snprintf.h: Remove file.
72218         * lib/vsnprintf.h: Remove file.
72219         * lib/.cppi-disable: Remove snprintf.h.
72220         * m4/stdio_h.m4: New file.
72221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72222
72223 2007-02-20  Jim Meyering  <jim@meyering.net>
72224
72225         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72226         used by e.g., mingw.  From Bruno Haible.
72227
72228 2007-02-19  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72231         warnings.
72232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72233
72234 2007-02-19  Bruno Haible  <bruno@clisp.org>
72235
72236         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72237         from mingw users.
72238
72239 2007-02-19  Bruno Haible  <bruno@clisp.org>
72240
72241         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72242         warnings.
72243         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72244
72245 2007-02-19  Jim Meyering  <jim@meyering.net>
72246
72247         Don't use FD after a successful "fdopendir (fd)".
72248         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72249         Reset it by calling dirfd on the just-obtained DIR*.
72250
72251         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72252         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72253
72254 2007-02-18  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/readlink.c: Include <unistd.h>.
72257         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72258         HAVE_READLINK.
72259         * modules/readlink (Depends-on): Add unistd.
72260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72261         (Include): Add <unistd.h>.
72262
72263         * lib/getlogin_r.h: Remove file.
72264         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72265         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72266         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72267         HAVE_DECL_GETLOGIN_R.
72268         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72270         (Include): Use <unistd.h> instead of getlogin_r.h.
72271
72272         * lib/getcwd.h: Remove file.
72273         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72274         * lib/xgetcwd.c: Likewise.
72275         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72276         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72277         * modules/getcwd (Files): Remove lib/getcwd.h.
72278         (Depends-on): Add unistd.
72279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72280         (Include): Use <unistd.h> instad of getcwd.h.
72281
72282         * lib/ftruncate.c: Include <unistd.h> first.
72283         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72284         Set HAVE_FTRUNCATE.
72285         * modules/ftruncate (Depends-on): Add unistd.
72286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72287
72288         * lib/fchdir.c: Include <unistd.h> first.
72289         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72291         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72292         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72293         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72294
72295         * lib/dup2.c: Include <unistd.h> first.
72296         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72297         HAVE_DUP2.
72298         * modules/dup2 (Depends-on): Add unistd.
72299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72300
72301         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72302         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72303         REPLACE_CHOWN. Don't define chown as a macro here.
72304         * modules/chown (Depends-on): Add unistd.
72305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72306
72307         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72308         Add definition for GL_LINK_WARNING.
72309         (chown, dup2): New declarations.
72310         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72311         link warning.
72312         (ftruncate): New declaration.
72313         (getcwd): New declaration, taken from old getcwd.h.
72314         (getlogin_r): New declaration, taken from old getlogin_r.h.
72315         (readlink): New declaration.
72316         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72317         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72318         (gl_PREREQ_UNISTD): Remove macro.
72319         (gl_UNISTD_MODULE_INDICATOR): New macro.
72320         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72321         many new variables. Don't set UNISTD_H.
72322         * modules/unistd (Description): Change.
72323         (Depends-on): Add link-warning.
72324         (configure.ac): Update.
72325         (Makefile.am): Create unistd.h always. Substitute many new variables
72326         into it.
72327
72328 2007-02-18  Bruno Haible  <bruno@clisp.org>
72329
72330         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72331         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72332         HAVE_GETSUBOPT.
72333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72334         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72335         * lib/getsubopt.h: Remove file.
72336         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72337         (Depends-on): Add stdlib.
72338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72339         (Includes): Use <stdlib.h> instead of getsubopt.h.
72340         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72341         Set HAVE_GETSUBOPT.
72342         * lib/getsubopt.c: Don't include getsubopt.h.
72343
72344 2007-02-18  Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/fchdir (Depends-on): Add dup2.
72347
72348 2007-02-18  Bruno Haible  <bruno@clisp.org>
72349
72350         * lib/stdlib_.h: Handle glibc's special invocation convention
72351         specially.
72352
72353 2007-02-18  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/stdlib-tests: New file.
72356         * tests/test-stdlib.c: New file.
72357
72358         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72359         (Depends-on): Add stdlib.
72360         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72361         (Includes): Use <stdlib.h> instead of mkstemp.h.
72362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72363         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72364         * lib/mkstemp.c: Don't include mkstemp.h.
72365         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72366         * lib/stdlib--.h: Don't include mkstemp.h.
72367
72368         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72369         (Depends-on): Add stdlib.
72370         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72371         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72372         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72373         HAVE_MKDTEMP.
72374         * lib/mkdtemp.c: Don't include mkdtemp.h.
72375         * lib/clean-temp.c: Don't include mkdtemp.h.
72376
72377         * modules/exit (Files): Remove lib/exit.h.
72378         (Depends-on): Add stdlib.
72379         (Makefile.am): Remove lib_SOURCES.
72380         (Include): Use <stdlib.h> instead of exit.h.
72381         * lib/argmatch.c: Don't include exit.h.
72382         * lib/execute.c: Likewise.
72383         * lib/pagealign_alloc.c: Likewise.
72384         * lib/pipe.c: Likewise.
72385         * lib/wait-process.c: Likewise.
72386         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72387         * lib/exitfail.c: Likewise.
72388         * lib/savewd.c: Likewise.
72389         * lib/xsetenv.c: Likewise.
72390
72391         * modules/stdlib: New file.
72392         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72393         and extra comments about mkstemp().
72394         * lib/exit.h: Remove file.
72395         * lib/mkdtemp.h: Remove file.
72396         * lib/mkstemp.h: Remove file.
72397         * m4/stdlib_h.m4: New file.
72398         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72399
72400 2007-02-18  Bruno Haible  <bruno@clisp.org>
72401
72402         * modules/math-tests: New file.
72403         * tests/test-math.c: New file.
72404
72405         * modules/math: New file.
72406         * modules/mathl (Files): Remove lib/mathl.h.
72407         (Depends-on): Add math.
72408         (Makefile.am): Don't mention mathl.h.
72409         (Include): Use <math.h> instead of mathl.h.
72410         * lib/math_.h: New file.
72411         * lib/mathl.h: Remove file.
72412         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72413         mathl.h.
72414         * lib/asinl.c: Likewise.
72415         * lib/atanl.c: Likewise.
72416         * lib/ceill.c: Likewise.
72417         * lib/cosl.c: Likewise.
72418         * lib/expl.c: Likewise.
72419         * lib/floorl.c: Likewise.
72420         * lib/frexpl.c: Likewise.
72421         * lib/ldexpl.c: Likewise.
72422         * lib/logl.c: Likewise.
72423         * lib/sincosl.c: Likewise.
72424         * lib/sinl.c: Likewise.
72425         * lib/sqrtl.c: Likewise.
72426         * lib/tanl.c: Likewise.
72427         * lib/trigl.c: Likewise.
72428         * m4/math_h.m4: New file.
72429         * MODULES.html.sh (Mathematics): Add math.
72430
72431 2007-02-17  Bruno Haible  <bruno@clisp.org>
72432
72433         * modules/wctype-tests: New file.
72434         * tests/test-wctype.c: New file.
72435
72436         * modules/wchar-tests: New file.
72437         * tests/test-wchar.c: New file.
72438
72439         * modules/unistd-tests: New file.
72440         * tests/test-unistd.c: New file.
72441
72442         * modules/time-tests: New file.
72443         * tests/test-time.c: New file.
72444
72445         * modules/sysexits-tests: New file.
72446         * tests/test-sysexits.c: New file.
72447
72448         * modules/sys_time-tests: New file.
72449         * tests/test-sys_time.c: New file.
72450
72451         * modules/sys_stat-tests: New file.
72452         * tests/test-sys_stat.c: New file.
72453
72454         * modules/sys_socket-tests: New file.
72455         * tests/test-sys_socket.c: New file.
72456
72457         * modules/sys_select-tests: New file.
72458         * tests/test-sys_select.c: New file.
72459
72460         * modules/string-tests: New file.
72461         * tests/test-string.c: New file.
72462
72463         * modules/stdbool-tests: New file.
72464         * tests/test-stdbool.c: New file.
72465
72466         * modules/netinet_in-tests: New file.
72467         * tests/test-netinet_in.c: New file.
72468
72469         * modules/inttypes-tests: New file.
72470         * tests/test-inttypes.c: New file.
72471
72472         * modules/fcntl-tests: New file.
72473         * tests/test-fcntl.c: New file.
72474
72475         * modules/byteswap-tests: New file.
72476         * tests/test-byteswap.c: New file.
72477
72478         * modules/arpa_inet-tests: New file.
72479         * tests/test-arpa_inet.c: New file.
72480
72481 2007-02-17  Bruno Haible  <bruno@clisp.org>
72482
72483         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72484         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72485         if the corresponding module is not enabled. Emit link warnings if
72486         the function is used nevertheless.
72487         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72488         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72489         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72490         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72491         * modules/inttypes (Depends-on): Add link-warning.
72492         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72493         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72494         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72495         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72496         * modules/imaxdiv (configure.ac): Likewise.
72497         * modules/strtoimax (configure.ac): Likewise.
72498         * modules/strtoumax (configure.ac): Likewise.
72499
72500 2007-02-17  Bruno Haible  <bruno@clisp.org>
72501
72502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72503         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72504         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72505         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72506
72507 2007-02-17  Bruno Haible  <bruno@clisp.org>
72508
72509         * modules/link-warning: New file.
72510         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72511         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72512         * modules/string (Depends-on): Add link-warning.
72513         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72514         string.h.
72515         * MODULES.html.sh (Support for building libraries and executables): Add
72516         link-warning.
72517
72518 2007-02-17  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72521         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72522         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72523         long lines.
72524
72525 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72526             Bruno Haible  <bruno@clisp.org>
72527
72528         * modules/tmpfile: New file.
72529         * lib/tmpfile.c: New file.
72530         * m4/tmpfile.m4: New file.
72531         * MODULES.html.sh (func_all_modules): New section "Input/output".
72532
72533 2007-02-15  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72536         (supports_delete_on_close): New function.
72537         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72538
72539 2007-02-14  Bruno Haible  <bruno@clisp.org>
72540
72541         * modules/mbspcasecmp-tests: New file.
72542         * tests/test-mbspcasecmp.sh: New file.
72543         * tests/test-mbspcasecmp.c: New file.
72544
72545         New module mbspcasecmp.
72546         * modules/mbspcasecmp: New file.
72547         * lib/mbspcasecmp.c: New file.
72548         * lib/string_.h (strncasecmp): Change warning message.
72549         (mbspcasecmp): New declaration.
72550         * m4/mbspcasecmp.m4: New file.
72551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72552         GNULIB_MBSPCASECMP.
72553         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72554         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72555
72556 2007-02-14  Bruno Haible  <bruno@clisp.org>
72557
72558         * modules/mbsncasecmp-tests: New file.
72559         * tests/test-mbsncasecmp.sh: New file.
72560         * tests/test-mbsncasecmp.c: New file.
72561
72562         New module mbsncasecmp.
72563         * modules/mbsncasecmp: New file.
72564         * lib/mbsncasecmp.c: New file.
72565         * lib/string_.h (mbsncasecmp): New declaration.
72566         * m4/mbsncasecmp.m4: New file.
72567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72568         GNULIB_MBSNCASECMP.
72569         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72570         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72571
72572 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72575         Verify that it doesn't overlap with our flags.
72576         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72577         do not have the desired effect in multibyte locales; instead, use
72578         mbscasecmp.
72579         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72580         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72581         we don't require GNU fnmatch ourselves (if our users require it, they
72582         should do so explicitly).
72583
72584         Fix regex code so it doesn't rely on strcasecmp.
72585         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72586         Otherwise, include gnulib's langinfo.h.
72587         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72588         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72589         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72590         * modules/regex (FILES): Remove m4/codeset.m4.
72591         (Depends-on): Add localcharset.  Remove strcase.
72592
72593 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72594
72595         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72596         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72597
72598 2007-02-13  Bruno Haible  <bruno@clisp.org>
72599
72600         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72602
72603 2007-02-12  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72606         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72607         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72608         time warning rather than a link error.
72609
72610 2007-02-12  Bruno Haible  <bruno@clisp.org>
72611
72612         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72613         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72614         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72615
72616 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72619         args, not 2.
72620
72621 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         New module 'time', so that apps can include <time.h> as per
72624         POSIX and GNU instead of separate include files like time_r.h
72625         and timegm.h.  This implementation tries out a simpler approach
72626         for replacing decls in standard include files (as compared to
72627         the string module), somewhat as an experiment.
72628
72629         * config/srclist.txt: Comment out mktime.c for now.
72630         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72631         since it doesn't apply any more.  Use generic wording instead.
72632         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72633         'time'.
72634         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72635         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72636         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72637         Don't include <sys/types.h>; no longer needed since we assume C89.
72638         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72639         * lib/strftime.c: Likewise.
72640         * lib/time_r.c: Likewise.
72641         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72642         * lib/nanosleep.c: Include <time.h> first, to check interface.
72643         * lib/strptime.c: Likewise.
72644         * lib/time_r.c: Likewise.
72645         * lib/timegm.c: Likewise.
72646         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72647         needed.
72648         * lib/timegm.c: Don't include timegm.h; no longer needed.
72649         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72650         time.h now handles any problems in that area.
72651         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72652         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72653         that time.h defines struct timespec.
72654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72655         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72656         handles that.
72657         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72658         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72659         needed.  Set REPLACE_LOCALTIME.
72660         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72661         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72662         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72663         nanosleep; time_h.m4 now does that.  Don't require
72664         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72665         module handles this now.
72666         * modules/getdate (Depends-on): Remove timespec.  Add time.
72667         * modules/nanosleep (Depends-on): Likewise.
72668         * modules/stat-time (Depends-on): Likewise.
72669         * modules/nanosleep (Include): Include time.h, not timespec.h.
72670         * modules/strptime (Files): Remove lib/strptime.h.
72671         (Depends-on): Add extensions, time.
72672         (Include): Include time.h, not strptime.h.
72673         * modules/time_r (Files): Remove lib/time_r.h.
72674         (Depends-on): Add time.
72675         (Include): Include time.h, not time_r.h.
72676         * modules/timegm: Likewise.
72677         * modules/timespec (Description): Now does timespec-related decls
72678         of our own, instead of struct timespec itself.
72679         (Depends-on): Add time; remove extensions.
72680         (Maintainer): Add self.
72681         * modules/utimecmp (Depends-on): Add time; remove timespec.
72682         * modules/utimens (Depends-on): Likewise.
72683         * modules/xnanosleep (Depends-on): Likewise.
72684
72685 2007-02-11  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/c-strstr.c: Include allocsa.h.
72688         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72689         * lib/c-strcasestr.c: Include allocsa.h.
72690         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72691         * lib/strcasestr.c: Include allocsa.h.
72692         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72693         * lib/mbsstr.c: Include allocsa.h.
72694         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72695         allocsa/freesa instead of malloc/free.
72696         * lib/mbscasestr.c: Include allocsa.h.
72697         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72698         allocsa/freesa instead of malloc/free.
72699         * modules/c-strstr (Depends-on): Add allocsa.
72700         * modules/c-strcasestr (Depends-on): Likewise.
72701         * modules/strcasestr (Depends-on): Likewise.
72702         * modules/mbsstr (Depends-on): Likewise.
72703         * modules/mbscasestr (Depends-on): Likewise.
72704
72705 2007-02-11  Bruno Haible  <bruno@clisp.org>
72706
72707         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72708
72709         * modules/mbsspn-tests: New file.
72710         * tests/test-mbsspn.sh: New file.
72711         * tests/test-mbsspn.c: New file.
72712
72713 2007-02-11  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72716
72717         * modules/mbspbrk-tests: New file.
72718         * tests/test-mbspbrk.sh: New file.
72719         * tests/test-mbspbrk.c: New file.
72720
72721 2007-02-11  Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72724         unneeded cast.
72725
72726         * modules/mbscspn-tests: New file.
72727         * tests/test-mbscspn.sh: New file.
72728         * tests/test-mbscspn.c: New file.
72729
72730 2007-02-11  Bruno Haible  <bruno@clisp.org>
72731
72732         * modules/mbscasecmp-tests: New file.
72733         * tests/test-mbscasecmp.sh: New file.
72734         * tests/test-mbscasecmp.c: New file.
72735
72736 2007-02-11  Bruno Haible  <bruno@clisp.org>
72737
72738         Ensure O(n) worst-case complexity of mbscasestr.
72739         * lib/mbscasestr.c: Include stdbool.h.
72740         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72741         functions.
72742         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72743         the bookkeeping indicates that it's worth it.
72744         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72745
72746         * modules/mbscasestr-tests: New file.
72747         * tests/test-mbscasestr1.c: New file.
72748         * tests/test-mbscasestr2.sh: New file.
72749         * tests/test-mbscasestr2.c: New file.
72750         * tests/test-mbscasestr3.sh: New file.
72751         * tests/test-mbscasestr3.c: New file.
72752         * tests/test-mbscasestr4.sh: New file.
72753         * tests/test-mbscasestr4.c: New file.
72754         * m4/locale-tr.m4: New file.
72755
72756 2007-02-11  Bruno Haible  <bruno@clisp.org>
72757
72758         Ensure O(n) worst-case complexity of mbsstr.
72759         * lib/mbsstr.c: Include stdbool.h.
72760         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72761         functions.
72762         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72763         bookkeeping indicates that it's worth it.
72764         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72765
72766         * modules/mbsstr-tests: New file.
72767         * tests/test-mbsstr1.c: New file.
72768         * tests/test-mbsstr2.sh: New file.
72769         * tests/test-mbsstr2.c: New file.
72770         * tests/test-mbsstr3.sh: New file.
72771         * tests/test-mbsstr3.c: New file.
72772         * m4/locale-fr.m4: New file.
72773
72774 2007-02-11  Bruno Haible  <bruno@clisp.org>
72775
72776         * lib/mbsrchr.c (mbsrchr): Fix bug.
72777
72778         * modules/mbsrchr-tests: New file.
72779         * tests/test-mbsrchr.sh: New file.
72780         * tests/test-mbsrchr.c: New file.
72781
72782 2007-02-11  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/mbschr.c (mbschr): Fix bug.
72785
72786         * modules/mbschr-tests: New file.
72787         * tests/test-mbschr.sh: New file.
72788         * tests/test-mbschr.c: New file.
72789         * m4/locale-zh.m4: New file.
72790
72791 2007-02-11  Bruno Haible  <bruno@clisp.org>
72792
72793         Support for copying multibyte string iterators.
72794         * lib/mbiter.h: Include <string.h>.
72795         (mbiter_multi_copy): New function.
72796         (mbi_copy): New macro.
72797         * lib/mbuiter.h: Include <string.h>.
72798         (mbuiter_multi_copy): New function.
72799         (mbui_copy): New macro.
72800
72801 2007-02-11  Bruno Haible  <bruno@clisp.org>
72802
72803         New module mbslen.
72804         * modules/mbslen: New file.
72805         * lib/mbslen.c: New file.
72806         * lib/string_.h (mbslen): New declaration.
72807         * m4/mbslen.m4: New file.
72808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72809         GNULIB_MBSLEN.
72810         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72811         * MODULES.html.sh (Internationalization functions): Add mbslen.
72812
72813 2007-02-11  Bruno Haible  <bruno@clisp.org>
72814
72815         Ensure O(n) worst-case complexity of strcasestr substitute.
72816         * lib/strcasestr.c: Include stdbool.h.
72817         (knuth_morris_pratt): New function.
72818         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72819         bookkeeping indicates that it's worth it.
72820         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72821
72822         * modules/strcasestr-tests: New file.
72823         * tests/test-strcasestr.c: New file.
72824
72825 2007-02-11  Bruno Haible  <bruno@clisp.org>
72826
72827         Ensure O(n) worst-case complexity of c_strcasestr.
72828         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72829         (knuth_morris_pratt): New function.
72830         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72831         the bookkeeping indicates that it's worth it.
72832         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72833
72834         * modules/c-strcasestr-tests: New file.
72835         * tests/test-c-strcasestr.c: New file.
72836
72837 2007-02-11  Bruno Haible  <bruno@clisp.org>
72838
72839         Ensure O(n) worst-case complexity of c_strstr.
72840         * lib/c-strstr.c: Include stdbool.h, string.h.
72841         (knuth_morris_pratt): New function.
72842         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72843         bookkeeping indicates that it's worth it.
72844         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72845
72846         * lib/c-strstr.c: Complete rewrite for maintainability.
72847
72848         * modules/c-strstr-tests: New file.
72849         * tests/test-c-strstr.c: New file.
72850
72851 2007-02-11  Bruno Haible  <bruno@clisp.org>
72852
72853         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72854         5.2.1 and earlier, whereby \055 was treated just like the range
72855         delimiter '-'.
72856         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72857
72858 2007-02-08  Bruno Haible  <bruno@clisp.org>
72859
72860         * modules/regex (Depends-on): Add stdbool.
72861         Reported by Dalibor Topic <robilad@kaffe.org>.
72862
72863 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72866         Prefer returning from main to exiting from it.
72867         Remove unnecessary parens after sizeof.
72868
72869 2007-02-05  Bruno Haible  <bruno@clisp.org>
72870
72871         New module mbssep.
72872         * modules/mbssep: New file.
72873         * lib/mbssep.c: New file.
72874         * lib/string_.h (strsep): Add a conditional link warning.
72875         (mbssep): New declaration.
72876         * m4/mbssep.m4: New file.
72877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72878         GNULIB_MBSSEP.
72879         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72880         * MODULES.html.sh (Internationalization functions): Add mbssep.
72881
72882 2007-02-05  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72885         Optimize search in case of 1 delimiter.
72886
72887 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72888
72889         * lib/acl.h: Include sys/types.h before sys/acl.h.
72890
72891 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72892
72893         Merge upstream fix for glibc bugzilla #3957:
72894
72895         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72896
72897         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72898         bit for RE_HAT_LISTS_NOT_NEWLINE.
72899         (build_charclass_op): Remove bogus comment.
72900
72901 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72902
72903         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72904
72905 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72908         * lib/memmem.c [!defined _LIBC]: Include config.h.
72909
72910 2007-02-04  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72913         warning message.
72914
72915 2007-02-04  Bruno Haible  <bruno@clisp.org>
72916
72917         New module mbstok_r.
72918         * modules/mbstok_r: New file.
72919         * lib/mbstok_r.c: New file.
72920         * lib/string_.h (strtok_r): Change argument names to match the
72921         comments. Add a conditional link warning.
72922         (mbstok_r): New declaration.
72923         * m4/mbstok_r.m4: New file.
72924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72925         GNULIB_MBSTOK_R.
72926         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72927         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72928
72929 2007-02-04  Bruno Haible  <bruno@clisp.org>
72930
72931         New module mbsspn.
72932         * modules/mbsspn: New file.
72933         * lib/mbsspn.c: New file.
72934         * lib/string_.h (strspn): Add a conditional link warning.
72935         (mbsspn): New declaration.
72936         * m4/mbsspn.m4: New file.
72937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72938         GNULIB_MBSSPN.
72939         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72940         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72941
72942 2007-02-04  Bruno Haible  <bruno@clisp.org>
72943
72944         New module mbspbrk.
72945         * modules/mbspbrk: New file.
72946         * lib/mbspbrk.c: New file.
72947         * lib/string_.h (strpbrk): Add a conditional link warning.
72948         (mbspbrk): New declaration.
72949         * m4/mbspbrk.m4: New file.
72950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72951         GNULIB_MBSPBRK.
72952         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72953         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72954
72955 2007-02-04  Bruno Haible  <bruno@clisp.org>
72956
72957         New module mbscspn.
72958         * modules/mbscspn: New file.
72959         * lib/mbscspn.c: New file.
72960         * lib/string_.h (strcspn): Add a conditional link warning.
72961         (mbscspn): New declaration.
72962         * m4/mbscspn.m4: New file.
72963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72964         GNULIB_MBSCSPN.
72965         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72966         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72967
72968 2007-02-04  Bruno Haible  <bruno@clisp.org>
72969
72970         New module mbscasestr, reduced goal of strcasestr.
72971         * modules/mbscasestr: New file.
72972         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72973         (mbscasestr): Renamed from strcasestr.
72974         * lib/strcasestr.c: Don't include mbuiter.h.
72975         (strcasestr): Remove support for multibyte locales.
72976         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72977         Change the conditional link warning.
72978         (mbscasestr): New declaration.
72979         * m4/mbscasestr.m4: New file.
72980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72981         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72982         REPLACE_STRCASESTR.
72983         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72985         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72987         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72988         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72989         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72990         (Depends-on): Remove mbuiter.
72991         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72992
72993 2007-02-04  Bruno Haible  <bruno@clisp.org>
72994
72995         Simplify handling of strncasecmp.
72996         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72997         the conditional link warning.
72998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72999         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73001         * modules/strcase (configure.ac): Don't invoke
73002         gl_STRING_MODULE_INDICATOR.
73003         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73004
73005 2007-02-04  Bruno Haible  <bruno@clisp.org>
73006
73007         New module mbscasecmp, reduced goal of strcasecmp.
73008         * modules/mbscasecmp: New file.
73009         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73010         (mbscasecmp): Renamed from strcasecmp.
73011         * lib/strcasecmp.c: Don't include mbuiter.h.
73012         (strcasecmp): Remove support for multibyte locales.
73013         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73014         Change the conditional link warning.
73015         (mbscasecmp): New declaration.
73016         * m4/mbscasecmp.m4: New file.
73017         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73018         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73019         REPLACE_STRCASECMP.
73020         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73022         GNULIB_MBSCASECMP.
73023         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73024         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73025         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73026         (Depends-on): Remove mbuiter.
73027         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73028
73029 2007-02-04  Bruno Haible  <bruno@clisp.org>
73030
73031         New module mbsstr. Remove module strstr.
73032         * modules/mbsstr: New file.
73033         * modules/strstr: Remove file.
73034         * lib/mbsstr.c: Renamed from lib/strstr.c.
73035         (mbsstr): Renamed from strstr.
73036         * lib/string_.h (strstr): Remove declaration. Change the conditional
73037         link warning.
73038         (mbsstr): New declaration.
73039         * m4/mbsstr.m4: New file.
73040         * m4/strstr.m4: Remove file.
73041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73042         REPLACE_STRSTR.
73043         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73044         Don't initialize GNULIB_STRSTR.
73045         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73046         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73047         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73048         (Support for systems lacking ANSI C 89): Remove strstr.
73049
73050 2007-02-04  Bruno Haible  <bruno@clisp.org>
73051
73052         New module mbsrchr.
73053         * modules/mbsrchr: New file.
73054         * lib/mbsrchr.c: New file.
73055         * lib/string_.h (strrchr): Add a conditional link warning.
73056         (mbsrchr): New declaration.
73057         * m4/mbsrchr.m4: New file.
73058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73059         GNULIB_MBSRCHR.
73060         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73061         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73062
73063 2007-02-04  Bruno Haible  <bruno@clisp.org>
73064
73065         New module mbschr.
73066         * modules/mbschr: New file.
73067         * lib/mbschr.c: New file.
73068         * lib/string_.h (strchr): Add a conditional link warning.
73069         (mbschr): New declaration.
73070         * m4/mbschr.m4: New file.
73071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73072         GNULIB_MBSCHR.
73073         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73074         * MODULES.html.sh (Internationalization functions): Add mbschr.
73075
73076 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73079
73080         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73081
73082 2007-02-04  Bruno Haible  <bruno@clisp.org>
73083
73084         New module description section 'configure.ac-early'.
73085         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73086         (func_get_autoconf_early_snippet): New function.
73087         (func_import, func_create_testdir): Use it. Remove special cases for
73088         modules 'extensions' and 'lock'.
73089         * modules/extensions (configure.ac-early): Require
73090         gl_USE_SYSTEM_EXTENSIONS.
73091         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73092
73093 2007-02-04  Bruno Haible  <bruno@clisp.org>
73094
73095         Make use of gcj-4.3's -fsource and -ftarget option.
73096         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73097         and if so try the options -fsource and -ftarget.
73098         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73099         source_version, ftarget_option, target_version arguments.
73100         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73101         (is_envjavac_oldgcj_14_14_usable): Renamed from
73102         is_envjavac_gcj_14_14_usable.
73103         (is_envjavac_oldgcj_14_13_usable): Renamed from
73104         is_envjavac_gcj_14_13_usable.
73105         (is_gcj_present): Update.
73106         (is_gcj_43, is_gcj43_usable): New functions.
73107         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73108         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73109         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73110         try the options -fsource and -ftarget.
73111
73112 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73115         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73116         larger value.
73117
73118 2007-02-03  Jim Meyering  <jim@meyering.net>
73119
73120         Give tools a better chance to allocate space for very large buffers.
73121         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73122
73123         Make pwd and readlink work also when run with an unreadable parent dir
73124         on systems with openat support.
73125         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73126         provided getcwd function, even when we have openat support.
73127         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73128
73129 2007-02-02  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73132         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73133         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73134         portability problems if one of these functions is only used on specific
73135         platforms.
73136         Reported by Paul Eggert.
73137
73138 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73141         is causing more trouble than it's curing.
73142         * lib/regex_internal.h (__mempcpy): Remove.
73143         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73144         (and make the code a tad smaller to boot).
73145         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73146
73147 2007-02-02  Jim Meyering  <jim@meyering.net>
73148
73149         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73150         section, not in the Makefile.am: one.
73151
73152 2007-02-02  Eric Blake  <ebb9@byu.net>
73153
73154         * lib/strchrnul.c: Always include config.h first.
73155
73156         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73157         gnulib strstr is not necessary here.
73158
73159 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73160
73161         * m4/socklen.m4: Fix typo.
73162
73163 2007-02-02  Eric Blake  <ebb9@byu.net>
73164
73165         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73166         * modules/netinet_in (Makefile.am): Likewise.
73167
73168 2007-02-01  Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/string_.h (GL_LINK_WARNING): New macro.
73171         (strcasecmp, strstr, strcasestr): If provided by the system,
73172         conditionally define as a macro that leads to a warning instead of to
73173         an error.
73174         (strncasecmp): Conditionally define as a macro that leads to a warning.
73175
73176 2007-02-01  Karl Berry  <karl@gnu.org>
73177
73178         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73179
73180 2007-02-01  Bruno Haible  <bruno@clisp.org>
73181
73182         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73183         renamings.
73184
73185 2007-02-01  Eric Blake  <ebb9@byu.net>
73186
73187         * modules/regex (Depends-on): Revert dependence on mempcpy.
73188         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73189         module's definition of mempcpy.
73190         Reported by Paul Eggert.
73191
73192 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73193
73194         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73195         the symbol XYZ before redefining it.  This fixes a problem with
73196         programs that don't use XYZ, when compiled on systems that define
73197         XYZ to something else.
73198
73199 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73202         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73203         writeable to group or other and (2) is intended to have a special
73204         mode bit that is set or cleared.  In such a case, the directory
73205         should be neither group- nor other-writeable until the special
73206         mode bits are right.
73207
73208 2007-01-31  Eric Blake  <ebb9@byu.net>
73209
73210         * modules/mountlist (Depends-on): Add strstr.
73211
73212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73213         bug.
73214         * modules/string (Makefile.am): Remove redundant replacement.
73215         * modules/regex (Depends-on): Add mempcpy.
73216
73217 2007-01-31  Bruno Haible  <bruno@clisp.org>
73218
73219         New module description field 'Link'.
73220         * gnulib-tool (func_usage): Document --extract-link-directive.
73221         (sed_extract_prog): Recognize 'Link' directive.
73222         (func_get_link_directive): New function.
73223         (func_import): Show summary of link directives.
73224         Handle --extract-link-directive option.
73225         * modules/acl (Link): New section.
73226         * modules/clock-time (Link): New section.
73227         * modules/euidaccess (Link): New section.
73228         * modules/gettext (Link): New section.
73229         * modules/iconv (Link): New section.
73230         * modules/lock (Link): New section.
73231         * modules/nanosleep (Link): New section.
73232         * modules/readline (Link): New section.
73233
73234 2007-01-27  Bruno Haible  <bruno@clisp.org>
73235
73236         Enforce the use of gnulib modules for unportable <string.h> functions.
73237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73238         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73239         (gl_HEADER_STRING_H_BODY): Require it.
73240         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73241         the symbol XYZ to one that gives a link error.
73242         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73243         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73244         * modules/mempcpy (configure.ac): Likewise.
73245         * modules/memrchr (configure.ac): Likewise.
73246         * modules/stpcpy (configure.ac): Likewise.
73247         * modules/stpncpy (configure.ac): Likewise.
73248         * modules/strcase (configure.ac): Likewise.
73249         * modules/strcasestr (configure.ac): Likewise.
73250         * modules/strchrnul (configure.ac): Likewise.
73251         * modules/strdup (configure.ac): Likewise.
73252         * modules/strndup (configure.ac): Likewise.
73253         * modules/strnlen (configure.ac): Likewise.
73254         * modules/strpbrk (configure.ac): Likewise.
73255         * modules/strsep (configure.ac): Likewise.
73256         * modules/strstr (configure.ac): Likewise.
73257         * modules/strtok_r (configure.ac): Likewise.
73258
73259 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73260
73261         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73262
73263 2007-01-30  Jim Meyering  <jim@meyering.net>
73264
73265         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73266
73267 2007-01-29  Bruno Haible  <bruno@clisp.org>
73268
73269         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73270         * lib/execute.c: Likewise.
73271         * lib/pipe.c: Likewise.
73272         * lib/printf-args.h: Likewise.
73273         * lib/printf-args.c: Likewise.
73274         * lib/printf-parse.c: Likewise.
73275         * lib/vasnprintf.c: Likewise.
73276
73277 2007-01-29  Eric Blake  <ebb9@byu.net>
73278
73279         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73280         declaration.
73281
73282 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * lib/strptime.h (strptime): Use 'restrict' for args where
73285         POSIX requires this.
73286         * lib/strptime.c (strptime): Likewise.
73287         Change license notice from LGPL to GPL, since gnulib-tool will
73288         change this as needed.
73289         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73290         defined.
73291         Include "strptime.h" first, to check interface.
73292         Do not #undef _LIBC and _NL_CURRENT.
73293         Do not include <stdlib.h>; no longer needed.
73294         Include "time_r.h" and declare ptime_locale_status
73295         only if _LIBC is not defined.
73296         (__P): Remove unused macro.
73297         (match_string): Bring back glibc version, but use it only if _LIBC
73298         is defined.
73299         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73300         Remove unnecessary assertion and abort() call.
73301         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73302         * m4/strptime.m4: Fix serial number comment.
73303         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73304         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73305         (Depends-on): Add time_r.
73306
73307 2007-01-29  Bruno Haible  <bruno@clisp.org>
73308
73309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73310         strptime.
73311         * modules/strptime (Depends-on): Add stdbool.
73312         * lib/strptime.h: Include <time.h> always. Add comments.
73313
73314 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73315
73316         * modules/strptime: New file.
73317         * lib/strptime.h: New file.
73318         * lib/strptime.c: New file.
73319         * m4/strptime.m4: New file.
73320
73321 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * MODULES.html.sh: New module mpsort.
73324         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73325
73326         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73327         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73329         All uses changed.
73330         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73331         All uses changed.
73332         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73333         to _Restrict_.
73334         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73335         the parameter matches the prototype.
73336
73337 2007-01-28  Jim Meyering  <jim@meyering.net>
73338
73339         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73340         sys/time.h here, reverting that part of the previous patch:
73341         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73342
73343 2007-01-28  Bruno Haible  <bruno@clisp.org>
73344
73345         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73346         value of $(SYS_TIME_H).
73347         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73348         remove it conditionally, too. [added by Jim Meyering]
73349         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73351         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73352         GETTIMEOFDAY_REPLACEMENT to 1.
73353
73354 2007-01-28  Bruno Haible  <bruno@clisp.org>
73355
73356         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73357         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73359         Set UNISTD_H instead of UNISTD_H2.
73360         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73361
73362 2007-01-28  Bruno Haible  <bruno@clisp.org>
73363
73364         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73365         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73366
73367 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73368
73369         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73370         (func_create_testdir): Ensure C locale for `grep' and `tr'
73371         character ranges.
73372         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73373         ACLOCAL_AMFLAGS parsing state machine.
73374
73375 2007-01-27  Bruno Haible  <bruno@clisp.org>
73376
73377         * modules/unistr/base: Update.
73378
73379 2007-01-27  Bruno Haible  <bruno@clisp.org>
73380
73381         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73382         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73383         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73384         modules/unistr/u32-mbtouc.
73385         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73386         * lib/unistr.h: Update.
73387         * lib/linebreak.c: Update.
73388         * modules/unistr/u32-mbtouc: Renamed from
73389         modules/unistr/u32-mbtouc-safe.
73390         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73391         * lib/unistr.h: Update.
73392         * lib/unistr/u32-to-u8.c: Update.
73393         * lib/unistr/u32-to-u16.c: Update.
73394
73395 2007-01-27  Bruno Haible  <bruno@clisp.org>
73396
73397         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73398         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73399         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73400         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73401         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73402         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73403         modules/unistr/u16-mbtouc.
73404         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73405         * lib/unistr.h: Update.
73406         * lib/linebreak.c: Update.
73407         * modules/linebreak: Update.
73408         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73409         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73410         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73411         * modules/unistr/u16-mbtouc: Renamed from
73412         modules/unistr/u16-mbtouc-safe.
73413         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73414         * lib/unistr.h: Update.
73415         * lib/unistr/u16-to-u8.c: Update.
73416         * modules/unistr/u16-to-u8: Update.
73417         * lib/unistr/u16-to-u32.c: Update.
73418         * modules/unistr/u16-to-u32: Update.
73419
73420 2007-01-27  Bruno Haible  <bruno@clisp.org>
73421
73422         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73423         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73424         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73425         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73426         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73427         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73428         modules/unistr/u8-mbtouc.
73429         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73430         * lib/unistr.h: Update.
73431         * lib/striconveh.c: Update.
73432         * modules/striconveh: Update.
73433         * lib/linebreak.c: Update.
73434         * modules/linebreak: Update.
73435         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73436         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73437         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73438         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73439         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73440         * lib/unistr.h: Update.
73441         * lib/striconveh.c: Update.
73442         * modules/striconveh: Update.
73443         * lib/unistr/u8-to-u16.c: Update.
73444         * modules/unistr/u8-to-u16: Update.
73445         * lib/unistr/u8-to-u32.c: Update.
73446         * modules/unistr/u8-to-u32: Update.
73447
73448 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73449
73450         Sync from Libtool.
73451         * lib/argz.c: Do not include strings.h nor memory.h, include
73452         string.h unconditionally.  Patch by Simon Josefsson.
73453
73454 2007-01-27  Bruno Haible  <bruno@clisp.org>
73455
73456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73457         from gl_HEADER_STRING_H_BODY.
73458         (gl_HEADER_STRING_H_BODY): Require it.
73459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73460         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73462         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73464         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73467         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73468         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73470         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73471         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73472         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73473         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73474
73475 2007-01-27  Bruno Haible  <bruno@clisp.org>
73476
73477         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73478         check_PROGRAMS into noinst_PROGRAMS.
73479         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73480         check_PROGRAMS in this case.
73481         (func_import): Set for_test to false.
73482         (func_create_testdir): Set for_test to true.
73483
73484 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73485             Bruno Haible  <bruno@clisp.org>
73486
73487         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73488         (Depends-on): Add string.
73489         (Includes): Use <string.h> instead of strcasestr.h.
73490         * modules/string (Makefile.am): Also substitute the value of
73491         REPLACE_STRCASESTR.
73492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73493         assume strcasestr is declared in <string.h> not <strings.h>. Also
73494         set REPLACE_STRCASESTR.
73495         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73496         REPLACE_STRCASESTR.
73497         * lib/strcasestr.h: Remove file.
73498         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73499         * lib/string_.h (strcasestr): New declaration.
73500
73501 2007-01-27  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/string_.h: Use 'extern'.
73504
73505 2007-01-27  Jim Meyering  <jim@meyering.net>
73506
73507         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73508         of set-but-not-used local, "q".
73509
73510         * lib/mempcpy.c: Include <config.h> before <string.h>.
73511         This fixes a compilation error on HP-UX, due to the system's
73512         "restrict"-using mempcpy prototype.
73513
73514 2007-01-26  Bruno Haible  <bruno@clisp.org>
73515
73516         Small optimization.
73517         * lib/javacomp.c: Include c-strstr.h.
73518          (is_envjavac_gcj): Use c_strstr instead of strstr.
73519         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73520
73521 2007-01-26  Bruno Haible  <bruno@clisp.org>
73522
73523         * MODULES.html.sh (Unicode string functions): Add the new modules.
73524
73525         * modules/uniconv/u32-strconv-to-locale: New file.
73526         * lib/uniconv/u32-strconv-to-locale.c: New file.
73527
73528         * modules/uniconv/u16-strconv-to-locale: New file.
73529         * lib/uniconv/u16-strconv-to-locale.c: New file.
73530
73531         * modules/uniconv/u8-strconv-to-locale: New file.
73532         * lib/uniconv/u8-strconv-to-locale.c: New file.
73533
73534         * modules/uniconv/u32-strconv-from-locale: New file.
73535         * lib/uniconv/u32-strconv-from-locale.c: New file.
73536
73537         * modules/uniconv/u16-strconv-from-locale: New file.
73538         * lib/uniconv/u16-strconv-from-locale.c: New file.
73539
73540         * modules/uniconv/u8-strconv-from-locale: New file.
73541         * lib/uniconv/u8-strconv-from-locale.c: New file.
73542
73543         * modules/uniconv/u32-strconv-to-enc: New file.
73544         * lib/uniconv/u32-strconv-to-enc.c: New file.
73545         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73546         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73547
73548         * modules/uniconv/u16-strconv-to-enc: New file.
73549         * lib/uniconv/u16-strconv-to-enc.c: New file.
73550         * lib/uniconv/u-strconv-to-enc.h: New file.
73551         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73552         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73553
73554         * modules/uniconv/u8-strconv-to-enc: New file.
73555         * lib/uniconv/u8-strconv-to-enc.c: New file.
73556         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73557         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73558
73559         * modules/uniconv/u32-strconv-from-enc: New file.
73560         * lib/uniconv/u32-strconv-from-enc.c: New file.
73561         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73562         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73563
73564         * modules/uniconv/u16-strconv-from-enc: New file.
73565         * lib/uniconv/u16-strconv-from-enc.c: New file.
73566         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73567         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73568
73569         * modules/uniconv/u8-strconv-from-enc: New file.
73570         * lib/uniconv/u8-strconv-from-enc.c: New file.
73571         * lib/uniconv/u-strconv-from-enc.h: New file.
73572         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73573         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73574
73575         * modules/uniconv/u32-conv-from-enc: New file.
73576         * lib/uniconv/u32-conv-from-enc.c: New file.
73577         * modules/uniconv/u32-conv-from-enc-tests: New file.
73578         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73579
73580         * modules/uniconv/u16-conv-from-enc: New file.
73581         * lib/uniconv/u16-conv-from-enc.c: New file.
73582         * lib/uniconv/u-conv-from-enc.h: New file.
73583         * modules/uniconv/u16-conv-from-enc-tests: New file.
73584         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73585
73586         * modules/uniconv/u8-conv-from-enc: New file.
73587         * lib/uniconv/u8-conv-from-enc.c: New file.
73588         * modules/uniconv/u8-conv-from-enc-tests: New file.
73589         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73590
73591         * modules/uniconv/base: New file.
73592         * lib/uniconv.h: New file.
73593
73594 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * doc/gnulib-tool.texi (Initial import): Update to match current
73597         behavior with strdup module.
73598         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73599         * lib/memmem.h: Remove; all uses removed.  This is now done
73600         by <string.h>.
73601         * lib/mempcpy.h: Likewise.
73602         * lib/memrchr.h: Likewise.
73603         * lib/stpcpy.h: Likewise.
73604         * lib/stpncpy.h: Likewise.
73605         * lib/strcase.h: Likewise.
73606         * lib/strchrnul.h: Likewise.
73607         * lib/strdup.h: Likewise.
73608         * lib/strndup.h: Likewise.
73609         * lib/strnlen.h: Likewise.
73610         * lib/strpbrk.h: Likewise.
73611         * lib/strsep.h: Likewise.
73612         * lib/strstr.h: Likewise.
73613         * lib/strtok_r.h: Likewise.
73614         * lib/string_.h: New file.
73615         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73616         Rely on <string.h> instead.
73617         * lib/canon-host.c: Likewise.
73618         * lib/chdir-long.c: Likewise.
73619         * lib/concatpath.c: Likewise.
73620         * lib/exclude.c: Likewise.
73621         * lib/fchdir.c: Likewise.
73622         * lib/getaddrinfo.c: Likewise.
73623         * lib/getcwd.c: Likewise.
73624         * lib/getsubopt.c: Likewise.
73625         * lib/glob.c: Likewise.
73626         * lib/hard-locale.c: Likewise.
73627         * lib/iconvme.c: Likewise.
73628         * lib/javacomp.c: Likewise.
73629         * lib/mempcpy.c: Likewise.
73630         * lib/memrchr.c: Likewise.
73631         * lib/regex_internal.h: Likewise.
73632         * lib/stpncpy.c: Likewise.
73633         * lib/strcasecmp.c: Likewise.
73634         * lib/strchrnul.c: Likewise.
73635         * lib/strdup.c: Likewise.
73636         * lib/striconv.c: Likewise.
73637         * lib/striconveh.c: Likewise.
73638         * lib/striconveha.c: Likewise.
73639         * lib/strncasecmp.c: Likewise.
73640         * lib/strndup.c: Likewise.
73641         * lib/strnlen.c: Likewise.
73642         * lib/strsep.c: Likewise.
73643         * lib/strstr.c: Likewise.
73644         * lib/strtok_r.c: Likewise.
73645         * lib/userspec.c: Likewise.
73646         * lib/w32spawn.h: Likewise.
73647         * lib/xstrndup.c: Likewise.
73648         * lib/mountlist.c (strstr): Remove decl.
73649         * m4/string_h.m4: New file.
73650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73651         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73653         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73654         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73655         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73656         Set REPLACE_STRCASECMP if necessary.
73657         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73658         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73659         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73660         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73661         HAVE_DECL_STRDUP if necessary.
73662         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73663         since gl_FUNC_STRNDUP does that now.
73664         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73665         Check for decl here...
73666         (gl_PREREQ_STRNLEN): ... not here.
73667         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73668         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73669         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73671         necessary.
73672         * modules/string: New file.
73673         * modules/memmem (Files): Remove special-purpose include file.
73674         (Depends-on): Add string.
73675         (Include): Include <string.h>, not the removed file.
73676         * modules/mempcpy: Likewise.
73677         * modules/memrchr: Likewise.
73678         * modules/stpcpy: Likewise.
73679         * modules/stpncpy: Likewise.
73680         * modules/strcase: Likewise.
73681         * modules/strchrnul: Likewise.
73682         * modules/strdup: Likewise.
73683         * modules/strndup: Likewise.
73684         * modules/strnlen: Likewise.
73685         * modules/strpbrk: Likewise.
73686         * modules/strsep: Likewise.
73687         * modules/strstr: Likewise.
73688         * modules/strtok_r: Likewise.
73689         * tests/test-dirname.c: Don't include "strdup.h", since
73690         <string.h> now suffices.
73691         * tests/test-memmem.c: Don't include "memmem.h", since
73692         <string.h> now suffices.
73693
73694 2007-01-25  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73697         *resultp is 0.
73698
73699         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73700         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73701         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73702         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73703
73704         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73705         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73706         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73707         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73708         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73709         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73710
73711 2007-01-24  Bruno Haible  <bruno@clisp.org>
73712
73713         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73715         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73716         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73717         gl_FUNC_FTS_CORE.
73718         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73719         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73720         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73721         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73722         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73723         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73724         gl_FUNC_FCHOWNAT.
73725         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73726         gl_FUNC_STRFTIME.
73727         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73728         Reported by Ralf Wildenhues.
73729
73730 2007-01-24  Bruno Haible  <bruno@clisp.org>
73731
73732         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73733         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73734         gl_GETADDRINFO.
73735         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73736         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73737         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73738
73739 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73742         Don't use 'exit'; just return from 'main'.
73743         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73744
73745         * lib/fnmatch_.h: Readjust white space and comments to match
73746         glibc, to avoid spurious diffs.
73747
73748 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73751         2004-12-01 change by Jakub Jelinek, since this code won't compile
73752         if !LIBC.  Problem reported by Bob Proulx.
73753
73754 2007-01-23  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/striconveh.c: Include c-strcaseeq.h.
73757         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73758         * modules/striconveh (Depends-on): Add c-strcaseeq.
73759
73760 2007-01-23  Bruno Haible  <bruno@clisp.org>
73761
73762         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73763
73764         * modules/c-strcaseeq: New file.
73765         * lib/c-strcaseeq.h: New file.
73766
73767         * modules/streq: New file.
73768         * lib/streq.h: New file.
73769
73770 2007-01-23  Bruno Haible  <bruno@clisp.org>
73771
73772         * modules/striconveha-tests: New file.
73773         * tests/test-striconveha.c: New file.
73774
73775         * lib/striconveha.h: Include <stdbool.h>.
73776         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73777         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73778         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73779         (mem_iconveha): New function.
73780         (str_iconveha_notranslit): Renamed from str_iconveha.
73781         (str_iconveha): New function.
73782         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73783         c-strcase.
73784
73785 2007-01-23  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73788         encodings without forgiving before trying any encoding with handler.
73789         (str_iconveha): Try all encodings without forgiving before trying any
73790         encoding with handler.
73791
73792 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         Import the following changes from libc.
73795
73796         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73797
73798         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73799
73800         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73801
73802         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73803         normal_bracket label.
73804
73805         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73806
73807         [BZ #361]
73808         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73809         to normal_bracket after fetching the next character.
73810
73811 2007-01-22  Bruno Haible  <bruno@clisp.org>
73812
73813         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73814         argument.
73815         * lib/striconveh.c (iconv_carefully_1): New function.
73816         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73817         argument.
73818         (str_cd_iconveh): Update.
73819         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73820         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73821         * tests/test-striconveh.c (MAGIC): New macro.
73822         (new_offsets): New function.
73823         (main): Test call with and without offsets.
73824
73825 2007-01-22  Bruno Haible  <bruno@clisp.org>
73826
73827         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73828         * modules/sys_select (Makefile.am): Likewise.
73829         * modules/sys_socket (Makefile.am): Likewise.
73830         * modules/sys_time (Makefile.am): Likewise.
73831
73832 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * modules/gettimeofday (License): Change from GPL to LGPL, since
73835         gettimeofday is a library function.
73836
73837 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73838
73839         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73840
73841 2007-01-21  Bruno Haible  <bruno@clisp.org>
73842
73843         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73844
73845 2007-01-21  Bruno Haible  <bruno@clisp.org>
73846
73847         * modules/striconveha: New file.
73848         * lib/striconveha.h: New file.
73849         * lib/striconveha.c: New file.
73850         * MODULES.html.sh (Internationalization functions): Add striconveha.
73851         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73852         string.
73853         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73854
73855 2007-01-21  Bruno Haible  <bruno@clisp.org>
73856
73857         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73858         * lib/striconveh.c (str_iconveh): Likewise.
73859
73860 2007-01-21  Bruno Haible  <bruno@clisp.org>
73861
73862         * lib/striconveh.h (mem_iconveh): New declaration.
73863         * lib/striconveh.c (mem_iconveh): New function.
73864         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73865
73866 2007-01-21  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73869
73870         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73871         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73872         original result buffer.
73873         (str_cd_iconveh): Update.
73874         * tests/test-striconveh.c (main): Update.
73875
73876         * lib/striconv.h (mem_cd_iconv): Change specification.
73877         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73878         result buffer.
73879         (str_cd_iconv): Update.
73880         * tests/test-striconv.c (main): Update.
73881
73882 2007-01-21  Bruno Haible  <bruno@clisp.org>
73883
73884         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73885
73886 2007-01-20  Jim Meyering  <jim@meyering.net>
73887
73888         * lib/userspec.c (parse_with_separator): If a user or group string
73889         starts with "+", skip the corresponding name-to-ID look-up, since
73890         such a look-up must fail: user and group names may not include "+".
73891
73892 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73895         since we now assume the sys_time module.
73896         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73897         check for sys/time.h; no longer needed.
73898         * modules/poll (Depends-on): Depend on sys_time.
73899
73900 2007-01-18  Bruno Haible  <bruno@clisp.org>
73901
73902         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73903         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73904
73905         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73906         gettimeofday.
73907
73908         * tests/test-gettimeofday.c: Include <time.h>.
73909         (dummy): Remove variable.
73910
73911         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73912         gl_HEADER_SYS_TIME_H.
73913         (gl_HEADER_SYS_TIME_H): New macro.
73914
73915         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73916         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73918         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73919         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73921         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73922         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73923         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73924         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73925         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73926
73927         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73928         last change; it caused a compilation error when cross-compiling to
73929         Cygwin.
73930
73931 2007-01-18  Jim Meyering  <jim@meyering.net>
73932
73933         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73934         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73935         than the race-prone "test -d sys || mkdir sys".
73936         (configure.ac): Use AC_PROG_MKDIR_P.
73937         * modules/sys_select: Likewise.
73938         * modules/sys_socket: Likewise.
73939         * modules/sys_time: Likewise.
73940
73941 2007-01-18  Eric Blake  <ebb9@byu.net>
73942
73943         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73944         replace gettimeofday.
73945         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73946         name, to avoid infinite recursion.
73947
73948 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73951         module sys_time.
73952         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73953         assume timespec.h defines struct timeval.
73954         * lib/settime.c: Likewise.
73955         * lib/utimens.c: Likewise.
73956         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73957         since we now assume the gettimeofday module.
73958         * lib/tempname.c (__gen_tempname): Likewise.
73959         * lib/gettimeofday.h: Remove.
73960         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73961         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73962         Include <time.h>, for 'time()'.
73963         (localtime_buffer_addr): Also use this workaround if
73964         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73965         to simplify the uses.  All uses changed.
73966         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73967         that #undef is inside {}, and 'const' follows type name consistently.
73968         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73969         (gettimeofday): Do not use the maximum possible value for
73970         tv->tv_usec, since that might break usages other than ls.c.
73971         Instead, we'll leave ls.c alone.  This undoes today's patch
73972         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73973         we've never observed the problem but might as well keep the
73974         canary.
73975         * lib/nanosleep.c: Include timespec.h first, for interface check.
73976         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73977         now assume the sys_time module.
73978         * lib/tempname.c: Likewise.
73979         * lib/timespec.h: Likewise.
73980         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73981         needed.
73982         * lib/strftime.c: Likewise.
73983         * lib/timespec.h: Likewise.
73984         * lib/posixtm.c: Include posixtm.h first, for interface check.
73985         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73986         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73987         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73988         * lib/sys_time_.h: New file.
73989         * lib/timespec.h (struct timespec): Use long int, not long.
73990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73991         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73992         Remove obsolescent call to AC_HEADER_TIME.
73993         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73995         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73996         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73997         Likewise.
73998         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73999         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74001         into the sys_time module.  Check for gettimeofday just once.
74002         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74003         for gettimeofday signature to just check the signature.  Merely
74004         compile it, since linking doesn't test signature.  Improve test for
74005         whether gettimeofday.o is actually needed.
74006         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74007         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74008         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74009         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74010         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74011         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74012         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74013         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74014         than worrying about sys/time.h.
74015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74016         Don't bother worrying about TIME_WITH_SYS_TIME.
74017         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74018         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74019         * m4/sys_time_h.m4: New file.
74020         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74021         Don't include sys/time.h.  Return from main rather than exiting.
74022         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74023         all uses changed.
74024         * modules/gethrxtime (Depends-on): Add sys_time.
74025         * modules/gettime (Depends-on): Likewise.
74026         * modules/gettimeofday (Depends-on): Likewise.
74027         * modules/nanosleep (Depends-on): Likewise.
74028         * modules/settime (Depends-on): Likewise.
74029         * modules/tempname (Depends-on): Likewise.
74030         * modules/utimens (Depends-on): Likewise.
74031         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74032         (Include): Change back to <sys/time.h>.
74033         (Maintainer): Add self.
74034         * modules/sys_time: New file.
74035         * modules/tempname (Depends-on): Add gettimeofday.
74036         * tests/test-gettimeofday.c: Include <sys/time.h>
74037         rather than gettimeofday.h.
74038
74039 2007-01-17  Bruno Haible  <bruno@clisp.org>
74040
74041         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74042         the license default to GPL.
74043         (func_create_testdir): Don't complain if a module is LGPL and its
74044         tests module depends on GPLed modules.
74045
74046 2007-01-17  Bruno Haible  <bruno@clisp.org>
74047
74048         * lib/gettimeofday.c (gettimeofday): Add code for the case
74049         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74050         maximum possible value for tv->tv_usec, rather than the minimum one.
74051
74052 2005-10-08  Martin Lambers  <marlam@marlam.de>
74053 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74054 2007-01-16  Bruno Haible  <bruno@clisp.org>
74055
74056         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74057         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74058         gl_FUNC_GETTIMEOFDAY.
74059         (Include): Add gettimeofday.h.
74060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74061         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74062         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74063         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74064         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74065         * lib/gettimeofday.h: New file.
74066         * lib/gettimeofday.c: Include <sys/timeb.h>.
74067         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74068         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74069         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74070         fall back on time().
74071
74072         * tests/test-gettimeofday.c: New file.
74073         * modules/gettimeofday-tests: New file.
74074
74075 2007-01-16  Eric Blake  <ebb9@byu.net>
74076
74077         * modules/fnmatch (Depends-on): Depend on wchar.
74078         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74079         * m4/fnmatch.m4: Likewise.
74080         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74081         * m4/mbchar.m4: Likewise.
74082         * modules/mbswidth (Depends-on): Depend on wchar.
74083         * lib/mbswidth.c: Assume <wchar.h>.
74084         * m4/mbswidth.m4: Likewise.
74085         * modules/quotearg (Depends-on): Depend on wchar.
74086         * lib/quotearg.c: Assume <wchar.h>.
74087         * m4/quotearg.m4: Likewise.
74088         * modules/regex (Depends-on): Depend on wchar.
74089         * lib/regex_internal.h: Assume <wchar.h>.
74090         * m4/regex.m4: Likewise.
74091         * modules/stdint (Depends-on): Depend on wchar.
74092         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74093         * m4/stdint.m4: Likewise.
74094         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74095         * modules/strftime (Depends-on): Depend on wchar.
74096         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74097         * modules/strtol (Depends-on): Depend on wchar.
74098         * lib/strtol.c: Assume <wchar.h>.
74099         * modules/wcwidth (Depends-on): Depend on wchar.
74100         * lib/wcwidth.h: Assume <wchar.h>.
74101         * m4/wcwidth.m4: Likewise.
74102
74103 2007-01-16  Bruno Haible  <bruno@clisp.org>
74104
74105         * modules/csharpexec-script: New, created from...
74106         * modules/csharpexec: ... this.
74107
74108 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74109
74110         * modules/javaexec-script: New, created from...
74111         * modules/javaexec: ... this.
74112
74113 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74114
74115         * modules/poll (Dependencies): Add sys_select.
74116
74117 2007-01-15  Jim Meyering  <jim@meyering.net>
74118
74119         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74120         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74121         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74122         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74123
74124 2007-01-15  Bruno Haible  <bruno@clisp.org>
74125
74126         * modules/striconveh: New file.
74127         * lib/striconveh.h: New file.
74128         * lib/striconveh.c: New file.
74129         * MODULES.html.sh (Internationalization functions): Add striconveh.
74130
74131         * modules/striconveh-tests: New file.
74132         * tests/test-striconveh.c: New file.
74133
74134 2007-01-15  Bruno Haible  <bruno@clisp.org>
74135
74136         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74137         not from GNU libiconv or GNU libc.
74138
74139 2007-01-15  Bruno Haible  <bruno@clisp.org>
74140
74141         * doc/gnulib-intro.texi (Copyright): Explain the different license
74142         terms for module descriptions, autoconf macros, tests, documentation.
74143
74144 2007-01-14  Bruno Haible  <bruno@clisp.org>
74145
74146         * modules/striconv-tests: New file.
74147         * tests/test-striconv.c: New file.
74148
74149 2007-01-14  Bruno Haible  <bruno@clisp.org>
74150
74151         * modules/iconv-tests: New file.
74152         * tests/test-iconv.c: New file.
74153
74154 2007-01-14  Bruno Haible  <bruno@clisp.org>
74155
74156         * gnulib-tool (func_get_license): For test modules, use the license of
74157         the main module.
74158
74159 2007-01-14  Bruno Haible  <bruno@clisp.org>
74160
74161         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74162         if iconv is found to exist.
74163
74164 2007-01-14  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/c-ctype-tests: New file.
74167         * tests/test-c-ctype.c: New file.
74168
74169 2007-01-14  Bruno Haible  <bruno@clisp.org>
74170
74171         * modules/binary-io-tests: New file.
74172         * tests/test-binary-io.sh: New file.
74173         * tests/test-binary-io.c: New file.
74174
74175 2007-01-14  Bruno Haible  <bruno@clisp.org>
74176
74177         * modules/array-oset-tests: New file.
74178         * tests/test-array_oset.c: New file.
74179
74180 2007-01-14  Bruno Haible  <bruno@clisp.org>
74181
74182         * modules/array-list-tests: New file.
74183         * tests/test-array_list.c: New file.
74184
74185 2007-01-14  Bruno Haible  <bruno@clisp.org>
74186
74187         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74188         and make.
74189         Reported by Simon Josefsson in
74190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74191
74192 2007-01-14  Bruno Haible  <bruno@clisp.org>
74193
74194         * modules/allocsa-tests: New file.
74195         * tests/test-allocsa.c: New file.
74196
74197 2007-01-14  Bruno Haible  <bruno@clisp.org>
74198
74199         * modules/fchdir (Depends-on): Add absolute-header.
74200         * modules/unistd (Depends-on): Likewise.
74201
74202 2006-12-30  Bruno Haible  <bruno@clisp.org>
74203
74204         * modules/fchdir: New file.
74205         * modules/unistd (Files): Add lib/unistd_.h.
74206         (Makefile.am): Generate unistd.h from unistd_.h.
74207         * lib/fchdir.c: New file.
74208         * lib/dirent_.h: New file.
74209         * lib/unistd_.h: New file.
74210         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74211         * m4/fchdir.m4: New file.
74212         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74213         (gl_HEADER_UNISTD): Invoke it.
74214         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74215         function.
74216         * lib/backupfile.c (opendir, closedir): Undefine.
74217         * lib/chown.c (open, close): Undefine.
74218         * lib/clean-temp.c (open, close): Undefine.
74219         * lib/copy-file.c (open, close): Undefine.
74220         * lib/execute.c (open, close): Undefine.
74221         * lib/fsusage.c (open, close): Undefine.
74222         * lib/gc-gnulib.c (open, close): Undefine.
74223         * lib/getcwd.c (opendir, closedir): Undefine.
74224         * lib/glob.c (opendir, closedir): Undefine.
74225         * lib/javacomp.c (open, close): Undefine.
74226         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74227         * lib/openat-proc.c (open, close): Undefine.
74228         * lib/pagealign_alloc.c (open, close): Undefine.
74229         * lib/pipe.c (open, close): Undefine.
74230         * lib/progreloc.c (open, close): Undefine.
74231         * lib/savedir.c (opendir, closedir): Undefine.
74232         * lib/utime.c (open, close): Undefine.
74233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74234
74235 2007-01-10  Bruno Haible  <bruno@clisp.org>
74236
74237         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74238
74239 2007-01-12  Eric Blake  <ebb9@byu.net>
74240
74241         Provide a robust <wchar.h>.  Further simplifications are now
74242         possible in other modules, but not included here.
74243         * modules/wchar: New module.
74244         * m4/wchar.m4: New file.
74245         * lib/wchar_.h: Likewise.
74246         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74247         of the new module.
74248         * MODULES.html.sh (Extended multibyte and wide character utilities):
74249         New section.
74250
74251 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74254         to a reasonable default for memory allocation.
74255         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74256         file system that reports garbage st_size values for symlinks.
74257         Problem reported by Liyang Hu.
74258
74259 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74260
74261         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74262         Emacs .#* auto-save files).
74263
74264 2007-01-11  Bruno Haible  <bruno@clisp.org>
74265
74266         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74267         directory.
74268
74269 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         Use @...@ consistently in lib/wctype_.h.
74272         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74273         on it being set to 1 or 0.
74274         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74275         go back to AC_SUBSTing it.
74276         * modules/wctype (Makefile.am): Undo previous change.
74277
74278 2007-01-10  Eric Blake  <ebb9@byu.net>
74279
74280         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74281         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74282         * modules/wctype (Makefile.am): Likewise.
74283         Reported by Chris McGuire.
74284
74285 2007-01-10  Jim Meyering  <jim@meyering.net>
74286
74287         fts.c: a small readability/maintainability improvement
74288         * lib/fts.c (fts_read): Make this code slightly more readable and
74289         maintainable by hoisting the "sp->fts_cur = p" assignments to
74290         immediately follow the statements that set P.  Derived from
74291         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74292
74293 2007-01-10  Eric Blake  <ebb9@byu.net>
74294
74295         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74296         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74298         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74299         Reported by Chris McGuire.
74300
74301 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74302
74303         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74304         in sed script.
74305
74306 2007-01-09  Bruno Haible  <bruno@clisp.org>
74307
74308         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74309         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74310         variables.
74311         (func_module): Use them.
74312
74313 2007-01-09  Bruno Haible  <bruno@clisp.org>
74314
74315         * modules/unistr/base: New file.
74316         * lib/unistr.h: New file.
74317
74318         * modules/unistr/u8-to-u16: New file.
74319         * lib/unistr/u8-to-u16.c: New file.
74320
74321         * modules/unistr/u8-to-u32: New file.
74322         * lib/unistr/u8-to-u32.c: New file.
74323
74324         * modules/unistr/u16-to-u8: New file.
74325         * lib/unistr/u16-to-u8.c: New file.
74326
74327         * modules/unistr/u16-to-u32: New file.
74328         * lib/unistr/u16-to-u32.c: New file.
74329
74330         * modules/unistr/u32-to-u8: New file.
74331         * lib/unistr/u32-to-u8.c: New file.
74332
74333         * modules/unistr/u32-to-u16: New file.
74334         * lib/unistr/u32-to-u16.c: New file.
74335
74336         * modules/unistr/u8-check: New file.
74337         * modules/unistr/u16-check: New file.
74338         * modules/unistr/u32-check: New file.
74339         * lib/unistr/u8-check.c: New file.
74340         * lib/unistr/u16-check.c: New file.
74341         * lib/unistr/u32-check.c: New file.
74342
74343         * modules/unistr/u8-chr: New file.
74344         * modules/unistr/u16-chr: New file.
74345         * modules/unistr/u32-chr: New file.
74346         * lib/unistr/u8-chr.c: New file.
74347         * lib/unistr/u16-chr.c: New file.
74348         * lib/unistr/u32-chr.c: New file.
74349
74350         * modules/unistr/u8-cmp: New file.
74351         * modules/unistr/u16-cmp: New file.
74352         * modules/unistr/u32-cmp: New file.
74353         * lib/unistr/u8-cmp.c: New file.
74354         * lib/unistr/u16-cmp.c: New file.
74355         * lib/unistr/u32-cmp.c: New file.
74356
74357         * modules/unistr/u8-cpy: New file.
74358         * modules/unistr/u16-cpy: New file.
74359         * modules/unistr/u32-cpy: New file.
74360         * lib/unistr/u8-cpy.c: New file.
74361         * lib/unistr/u16-cpy.c: New file.
74362         * lib/unistr/u32-cpy.c: New file.
74363         * lib/unistr/u-cpy.h: New file.
74364
74365         * modules/unistr/u8-cpy-alloc: New file.
74366         * modules/unistr/u16-cpy-alloc: New file.
74367         * modules/unistr/u32-cpy-alloc: New file.
74368         * lib/unistr/u8-cpy-alloc.c: New file.
74369         * lib/unistr/u16-cpy-alloc.c: New file.
74370         * lib/unistr/u32-cpy-alloc.c: New file.
74371         * lib/unistr/u-cpy-alloc.h: New file.
74372
74373         * modules/unistr/u8-endswith: New file.
74374         * modules/unistr/u16-endswith: New file.
74375         * modules/unistr/u32-endswith: New file.
74376         * lib/unistr/u8-endswith.c: New file.
74377         * lib/unistr/u16-endswith.c: New file.
74378         * lib/unistr/u32-endswith.c: New file.
74379         * lib/unistr/u-endswith.h: New file.
74380
74381         * modules/unistr/u8-mblen: New file.
74382         * modules/unistr/u16-mblen: New file.
74383         * modules/unistr/u32-mblen: New file.
74384         * lib/unistr/u8-mblen.c: New file.
74385         * lib/unistr/u16-mblen.c: New file.
74386         * lib/unistr/u32-mblen.c: New file.
74387
74388         * modules/unistr/u8-mbtouc: New file.
74389         * modules/unistr/u16-mbtouc: New file.
74390         * modules/unistr/u32-mbtouc: New file.
74391         * lib/unistr/u8-mbtouc.c: New file.
74392         * lib/unistr/u16-mbtouc.c: New file.
74393         * lib/unistr/u32-mbtouc.c: New file.
74394
74395         * modules/unistr/u8-mbtouc-safe: New file.
74396         * modules/unistr/u16-mbtouc-safe: New file.
74397         * modules/unistr/u32-mbtouc-safe: New file.
74398         * lib/unistr/u8-mbtouc-safe.c: New file.
74399         * lib/unistr/u16-mbtouc-safe.c: New file.
74400         * lib/unistr/u32-mbtouc-safe.c: New file.
74401
74402         * modules/unistr/u8-move: New file.
74403         * modules/unistr/u16-move: New file.
74404         * modules/unistr/u32-move: New file.
74405         * lib/unistr/u8-move.c: New file.
74406         * lib/unistr/u16-move.c: New file.
74407         * lib/unistr/u32-move.c: New file.
74408         * lib/unistr/u-move.h: New file.
74409
74410         * modules/unistr/u8-next: New file.
74411         * modules/unistr/u16-next: New file.
74412         * modules/unistr/u32-next: New file.
74413         * lib/unistr/u8-next.c: New file.
74414         * lib/unistr/u16-next.c: New file.
74415         * lib/unistr/u32-next.c: New file.
74416
74417         * modules/unistr/u8-prev: New file.
74418         * modules/unistr/u16-prev: New file.
74419         * modules/unistr/u32-prev: New file.
74420         * lib/unistr/u8-prev.c: New file.
74421         * lib/unistr/u16-prev.c: New file.
74422         * lib/unistr/u32-prev.c: New file.
74423
74424         * modules/unistr/u8-set: New file.
74425         * modules/unistr/u16-set: New file.
74426         * modules/unistr/u32-set: New file.
74427         * lib/unistr/u8-set.c: New file.
74428         * lib/unistr/u16-set.c: New file.
74429         * lib/unistr/u32-set.c: New file.
74430         * lib/unistr/u-set.h: New file.
74431
74432         * modules/unistr/u8-startswith: New file.
74433         * modules/unistr/u16-startswith: New file.
74434         * modules/unistr/u32-startswith: New file.
74435         * lib/unistr/u8-startswith.c: New file.
74436         * lib/unistr/u16-startswith.c: New file.
74437         * lib/unistr/u32-startswith.c: New file.
74438         * lib/unistr/u-startswith.h: New file.
74439
74440         * modules/unistr/u8-stpcpy: New file.
74441         * modules/unistr/u16-stpcpy: New file.
74442         * modules/unistr/u32-stpcpy: New file.
74443         * lib/unistr/u8-stpcpy.c: New file.
74444         * lib/unistr/u16-stpcpy.c: New file.
74445         * lib/unistr/u32-stpcpy.c: New file.
74446         * lib/unistr/u-stpcpy.h: New file.
74447
74448         * modules/unistr/u8-stpncpy: New file.
74449         * modules/unistr/u16-stpncpy: New file.
74450         * modules/unistr/u32-stpncpy: New file.
74451         * lib/unistr/u8-stpncpy.c: New file.
74452         * lib/unistr/u16-stpncpy.c: New file.
74453         * lib/unistr/u32-stpncpy.c: New file.
74454         * lib/unistr/u-stpncpy.h: New file.
74455
74456         * modules/unistr/u8-strcat: New file.
74457         * modules/unistr/u16-strcat: New file.
74458         * modules/unistr/u32-strcat: New file.
74459         * lib/unistr/u8-strcat.c: New file.
74460         * lib/unistr/u16-strcat.c: New file.
74461         * lib/unistr/u32-strcat.c: New file.
74462         * lib/unistr/u-strcat.h: New file.
74463
74464         * modules/unistr/u8-strchr: New file.
74465         * modules/unistr/u16-strchr: New file.
74466         * modules/unistr/u32-strchr: New file.
74467         * lib/unistr/u8-strchr.c: New file.
74468         * lib/unistr/u16-strchr.c: New file.
74469         * lib/unistr/u32-strchr.c: New file.
74470
74471         * modules/unistr/u8-strcmp: New file.
74472         * modules/unistr/u16-strcmp: New file.
74473         * modules/unistr/u32-strcmp: New file.
74474         * lib/unistr/u8-strcmp.c: New file.
74475         * lib/unistr/u16-strcmp.c: New file.
74476         * lib/unistr/u32-strcmp.c: New file.
74477
74478         * modules/unistr/u8-strcpy: New file.
74479         * modules/unistr/u16-strcpy: New file.
74480         * modules/unistr/u32-strcpy: New file.
74481         * lib/unistr/u8-strcpy.c: New file.
74482         * lib/unistr/u16-strcpy.c: New file.
74483         * lib/unistr/u32-strcpy.c: New file.
74484         * lib/unistr/u-strcpy.h: New file.
74485
74486         * modules/unistr/u8-strcspn: New file.
74487         * modules/unistr/u16-strcspn: New file.
74488         * modules/unistr/u32-strcspn: New file.
74489         * lib/unistr/u8-strcspn.c: New file.
74490         * lib/unistr/u16-strcspn.c: New file.
74491         * lib/unistr/u32-strcspn.c: New file.
74492         * lib/unistr/u-strcspn.h: New file.
74493
74494         * modules/unistr/u8-strdup: New file.
74495         * modules/unistr/u16-strdup: New file.
74496         * modules/unistr/u32-strdup: New file.
74497         * lib/unistr/u8-strdup.c: New file.
74498         * lib/unistr/u16-strdup.c: New file.
74499         * lib/unistr/u32-strdup.c: New file.
74500         * lib/unistr/u-strdup.h: New file.
74501
74502         * modules/unistr/u8-strlen: New file.
74503         * modules/unistr/u16-strlen: New file.
74504         * modules/unistr/u32-strlen: New file.
74505         * lib/unistr/u8-strlen.c: New file.
74506         * lib/unistr/u16-strlen.c: New file.
74507         * lib/unistr/u32-strlen.c: New file.
74508         * lib/unistr/u-strlen.h: New file.
74509
74510         * modules/unistr/u8-strmblen: New file.
74511         * modules/unistr/u16-strmblen: New file.
74512         * modules/unistr/u32-strmblen: New file.
74513         * lib/unistr/u8-strmblen.c: New file.
74514         * lib/unistr/u16-strmblen.c: New file.
74515         * lib/unistr/u32-strmblen.c: New file.
74516
74517         * modules/unistr/u8-strmbtouc: New file.
74518         * modules/unistr/u16-strmbtouc: New file.
74519         * modules/unistr/u32-strmbtouc: New file.
74520         * lib/unistr/u8-strmbtouc.c: New file.
74521         * lib/unistr/u16-strmbtouc.c: New file.
74522         * lib/unistr/u32-strmbtouc.c: New file.
74523
74524         * modules/unistr/u8-strncat: New file.
74525         * modules/unistr/u16-strncat: New file.
74526         * modules/unistr/u32-strncat: New file.
74527         * lib/unistr/u8-strncat.c: New file.
74528         * lib/unistr/u16-strncat.c: New file.
74529         * lib/unistr/u32-strncat.c: New file.
74530         * lib/unistr/u-strncat.h: New file.
74531
74532         * modules/unistr/u8-strncmp: New file.
74533         * modules/unistr/u16-strncmp: New file.
74534         * modules/unistr/u32-strncmp: New file.
74535         * lib/unistr/u8-strncmp.c: New file.
74536         * lib/unistr/u16-strncmp.c: New file.
74537         * lib/unistr/u32-strncmp.c: New file.
74538
74539         * modules/unistr/u8-strncpy: New file.
74540         * modules/unistr/u16-strncpy: New file.
74541         * modules/unistr/u32-strncpy: New file.
74542         * lib/unistr/u8-strncpy.c: New file.
74543         * lib/unistr/u16-strncpy.c: New file.
74544         * lib/unistr/u32-strncpy.c: New file.
74545         * lib/unistr/u-strncpy.h: New file.
74546
74547         * modules/unistr/u8-strnlen: New file.
74548         * modules/unistr/u16-strnlen: New file.
74549         * modules/unistr/u32-strnlen: New file.
74550         * lib/unistr/u8-strnlen.c: New file.
74551         * lib/unistr/u16-strnlen.c: New file.
74552         * lib/unistr/u32-strnlen.c: New file.
74553         * lib/unistr/u-strnlen.h: New file.
74554
74555         * modules/unistr/u8-strpbrk: New file.
74556         * modules/unistr/u16-strpbrk: New file.
74557         * modules/unistr/u32-strpbrk: New file.
74558         * lib/unistr/u8-strpbrk.c: New file.
74559         * lib/unistr/u16-strpbrk.c: New file.
74560         * lib/unistr/u32-strpbrk.c: New file.
74561         * lib/unistr/u-strpbrk.h: New file.
74562
74563         * modules/unistr/u8-strrchr: New file.
74564         * modules/unistr/u16-strrchr: New file.
74565         * modules/unistr/u32-strrchr: New file.
74566         * lib/unistr/u8-strrchr.c: New file.
74567         * lib/unistr/u16-strrchr.c: New file.
74568         * lib/unistr/u32-strrchr.c: New file.
74569
74570         * modules/unistr/u8-strspn: New file.
74571         * modules/unistr/u16-strspn: New file.
74572         * modules/unistr/u32-strspn: New file.
74573         * lib/unistr/u8-strspn.c: New file.
74574         * lib/unistr/u16-strspn.c: New file.
74575         * lib/unistr/u32-strspn.c: New file.
74576         * lib/unistr/u-strspn.h: New file.
74577
74578         * modules/unistr/u8-strstr: New file.
74579         * modules/unistr/u16-strstr: New file.
74580         * modules/unistr/u32-strstr: New file.
74581         * lib/unistr/u8-strstr.c: New file.
74582         * lib/unistr/u16-strstr.c: New file.
74583         * lib/unistr/u32-strstr.c: New file.
74584         * lib/unistr/u-strstr.h: New file.
74585
74586         * modules/unistr/u8-strtok: New file.
74587         * modules/unistr/u16-strtok: New file.
74588         * modules/unistr/u32-strtok: New file.
74589         * lib/unistr/u8-strtok.c: New file.
74590         * lib/unistr/u16-strtok.c: New file.
74591         * lib/unistr/u32-strtok.c: New file.
74592         * lib/unistr/u-strtok.h: New file.
74593
74594         * modules/unistr/u8-uctomb: New file.
74595         * modules/unistr/u16-uctomb: New file.
74596         * modules/unistr/u32-uctomb: New file.
74597         * lib/unistr/u8-uctomb.c: New file.
74598         * lib/unistr/u16-uctomb.c: New file.
74599         * lib/unistr/u32-uctomb.c: New file.
74600
74601         * MODULES.html.sh (Unicode string functions): Add the new modules.
74602
74603 2007-01-08  Bruno Haible  <bruno@clisp.org>
74604
74605         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74606         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74607         subdirectories.
74608
74609 2007-01-08  Karl Berry  <karl@gnu.org>
74610
74611         * doc/error.texi: mention that main() fns must set program_name
74612         when progname is used.
74613
74614 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74617         WCTYPE_H is empty, for the benefit of builds from non-distclean
74618         directories.  Problem reported by Eric Blake in
74619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74620
74621 2007-01-08  Bruno Haible  <bruno@clisp.org>
74622
74623         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74624         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74625         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74626         PROVIDE_CANONICALIZE_FILENAME_MODE.
74627         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74628
74629 2007-01-08  Bruno Haible  <bruno@clisp.org>
74630
74631         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74632         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74633         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74634         * lib/fts.c: Likewise.
74635         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74636
74637 2006-12-25  Bruno Haible  <bruno@clisp.org>
74638
74639         * modules/utf8-ucs4-safe: New file.
74640         * lib/utf8-ucs4-safe.h: New file.
74641         * lib/unistr/utf8-ucs4-safe.c: New file.
74642
74643         * modules/utf16-ucs4-safe: New file.
74644         * lib/utf16-ucs4-safe.h: New file.
74645         * lib/unistr/utf16-ucs4-safe.c: New file.
74646
74647         * MODULES.html.sh (Unicode string functions): Add the new modules.
74648
74649 2007-01-08  Bruno Haible  <bruno@clisp.org>
74650
74651         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74652         (Depends-on): Add unitypes.
74653         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74654         (u8_mbtouc_aux): Move out to separate file.
74655         (u8_mbtouc): Use ucs4_t, uint8_t types.
74656         * lib/unistr/utf8-ucs4.c: New file.
74657
74658         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74659         (Depends-on): Add unitypes.
74660         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74661         (u16_mbtouc_aux): Move out to separate file.
74662         (u16_mbtouc): Use ucs4_t, uint16_t types.
74663         * lib/unistr/utf16-ucs4.c: New file.
74664
74665         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74666         (Depends-on): Add unitypes.
74667         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74668         (u8_uctomb_aux): Move out to separate file.
74669         (u8_uctomb): Use ucs4_t, uint8_t types.
74670         * lib/unistr/ucs4-utf8.c: New file.
74671
74672         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74673         (Depends-on): Add unitypes.
74674         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74675         (u16_uctomb_aux): Move out to separate file.
74676         (u16_uctomb): Use ucs4_t, uint16_t types.
74677         * lib/unistr/ucs4-utf16.c: New file.
74678
74679 2006-12-25  Bruno Haible  <bruno@clisp.org>
74680
74681         * modules/unitypes: New file.
74682         * lib/unitypes.h: New file.
74683         * MODULES.html.sh (func_all_modules): New section "Unicode string
74684         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74685         this section. Add unitypes.
74686
74687 2007-01-08  Bruno Haible  <bruno@clisp.org>
74688
74689         Avoid variable names that conflict with those from libtool.
74690         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74691         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74692         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74693         library_names_spec to acl_library_names_spec, hardcode_* to
74694         acl_hardcode_*.
74695         Reported by Ralf Wildenhues.
74696
74697 2007-01-08  Bruno Haible  <bruno@clisp.org>
74698
74699         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74700         definition.
74701         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74702         definition.
74703         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74704         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74705         definition.
74706         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74707         definition.
74708         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74709         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74710         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74711         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74712         definition.
74713         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74714         definition.
74715         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74716         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74717         GC_USE_<algorithm>.
74718         * lib/gc-libgcrypt.c: Likewise.
74719         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74720         * modules/gc-arctwo (configure.ac): Likewise.
74721         * modules/gc-des (configure.ac): Likewise.
74722         * modules/gc-hmac-md5 (configure.ac): Likewise.
74723         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74724         * modules/gc-md2 (configure.ac): Likewise.
74725         * modules/gc-md4 (configure.ac): Likewise.
74726         * modules/gc-md5 (configure.ac): Likewise.
74727         * modules/gc-random (configure.ac): Likewise.
74728         * modules/gc-rijndael (configure.ac): Likewise.
74729         * modules/gc-sha1 (configure.ac): Likewise.
74730
74731 2007-01-08  Bruno Haible  <bruno@clisp.org>
74732
74733         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74734         macro definition.
74735         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74736         definition.
74737         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74738         definition.
74739         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74740         * modules/fcntl-safer (configure.ac): Likewise.
74741         * modules/fopen-safer (configure.ac): Likewise.
74742         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74743         GNULIB_FWRITEERROR macro definition.
74744
74745 2007-01-08  Bruno Haible  <bruno@clisp.org>
74746
74747         * m4/gnulib-common.m4: New file.
74748         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74749         (func_get_filelist): Add m4/gnulib-common.m4.
74750
74751 2007-01-08  Bruno Haible  <bruno@clisp.org>
74752
74753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74754         command.
74755
74756 2007-01-08  Jim Meyering  <jim@meyering.net>
74757
74758         Use a more robust test for a "can't happen" condition.
74759         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74760         narrowed the st_size value.  Presuming the "can't happen" condition
74761         is true, that narrowing could conceivably convert an invalid st_size
74762         value into a valid one.  Instead, use a change based on Matthew
74763         Woehlke's original patch.
74764
74765         Slight readability improvement: use an assert-like macro
74766         in place of literal "abort ()" uses.
74767         * lib/fts.c (fts_assert): Define.
74768         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74769         Use this macro instead of a bare 'abort'.
74770
74771 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74774         simply work around them.
74775         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74776         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74777         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74778         declaring.
74779         Don't bother to define as macros, since the standard doesn't require it.
74780         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74781         longer worry about IRIX 5.3.
74782         (HAVE_WCTYPE_CTMP_BUG): Remove.
74783
74784 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74787         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74788         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74789         Problems reported by Georg Schwarz for IRIX 5.3.
74790
74791         * gnulib-tool (autoconf_minversion): Take the maximum version number
74792         found, not the minimum.  Problem reported by James Youngman.
74793
74794 2007-01-03  Karl Berry  <karl@gnu.org>
74795
74796         * doc/error.texi: new file, explaining interaction with progname.
74797         * doc/gnulib.texi: include it.  Update copyright.
74798
74799 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74800
74801         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74802         AC_CANONICAL_HOST, to improve autobuild outputs.
74803
74804 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74805             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74806
74807         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74808         sockets, server sockets, and other file descriptors.  Count errors
74809         to compute the return value.  Reorder the code a bit to be easier
74810         to follow.  Don't set event bits that were not requested (except
74811         POLLERR and POLLHUP).
74812
74813 2007-01-01  Bruno Haible  <bruno@clisp.org>
74814
74815         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74816
74817 2007-01-03  Jim Meyering  <jim@meyering.net>
74818
74819         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74820
74821 2007-01-02  Bruno Haible  <bruno@clisp.org>
74822
74823         * modules/settime (Include): Require timespec.h.
74824         * modules/nanosleep (Include): Likewise.
74825
74826 2007-01-01  Bruno Haible  <bruno@clisp.org>
74827
74828         * gnulib-tool (func_emit_copyright_notice): Bump year.
74829         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74830
74831 2007-01-01  Bruno Haible  <bruno@clisp.org>
74832
74833         Improve support for OpenBSD.
74834         * build-aux/config.rpath (libname_spec): Export.
74835         (library_names_spec): New variable. Export.
74836         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74837         library_names_spec from the config.rpath output. Locate shared library
74838         through the name pattern in library_names_spec.
74839
74840 2007-01-01  Eric Blake  <ebb9@byu.net>
74841
74842         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74843
74844 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74847         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74848         assume the C locale, and avoid an "eval" that could cause trouble.
74849         Problem with SORT reported by Bob Proulx.
74850
74851         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74852         Define.  Trivial patch from Henning Nielsen Lund, originally
74853         sent to bug-grep@gnu.org today.
74854
74855 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74858         struct stat.  Problem reported by Henning Nielsen Lund.
74859         * lib/acl.c: Include acl.h first, to check interface.  Don't
74860         bother to include sys/types.h and sys/stat.h again.
74861
74862 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         Import the following change from libc; problem reported by
74865         Sven Verdoolaege.
74866
74867         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74868
74869         [BZ #1373]
74870         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74871
74872 2006-12-28  Jim Meyering  <jim@meyering.net>
74873
74874         * build-aux/announce-gen: Do not assume that the package
74875         builds any of tar.gz, tar.bz2, and .xdelta files.
74876         Suggestion from Simon Josefsson.
74877
74878 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74879
74880         * modules/announce-gen: New file.
74881
74882 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74885         handles its gotchas now.
74886         * lib/mbswidth.c: Likewise.
74887         * lib/wcwidth.h: Likewise.
74888         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74889         and iswcntrl; the wctype module does this stuff now.
74890         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74892         * modules/mbchar (Depends-on): Add wctype.
74893         * modules/mbswidth (Depends-on): Likewise.
74894         * modules/wcwidth (Depends-on): Likewise.
74895
74896 2006-12-27  Eric Blake  <ebb9@byu.net>
74897
74898         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74899         module uses more than what <wctype.h> is required to provide.
74900
74901 2006-12-26  Eric Blake  <ebb9@byu.net>
74902
74903         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74904
74905 2006-12-26  Eric Blake  <ebb9@byu.net>
74906
74907         * modules/absolute-header: New module.
74908         * modules/fcntl (Depends-on): Depend on it.
74909         * modules/inttypes (Depends-on): Likewise.
74910         * modules/stdint (Depends-on): Likewise.
74911         * modules/sys_stat (Depends-on): Likewise.
74912         * modules/wctype (Depends-on): Likewise.
74913         * MODULES.html.sh (Support for building libraries and
74914         executables): Document it.
74915
74916 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * gnulib-tool (SED): Remove, undoing previous change.
74919         The problem was that it broke coreutils on Solaris, because
74920         "sed --posix" leaked into a makefile.
74921         (sed): New alias, if 'alias' and GNU sed.
74922
74923 2006-12-24  Jim Meyering  <jim@meyering.net>
74924
74925         Work around an fchownat bug in glibc-2.4:
74926         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74927         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74928         in spite of the -P option.
74929         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74930         New macros.
74931         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74932         * modules/openat (Files): Add lib/fchownat.c.
74933         * lib/openat.c (fchownat): Don't define here.  Move to...
74934         * lib/fchownat.c: ...this new file.
74935
74936 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         Fix bug reported by Bruno Haible in
74939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74940         where quotearg.c didn't compile on Mac OS X 10.2 because it
74941         lacks <wchar.h> and wint_t.
74942         * lib/wctype_.h (__wctype_wint_t): New type.
74943         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74944         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74945         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74946         Arg is now of type __wctype_wint_t, not wint_t.
74947         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74948         substitute HAVE_WINT_T.
74949         * modules/wctype (Files): Add m4/wint_t.m4.
74950         (wctype.h): Substitute HAVE_WINT_T.
74951
74952 2006-12-23  Bruno Haible  <bruno@clisp.org>
74953
74954         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74955
74956 2006-12-23  Bruno Haible  <bruno@clisp.org>
74957
74958         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74959         S_ISLNK.
74960         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74961         mingw.
74962
74963 2006-12-22  Bruno Haible  <bruno@clisp.org>
74964
74965         * lib/copy-file.c: Include acl.h.
74966         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74967         Close the file descriptors only after being done with copy_acl.
74968         * modules/copy-file (Depends-on): Add acl.
74969
74970 2006-12-22  Bruno Haible  <bruno@clisp.org>
74971
74972         * gnulib-tool (SED): New variable.
74973         Use $SED instead of sed everywhere.
74974
74975 2006-12-22  Bruno Haible  <bruno@clisp.org>
74976
74977         * modules/no-c++: New file.
74978         * m4/no-c++.m4: New file.
74979         * MODULES.html.sh (Support for building libraries and executables):
74980         Add no-c++.
74981
74982 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74985         Include <limits.h>, and use its INT_MAX to rewrite the
74986         j loop so that it does not overflow 'int'.  Problem reported by
74987         Ralf Wildenhues in
74988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74989         Play it safe by shifting left by 1 rather than multiplying by 2,
74990         as GCC is less likely to optimize this away when the value
74991         is signed (when it assumes overflow leads to undefined behavior).
74992         Also, don't assume time_t uses two's complement.
74993
74994 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * MODULES.html.sh: New module wctype.
74997         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74998         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74999         <wctype.h>, since the new wctype module should fix this.
75000         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75001         the wctype module should arrange for it.
75002         * lib/regex_internal.h: Likewise.
75003         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75004         since the wctype module should handle this now.
75005         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75006         * modules/fnmatch (Depends-on): Add wctype.
75007         * modules/quotearg (Depends-on): Likewise.
75008         * modules/regex (Depends-on): Likewise.
75009
75010 2006-12-19  Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75013         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75014
75015 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75016
75017         * modules/savewd (Depends-on): Fix dependency on fcntl.
75018
75019 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75022         conforms to C99, rather than relying on the user's environment
75023         setting of STDINT_H.
75024
75025 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75026         and Eric Blake  <ebb9@byu.net>
75027
75028         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75029         This is more consistent with the other defines here.
75030         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75031         Port to z/OS.  Problem reported by Paul Gilmartin.
75032         Change local vars to use gl_ prefix rather than ac_.
75033         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75034         with other defines.
75035         * modules/double-slash-root: New module.
75036         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75037         (Depends-on): Add double-slash-root.
75038         * MODULES.html.sh (File system functions): Mention new module.
75039
75040 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75043         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75044         This is for the benefit of gzip, which doesn't do i18n.
75045
75046 2006-12-12  Jim Meyering  <jim@meyering.net>
75047
75048         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75049         Reported by Andreas Schwab <schwab@suse.de>.
75050
75051 2006-12-12  Bruno Haible  <bruno@clisp.org>
75052
75053         Merge these changes.
75054         2006-09-05  Bruno Haible  <bruno@clisp.org>
75055         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75056         iconv_alloc succeeded.
75057         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75058         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75059         test for " && dest " at the end - dest is always != NULL there. Call
75060         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75061         with 2xNULL arguments, also to flush the state storage. Handle the
75062         IRIX iconv behaviour. Realloc the final result, to throw away unused
75063         memory.
75064
75065 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75068         and fchmodat unconditionally, since glibc 2.4 has them.
75069         Problem reported by Arkadiusz Miskiewicz.
75070
75071 2006-12-10  Bruno Haible  <bruno@clisp.org>
75072
75073         * gnulib-tool (func_import): Show the include files only for those
75074         modules that are copied and specified.
75075         Reported by Karl Berry.
75076
75077 2006-12-08  Jim Meyering  <jim@meyering.net>
75078
75079         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75080         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75081
75082         * build-aux/announce-gen: Add two new options, both optional:
75083         --bootstrap-tools=TOOL_LIST
75084               a comma-separated list of tools, e.g.,
75085               autoconf,automake,bison,gnulib
75086         --gnulib-snapshot-date=DATE
75087               if gnulib is in the bootstrap tool list,
75088               then report this as the snapshot date.
75089               If not specified, use the current date/time.
75090               If you specify a date here, be sure it's UTC.
75091
75092 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75093
75094         * tests/test-argp-2.sh: Fix test to match actual output.
75095         (func_compare): Fix sed script to be portable.
75096
75097 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75100         workaround for this case.  It is not autoconfigured now; offhand
75101         it's hard to see how to autoconfigure it.
75102
75103 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75106         a directory that is about to be chowned.  Such a directory's
75107         initial file permissions should permit the owner only and this
75108         should not be changed until after the chown, since the group and
75109         other bits would be incorrect if they granted permission before
75110         the chown.
75111
75112         Fix porting problem for iswctype reported by Georg Schwarz in:
75113         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75114         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75115         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75116         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75117         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75118
75119 2006-12-03  Jim Meyering  <jim@meyering.net>
75120
75121         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75122         p->fts_statp may not yet be defined.
75123         (fts_read): Instead, set it in the caller, once p->fts_statp is
75124         sure to be defined, and corresponds to a top-level directory.
75125         This bug made du -x fail.  Here's the coreutils test case:
75126         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75127         Reported by Mike Frysinger.
75128
75129 2006-12-01  Jim Meyering  <jim@meyering.net>
75130
75131         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75132         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75133         Reported by Simon Josefsson.
75134
75135 2006-11-30  Jim Meyering  <jim@meyering.net>
75136
75137         * m4/warning.m4: Use the all-permissive copyright notice
75138         recommended by RMS (rather than LGPL).
75139         * m4/vararrays.m4: Likewise.
75140         * m4/flexmember.m4: Likewise.
75141
75142 2006-11-29  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75145         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75146         using +=.
75147         Reported by Simon Josefsson <simon@josefsson.org>.
75148
75149 2006-11-28  James Youngman <jay@gnu.org>
75150
75151         * README: Advise users that they might find the bug-gnulib@gnu.org
75152         and autotools-announce@gnu.org mailing lists useful.
75153
75154 2006-11-28  Bruno Haible  <bruno@clisp.org>
75155
75156         * m4/ptrdiff_max.m4: Remove file.
75157
75158 2006-11-21  Bruno Haible  <bruno@clisp.org>
75159
75160         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75161         _AC_COMPUTE_INT.
75162         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75163         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75164         _AC_COMPUTE_INT.
75165         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75166         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75167         _AC_COMPUTE_INT.
75168         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75169
75170 2006-11-28  Jim Meyering  <jim@meyering.net>
75171
75172         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75173         warning from "gcc -Wshadow" about shadowing the builtin.
75174
75175 2006-11-27  Bruno Haible  <bruno@clisp.org>
75176
75177         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75178         _AC_COMPUTE_INT.
75179         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75180
75181 2006-11-27  Bruno Haible  <bruno@clisp.org>
75182             Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75185
75186 2006-11-26  Bruno Haible  <bruno@clisp.org>
75187
75188         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75189         noinst_LTLIBRARIES.
75190
75191 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75192             Bruno Haible  <bruno@clisp.org>
75193
75194         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75195         if compiling with "gcc -ansi".
75196
75197 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         Fix some incompatibilities with gcc -ansi -pedantic.
75200         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75201         if compiling pedantically with GCC, unless it's C99 or later.
75202         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75203         it mishandles gcc -ansi -pedantic as well.
75204         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75205         if gcc -pedantic.
75206         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75207         initializers for struct if -pedantic, unless it's C99 or later.
75208
75209 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75210
75211         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75212         Don't close an fd more than once. Identical atimes indicate
75213         success, not failure.
75214
75215 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75216
75217         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75218
75219 2006-11-23  Jim Meyering  <jim@meyering.net>
75220
75221         * build-aux/announce-gen: New file.  From coreutils.
75222
75223 2006-11-22  Jim Meyering  <jim@meyering.net>
75224
75225         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75226         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75227         (fts_read): Use a temporary to narrow the overused st_size member
75228         before using it in a switch statement.  Reported by Matthew Woehlke.
75229
75230         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75231         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75232
75233 2006-11-20  Bruno Haible  <bruno@clisp.org>
75234
75235         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75236         changequote instead of pairs of brackets.
75237         Reported by Andreas Schwab <schwab@suse.de>.
75238
75239 2006-11-21  Jim Meyering  <jim@meyering.net>
75240
75241         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75242         so as to remain compatible with older compilers.
75243         Patch from Michael Deutschmann.
75244
75245 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * MODULES.html.sh (File system functions): Add openat.
75248
75249         * lib/openat.h (rpl_fstatat): New macro, if
75250         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75251         (fstatat): Define to rpl_fstatat under the same conditions,
75252         unless COMPILING_FSTATAT.
75253         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75254         seems to have the bug.
75255         * lib/fstatat.c: New file.
75256         * modules/openat (Files): Add it.
75257
75258 2006-11-20  Bruno Haible  <bruno@clisp.org>
75259
75260         * Makefile: New file.
75261
75262 2006-11-20  Jim Meyering  <jim@meyering.net>
75263
75264         The beginnings of syntax-related checks for gnulib.
75265         * lib/Makefile: New file.
75266         * lib/t-idcache: New script.  Ensure that the two halves of
75267         idcache.c stay in sync.
75268
75269         * lib/idcache.c: Adjust comments in user- and group- portions to
75270         be more accurate, and to be consistent with one another.
75271
75272 2006-11-20  Jim Meyering  <jim@meyering.net>
75273
75274         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75275         continue using the flexible array member (thus, this module performs
75276         half as many malloc calls), with the addition that...
75277         (getgroup, getuser): Consistently record a non-match via an empty
75278         "name" string, and map an empty string match to a NULL return value.
75279         * modules/idcache (Depends-on): Re-add flexmember.
75280
75281         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75282         (getuidbyname, getgroup, getgidbyname): Likewise.
75283
75284         Use cleaner syntax: NULL rather than 0.
75285         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75286
75287 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75290         It mishandled the case where the group was missing.
75291         Problem reported by Greg Schafer.
75292         * modules/idcache: Likewise.
75293
75294 2006-11-18  Jim Meyering  <jim@meyering.net>
75295
75296         * check-module (%exempt_header): Add exception for some
75297         conditionally-included headers.
75298
75299         * modules/i-ring (Depends-on): Add verify.
75300         (License): Change to LGPL.
75301
75302 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75305         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75306         and inttostr.h.  Use snprintf rather than uinttostr, so that
75307         LGPLed code doesn't depend on GPLed.
75308
75309 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * modules/inline (License): Change from GPL to LGPL.
75312
75313 2006-11-17  Jim Meyering  <jim@meyering.net>
75314
75315         * modules/d-type (License): Switch to LGPL.
75316
75317 2006-11-15  Bruno Haible  <bruno@clisp.org>
75318
75319         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75320
75321 2006-11-15  Eric Blake  <ebb9@byu.net>
75322
75323         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75324         the module dependency.
75325
75326 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75327             Bruno Haible  <bruno@clisp.org>
75328
75329         * gnulib-tool (func_create_testdir): Add license consistency check.
75330
75331 2006-11-15  Eric Blake  <ebb9@byu.net>
75332
75333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75334         random "(cached)" in configure output.
75335
75336 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75337
75338         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75339         test for conforming inttypes.h is both announced and cached.
75340
75341         * MODULES.html.sh (seen_modules, seen_files): New variables.
75342         (func_module): Rewrite to use a few less gnulib-tool and sed
75343         invocations.  Avoid a couple of quadratic algorithms for ...
75344         (missed_modules, missed_files): ... these, with ...
75345         (func_append, func_tmpdir): ... these new functions, from
75346         gnulib-tool.  Analogously, install traps for cleanup.
75347
75348         * tests/test-gc.c (main): Remove unused variables.
75349         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75350
75351 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * modules/inttostr (License): Change to LGPL.
75354
75355 2006-11-14  Eric Blake  <ebb9@byu.net>
75356
75357         * modules/tempname (License): Change to LGPL.
75358
75359 2006-11-14  Eric Blake  <ebb9@byu.net>
75360
75361         * doc/functions.texi (Function Portability): *printf functions on
75362         Cygwin now understand all POSIX size specifiers.
75363
75364 2006-11-14  Bruno Haible  <bruno@clisp.org>
75365
75366         * modules/c-ctype (License): Change to LGPL.
75367
75368 2006-11-12  Bruno Haible  <bruno@clisp.org>
75369
75370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75371         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75372         for GNOME libraries, for which the include files are installed in
75373         subdirectories of $prefix/include.
75374
75375 2006-11-12  Bruno Haible  <bruno@clisp.org>
75376
75377         * m4/lib-link.m4: Require at least autoconf-2.54.
75378         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75379         name to underscores for the --with option.
75380
75381 2006-11-13  Bruno Haible  <bruno@clisp.org>
75382
75383         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75384         the tests directory.
75385         Reported by Ralf Wildenhues.
75386
75387 2006-11-13  Bruno Haible  <bruno@clisp.org>
75388
75389         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75390         (func_emit_initmacro_end): Undo the override here.
75391         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75392         Works around the famous automake error in coreutils.
75393
75394 2006-11-13  Eric Blake  <ebb9@byu.net>
75395
75396         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75397         element, not its node.
75398
75399 2006-11-12  Bruno Haible  <bruno@clisp.org>
75400
75401         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75402         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75403
75404 2006-11-12  Bruno Haible  <bruno@clisp.org>
75405
75406         * gnulib-tool: New option --local-symlink.
75407         (func_usage): Document it.
75408         (lsymbolic): New variable.
75409         (func_import, func_create_testdir): If --symlink was not specified,
75410         test whether --local-symlink was specified and the file comes from
75411         the local_gnulib_dir.
75412
75413 2006-11-12  Bruno Haible  <bruno@clisp.org>
75414
75415         * gnulib-tool (func_ln): New function.
75416         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75417
75418 2006-11-12  Bruno Haible  <bruno@clisp.org>
75419
75420         Finish support for source files in subdirectories.
75421         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75422         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75423         AUTOMAKE_OPTIONS.
75424         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75425
75426 2006-11-12  Bruno Haible  <bruno@clisp.org>
75427
75428         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75429         EXTRA_lib_SOURCES augmentation.
75430         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75431
75432 2006-11-12  Jim Meyering  <jim@meyering.net>
75433
75434         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75435         file descriptors.  This also averts a failure on systems with
75436         native openat support when a traversed directory lacks "x" access.
75437         * lib/fts_.h: Include "i-ring.h"
75438         (struct FTS) [fts_fd_ring]: New member.
75439         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75440         (FCHDIR): Add parentheses.
75441         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75442         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75443         When descending, rather than simply closing the previous
75444         fts_cwd_fd value, push that file descriptor onto the ring.
75445         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75446         (fts_open): Initialize the new fd_ring member.
75447         (fts_close): Clear the ring.
75448         (fts_safe_changedir): When possible, use our new fd_ring to skip
75449         the diropen and fstat and dev/ino comparison that would normally
75450         accompany a virtual `chdir ("..")'.
75451
75452         * modules/fts (Depends-on): Add i-ring.
75453         * modules/i-ring: New module.
75454         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75455         * m4/i-ring.m4: New file.
75456
75457 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75458
75459         * gnulib-tool (func_create_testdir): Fix replacement of
75460         `build-aux' in configure.ac.  Run autotools in gltests
75461         subdirectory.
75462         (func_create_testdir, func_create_megatestdir, test): There is
75463         no need for '--force' in most autotool invocations in a new
75464         tree.  Actually fail the whole test if any of the tools, or the
75465         configure or make stages fail.
75466
75467         Sync from Automake.
75468         * build-aux/gnupload: Revert last change.  Add pointer to upload
75469         instructions of the GNU Maintenance Instructions.
75470         Suggestion by Karl Berry.
75471
75472 2006-11-10  Jim Meyering  <jim@meyering.net>
75473
75474         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75475
75476 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75477
75478         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75479         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75480         (bind_textdomain_codeset) [! ENABLE_NLS]:
75481         Evaluate all the arguments.  That way, callers get compatible behavior
75482         if the arguments have side effects.  Also, it avoids some GCC
75483         diagnostics in some cases; Joel E. Denny reported problems when Bison
75484         was configured with --enable-gcc-warnigs.
75485
75486 2006-11-10  Jim Meyering  <jim@meyering.net>
75487
75488         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75489         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75490         account.
75491
75492 2006-11-10  Jim Meyering  <jim@meyering.net>
75493
75494         * modules/inline: New file/module.
75495         * modules/xalloc (Files): Remove m4/inline.m4.
75496         (Depends-on): Add inline, instead.
75497         * modules/oset: Likewise.
75498         * modules/list: Likewise.
75499
75500 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75503         Problem reported by Matthew Woehlke.
75504
75505 2006-11-09  Bruno Haible  <bruno@clisp.org>
75506
75507         * lib/tempname.c (gen_tempname): Remove variant that invokes
75508         __gen_tempname.
75509         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75510         __gen_tempname.
75511
75512 2006-11-08  Bruno Haible  <bruno@clisp.org>
75513
75514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75515         to 'yes' instead of 'cross-compiling'.
75516
75517 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * lib/quotearg.h (quotearg_free): New decl.
75520         * lib/quotearg.c (quotearg_free): New function.
75521         (slot0, nslots, slotvec0, slotvec):
75522         Now file-scope so that quotearg_free can get at them.
75523
75524 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75525
75526         Sync from Automake.
75527         * build-aux/gnupload: Add missing 'gnu' to example URL.
75528         Report by Karl Berry.
75529
75530 2006-11-08  Bruno Haible  <bruno@clisp.org>
75531
75532         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75533         Suggested by Paul Eggert.
75534
75535 2006-11-08  Jim Meyering  <jim@meyering.net>
75536
75537         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75538         It's already included if !_LIBC.
75539         (fts_safe_changedir): Add a comment.
75540
75541 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75544         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75545         Matthew Woehlke.
75546
75547         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75548         definitions up, to avoid colliding with change below.
75549         (static_inline) [HAVE_INLINE]: New macro.
75550         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75551         Provide extern decls when !HAVE_INLINE.  Do not define unless
75552         static_inline is defined, either by us or by xmalloc.c.  Use
75553         static_inline rather than static inline.
75554         (XCALLOC): Optimize sizeof(T) = 1 case.
75555         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75556
75557 2006-11-07  Bruno Haible  <bruno@clisp.org>
75558
75559         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75560         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75561         AC_C_INLINE.
75562         * modules/xalloc (Files): Add m4/inline.m4.
75563
75564 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75565
75566         * README: Fix typo.
75567         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75568         (Miscellanous Notes): ...from this.
75569
75570 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75573         Mention that offsetof should be used instead of sizeof.
75574         From Bruno Haible.
75575
75576 2006-11-07  Bruno Haible  <bruno@clisp.org>
75577
75578         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75579
75580 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75583         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75584         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75585         (gl_tree_add_before, gl_tree_add_after):
75586         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75587         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75588         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75589         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75590         (gl_linked_add_after, gl_linked_add_at): Likewise.
75591         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75592         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75593         (gl_tree_add_before, gl_tree_add_after): Likewise.
75594         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75595         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75596         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75597
75598 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75599
75600         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75601
75602 2006-11-06  Bruno Haible  <bruno@clisp.org>
75603
75604         * m4/inline.m4: New file.
75605         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75606         * modules/list (Files): Add m4/inline.m4.
75607         * modules/oset (Files): Likewise.
75608
75609 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75610
75611         * lib/idcache.c: Include <stddef.h>, for offsetof.
75612         (struct userid.name): Change from char * to a flexible array member.
75613         All uses changed.
75614         * modules/idcache (Depends-on): Add flexmember.
75615
75616         * MODULES.html.sh (Core language properties): New module flexmember.
75617         * modules/flexmember, m4/flexmember.m4: New files.
75618
75619         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75620         inline functions that are identical with the old xnmalloc_inline,
75621         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75622         that we can avoid some unnecessary integer multiplications and
75623         divisions in the common case where the element size is known at
75624         compile time.
75625         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75626         needed.
75627         (xnboundedmalloc): Remove.
75628         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75629         arguments, for consistency with rest of this header.
75630         (xcharalloc): Rewrite using XNMALLOC.
75631         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75632         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75633         versions have been moved to lib/xalloc.h and renamed to be the
75634         non-*_inline versions.
75635         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75636         and xnrealloc functions, since those functions are now inline and
75637         now call us.
75638         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75639         renaming described above.
75640         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75641         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75642         captures the dependency in AC_C_INLINE.
75643
75644         New module canonicalize-lgpl, proposed by Charles Wilson in
75645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75646         with a few small changes afterwards.
75647         * MODULES.html.sh (File system functions): New module
75648         canonicalize-lgpl.
75649         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75650         and canonicalize_file_name.
75651         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75652         * modules/canonicalize-lgpl: New files.
75653
75654 2006-11-05  Bruno Haible  <bruno@clisp.org>
75655
75656         * gnulib-tool (func_import, func_create_testdir): Create directories
75657         also for files in subdirectories of lib/.
75658
75659 2006-11-05  Bruno Haible  <bruno@clisp.org>
75660
75661         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75662         ANSI C compliant.
75663
75664 2006-11-03  Bruno Haible  <bruno@clisp.org>
75665
75666         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75667         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75668         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75669         (xnboundedmalloc): New inline function.
75670         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75671         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75672         xmalloc.
75673         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75674         xmalloc.
75675         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75676         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75677         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75678         xmalloc.
75679         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75680         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75681         xmalloc.
75682         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75683         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75684         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75685         xmalloc.
75686         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75687         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75688         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75689         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75690         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75691         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75692         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75693
75694 2006-11-03  Bruno Haible  <bruno@clisp.org>
75695
75696         * lib/c-ctype.h [C++]: Define functions without name mangling.
75697         * lib/fwriteerror.h [C++]: Likewise.
75698         * lib/gcd.h [C++]: Likewise.
75699         * lib/linebreak.h [C++]: Likewise.
75700
75701 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75704         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75705         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75706         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75707         Check for functions and headers just once.
75708         Check for declaration of canonicalize_file_name.
75709         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75710
75711 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75712
75713         * gnulib-tool (func_import): Fix typo in actioncmd.
75714
75715 2006-11-02  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75718         newline sequence in the Makefile.am snippet as a space, like "make"
75719         does.
75720         Reported by Roger Persson <perrog@gmail.com>.
75721
75722 2006-11-01  Bruno Haible  <bruno@clisp.org>
75723
75724         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75725         already declared in <string.h>.
75726         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75727
75728 2006-11-01  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75731         * lib/strcase.h: Include <string.h>.
75732         (strcasecmp): Define to rpl_strcasecmp here.
75733
75734 2006-11-01  Bruno Haible  <bruno@clisp.org>
75735
75736         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75737
75738 2006-11-01  Eric Blake  <ebb9@byu.net>
75739
75740         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75741
75742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75743
75744 2006-10-29  Bruno Haible  <bruno@clisp.org>
75745
75746         Make it compile in C++ mode.
75747         * lib/full-write.c (full_rw): Add a cast.
75748
75749 2006-11-01  Bruno Haible  <bruno@clisp.org>
75750
75751         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75752         be POSIX compliant.
75753         Reported by Roger Persson <perrog@gmail.com>.
75754
75755 2006-11-01  Eric Blake  <ebb9@byu.net>
75756
75757         * lib/getopt_.h: Fix comments.
75758
75759 2006-10-31  Eric Blake  <ebb9@byu.net>
75760
75761         * modules/tmpdir (Depends-on): Add sys_stat.
75762         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75763         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75764         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75765         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75766         tempname.
75767
75768 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         Avoid some C++ diagnostics reported by Bruno Haible.
75771         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75772         xmalloc.
75773         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75774         (struct slotvec): Move to top level.
75775         (quotearg_n_options): Rewrite to avoid xmalloc.
75776         * lib/xalloc.h (xcharalloc): New function.
75777         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75778         [defined __cplusplus]: Add function template that provides result
75779         type propagation.  This part of the change is from Bruno Haible.
75780
75781 2006-10-29  Bruno Haible  <bruno@clisp.org>
75782
75783         Make it compile in C++ mode.
75784         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75785         * lib/strnlen1.c (strnlen1): Cast memchr result.
75786         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75787         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75788         (create_temp_dir): Rename local variable 'template'.
75789         (compile_csharp_using_sscli): Add cast.
75790         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75791         * lib/findprog.c (find_in_path): Likewise.
75792         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75793         * lib/wait-process.c (register_slave_subprocess): Likewise.
75794
75795 2006-10-22  Bruno Haible  <bruno@clisp.org>
75796
75797         * modules/tsearch: New file.
75798         * lib/tsearch.h: New file.
75799         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75800         * m4/tsearch.m4: New file.
75801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75802
75803 2006-10-29  Eric Blake  <ebb9@byu.net>
75804
75805         * lib/arcfour.c: Assume config.h.
75806         * lib/arctwo.c: Likewise.
75807         * lib/base64.c: Likewise.
75808         * lib/check-version.c: Likewise.
75809         * lib/crc.c: Likewise.
75810         * lib/des.c: Likewise.
75811         * lib/gc-gnulib.c: Likewise.
75812         * lib/gc-libgcrypt.c: Likewise.
75813         * lib/gc-pbkdf2-sha1.c: Likewise.
75814         * lib/getaddrinfo.c: Likewise.
75815         * lib/getdelim.c: Likewise.
75816         * lib/getline.c: Likewise.
75817         * lib/hmac-md5.c: Likewise.
75818         * lib/hmac-sha1.c: Likewise.
75819         * lib/iconvme.c: Likewise.
75820         * lib/md2.c: Likewise.
75821         * lib/md4.c: Likewise.
75822         * lib/memxor.c: Likewise.
75823         * lib/read-file.c: Likewise.
75824         * lib/readline.c: Likewise.
75825         * lib/rijndael-alg-fst.c: Likewise.
75826         * lib/rijndael-api-fst.c: Likewise.
75827         * lib/xgetdomainname.c: Likewise.
75828
75829 2006-10-28  Eric Blake  <ebb9@byu.net>
75830
75831         * lib/xstrndup.c: Assume config.h.
75832
75833 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75836         stat-macros.h is now for our own macros, whereas stat_h is for
75837         macros in the <sys/stat.h> name space.
75838         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75839         (STAT_MACROS_H): Remove.
75840         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75841         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75842         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75843         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75844         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75845         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75846         Move these macros to ...
75847         * lib/stat_.h: here.  Don't include stat-macros.h.
75848         * lib/canonicalize.c: Don't include stat-macros.h.
75849         * lib/chown.c: Likewise.
75850         * lib/euidaccess.c: Likewise.
75851         * lib/file-type.c: Likewise.
75852         * lib/filemode.c: Likewise.
75853         * lib/glob.c: Likewise.
75854         * lib/isapipe.c: Likewise.
75855         * lib/lchown.c: Likewise.
75856         * lib/lstat.c: Likewise.
75857         * lib/mkdir-p.c: Likewise.
75858         * lib/rmdir.c: Likewise.
75859         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75860         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75861         unless mkdir isn't declared, to speed up 'configure'.
75862         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75863         would define all the S_* symbols.
75864         * modules/canonicalize (Depends-on):
75865         Depend on sys_stat, not stat-macros.
75866         * modules/chown: Likewise.
75867         * modules/euidaccess: Likewise.
75868         * modules/filemode: Likewise.
75869         * modules/file-type: Likewise.
75870         * modules/glob: Likewise.
75871         * modules/isapipe: Likewise.
75872         * modules/lchown: Likewise.
75873         * modules/lstat: Likewise.
75874         * modules/mkancesdirs: Likewise.
75875         * modules/rmdir: Likewise.
75876         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75877         * modules/modechange: Likewise.
75878         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75879         (configure.ac): Remove gl_STAT_MACROS.
75880         * modules/sys_stat (Depends-on): Remove stat-macros.
75881
75882 2006-10-27  Bruno Haible  <bruno@clisp.org>
75883
75884         * m4/signed.m4: Remove file.
75885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75886         invocation.
75887         * modules/vasnprintf (Files): Remove m4/signed.m4.
75888
75889 2006-10-27  Bruno Haible  <bruno@clisp.org>
75890
75891         Update to GNU gettext 0.16.
75892         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75893         m4/inttypes-h.m4, m4/signed.m4.
75894         * m4/gettext.m4: Update to GNU gettext 0.16.
75895         * m4/intl.m4: New file, from GNU gettext.
75896         * m4/intldir.m4: New file, from GNU gettext.
75897         * config/srclist.txt: Update
75898
75899 2006-10-27  Eric Blake  <ebb9@byu.net>
75900
75901         * MODULES.html.sh: Document tempname.
75902         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75903         dependencies.
75904         (Files): Move lib/tempname.c...
75905         * modules/tempname: ...to this new module.
75906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75907         (gl_PREREQ_TEMPNAME): Move...
75908         * m4/tempname.m4: ...to this new file.
75909         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75910         * modules/sys_stat (Depends-on): Add stat-macros.
75911         * lib/stat_.h (includes): Pick up stat macros.
75912         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75913         if stat macros are broken.
75914         * lib/tempname.c (includes): No need to include "stat-macros.h".
75915         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75916         (direxists, __path_search) [!_LIBC]: Don't compile these in
75917         gnulib; the tmpdir module covers that.
75918         * lib/tempname.h: New file.
75919
75920 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         * COPYING: Explain how gnulib-tool converts licence headers.
75923         Almost all wording by Eric Blake.
75924
75925 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * lib/mbchar.h (is_basic_table): Make read-only.
75928         * lib/mbchar.c (is_basic_table): Likewise.
75929         Reported by John Darrington.
75930
75931 2006-10-25  Bruno Haible  <bruno@clisp.org>
75932
75933         * lib/progname.h (set_program_name): Undefine before defining.
75934
75935 2006-10-25  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75938         false for non-gcc C++ compilers.
75939         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75940
75941 2006-10-24  Bruno Haible  <bruno@clisp.org>
75942
75943         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75944         iconv implementations like Irix iconv.
75945
75946 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * modules/vararrays: New file.
75949         * m4/vararrays.m4: New file, taken from diffutils.
75950         * MODULES.html.sh: New module vararrays.
75951
75952 2006-10-24  Karl Berry  <karl@gnu.org>
75953
75954         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75955         Don't call GNU Unix.
75956
75957 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75958
75959         * users.txt: Add Libtool.
75960
75961         Sync from Libtool:
75962
75963         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75966         to gnulib's policy of including config.h unconditionally.
75967
75968 2006-10-24  Bruno Haible  <bruno@clisp.org>
75969
75970         * modules/wcwidth (Files): Add m4/wint_t.m4.
75971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75972         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75973
75974 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75977         to pacify GCC with some -W flags enabled.  Problem reported by
75978         Bruno Haible.
75979
75980 2006-10-24  Jim Meyering  <jim@meyering.net>
75981
75982         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75983         Reported by Karl Berry.
75984
75985 2006-10-23  Bruno Haible  <bruno@clisp.org>
75986
75987         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75988
75989 2006-10-24  Bruno Haible  <bruno@clisp.org>
75990
75991         * lib/gl_list.h: Use C comment style, not C++ comment style.
75992
75993 2006-10-23  Eric Blake  <ebb9@byu.net>
75994
75995         * lib/getaddrinfo.c (includes): Add missing include.
75996
75997 2006-10-23  Bruno Haible  <bruno@clisp.org>
75998             Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         Ability to rename obstack_free.
76001         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76002         obstack_free.
76003         (obstack_free): Invoke the __obstack_free macro.
76004         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76005
76006 2006-10-23  Bruno Haible  <bruno@clisp.org>
76007             Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76010         __argc, __argv from the declaration. (They are defined as macros on
76011         mingw.)
76012
76013 2006-10-22  Bruno Haible  <bruno@clisp.org>
76014
76015         * doc/gnulib-intro.texi: New file.
76016         * doc/gnulib.texi: Include it.
76017
76018 2006-10-21  Bruno Haible  <bruno@clisp.org>
76019
76020         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76021         "Introduction", "Miscellanous Notes", "Particular Modules".
76022
76023 2006-10-21  Bruno Haible  <bruno@clisp.org>
76024
76025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76026         Change mostlyclean-local rule to avoid sh syntax error from bash
76027         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76028
76029 2006-10-23  Jim Meyering  <jim@meyering.net>
76030
76031         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76032         in place of snprintf.
76033
76034         * modules/inttostr (Files): Add lib/uinttostr.c.
76035         * lib/uinttostr.c (inttostr): New file/function.
76036         * lib/inttostr.h (uinttostr): Declare.
76037         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76038         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76039         Add uinttostr.
76040         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76041
76042 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * lib/canonicalize.c (ELOOP): Define if not already defined.
76045         Problem reported by Bruno Haible in
76046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76047
76048 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76051         Problem reported by Perry Smith and Ville Laurikari.
76052
76053         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76054         uses.
76055
76056 2006-10-19  Bruno Haible  <bruno@clisp.org>
76057
76058         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76059         for mingw.
76060
76061 2006-10-19  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76064         Needed for mingw.
76065
76066 2006-10-19  Bruno Haible  <bruno@clisp.org>
76067
76068         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76069
76070 2006-10-19  Bruno Haible  <bruno@clisp.org>
76071
76072         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76073         it.
76074
76075 2006-10-19  Bruno Haible  <bruno@clisp.org>
76076
76077         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76078         invocation.
76079
76080 2006-10-19  Bruno Haible  <bruno@clisp.org>
76081
76082         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76083         mountlist by default.
76084
76085 2006-10-16  Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/c-strstr.c: Include c-strstr.h.
76088
76089 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76090
76091         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76092         in a slash.
76093
76094 2006-10-18  Bruno Haible  <bruno@clisp.org>
76095
76096         * lib/lock.h [C++]: Wrap definitions in extern "C".
76097
76098 2006-10-18  Bruno Haible  <bruno@clisp.org>
76099
76100         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76101         gl_LIBOBJS list.
76102
76103 2006-10-18  Bruno Haible  <bruno@clisp.org>
76104
76105         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76106
76107 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * lib/xstrtol.h: Include gettext.h.
76110         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76111         Problem reported by Eric Blake.
76112         * modules/xstrtol (Depends-on): Add gettext-h.
76113
76114 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76115
76116         * lib/strftime.c (advance): New macro.
76117         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76118         incomplete type, so you can't add 0 to it.  Problem and patch
76119         reported by Eelco Dolstra for dietlibc.
76120
76121 2006-10-18  Jim Meyering  <jim@meyering.net>
76122
76123         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76124         type for a local, and rename it: s/up/user_proc/.
76125
76126 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76127
76128         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76129         READ_UTMP_USER_PROCESS.
76130         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76131
76132 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76135         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76136
76137 2006-10-17  Eric Blake  <ebb9@byu.net>
76138
76139         * lib/sigprocmask.c (sigprocmask): Fix typo.
76140
76141         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76142
76143         * modules/clean-temp (Makefile.am): Don't add to make output...
76144         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76145         config.h.
76146
76147 2006-10-17  Bruno Haible  <bruno@clisp.org>
76148
76149         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76150         differently if DEFAULT_TEXT_DOMAIN is set.
76151
76152 2006-10-16  Bruno Haible  <bruno@clisp.org>
76153
76154         * lib/clean-temp.c: Include fwriteerror.h.
76155
76156 2006-10-16  Bruno Haible  <bruno@clisp.org>
76157
76158         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76159
76160 2006-10-16  Bruno Haible  <bruno@clisp.org>
76161
76162         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76163         * lib/sigprocmask.h: Include <sys/types.h>.
76164         (sigset_t): Use the system's definition if present.
76165
76166 2006-10-17  Eric Blake  <ebb9@byu.net>
76167
76168         * lib/xvasprintf.c (includes): Assume config.h.
76169         * lib/xasprintf.c (includes): Likewise.
76170
76171 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76172
76173         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76174         at least as wide as intmax_t.
76175
76176 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76177
76178         (Imported from Automake.)
76179         * build-aux/gnupload: Update to version 1.1 of directive file.
76180
76181 2006-10-16  Eric Blake  <ebb9@byu.net>
76182
76183         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76184         match Automake 1.10a.
76185
76186 2006-10-14  Bruno Haible  <bruno@clisp.org>
76187
76188         * modules/sigprocmask: New file.
76189         * lib/sigprocmask.h: New file.
76190         * lib/sigprocmask.c: New file.
76191         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76192         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76193         request sigprocmask.o.
76194         (gl_PREREQ_SIGPROCMASK): New macro.
76195         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76196         (Depends-on): Add sigprocmask.
76197         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76198         gt_SIGNALBLOCKING. Test for 'raise' only once.
76199         * lib/fatal-signal.c: Include sigprocmask.h.
76200         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76201         unblock_fatal_signals): Define always.
76202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76203         sigprocmask.
76204
76205 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         Sync from Automake.
76208         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76209         which incorrectly sets the mode of an existing destination
76210         directory.  In some cases the unpatched install-sh could do the
76211         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76212         system.  We hope this is rare in practice, but it's clearly worth
76213         fixing.  Problem reported by Alex Unleashed in
76214         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76215         Also, don't bother to check for -m bugs unless we're using -m;
76216         suggested by Stepan Kasal.
76217
76218 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76219
76220         Sync from Automake.
76221         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76222         `-c' flag, so they appear at the same position as in %FASTDEP%
76223         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76224         which ignores unknown options only after the first non-option.
76225         Bug report against M4 by Nelson H. F. Beebe.
76226
76227 2006-10-13  Jim Meyering  <jim@meyering.net>
76228
76229         Fix a bug in yesterday's change.
76230         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76231         p->fts_statp->st_dev would be used uninitialized.
76232         Ensures that we always call fts_stat on the very first entry.
76233         Miklos Szeredi reported that find -xdev stopped working.
76234
76235 2006-10-12  Bruno Haible  <bruno@clisp.org>
76236
76237         * gnulib-tool (func_get_automake_snippet): Append an automatically
76238         computed EXTRA_DIST augmentation.
76239         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76240         * modules/alloca-opt (Makefile.am): Likewise.
76241         * modules/allocsa (Makefile.am): Likewise.
76242         * modules/arcfour (Makefile.am): Likewise.
76243         * modules/arctwo (Makefile.am): Likewise.
76244         * modules/argmatch (Makefile.am): Likewise.
76245         * modules/argz (Makefile.am): Likewise.
76246         * modules/atexit (Makefile.am): Likewise.
76247         * modules/backupfile (Makefile.am): Likewise.
76248         * modules/byteswap (Makefile.am): Likewise.
76249         * modules/c-strtod (Makefile.am): Likewise.
76250         * modules/c-strtold (Makefile.am): Likewise.
76251         * modules/calloc (Makefile.am): Likewise.
76252         * modules/canon-host (Makefile.am): Likewise.
76253         * modules/canonicalize (Makefile.am): Likewise.
76254         * modules/chdir-long (Makefile.am): Likewise.
76255         * modules/chdir-safer (Makefile.am): Likewise.
76256         * modules/check-version (Makefile.am): Likewise.
76257         * modules/chown (Makefile.am): Likewise.
76258         * modules/cloexec (Makefile.am): Likewise.
76259         * modules/close-stream (Makefile.am): Likewise.
76260         * modules/closeout (Makefile.am): Likewise.
76261         * modules/crc (Makefile.am): Likewise.
76262         * modules/csharpexec (Makefile.am): Likewise.
76263         * modules/cycle-check (Makefile.am): Likewise.
76264         * modules/des (Makefile.am): Likewise.
76265         * modules/dev-ino (Makefile.am): Likewise.
76266         * modules/dirfd (Makefile.am): Likewise.
76267         * modules/dirname (Makefile.am): Likewise.
76268         * modules/dup2 (Makefile.am): Likewise.
76269         * modules/eealloc (Makefile.am): Likewise.
76270         * modules/error (Makefile.am): Likewise.
76271         * modules/euidaccess (Makefile.am): Likewise.
76272         * modules/exclude (Makefile.am): Likewise.
76273         * modules/exitfail (Makefile.am): Likewise.
76274         * modules/fcntl-safer (Makefile.am): Likewise.
76275         * modules/fcntl (Makefile.am): Likewise.
76276         * modules/file-type (Makefile.am): Likewise.
76277         * modules/fileblocks (Makefile.am): Likewise.
76278         * modules/filemode (Makefile.am): Likewise.
76279         * modules/filenamecat (Makefile.am): Likewise.
76280         * modules/fnmatch (Makefile.am): Likewise.
76281         * modules/fopen-safer (Makefile.am): Likewise.
76282         * modules/fpending (Makefile.am): Likewise.
76283         * modules/fprintftime (Makefile.am): Likewise.
76284         * modules/free (Makefile.am): Likewise.
76285         * modules/fsusage (Makefile.am): Likewise.
76286         * modules/ftruncate (Makefile.am): Likewise.
76287         * modules/fts (Makefile.am): Likewise.
76288         * modules/gc-arcfour (Makefile.am): Likewise.
76289         * modules/gc-des (Makefile.am): Likewise.
76290         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76291         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76292         * modules/gc-md4 (Makefile.am): Likewise.
76293         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76294         * modules/gc-sha1 (Makefile.am): Likewise.
76295         * modules/gc (Makefile.am): Likewise.
76296         * modules/getaddrinfo (Makefile.am): Likewise.
76297         * modules/getcwd (Makefile.am): Likewise.
76298         * modules/getdelim (Makefile.am): Likewise.
76299         * modules/getdomainname (Makefile.am): Likewise.
76300         * modules/getgroups (Makefile.am): Likewise.
76301         * modules/gethostname (Makefile.am): Likewise.
76302         * modules/gethrxtime (Makefile.am): Likewise.
76303         * modules/getline (Makefile.am): Likewise.
76304         * modules/getloadavg (Makefile.am): Likewise.
76305         * modules/getlogin_r (Makefile.am): Likewise.
76306         * modules/getndelim2 (Makefile.am): Likewise.
76307         * modules/getopt (Makefile.am): Likewise.
76308         * modules/getpagesize (Makefile.am): Likewise.
76309         * modules/getpass-gnu (Makefile.am): Likewise.
76310         * modules/getpass (Makefile.am): Likewise.
76311         * modules/getsubopt (Makefile.am): Likewise.
76312         * modules/gettime (Makefile.am): Likewise.
76313         * modules/gettimeofday (Makefile.am): Likewise.
76314         * modules/getugroups (Makefile.am): Likewise.
76315         * modules/getusershell (Makefile.am): Likewise.
76316         * modules/glob (Makefile.am): Likewise.
76317         * modules/group-member (Makefile.am): Likewise.
76318         * modules/hard-locale (Makefile.am): Likewise.
76319         * modules/hash (Makefile.am): Likewise.
76320         * modules/hmac-md5 (Makefile.am): Likewise.
76321         * modules/hmac-sha1 (Makefile.am): Likewise.
76322         * modules/human (Makefile.am): Likewise.
76323         * modules/idcache (Makefile.am): Likewise.
76324         * modules/imaxabs (Makefile.am): Likewise.
76325         * modules/imaxdiv (Makefile.am): Likewise.
76326         * modules/inet_ntop (Makefile.am): Likewise.
76327         * modules/inet_pton (Makefile.am): Likewise.
76328         * modules/intprops (Makefile.am): Likewise.
76329         * modules/inttostr (Makefile.am): Likewise.
76330         * modules/inttypes (Makefile.am): Likewise.
76331         * modules/isapipe (Makefile.am): Likewise.
76332         * modules/javaversion (Makefile.am): Likewise.
76333         * modules/lchmod (Makefile.am): Likewise.
76334         * modules/lchown (Makefile.am): Likewise.
76335         * modules/localcharset (Makefile.am): Likewise.
76336         * modules/long-options (Makefile.am): Likewise.
76337         * modules/lstat (Makefile.am): Likewise.
76338         * modules/malloc (Makefile.am): Likewise.
76339         * modules/mathl (Makefile.am): Likewise.
76340         * modules/mbchar (Makefile.am): Likewise.
76341         * modules/md2 (Makefile.am): Likewise.
76342         * modules/md4 (Makefile.am): Likewise.
76343         * modules/md5 (Makefile.am): Likewise.
76344         * modules/memcasecmp (Makefile.am): Likewise.
76345         * modules/memchr (Makefile.am): Likewise.
76346         * modules/memcmp (Makefile.am): Likewise.
76347         * modules/memcoll (Makefile.am): Likewise.
76348         * modules/memcpy (Makefile.am): Likewise.
76349         * modules/memmem (Makefile.am): Likewise.
76350         * modules/memmove (Makefile.am): Likewise.
76351         * modules/mempcpy (Makefile.am): Likewise.
76352         * modules/memrchr (Makefile.am): Likewise.
76353         * modules/memset (Makefile.am): Likewise.
76354         * modules/memxor (Makefile.am): Likewise.
76355         * modules/mkancesdirs (Makefile.am): Likewise.
76356         * modules/mkdir-p (Makefile.am): Likewise.
76357         * modules/mkdir (Makefile.am): Likewise.
76358         * modules/mkdtemp (Makefile.am): Likewise.
76359         * modules/mkstemp (Makefile.am): Likewise.
76360         * modules/mktime (Makefile.am): Likewise.
76361         * modules/modechange (Makefile.am): Likewise.
76362         * modules/mountlist (Makefile.am): Likewise.
76363         * modules/nanosleep (Makefile.am): Likewise.
76364         * modules/obstack (Makefile.am): Likewise.
76365         * modules/openat (Makefile.am): Likewise.
76366         * modules/pagealign_alloc (Makefile.am): Likewise.
76367         * modules/pathmax (Makefile.am): Likewise.
76368         * modules/physmem (Makefile.am): Likewise.
76369         * modules/poll (Makefile.am): Likewise.
76370         * modules/posixtm (Makefile.am): Likewise.
76371         * modules/posixver (Makefile.am): Likewise.
76372         * modules/putenv (Makefile.am): Likewise.
76373         * modules/quote (Makefile.am): Likewise.
76374         * modules/quotearg (Makefile.am): Likewise.
76375         * modules/raise (Makefile.am): Likewise.
76376         * modules/read-file (Makefile.am): Likewise.
76377         * modules/readline (Makefile.am): Likewise.
76378         * modules/readlink (Makefile.am): Likewise.
76379         * modules/readtokens (Makefile.am): Likewise.
76380         * modules/readutmp (Makefile.am): Likewise.
76381         * modules/realloc (Makefile.am): Likewise.
76382         * modules/regex (Makefile.am): Likewise.
76383         * modules/rename-dest-slash (Makefile.am): Likewise.
76384         * modules/rename (Makefile.am): Likewise.
76385         * modules/rijndael (Makefile.am): Likewise.
76386         * modules/rmdir (Makefile.am): Likewise.
76387         * modules/rpmatch (Makefile.am): Likewise.
76388         * modules/safe-read (Makefile.am): Likewise.
76389         * modules/safe-write (Makefile.am): Likewise.
76390         * modules/same-inode (Makefile.am): Likewise.
76391         * modules/same (Makefile.am): Likewise.
76392         * modules/save-cwd (Makefile.am): Likewise.
76393         * modules/savedir (Makefile.am): Likewise.
76394         * modules/setenv (Makefile.am): Likewise.
76395         * modules/settime (Makefile.am): Likewise.
76396         * modules/sha1 (Makefile.am): Likewise.
76397         * modules/sig2str (Makefile.am): Likewise.
76398         * modules/snprintf (Makefile.am): Likewise.
76399         * modules/stat-macros (Makefile.am): Likewise.
76400         * modules/stat-time (Makefile.am): Likewise.
76401         * modules/stdbool (Makefile.am): Likewise.
76402         * modules/stdint (Makefile.am): Likewise.
76403         * modules/stdlib-safer (Makefile.am): Likewise.
76404         * modules/stpcpy (Makefile.am): Likewise.
76405         * modules/stpncpy (Makefile.am): Likewise.
76406         * modules/strcase (Makefile.am): Likewise.
76407         * modules/strcasestr (Makefile.am): Likewise.
76408         * modules/strchrnul (Makefile.am): Likewise.
76409         * modules/strcspn (Makefile.am): Likewise.
76410         * modules/strdup (Makefile.am): Likewise.
76411         * modules/strerror (Makefile.am): Likewise.
76412         * modules/strftime (Makefile.am): Likewise.
76413         * modules/strndup (Makefile.am): Likewise.
76414         * modules/strnlen (Makefile.am): Likewise.
76415         * modules/strpbrk (Makefile.am): Likewise.
76416         * modules/strsep (Makefile.am): Likewise.
76417         * modules/strstr (Makefile.am): Likewise.
76418         * modules/strtod (Makefile.am): Likewise.
76419         * modules/strtoimax (Makefile.am): Likewise.
76420         * modules/strtok_r (Makefile.am): Likewise.
76421         * modules/strtol (Makefile.am): Likewise.
76422         * modules/strtoll (Makefile.am): Likewise.
76423         * modules/strtoul (Makefile.am): Likewise.
76424         * modules/strtoull (Makefile.am): Likewise.
76425         * modules/strtoumax (Makefile.am): Likewise.
76426         * modules/strverscmp (Makefile.am): Likewise.
76427         * modules/sys_socket (Makefile.am): Likewise.
76428         * modules/sys_stat (Makefile.am): Likewise.
76429         * modules/sysexits (Makefile.am): Likewise.
76430         * modules/time_r (Makefile.am): Likewise.
76431         * modules/timegm (Makefile.am): Likewise.
76432         * modules/timespec (Makefile.am): Likewise.
76433         * modules/tmpfile-safer (Makefile.am): Likewise.
76434         * modules/trim (Makefile.am): Likewise.
76435         * modules/unistd-safer (Makefile.am): Likewise.
76436         * modules/unlinkdir (Makefile.am): Likewise.
76437         * modules/unlocked-io (Makefile.am): Likewise.
76438         * modules/userspec (Makefile.am): Likewise.
76439         * modules/utime (Makefile.am): Likewise.
76440         * modules/utimecmp (Makefile.am): Likewise.
76441         * modules/utimens (Makefile.am): Likewise.
76442         * modules/vasnprintf (Makefile.am): Likewise.
76443         * modules/vasprintf (Makefile.am): Likewise.
76444         * modules/vsnprintf (Makefile.am): Likewise.
76445         * modules/xalloc (Makefile.am): Likewise.
76446         * modules/xgetcwd (Makefile.am): Likewise.
76447         * modules/xnanosleep (Makefile.am): Likewise.
76448         * modules/xreadlink (Makefile.am): Likewise.
76449         * modules/xstrtod (Makefile.am): Likewise.
76450         * modules/xstrtol (Makefile.am): Likewise.
76451         * modules/xstrtold (Makefile.am): Likewise.
76452         * modules/yesno (Makefile.am): Likewise.
76453         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76454
76455 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * modules/error (Makefile.am): Distribute files through
76458         EXTRA_DIST, not lib_SOURCES.
76459
76460 2006-10-12  Eric Blake  <ebb9@byu.net>
76461
76462         * modules/error (Makefile.am): Distribute files in /lib.
76463         * modules/obstack (Makefile.am): Likewise.
76464
76465 2006-10-12  Bruno Haible  <bruno@clisp.org>
76466
76467         * modules/acl (Makefile.am): Distribute all files in lib/ through
76468         EXTRA_DIST.
76469         * modules/arcfour (Makefile.am): Likewise.
76470         * modules/arctwo (Makefile.am): Likewise.
76471         * modules/argmatch (Makefile.am): Likewise.
76472         * modules/argz (Makefile.am): Likewise.
76473         * modules/atexit (Makefile.am): Likewise.
76474         * modules/backupfile (Makefile.am): Likewise.
76475         * modules/c-strtod (Makefile.am): Likewise.
76476         * modules/c-strtold (Makefile.am): Likewise.
76477         * modules/calloc (Makefile.am): Likewise.
76478         * modules/canon-host (Makefile.am): Likewise.
76479         * modules/canonicalize (Makefile.am): Likewise.
76480         * modules/chdir-long (Makefile.am): Likewise.
76481         * modules/chdir-safer (Makefile.am): Likewise.
76482         * modules/check-version (Makefile.am): Likewise.
76483         * modules/chown (Makefile.am): Likewise.
76484         * modules/cloexec (Makefile.am): Likewise.
76485         * modules/close-stream (Makefile.am): Likewise.
76486         * modules/closeout (Makefile.am): Likewise.
76487         * modules/crc (Makefile.am): Likewise.
76488         * modules/cycle-check (Makefile.am): Likewise.
76489         * modules/des (Makefile.am): Likewise.
76490         * modules/dirfd (Makefile.am): Likewise.
76491         * modules/dirname (Makefile.am): Likewise.
76492         * modules/dup2 (Makefile.am): Likewise.
76493         * modules/euidaccess (Makefile.am): Likewise.
76494         * modules/exclude (Makefile.am): Likewise.
76495         * modules/exitfail (Makefile.am): Likewise.
76496         * modules/fcntl-safer (Makefile.am): Likewise.
76497         * modules/file-type (Makefile.am): Likewise.
76498         * modules/fileblocks (Makefile.am): Likewise.
76499         * modules/filemode (Makefile.am): Likewise.
76500         * modules/filenamecat (Makefile.am): Likewise.
76501         * modules/fnmatch (Makefile.am): Likewise.
76502         * modules/fopen-safer (Makefile.am): Likewise.
76503         * modules/fpending (Makefile.am): Likewise.
76504         * modules/fprintftime (Makefile.am): Likewise.
76505         * modules/free (Makefile.am): Likewise.
76506         * modules/fsusage (Makefile.am): Likewise.
76507         * modules/ftruncate (Makefile.am): Likewise.
76508         * modules/fts (Makefile.am): Likewise.
76509         * modules/gc (Makefile.am): Likewise.
76510         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76511         * modules/getaddrinfo (Makefile.am): Likewise.
76512         * modules/getcwd (Makefile.am): Likewise.
76513         * modules/getdelim (Makefile.am): Likewise.
76514         * modules/getdomainname (Makefile.am): Likewise.
76515         * modules/getgroups (Makefile.am): Likewise.
76516         * modules/gethostname (Makefile.am): Likewise.
76517         * modules/gethrxtime (Makefile.am): Likewise.
76518         * modules/getline (Makefile.am): Likewise.
76519         * modules/getloadavg (Makefile.am): Likewise.
76520         * modules/getlogin_r (Makefile.am): Likewise.
76521         * modules/getopt (Makefile.am): Likewise.
76522         * modules/getpass (Makefile.am): Likewise.
76523         * modules/getpass-gnu (Makefile.am): Likewise.
76524         * modules/getsubopt (Makefile.am): Likewise.
76525         * modules/gettime (Makefile.am): Likewise.
76526         * modules/gettimeofday (Makefile.am): Likewise.
76527         * modules/getugroups (Makefile.am): Likewise.
76528         * modules/getusershell (Makefile.am): Likewise.
76529         * modules/glob (Makefile.am): Likewise.
76530         * modules/group-member (Makefile.am): Likewise.
76531         * modules/hard-locale (Makefile.am): Likewise.
76532         * modules/hash (Makefile.am): Likewise.
76533         * modules/hmac-md5 (Makefile.am): Likewise.
76534         * modules/hmac-sha1 (Makefile.am): Likewise.
76535         * modules/human (Makefile.am): Likewise.
76536         * modules/idcache (Makefile.am): Likewise.
76537         * modules/imaxabs (Makefile.am): Likewise.
76538         * modules/imaxdiv (Makefile.am): Likewise.
76539         * modules/inet_ntop (Makefile.am): Likewise.
76540         * modules/inet_pton (Makefile.am): Likewise.
76541         * modules/inttostr (Makefile.am): Likewise.
76542         * modules/isapipe (Makefile.am): Likewise.
76543         * modules/lchown (Makefile.am): Likewise.
76544         * modules/long-options (Makefile.am): Likewise.
76545         * modules/lstat (Makefile.am): Likewise.
76546         * modules/malloc (Makefile.am): Likewise.
76547         * modules/mathl (Makefile.am): Likewise.
76548         * modules/mbchar (Makefile.am): Likewise.
76549         * modules/md2 (Makefile.am): Likewise.
76550         * modules/md4 (Makefile.am): Likewise.
76551         * modules/md5 (Makefile.am): Likewise.
76552         * modules/memcasecmp (Makefile.am): Likewise.
76553         * modules/memchr (Makefile.am): Likewise.
76554         * modules/memcmp (Makefile.am): Likewise.
76555         * modules/memcoll (Makefile.am): Likewise.
76556         * modules/memcpy (Makefile.am): Likewise.
76557         * modules/memmem (Makefile.am): Likewise.
76558         * modules/memmove (Makefile.am): Likewise.
76559         * modules/mempcpy (Makefile.am): Likewise.
76560         * modules/memrchr (Makefile.am): Likewise.
76561         * modules/memset (Makefile.am): Likewise.
76562         * modules/memxor (Makefile.am): Likewise.
76563         * modules/mkancesdirs (Makefile.am): Likewise.
76564         * modules/mkdir (Makefile.am): Likewise.
76565         * modules/mkdir-p (Makefile.am): Likewise.
76566         * modules/mkdtemp (Makefile.am): Likewise.
76567         * modules/mkstemp (Makefile.am): Likewise.
76568         * modules/mktime (Makefile.am): Likewise.
76569         * modules/modechange (Makefile.am): Likewise.
76570         * modules/mountlist (Makefile.am): Likewise.
76571         * modules/nanosleep (Makefile.am): Likewise.
76572         * modules/openat (Makefile.am): Likewise.
76573         * modules/pagealign_alloc (Makefile.am): Likewise.
76574         * modules/physmem (Makefile.am): Likewise.
76575         * modules/poll (Makefile.am): Likewise.
76576         * modules/posixtm (Makefile.am): Likewise.
76577         * modules/posixver (Makefile.am): Likewise.
76578         * modules/putenv (Makefile.am): Likewise.
76579         * modules/quote (Makefile.am): Likewise.
76580         * modules/quotearg (Makefile.am): Likewise.
76581         * modules/raise (Makefile.am): Likewise.
76582         * modules/read-file (Makefile.am): Likewise.
76583         * modules/readline (Makefile.am): Likewise.
76584         * modules/readlink (Makefile.am): Likewise.
76585         * modules/readtokens (Makefile.am): Likewise.
76586         * modules/readutmp (Makefile.am): Likewise.
76587         * modules/realloc (Makefile.am): Likewise.
76588         * modules/regex (Makefile.am): Likewise.
76589         * modules/rename (Makefile.am): Likewise.
76590         * modules/rename-dest-slash (Makefile.am): Likewise.
76591         * modules/rijndael (Makefile.am): Likewise.
76592         * modules/rmdir (Makefile.am): Likewise.
76593         * modules/rpmatch (Makefile.am): Likewise.
76594         * modules/safe-read (Makefile.am): Likewise.
76595         * modules/safe-write (Makefile.am): Likewise.
76596         * modules/same (Makefile.am): Likewise.
76597         * modules/save-cwd (Makefile.am): Likewise.
76598         * modules/savedir (Makefile.am): Likewise.
76599         * modules/setenv (Makefile.am): Likewise.
76600         * modules/settime (Makefile.am): Likewise.
76601         * modules/sha1 (Makefile.am): Likewise.
76602         * modules/sig2str (Makefile.am): Likewise.
76603         * modules/snprintf (Makefile.am): Likewise.
76604         * modules/stdlib-safer (Makefile.am): Likewise.
76605         * modules/stpcpy (Makefile.am): Likewise.
76606         * modules/stpncpy (Makefile.am): Likewise.
76607         * modules/strcase (Makefile.am): Likewise.
76608         * modules/strcasestr (Makefile.am): Likewise.
76609         * modules/strchrnul (Makefile.am): Likewise.
76610         * modules/strcspn (Makefile.am): Likewise.
76611         * modules/strdup (Makefile.am): Likewise.
76612         * modules/strerror (Makefile.am): Likewise.
76613         * modules/strftime (Makefile.am): Likewise.
76614         * modules/strndup (Makefile.am): Likewise.
76615         * modules/strnlen (Makefile.am): Likewise.
76616         * modules/strpbrk (Makefile.am): Likewise.
76617         * modules/strsep (Makefile.am): Likewise.
76618         * modules/strstr (Makefile.am): Likewise.
76619         * modules/strtod (Makefile.am): Likewise.
76620         * modules/strtoimax (Makefile.am): Likewise.
76621         * modules/strtok_r (Makefile.am): Likewise.
76622         * modules/strtol (Makefile.am): Likewise.
76623         * modules/strtoll (Makefile.am): Likewise.
76624         * modules/strtoul (Makefile.am): Likewise.
76625         * modules/strtoull (Makefile.am): Likewise.
76626         * modules/strtoumax (Makefile.am): Likewise.
76627         * modules/strverscmp (Makefile.am): Likewise.
76628         * modules/time_r (Makefile.am): Likewise.
76629         * modules/timegm (Makefile.am): Likewise.
76630         * modules/tmpfile-safer (Makefile.am): Likewise.
76631         * modules/unistd-safer (Makefile.am): Likewise.
76632         * modules/unlinkdir (Makefile.am): Likewise.
76633         * modules/userspec (Makefile.am): Likewise.
76634         * modules/utime (Makefile.am): Likewise.
76635         * modules/utimecmp (Makefile.am): Likewise.
76636         * modules/utimens (Makefile.am): Likewise.
76637         * modules/vasnprintf (Makefile.am): Likewise.
76638         * modules/vasprintf (Makefile.am): Likewise.
76639         * modules/vsnprintf (Makefile.am): Likewise.
76640         * modules/xalloc (Makefile.am): Likewise.
76641         * modules/xgetcwd (Makefile.am): Likewise.
76642         * modules/xnanosleep (Makefile.am): Likewise.
76643         * modules/xreadlink (Makefile.am): Likewise.
76644         * modules/xstrtod (Makefile.am): Likewise.
76645         * modules/xstrtol (Makefile.am): Likewise.
76646         * modules/xstrtold (Makefile.am): Likewise.
76647         * modules/yesno (Makefile.am): Likewise.
76648
76649 2006-10-12  Jim Meyering  <jim@meyering.net>
76650
76651         * m4/getloadavg.m4: Revert the change below.
76652
76653         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76654         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76655         fail with a symlink, which is what coreutils' ./bootstrap now
76656         creates by default.
76657
76658 2006-10-12  Bruno Haible  <bruno@clisp.org>
76659
76660         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76661         mingw.
76662         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76663         MSVC and mingw explicitly.
76664
76665 2006-10-11  Simon Josefsson  <jas@extundo.com>
76666             Bruno Haible  <bruno@clisp.org>
76667
76668         Add support for multiple gnulib-tool invocations in the scope of a
76669         single configure.ac file.
76670         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76671         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76672         with the same contents as the _LIBADD variable.
76673         (func_emit_initmacro_start, func_emit_initmacro_end,
76674         func_emit_initmacro_done): New functions.
76675         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76676         gl_LIBOBJS and gl_LTLIBOBJS.
76677
76678 2006-10-11  Bruno Haible  <bruno@clisp.org>
76679
76680         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76681         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76682         autoreconf. Instead, invoke autopoint explicitly but move back the
76683         *.m4 files from gnulib.
76684
76685 2006-10-11  Bruno Haible  <bruno@clisp.org>
76686
76687         * gnulib-tool (func_usage): Make module names after --create-testdir
76688         optional.
76689         (func_create_testdir): If no module was specified, use nearly all
76690         modules.
76691
76692 2006-10-12  Jim Meyering  <jim@meyering.net>
76693
76694         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76695         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76696         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76697         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76698         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76699         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76700         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76701         (fts_set_stat_required): New function.
76702         (fts_open): Defer the calls to fts_stat, if possible or requested.
76703         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76704         into fts_stat itself.
76705         (fts_read): Perform any required (deferred) fts_stat call.
76706         (fts_build): Likewise, for the directory we're about to open and read.
76707         In the readdir loop, carefully decide whether each entry will require
76708         an eventual call to fts_stat, using dirent.d_type info if available.
76709         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76710         a command line argument into this function.  Update all callers.
76711         Map a return value of FTS_DOT to FTS_D for a command line argument.
76712         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76713         Thanks to Miklos Szeredi for his tenacity and for the initial
76714         bug report about "find" failing on a FUSE-based file system.
76715
76716         * lib/fts.c (fts_open): Use consistent indentation.
76717
76718 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76721         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76722         reported by Jim Meyering.  All uses of cache variables renamed
76723         to match Autoconf's.
76724         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76725         the other one.
76726
76727         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76728         Fix misspelling in diagnostic.
76729
76730 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76733         defined.  Problem reported by Matthew Woehlke.
76734
76735         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76736         Add support for Tandem NonStop R series.
76737         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76738         Use new macro.
76739
76740         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76741         (has_trailing_slash): Omit size arg; all callers changed.
76742         Omit 'inline', since it doesn't help performance and we'd
76743         need to configure it.
76744         Don't count //, ///, etc. as having a trailing slash.
76745         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76746         (rpl_rename_dest_slash): On failure, use rename's errno rather
76747         than (in some cases) an incorrect or junk errno.
76748         Simplify code by removing need to compute length; this does
76749         cause it to make two passes instead of one over the file name,
76750         but it's worth it.
76751
76752         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76753         change, since Autoconf's version may no longer be appropriate now
76754         that we are using CVS Autoconf's version.  Add support for Tandem.
76755
76756 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76757             Bruno Haible  <bruno@clisp.org>
76758
76759         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76760         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76761         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76762         gl_AC_TYPE_LONG_LONG.
76763
76764         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76765         instead of HAVE_LONG_LONG.
76766         * lib/printf-args.c (printf_fetchargs): Likewise.
76767         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76768         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76770         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76771         gl_AC_TYPE_LONG_LONG.
76772
76773 2006-10-11  Bruno Haible  <bruno@clisp.org>
76774
76775         * m4/longlong.m4: Add comments.
76776         * m4/ulonglong.m4: Likewise.
76777
76778 2006-10-10  Bruno Haible  <bruno@clisp.org>
76779
76780         Make it possible to #define stpcpy, strdup to aliases.
76781         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76782         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76783
76784 2006-10-10  Bruno Haible  <bruno@clisp.org>
76785
76786         Make it possible to #define gcd to an alias.
76787         * lib/gcd.c: Include config.h.
76788
76789 2006-10-10  Bruno Haible  <bruno@clisp.org>
76790
76791         Make it possible to #define c_isascii to an alias.
76792         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76793         defined. Undefine the macros before defining them, to avoid gcc
76794         warnings.
76795         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76796         define NO_C_CTYPE_MACROS early.
76797
76798 2006-10-10  Bruno Haible  <bruno@clisp.org>
76799
76800         Make it possible to #define set_program_name to an alias.
76801         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76802         ENABLE_RELOCATABLE early.
76803
76804 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76807         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76808         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76809         More generally, don't assume that 64-bit signed int is available
76810         if unsigned int is, and vice versa.
76811         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76812         unsigned symbols, not on their signed counterparts.
76813         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76814         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76815         (UINT64_C, UINTMAX_C):
76816         Likewise.
76817         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76818         unsigned counterparts.
76819         (Have_long_long, Unsigned): New macros.
76820         (Int): Renamed from INT.
76821         (strtoimax): Use the new macros.
76822         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76823         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76824         * modules/inttypes (inttypes.h): Substitute
76825         HAVE_UNSIGNED_LONG_LONG_INT.
76826         * modules/stdint (stdint.h): Likewise.
76827         (Files): Add m4/ulonglong.m4.
76828
76829 2006-10-10  Bruno Haible  <bruno@clisp.org>
76830
76831         Fix a gcc -Wshadow warning.
76832         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76833         to 'bucket'.
76834         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76835         gl_linked_indexof_from_to): Likewise.
76836         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76837         Likewise.
76838         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76839         Likewise.
76840         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76841         Reported by Eric Blake.
76842
76843 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76846         for NetBSD.  Problem reported by Bruno Haible.
76847
76848 2006-10-09  Jim Meyering  <jim@meyering.net>
76849
76850         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76851         Patch from Bruno Haible.
76852
76853 2006-10-09  Jim Meyering  <jim@meyering.net>
76854
76855         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76856         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76857         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76858
76859 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Don't include <config.h> twice; this doesn't work in some cases,
76862         e.g., when config.h has "#define intmax_t long long int" and
76863         we include <config.h>, <inttypes.h>, <config.h> in that order.
76864         Problem reported by Matthew Woehlke in:
76865         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76866         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76867         * lib/fts-cycle.c: Don't include config.h.
76868         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76869         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76870         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76871         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76872         inttypes.h.
76873         * lib/xstrtoumax.c: Likewise.
76874         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76875         __strtol and the like, so that this module is more like its siblings.
76876         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76877         Remove; no longer needed now that we assume gnulib inttypes.h.
76878
76879 2006-10-08  Bruno Haible  <bruno@clisp.org>
76880
76881         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76882         option.
76883
76884 2006-10-07  Jim Meyering  <jim@meyering.net>
76885
76886         * modules/inttypes (inttypes.h): Revert what seems to have been
76887         an inadvertent part of today's change: use "|", not "/" in the
76888         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76889
76890 2006-10-07  Bruno Haible  <bruno@clisp.org>
76891
76892         * modules/sublist: New file.
76893
76894 2006-10-07  Bruno Haible  <bruno@clisp.org>
76895
76896         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76897         * modules/argz (argz.h): Likewise.
76898         * modules/arpa_inet (arpa/inet.h): Likewise.
76899         * modules/byteswap (byteswap.h): Likewise.
76900         * modules/configmake (configmake.h): Likewise.
76901         * modules/fcntl (fcntl.h): Likewise.
76902         * modules/fnmatch (fnmatch.h): Likewise.
76903         * modules/getopt (getopt.h): Likewise.
76904         * modules/glob (glob.h): Likewise.
76905         * modules/inttypes (inttypes.h): Likewise.
76906         * modules/netinet_in (netinet/in.h): Likewise.
76907         * modules/poll (poll.h): Likewise.
76908         * modules/stdbool (stdbool.h): Likewise.
76909         * modules/stdint (stdint.h): Likewise.
76910         * modules/sys_select (sys/select.h): Likewise.
76911         * modules/sys_socket (sys/socket.h): Likewise.
76912         * modules/sys_stat (sys/stat.h): Likewise.
76913         * modules/sysexits (sysexits.h): Likewise.
76914         * modules/unistd (unistd.h): Likewise.
76915         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76916         Add a "DO NOT EDIT" comment to the generated file.
76917         (func_import): Likewise for gnulib-comp.m4.
76918
76919 2006-10-07  Bruno Haible  <bruno@clisp.org>
76920
76921         * lib/gl_sublist.h: New file.
76922         * lib/gl_sublist.c: New file.
76923
76924 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76925
76926         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76927         name (relative to the original working directory) and the file
76928         name component (relative to the temporary working directory).  All
76929         callers changed.
76930         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76931         * lib/mkdir-p.c (make_dir_parents): Likewise.
76932         * lib/mkdir-p.h (make_dir_parents): Likewise.
76933
76934 2006-10-06  Eric Blake  <ebb9@byu.net>
76935
76936         Define several macros for use by the clean-temp module.
76937         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76938         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76939         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76940
76941         * lib/clean-temp.h (close_stream_temp): New declaration.
76942         * lib/clean-temp.c (includes): Pull in headers according to what
76943         other modules are in use.
76944         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76945
76946 2006-10-06  Bruno Haible  <bruno@clisp.org>
76947
76948         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76949         instead of fopen, fwriteerror.
76950
76951 2006-10-06  Bruno Haible  <bruno@clisp.org>
76952
76953         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76954         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76955         int.
76956         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76957         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76958         Return an error indicator.
76959         Suggested by Eric Blake.
76960
76961 2006-10-06  Bruno Haible  <bruno@clisp.org>
76962
76963         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76964         Reported by Eric Blake.
76965
76966 2006-10-06  Bruno Haible  <bruno@clisp.org>
76967
76968         * modules/closeout (Description): Mention stderr too.
76969
76970 2006-10-06  Bruno Haible  <bruno@clisp.org>
76971         and Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * lib/closeout.c (close_stdout): Also close stderr.
76974         * lib/closeout.h: Update comment.
76975
76976 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76979         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76980         * lib/dirchownmod.c: Include lchown.h.
76981         * lib/lchown.c: Don't include files that lchown.h now includes.
76982         Don't declare chown, since lchown.h now does that.
76983         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76984         (lchown): Define to rpl_chown if lchown is declared but
76985         does not exist.  Declare using a prototype if lchown is not
76986         declared.  Add a copyright notice.
76987         * lib/mkstemp.h: Include <unistd.h>.
76988         * lib/openat.c: Include lchown.h.
76989
76990         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76991         we now test for that separately.
76992         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76993         rather than O_NOFOLLOW, when testing whether it's possible to
76994         avoid a race condition reliably.
76995         * lib/savewd.c (savewd_chdir): Likewise.
76996
76997         Remove macros that are no longer needed now that stdint.h is
76998         reliable.
76999         * lib/fsusage.c (UINTMAX_MAX): Remove.
77000         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77001         * lib/utimecmp.c (SIZE_MAX): Remove.
77002
77003         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77004
77005         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77006         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77007         O_NOATIME works.
77008
77009 2006-10-05  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/gl_list.h (gl_sortedlist_search_from_to,
77012         gl_sortedlist_indexof_from_to): New declarations.
77013         (gl_list_implementation): New fields sortedlist_search_from_to,
77014         sortedlist_indexof_from_to.
77015         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77016         inline functions.
77017         * lib/gl_list.c (gl_sortedlist_search_from_to,
77018         gl_sortedlist_indexof_from_to): New functions.
77019         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77020         function.
77021         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77022         (gl_array_sortedlist_search_from_to): New function.
77023         (gl_array_list_implementation): Update.
77024         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77025         function.
77026         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77027         (gl_carray_sortedlist_search_from_to): New function.
77028         (gl_carray_list_implementation): Update.
77029         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77030         gl_linked_sortedlist_indexof_from_to): New functions.
77031         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77032         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77033         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77034         gl_tree_sortedlist_indexof_from_to): New functions.
77035         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77036         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77037         Update.
77038         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77039         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77040         Update.
77041
77042 2006-10-05  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77045         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77046         (struct gl_list_implementation): Add fields search_from_to,
77047         indexof_from_to. Remove fields search, indexof.
77048         (gl_list_search): Use the search_from_to method.
77049         (gl_list_search_from, gl_list_search_from_to): New functions.
77050         (gl_list_indexof): Use the indexof_from_to method.
77051         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77052         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77053         (gl_list_search_from, gl_list_search_from_to): New functions.
77054         (gl_list_indexof): Use the indexof_from_to method.
77055         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77056         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77057         gl_array_indexof. Add start_index, end_index arguments.
77058         (gl_array_search_from_to): Renamed from gl_array_search. Add
77059         start_index, end_index arguments.
77060         (gl_array_remove, gl_array_list_implementation): Update.
77061         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77062         gl_carray_indexof. Add start_index, end_index arguments.
77063         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77064         start_index, end_index arguments.
77065         (gl_carray_remove, gl_carray_list_implementation): Update.
77066         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77067         gl_linked_search. Add start_index, end_index arguments.
77068         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77069         start_index, end_index arguments.
77070         (gl_linked_remove): Update.
77071         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77072         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77073         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77074         field to 'size_t'.
77075         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77076         gl_tree_search. Add start_index, end_index arguments.
77077         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77078         start_index, end_index arguments.
77079         (gl_tree_remove): Update.
77080         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77081         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77082         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77083         function.
77084         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77085         gl_tree_search. Add start_index, end_index arguments.
77086         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77087         start_index, end_index arguments.
77088         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77089         Update.
77090         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77091
77092 2006-10-05  Bruno Haible  <bruno@clisp.org>
77093
77094         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77095
77096         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77097         fwriteerror_temp): New declarations.
77098         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77099         (descriptors): New variable.
77100         (cleanup): First, close the descriptors.
77101         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77102         fclose_temp, fwriteerror_temp): New functions.
77103
77104 2006-10-04  Jim Meyering  <jim@meyering.net>
77105
77106         * lib/fts.c (fts_open): Tiny comment change.
77107
77108 2006-10-04  Bruno Haible  <bruno@clisp.org>
77109
77110         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77111         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77112         gl_LOCK_BODY.
77113         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77114         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77115         gl_LOCK_EARLY_BODY.
77116         (gl_LOCK): Require gl_LOCK_BODY.
77117
77118 2006-10-04  Bruno Haible  <bruno@clisp.org>
77119
77120         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77121         (gl_oset_search_atleast): New declaration.
77122         (struct gl_oset_implementation): Add field 'search_atleast'.
77123         (gl_oset_search_atleast): New inline function.
77124         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77125         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77126         (gl_array_oset_implementation): Update.
77127         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77128         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77129         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77130
77131 2006-10-04  Bruno Haible  <bruno@clisp.org>
77132
77133         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77134
77135 2006-10-03  Bruno Haible  <bruno@clisp.org>
77136
77137         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77138         from gl_avltreehash_list_implementation.
77139
77140 2006-10-03  Bruno Haible  <bruno@clisp.org>
77141
77142         * lib/gl_oset.c (gl_oset_add): Fix return type.
77143
77144 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77145
77146         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77147
77148 2006-10-02  Eric Blake  <ebb9@byu.net>
77149
77150         * modules/strnlen (Depends-on): Add extensions.
77151
77152 2006-10-02  Eric Blake  <ebb9@byu.net>
77153
77154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77155         definition in 2.60+.
77156
77157 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77158
77159         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77160         checks.
77161
77162 2006-10-02  Bruno Haible  <bruno@clisp.org>
77163
77164         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77165         to the AUTOMAKE_OPTIONS.
77166         Reported by Jim Meyering.
77167
77168 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77169
77170         Work around bug in Solaris 10 /proc file system:
77171         /proc/self/fd/NNN/.. isn't the parent directory of
77172         the directory whose file descriptor is NNN.  This needs to
77173         be worked around at run time, not compile time, since a
77174         program might be built on Solaris 8, where things work, and
77175         run on Solaris 10.
77176         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77177         to use the following interface instead:
77178         (OPENAT_BUFFER_SIZE): New macro.
77179         (openat_proc_name): New function.
77180         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77181         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77182         Likewise.
77183         * lib/openat-proc.c: New file.
77184         * modules/openat (Files): Add lib/openat-proc.c.
77185         (Depends-on): Add same-inode, stdbool.
77186         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77187
77188 2006-09-29  Bruno Haible  <bruno@clisp.org>
77189
77190         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77191         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77192         argument. Set stdout_closed before testing for ferror, not after.
77193         (fwriteerror, fwriteerror_no_ebadf): New functions.
77194
77195 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77196
77197         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77198
77199 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77200
77201         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77202         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77203
77204 2006-09-28  Jim Meyering  <jim@meyering.net>
77205
77206         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77207         Include <unistd.h>.
77208
77209 2006-09-28  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77212         * modules/linkedhash-list (Depends-on): Likewise.
77213         * modules/rbtreehash-list (Depends-on): Likewise.
77214
77215 2006-09-28  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/strndup.h: Simplify the redefinition of strndup.
77218         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77219         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77220
77221 2006-09-28  Bruno Haible  <bruno@clisp.org>
77222
77223         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77224         * lib/gl_linkedhash_list.c: Likewise.
77225         * lib/gl_rbtreehash_list.c: Likewise.
77226
77227 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77230         getaddrinfo.
77231
77232         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77233         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77234         it causes <stdio_ext.h> to cause a compile-time error.
77235         Problem reported by Nelson H. F. Beebe.
77236         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77237         of HAVE_DECL___PENDING.
77238
77239         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77240         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77241         declaration.
77242
77243 2006-09-27  Jim Meyering  <jim@meyering.net>
77244
77245         This file could end up with a definition for a function
77246         named __strndup, rather than rpl_strndup on a system with
77247         incomplete weak_alias support.
77248         * lib/strndup.c (strndup): Rename from __strndup.
77249         Remove #defines that used to map __strndup to strndup.
77250         Don't use K&R prototypes.
77251         Remove LIBC-related code, since this file is not sync'd with glibc.
77252         * lib/strndup.h: Revamp, accordingly.
77253         * m4/strndup.m4: Modernize.
77254
77255 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * modules/savewd (Depends-on): Add 'raise'.
77258         * lib/savewd.c: Include <signal.h>, for 'raise'.
77259
77260 2006-09-26  Jim Meyering  <jim@meyering.net>
77261
77262         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77263         when we detect Darwin 8.7.0's acl_get_file bug.
77264         Rearrange to perform the new (below) run-test while $LIBS
77265         contains any acl-related library.  Set USE_ACL at the end.
77266         (gl_ACL_GET_FILE): New function.
77267
77268 2006-09-26  Eric Blake  <ebb9@byu.net>
77269
77270         * lib/verror.c: Include <config.h> unconditionally.
77271
77272 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * modules/clock-time (Maintainer): Add self.
77275         * modules/getlogin_r (Depends-on): Add extensions.
77276
77277 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77278
77279         * modules/clock-time: New module.
77280         * modules/nanosleep (Depends-on): Add clock-time.
77281         * modules/gethrxtime (Depends-on): Likewise.
77282         * modules/gettime (Depends-on): Likewise.
77283         * modules/settime (Depends-on): Likewise.
77284
77285         * modules/fts-lgpl: Depend on openat.
77286         * modules/mkancesdirs: Depend on savewd.
77287         * modules/mkdir-p: Likewise.
77288
77289 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77290
77291         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77292
77293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77294         `gl_have_arbitrary_file_name_length_limit' to
77295         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77296         actually works between configure runs.
77297
77298 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77299             Bruno Haible  <bruno@clisp.org>
77300
77301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77302
77303 2006-09-25  Jim Meyering  <jim@meyering.net>
77304
77305         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77306         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77307
77308 2006-09-25  Eric Blake  <ebb9@byu.net>
77309
77310         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77311         exec's in 2006-09-18 patch when shuffling fds.
77312
77313 2006-09-25  Bruno Haible  <bruno@clisp.org>
77314
77315         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77316         Reported by Jim Meyering.
77317
77318 2006-09-24  Jim Meyering  <jim@meyering.net>
77319
77320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77321         compare a pointer against a literal "0".  That caused failures with
77322         at least HP-UX's hpcc.
77323
77324 2006-09-22  Simon Josefsson  <jas@extundo.com>
77325
77326         * modules/gc-sha1:
77327         * modules/gc-md4:
77328         * modules/gc-hmac-sha1:
77329         * modules/gc-hmac-md5:
77330         * modules/gc-des:
77331         * modules/gc-arcfour: Distribute more files.
77332
77333 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77334
77335         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77336         (gl_linked_iterator_from_to): Initialize struct completely.
77337         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77338         (gl_tree_iterator_from_to): Likewise
77339         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77340         * lib/gl_array_list.c [lint] (gl_array_iterator)
77341         (gl_array_iterator_from_to): Likewise.
77342         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77343         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77344         (gl_carray_iterator_from_to): Likewise.
77345
77346         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77347         * lib/md4.c (md4_process_block): Remove unused variable.
77348         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77349         parentheses for clarity.
77350
77351 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77352
77353         * modules/bison-i18n (Depends-on): Add gettext.
77354
77355 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77356
77357         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77358         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77359         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77360         also add missing comma that caused broken test.
77361         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77362         stdlib.h, for `abort'.
77363         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77364         variables.
77365         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77366         include unistd.h if present, for `rmdir'.
77367         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77368         variables.
77369         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77370         in the process include standard headers for prototypes.
77371         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77372         gets declared on GNU/Linux.
77373         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77374         unistd.h, for `rmdir'.
77375         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77376
77377         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77378         always true.
77379         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77380
77381         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77382
77383 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77384
77385         * gnulib-tool (func_version): Create output all at once.  This
77386         may help avoid triggering unnecessary SIGPIPEs, and at any
77387         rate it doesn't hurt.
77388
77389 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77390             Bruno Haible  <bruno@clisp.org>
77391
77392         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77393         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77394         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77395
77396         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77397         (gl_FUNC_VASPRINTF): Invoke it.
77398
77399 2006-09-22  Bruno Haible  <bruno@clisp.org>
77400
77401         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77402         getloadavg.c as first argument.
77403
77404 2006-09-22  Bruno Haible  <bruno@clisp.org>
77405
77406         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77407         at the beginning of the gl_INIT macro.
77408         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77409         gl_GETLOADAVG.
77410
77411 2006-09-22  Bruno Haible  <bruno@clisp.org>
77412
77413         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77414         module.
77415         Suggested by Ralf Wildenhues.
77416
77417 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         Import this patch from libc:
77420
77421         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77422
77423         * lib/regex_internal.c (re_string_reconstruct): Handle
77424         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77425         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77426         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77427         re_string_context_at.
77428
77429         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77430         now requires it.
77431         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77432         gl_REGEX now does it for us.
77433         (gl_REGEX): Add test taken from
77434         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77435
77436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77437         Check that large offsets work.  Modernize Autoconf usages.
77438         Prefer "yes" to mean a good thing rather than a bad.
77439         Don't put "#define mkstemp" in config.h, as this might interfere
77440         with standard system headers that "#define mkstemp mkstemp64".
77441
77442         * modules/mkstemp (Depends-on): Add extensions, so that
77443         mkstemp is visible on some platforms.
77444         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77445         (Include): Change to "mkstemp.h" from <stdlib.h>.
77446         (Files): Add mkstemp.h.
77447
77448         * lib/mkstemp.h: New file, since some standard headers
77449         #define mkstemp.
77450         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77451         Include "mkstemp.h".
77452         Make the _LIBC code resemble glibc original more,
77453         e.g., use K&R style.
77454         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77455         (mkstemp): Remove, since mkstemp.h does this for us.
77456         * lib/stdlib--.h: Include mkstemp.h.
77457
77458         Import this patch from libc:
77459
77460         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77461
77462         * lib/tempname.c (__gen_tempname): Change attempts_min
77463         into a macro.  Use preprocessor to decide how to initialize
77464         attempts [Coverity CID 67].
77465
77466 2006-09-20  Bruno Haible  <bruno@clisp.org>
77467
77468         * lib/mkdtemp.c: Import from libc.
77469         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77470                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77471                 attempts_min into a macro.  Use preprocessor to decide how to
77472                 initialize attempts [Coverity CID 67].
77473         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77474                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77475                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77476
77477 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77478
77479         * gnulib-tool (func_exit): New function, to allow to pass the
77480         exit status portably through the trap.  Use everywhere.
77481         (--help, --version): Signal a write error.
77482         (trap): catch SIGPIPE, for write errors.
77483         Exit at the end of the trap, with the correct exit status.
77484
77485 2006-09-19  Karl Berry  <karl@gnu.org>
77486
77487         * doc/gnulib.texi: note about the license texinfo files.
77488
77489 2006-09-19  Eric Blake  <ebb9@byu.net>
77490
77491         * gnulib-tool: Avoid space-tab.
77492
77493 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77496         that prevented coreutils 6.1 from building.  Problem reported
77497         by Petter Reinholdtsen.
77498
77499 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * gnulib-tool (avoidlist): Fix typo that broke options like
77502         --avoid=lock that are used by coreutils bootstrap.
77503
77504 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77505
77506         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77507         more systematically.
77508
77509 2006-09-18  Jim Meyering  <jim@meyering.net>
77510
77511         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77512
77513 2006-09-18  Bruno Haible  <bruno@clisp.org>
77514
77515         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77516
77517 2006-09-18  Bruno Haible  <bruno@clisp.org>
77518
77519         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77520         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77521         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77522         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77523         * m4/gettext.m4: Require autoconf >= 2.52.
77524         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77525         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77526         of gl_cv_header_inttypes_h.
77527
77528 2006-09-18  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/javaversion.c: Include configmake.h.
77531
77532 2006-09-18  Bruno Haible  <bruno@clisp.org>
77533
77534         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77535         avoid that the while loops be executed in a subshell.
77536
77537 2006-09-18  Bruno Haible  <bruno@clisp.org>
77538
77539         * MODULES.html.sh (func_module): Break long lines.
77540         Suggested by Bruce Korb <bkorb@gnu.org>.
77541
77542 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77543
77544         Speed up by a factor of 1.12.
77545         * gnulib-tool (nl): New variable.
77546         (func_import): Rewrite include directive extraction to only read each
77547         directive once.
77548
77549 2006-09-17  Bruno Haible  <bruno@clisp.org>
77550
77551         * modules/javaversion (Makefile.am): Remove DEFS setting.
77552         (Depends-on): Add configmake, for PKGDATADIR definition.
77553
77554 2006-09-17  Bruno Haible  <bruno@clisp.org>
77555
77556         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77557
77558 2006-09-17  Bruno Haible  <bruno@clisp.org>
77559
77560         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77561         (func_modules_transitive_closure, func_modules_add_dummy,
77562         func_modules_to_filelist, func_import, func_create_testdir,
77563         func_create_megatestdir, ...): Use it wherever possible.
77564         Suggested by Ralf Wildenhues.
77565
77566 2006-09-16  Karl Berry  <karl@gnu.org>
77567
77568         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77569         to avoid sectioning errors.
77570         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77571         [ifinfo]: blank line after @center-ed titles.
77572         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77573         Spell FSF address consistently with others.
77574         (These changes approved by rms.)
77575
77576 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77577
77578         Speed up by a factor of 1.61.
77579         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77580         already checked module names again.
77581
77582 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77583
77584         Speed up by a factor of 1.13.
77585         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77586         for new_files, and the input to func_add_or_update.
77587
77588 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77589
77590         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77591         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77592
77593 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * modules/mkancesdirs (Depends-on): Add fcntl.
77596         * modules/savewd: New file.
77597         * MODULES.html.sh (File system functions): Add savewd.
77598
77599         * modules/configmake (Makefile.am): Add support for the
77600         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77601
77602 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         * m4/savewd.m4: New file.
77605
77606 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77609         (dirchownmod): New arg FD.  All callers changed.
77610         Use FD rather than opening the directory ourself, as opening is
77611         now the caller's responsibility.
77612         * lib/dirchownmod.h: Likewise.
77613         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77614         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77615         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77616         (test_dir): Remove.
77617         (mkancesdirs): Return length of prefix of FILE that has already
77618         been made, or -2 if there is a child doing the work.  Redo
77619         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77620         ".", and treat ".." specially since it might stray back into
77621         already-created areas.  Use a subprocess if necessary.  New arg
77622         WD; all users changed.  MAKE_DIR function should now return 1
77623         if it creates a directory that is not readable.  Return -2 if
77624         a child process is spun off.
77625         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77626         Adjust signature to match code.
77627         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77628         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77629         all users changed.
77630         * lib/savewd.c, lib/savewd.h: New files.
77631
77632 2006-09-15  Jim Meyering  <jim@meyering.net>
77633
77634         * modules/rename-dest-slash: New module.
77635         * MODULES.html.sh (posix_compat): Add it here.
77636
77637         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77638
77639 2006-09-15  Jim Meyering  <jim@meyering.net>
77640
77641         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77642         file.
77643
77644         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77645
77646 2006-09-15  Jim Meyering  <jim@meyering.net>
77647
77648         * lib/rename-dest-slash.c (has_trailing_slash): Use
77649         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77650         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77651         test before testing whether SRC is a directory.
77652         Suggestions from Bruno Haible.
77653
77654         Avoid a warning about an unused variable.
77655         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77656         into the #ifdef block where it's used.
77657
77658         * lib/rename-dest-slash.c: New file.
77659
77660 2006-09-14  Bruno Haible  <bruno@clisp.org>
77661
77662         * lib/allocsa.c: Include <config.h> unconditionally.
77663         * lib/asnprintf.c: Likewise.
77664         * lib/asprintf.c: Likewise.
77665         * lib/c-strcasecmp.c: Likewise.
77666         * lib/c-strcasestr.c: Likewise.
77667         * lib/c-strncasecmp.c: Likewise.
77668         * lib/c-strstr.c: Likewise.
77669         * lib/classpath.c: Likewise.
77670         * lib/clean-temp.c: Likewise.
77671         * lib/concatpath.c: Likewise.
77672         * lib/copy-file.c: Likewise.
77673         * lib/csharpcomp.c: Likewise.
77674         * lib/csharpexec.c: Likewise.
77675         * lib/execute.c: Likewise.
77676         * lib/fatal-signal.c: Likewise.
77677         * lib/findprog.c: Likewise.
77678         * lib/fwriteerror.c: Likewise.
77679         * lib/gl_array_list.c: Likewise.
77680         * lib/gl_array_oset.c: Likewise.
77681         * lib/gl_avltree_list.c: Likewise.
77682         * lib/gl_avltree_oset.c: Likewise.
77683         * lib/gl_avltreehash_list.c: Likewise.
77684         * lib/gl_carray_list.c: Likewise.
77685         * lib/gl_linked_list.c: Likewise.
77686         * lib/gl_linkedhash_list.c: Likewise.
77687         * lib/gl_list.c: Likewise.
77688         * lib/gl_oset.c: Likewise.
77689         * lib/gl_rbtree_list.c: Likewise.
77690         * lib/gl_rbtree_oset.c: Likewise.
77691         * lib/gl_rbtreehash_list.c: Likewise.
77692         * lib/imaxabs.c: Likewise.
77693         * lib/imaxdiv.c: Likewise.
77694         * lib/javacomp.c: Likewise.
77695         * lib/javaexec.c: Likewise.
77696         * lib/javaversion.c: Likewise.
77697         * lib/linebreak.c: Likewise.
77698         * lib/localcharset.c: Likewise.
77699         * lib/lock.c: Likewise.
77700         * lib/mbchar.c: Likewise.
77701         * lib/mbswidth.c: Likewise.
77702         * lib/mkdtemp.c: Likewise.
77703         * lib/pipe.c: Likewise.
77704         * lib/printf-args.c: Likewise.
77705         * lib/printf-parse.c: Likewise.
77706         * lib/progname.c: Likewise.
77707         * lib/progreloc.c: Likewise.
77708         * lib/readlink.c: Likewise.
77709         * lib/sh-quote.c: Likewise.
77710         * lib/stpcpy.c: Likewise.
77711         * lib/stpncpy.c: Likewise.
77712         * lib/strcasecmp.c: Likewise.
77713         * lib/strcasestr.c: Likewise.
77714         * lib/strcspn.c: Likewise.
77715         * lib/striconv.c: Likewise.
77716         * lib/strncasecmp.c: Likewise.
77717         * lib/strnlen1.c: Likewise.
77718         * lib/strstr.c: Likewise.
77719         * lib/strtok_r.c: Likewise.
77720         * lib/tls.c: Likewise.
77721         * lib/tmpdir.c: Likewise.
77722         * lib/unicodeio.c: Likewise.
77723         * lib/unsetenv.c: Likewise.
77724         * lib/vasnprintf.c: Likewise.
77725         * lib/vasprintf.c: Likewise.
77726         * lib/wait-process.c: Likewise.
77727         * lib/xallocsa.c: Likewise.
77728         * lib/xsetenv.c: Likewise.
77729         * lib/xstriconv.c: Likewise.
77730
77731 2006-09-13  Simon Josefsson  <jas@extundo.com>
77732
77733         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77734         that internally, suggested by Ralf Wildenhues
77735         <Ralf.Wildenhues@gmx.de>.
77736
77737 2006-09-13  Simon Josefsson  <jas@extundo.com>
77738
77739         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77740         @LIBOBJS@.
77741         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77742
77743 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77744
77745         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77746         longer worry about uses that don't define HAVE_CONFIG_H.
77747         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77748         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77749         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77750         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77751         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77752         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77753         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77754         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77755         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77756         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77757         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77758         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77759         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77760         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77761         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77762         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77763         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77764         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77765         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77766         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77767         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77768         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77769         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77770         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77771         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77772         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77773         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77774         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77775         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77776         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77777         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77778         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77779         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77780         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77781         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77782         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77783         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77784         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77785         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77786         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77787         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77788         Likewise.
77789
77790 2006-09-13  Eric Blake  <ebb9@byu.net>
77791
77792         * lib/getopt.c: Fix typo in last commit.
77793
77794 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77795
77796         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77797         dgettext.
77798
77799 2006-09-12  Jim Meyering  <jim@meyering.net>
77800
77801         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77802         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77803         Reported by Nelson H. F. Beebe.
77804
77805 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77806
77807         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77808         program_invocation_name and program_invocation_short_name are
77809         initialized.
77810         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77811         and program_invocation_short_name to argp.h, so they are visible
77812         to user programs.
77813         * lib/argp.h: Likewise
77814
77815 2006-09-10  Bruno Haible  <bruno@clisp.org>
77816
77817         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77818         m4/inttypes_h.m4, m4/uintmax_t.m4.
77819
77820 2006-09-10  Bruno Haible  <bruno@clisp.org>
77821
77822         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77823         gl_AC_TYPE_UINTMAX_T.
77824
77825 2006-09-10  Bruno Haible  <bruno@clisp.org>
77826
77827         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77828
77829 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77830
77831         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77832         convention.  Text proposed by Bruno Haible.
77833         (struct argp_option): Document the use of N_() wrappers.
77834
77835         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77836         '\v', and translate the two parts separately, instead of feeding
77837         the whole string to gettext.  This allows to exclude
77838         '\v' from the strings visible to the translator by writing doc
77839         strings as N_("..") "\v" N_("..").
77840
77841 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         * config/srclist.txt: Undo latest change; the bug was fixed.
77844
77845 2006-09-09  Bruno Haible  <bruno@clisp.org>
77846
77847         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77848         assignments if building a library without libtool.
77849         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77850         in func_emit_lib_Makefile_am.
77851         (func_import): When building a static library libfoo.a, arrange to
77852         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77853         (func_create_testdir): Likewise.
77854         * modules/gc (configure.ac, Makefile.am): If building statically,
77855         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77856         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77857         * modules/striconv (configure.ac, Makefile.am): Likewise.
77858         Based on a suggestion by Ralf Wildenhues.
77859
77860 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77863         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77864         Also:
77865
77866         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77867         Add year_2050_test to catch glibc bug 2821
77868         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77869
77870         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77871         Prefer #ifdef to #if.
77872
77873         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77874         Return from 'main' instead of calling 'exit'.
77875
77876 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77879         returned the maximum time_t value rather than (time_t) -1.
77880         Problem originally reported by William Bardwell
77881         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77882
77883         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77884         Moved to here ...
77885         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77886         ... from here.
77887
77888 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77891         2821 is fixed.
77892
77893 2006-09-08  Jim Meyering  <jim@meyering.net>
77894
77895         Don't make generated files read-only.  That would bother too many
77896         people.  However, do retain the ability to work when targets are
77897         read-only: remove the destination and temporary files before writing
77898         them (when generated via sed or echo), or by using the -f option for
77899         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77900         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77901         * modules/byteswap, modules/configmake, modules/fcntl:
77902         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77903         * modules/localcharset, modules/netinet_in, modules/poll:
77904         * modules/stdbool, modules/stdint, modules/sys_select:
77905         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77906
77907 2006-09-08  Jim Meyering  <jim@meyering.net>
77908
77909         Avoid new build failure on FreeBSD 6.0.
77910         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77911         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77912         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77913
77914 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77915
77916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77917
77918 2006-09-07  Jim Meyering  <jim@meyering.net>
77919
77920         Fix global typo in last change: use chmod u-w, not chmod u-x.
77921         Spotted by Paul Eggert and Bruce Korb.
77922         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77923         * modules/byteswap, modules/configmake, modules/fcntl:
77924         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77925         * modules/localcharset, modules/netinet_in, modules/poll:
77926         * modules/stdbool, modules/stdint, modules/sys_select:
77927         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77928
77929 2006-09-06  Jim Meyering  <jim@meyering.net>
77930
77931         Make generated files be read-only.
77932         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77933         Ensure that each generated file is now read-only.
77934         * modules/argz: Likewise.
77935         * modules/arpa_inet: Likewise.
77936         * modules/byteswap: Likewise.
77937         * modules/configmake: Likewise.
77938         * modules/fcntl: Likewise.
77939         * modules/fnmatch: Likewise.
77940         * modules/getopt: Likewise.
77941         * modules/glob: Likewise.
77942         * modules/inttypes: Likewise.
77943         * modules/netinet_in: Likewise.
77944         * modules/poll: Likewise.
77945         * modules/stdbool: Likewise.
77946         * modules/stdint: Likewise.
77947         * modules/sys_select: Likewise.
77948         * modules/sys_socket: Likewise.
77949         * modules/sys_stat: Likewise.
77950         * modules/sysexits: Likewise.
77951         * modules/localcharset: Same as above, but continue using temporary
77952         file named "t-$@" (why different?) rather than the "$@-t" used
77953         everywhere else.
77954
77955         * modules/sysexits (Makefile.am): Replace literal occurrences
77956         of "sysexit.h" more readable, and more consistent, "$@".
77957
77958 2006-09-06  Bruno Haible  <bruno@clisp.org>
77959
77960         * modules/striconv: New file.
77961         * modules/xstriconv: New file.
77962         * MODULES.html.sh (Internationalization functions): Add striconv,
77963         xstriconv.
77964
77965 2006-09-06  Bruno Haible  <bruno@clisp.org>
77966
77967         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77968         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77969         not using libtool correctly.
77970
77971 2006-09-06  Bruno Haible  <bruno@clisp.org>
77972
77973         * lib/striconv.h: New file.
77974         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77975         iconvstring.c.
77976         * lib/xstriconv.h: New file.
77977         * lib/xstriconv.c: New file.
77978
77979 2006-09-06  Bruno Haible  <bruno@clisp.org>
77980
77981         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77982         lib_..._LDFLAGS.
77983
77984 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77985
77986         * lib/argz_.h: Sync from Libtool.
77987
77988         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77989                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77990
77991         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77992
77993 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77994
77995         * modules/trim: New file.
77996
77997 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77998
77999         * lib/trim.h: New file.
78000         * lib/trim.c: New file.
78001
78002 2006-09-05  Bruno Haible  <bruno@clisp.org>
78003
78004         * MODULES.html.sh (String handling): Add trim.
78005
78006 2006-09-04  Karl Berry  <karl@gnu.org>
78007
78008         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78009         until next release.
78010
78011 2006-09-03  Bruno Haible  <bruno@clisp.org>
78012
78013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78014         correctly.
78015
78016 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78019         not gl_GETLOADAVG.  Omit unneeded semicolons.
78020         Problems reported by Ralf Wildenhues in
78021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78022         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78023         at the end, which is the usual gnulib style.
78024
78025         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78026         of doing all the work ourselves.
78027         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78028         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78029
78030 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78033         Problem reported by Ralf Wildenhues in
78034         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78035
78036         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78037         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78038
78039 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78042         yesterday's patch by changing test -n to test -z.
78043
78044 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78047         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78048         the former is now obsolescent.
78049
78050         * modules/chdir-long (Depends-on): Add fcntl.
78051
78052 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78055         obsolescent, and programs should use gnulib instead.
78056         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78057         but with prefixes changed.
78058
78059 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78062         or stdbool.h, because they might not exist while configuring.
78063
78064         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78065         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78066         does that for us.
78067         (O_DIRECTORY): Remove.
78068
78069 2006-08-31  Eric Blake  <ebb9@byu.net>
78070
78071         * gnulib-tool: Don't let emacs change spaces to TAB.
78072
78073 2006-08-31  Bruno Haible  <bruno@clisp.org>
78074
78075         * gnulib-tool: When calling func_import more than once, do it in a
78076         subshell.
78077         Reported by Eric Blake <ebb9@byu.net>.
78078
78079 2006-08-31  Bruno Haible  <bruno@clisp.org>
78080
78081         * gnulib-tool (nl): Remove variable.
78082         (sed_transform_lib_file): Use more robust test for config-h module.
78083         (func_import): Fix typo in 2006-08-25 patch.
78084
78085 2006-08-31  Bruno Haible  <bruno@clisp.org>
78086
78087         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78088         specified, augment Makefile.am variables instead of assigning them.
78089
78090 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         Work around a bug in both the Linux and SunOS 64-bit kernels:
78093         nanosleep mishandles sleeps for longer than 2**31 seconds.
78094         Problem reported by Frank v Waveren in
78095         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78097         Check for nanosleep bug.
78098         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78099
78100 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78101
78102         Work around a bug in both the Linux and SunOS 64-bit kernels:
78103         nanosleep mishandles sleeps for longer than 2**31 seconds.
78104         Problem reported by Frank v Waveren in
78105         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78106         * lib/nanosleep.c (BILLION): New constant.
78107         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78108         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78109         implementation.
78110
78111 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * modules/nanosleep (Depends-on): Add gettime.
78114
78115 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78116         and Simon Josefsson  <jas@extundo.com>
78117         and Oskar Liljeblad  <oskar@osk.mine.nu>
78118
78119         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78120         * gnulib-tool (func_import): New license type 'unmodifiable license
78121         text'.
78122         * modules/fdl: Use it.  Longer description.
78123         * module/gpl, module/lgpl: New files.
78124
78125 2006-08-30  Jim Meyering  <jim@meyering.net>
78126
78127         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78128         shadowing the parameter.
78129
78130 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78131
78132         Sync from Libtool:
78133
78134         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78135
78136         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78137         sharing with gnulib.  Report by Eric Blake.
78138
78139 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * modules/isapipe: New file.
78142         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78143
78144 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * modules/configmake (Makefile.am): Add a comment, and omit
78147         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78148         by Bruno Haible.
78149
78150 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * m4/isapipe.m4: New file.
78153
78154 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * lib/isapipe.c, lib/isapipe.h: New files.
78157
78158 2006-08-29  Jim Meyering  <jim@meyering.net>
78159
78160         * modules/configmake (Makefile.am): Make configmake.h depend on
78161         Makefile.  Otherwise, a stale configmake.h could hang around.
78162
78163 2006-08-29  Eric Blake  <ebb9@byu.net>
78164
78165         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78166         resolution of upstream bug 3044.
78167
78168 2006-08-29  Bruno Haible  <bruno@clisp.org>
78169
78170         * modules/localcharset (Depends-on): Add configmake.
78171         (Makefile.am): Remove setting of LIBDIR through DEFS.
78172
78173 2006-08-29  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78176         defined.
78177
78178 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78179
78180         * modules/fcntl: New file.
78181         * modules/chdir-safer (Depends-on): Add fcntl.
78182         * modules/fts: Likewise.
78183         * modules/mkdir-p: Likewise.
78184
78185         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78186         This undoes the most recent change, since we're now addressing the
78187         problem in a different way.
78188
78189         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78190         into output, since the output might be called Makefile.am even
78191         if $makefile_name is something different.
78192         (func_import): Use $makefile_am rather than
78193         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78194         empty.
78195
78196         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78197
78198 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78201         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78202         recent change to stdint.m4, since we're now addressing the problem in a
78203         different way.
78204
78205 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78206
78207         * m4/fcntl_h.m4: New file.
78208
78209 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * lib/fcntl_.h: New file.
78212         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78213         the fcntl module.
78214         * lib/dirchownmod.c: Likewise.
78215         * lib/fts.c: Likewise.
78216
78217         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78218         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78219         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78220         just before including <inttypes.h>, to avoid circular inclusion.
78221
78222 2006-08-28  Jim Meyering  <jim@meyering.net>
78223
78224         * doc/visibility.texi: Actually read and correct the grammar of the
78225         sentence affected by yesterday's change.
78226
78227 2006-08-28  Eric Blake  <ebb9@byu.net>
78228
78229         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78230         needs wrapper.
78231
78232 2006-08-28  Eric Blake  <ebb9@byu.net>
78233
78234         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78235
78236 2006-08-28  Eric Blake  <ebb9@byu.net>
78237
78238         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78239
78240 2006-08-28  Bruno Haible  <bruno@clisp.org>
78241
78242         * modules/c-strstr: New file, from GNU gettext.
78243         * MODULES.html.sh (String handling): Add c-strstr.
78244
78245 2006-08-28  Bruno Haible  <bruno@clisp.org>
78246
78247         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78248         macros.
78249         Reported by Eric Blake.
78250
78251 2006-08-28  Bruno Haible  <bruno@clisp.org>
78252
78253         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78254         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78255         * lib/vasprintf.c: Include errno.h, limits.h.
78256         (EOVERFLOW): New fallback definition.
78257         (vasprintf): Test here whether the string length is > INT_MAX.
78258         * lib/vsnprintf.c: Include errno.h, limits.h.
78259         (EOVERFLOW): New fallback definition.
78260         (vsnprintf): Fix bug when generated string was too long for the buffer.
78261         Test here whether the string length is > INT_MAX.
78262
78263 2006-08-28  Bruno Haible  <bruno@clisp.org>
78264
78265         * lib/inttypes_.h (SCNX*): Remove definitions.
78266         Reported by Eric Blake.
78267
78268 2006-08-28  Bruno Haible  <bruno@clisp.org>
78269
78270         * lib/c-strstr.h: New file, from GNU gettext.
78271         * lib/c-strstr.c: New file, from GNU gettext.
78272
78273 2006-08-28  Bruno Haible  <bruno@clisp.org>
78274
78275         * gnulib-tool: Reorder some statements.
78276
78277 2006-08-28  Bruno Haible  <bruno@clisp.org>
78278
78279         * gnulib-tool: New option --makefile-name.
78280         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78281         $makefile_name.
78282         (func_import): Write $makefile_name to the cache file, and read it from
78283         there unless explicitly specified. Use $makefile_name as file name
78284         instead of Makefile.am. Adjust the recommendations accordingly.
78285
78286 2006-08-28  Bruno Haible  <bruno@clisp.org>
78287
78288         * gnulib-tool (func_verify_module): Check against misapplying patch.
78289
78290 2006-08-28  Bruno Haible  <bruno@clisp.org>
78291
78292         * gnulib-tool (func_relativize, func_relconcat): New functions.
78293         Give an error if --local-dir is given with --update.
78294         Remove trailing slashes from $local_gnulib_dir.
78295         (func_import): Store the relativized $local_gnulib_dir in
78296         gnulib-cache.m4, and read it from there if not specified explicitly.
78297
78298 2006-08-28  Bruno Haible  <bruno@clisp.org>
78299
78300         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78301         is the current directory. Respect also $local_gnulib_dir.
78302
78303 2006-08-28  Bruno Haible  <bruno@clisp.org>
78304             Simon Josefsson  <jas@extundo.com>
78305
78306         BeOS portability.
78307         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78308
78309 2006-08-27  Jim Meyering  <jim@meyering.net>
78310
78311         * doc/visibility.texi: Remove duplicate word: "pointer".
78312
78313 2006-08-26  Bruno Haible  <bruno@clisp.org>
78314
78315         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78316         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78317         (Makefile.am): Create inttypes.h from inttypes_.h.
78318         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78319
78320         * modules/imaxabs: New file.
78321
78322         * modules/imaxdiv: New file.
78323
78324 2006-08-26  Bruno Haible  <bruno@clisp.org>
78325
78326         * m4/inttypes.m4: New file.
78327         * m4/_inttypes_h.m4: Remove file.
78328         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78329         PRI_MACROS_BROKEN.
78330         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78331
78332         * m4/imaxabs.m4: New file.
78333
78334         * m4/imaxdiv.m4: New file.
78335
78336 2006-08-26  Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/inttypes_.h: New file.
78339         * lib/inttypes.h: Remove file.
78340         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78341
78342         * lib/imaxabs.c: New file.
78343
78344         * lib/imaxdiv.c: New file.
78345
78346 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         New config-h module, so that "make" output needn't be cluttered
78349         by -DHAVE_CONFIG_H.
78350         * MODULES.html.sh (Support for building libraries and executables):
78351         Add config-h.
78352         * modules/config-h: New file.
78353         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78354         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78355         the config-h module is used.
78356
78357         New configmake module, so that "make" output needn't be cluttered
78358         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78359         * MODULES.html.sh (Support for building libraries and executables):
78360         Add configmake.
78361         * modules/configmake: New file.
78362
78363 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * m4/config-h.m4: New file.
78366
78367 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * config/srclist.txt: Add elisp-comp.
78370
78371 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78372
78373         * MODULES.html.sh (Support for building libraries and executables):
78374         Add elisp-comp.
78375         * build-aux/elisp-comp: New file.
78376         * modules/elisp-comp: New file.
78377
78378 2006-08-24  Bruno Haible  <bruno@clisp.org>
78379
78380         * gnulib-tool (func_create_testdir): Use non-default values of
78381         sourcebase and m4base.
78382
78383 2006-08-24  Bruno Haible  <bruno@clisp.org>
78384
78385         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78386         HTML structure.
78387
78388 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         * modules/openat (Depends-on): Add lchown.
78391
78392 2006-08-23  Bruno Haible  <bruno@clisp.org>
78393
78394         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78395         of gl_LOCK_EARLY instead of gl_LOCK.
78396
78397 2006-08-23  Bruno Haible  <bruno@clisp.org>
78398
78399         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78400         on OSF/1 to no.
78401         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78402
78403 2006-08-23  Bruno Haible  <bruno@clisp.org>
78404
78405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78406         as unusable.
78407
78408         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78409         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78410         (gl_LOCK): New macro.
78411
78412 2006-08-22  Simon Josefsson  <jas@extundo.com>
78413
78414         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78415         to md5 module.
78416
78417 2006-08-22  Simon Josefsson  <jas@extundo.com>
78418
78419         * MODULES.html.sh: Add "Support for maintaining and release
78420         projects".
78421
78422         * build-aux/gnupload: New file, from coreutils.
78423
78424 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         Avoid the need for AC_LIBSOURCES in m4 macros.
78427         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78428         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78429         * modules/check-version (EXTRA_DIST): Add check-version.h.
78430         * modules/crc (EXTRA_DIST): Add crc.h.
78431         * modules/des (EXTRA_DIST): Add des.h.
78432         * modules/gc (EXTRA_DIST): Add gc.h.
78433         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78434         * modules/getline (EXTRA_DIST): Add getline.h.
78435         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78436         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78437         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78438         * modules/md2 (EXTRA_DIST): Add md2.h.
78439         * modules/md4 (EXTRA_DIST): Add md4.h.
78440         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78441         * modules/read-file (EXTRA_DIST): Add read-file.h.
78442         * modules/readline (EXTRA_DIST): Add readline.h.
78443         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78444         rijndael-api-fst.h.
78445
78446 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * m4/rijndael.m4 (gl_ARCFOUR):
78449         * m4/arctwo.m4 (gl_ARCTWO):
78450         * m4/check-version.m4 (gl_CHECK_VERSION):
78451         * m4/crc.m4 (gl_CRC):
78452         * m4/des.m4 (gl_DES):
78453         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78454         * m4/gc.m4 (gl_GC):
78455         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78456         * m4/getline.m4 (gl_FUNC_GETLINE):
78457         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78458         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78459         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78460         * m4/md2.m4 (gl_MD2):
78461         * m4/md4.m4 (gl_MD4):
78462         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78463         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78464         * m4/readline.m4 (gl_FUNC_READLINE):
78465         * m4/rijndael.m4 (gl_RIJNDAEL):
78466         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78467         to get the necessary .h files and whatnot.
78468
78469 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78472         gnulib rather than the other way around.
78473         * config/srclistvars.sh (COREUTILS): Remove.
78474
78475 2006-08-22  Jim Meyering  <jim@meyering.net>
78476
78477         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78478
78479         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78480
78481 2006-08-22  Eric Blake  <ebb9@byu.net>
78482
78483         * modules/regexprops-generic: New file.
78484         * MODULES.html.sh (Support for building documentation): List it.
78485
78486 2006-08-22  Eric Blake  <ebb9@byu.net>
78487
78488         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78489         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78491         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78492
78493 2006-08-22  Bruno Haible  <bruno@clisp.org>
78494
78495         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78496         and lib_LTLIBRARIES like the other lib_* variables.
78497
78498 2006-08-22  Bruno Haible  <bruno@clisp.org>
78499
78500         * build-aux/x-to-1.in: New file, from GNU gettext.
78501
78502 2006-08-22  Bruno Haible  <bruno@clisp.org>
78503
78504         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78505         <utmpx.h> exists.
78506
78507 2006-08-22  Bruno Haible  <bruno@clisp.org>
78508
78509         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78510         <utmpx.h> exists.
78511
78512 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78513
78514         BeOS portability.
78515         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78516         exist.
78517         Problem reported by Bruno Haible.
78518
78519 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         Avoid the need for AC_LIBSOURCES in m4 macros.
78522         * modules/acl (EXTRA_DIST): Add acl.h.
78523         * modules/argmatch (Files): Add m4/argmatch.m4.
78524         (configure.ac): Add gl_ARGMATCH.
78525         (EXTRA_DIST): Renamed from lib_SOURCES, for
78526         consistency with the other modules.  Remove argmatch.c.
78527         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78528         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78529         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78530         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78531         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78532         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78533         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78534         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78535         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78536         * modules/closeout (EXTRA_DIST): Add closeout.h.
78537         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78538         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78539         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78540         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78541         dirname.h; remove basename.c and stripslash.c.
78542         * modules/exclude (EXTRA_DIST): Add exclude.h.
78543         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78544         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78545         * modules/file-type (EXTRA_DIST): Add file-type.h.
78546         * modules/filemode (EXTRA_DIST): Add filemode.h.
78547         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78548         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78549         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78550         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78551         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78552         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78553         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78554         * modules/getdate (EXTRA_DIST): Add getdate.c.
78555         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78556         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78557         * modules/getpass (EXTRA_DIST): Add getpass.h.
78558         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78559         * modules/group-member (EXTRA_DIST): Add group-member.h.
78560         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78561         * modules/hash (EXTRA_DIST): Add hash.h.
78562         * modules/human (EXTRA_DIST): Add human.h.
78563         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78564         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78565         * modules/lchown (EXTRA_DIST): Add lchown.h.
78566         * modules/long-options (EXTRA_DIST): Add long-options.h.
78567         * modules/lstat (EXTRA_DIST): Add lstat.h.
78568         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78569         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78570         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78571         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78572         * modules/memxor (EXTRA_DIST): Add memxor.h.
78573         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78574         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78575         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78576         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78577         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78578         * modules/physmem (EXTRA_DIST): Add physmem.h.
78579         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78580         * modules/posixver (EXTRA_DIST): Add posixver.h.
78581         * modules/quote (EXTRA_DIST): Add quote.h.
78582         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78583         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78584         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78585         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78586         regex_internal.h regexec.c.
78587         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78588         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78589         * modules/same (EXTRA_DIST): Add same.h.
78590         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78591         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78592         * modules/savedir (EXTRA_DIST): Add savedir.h.
78593         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78594         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78595         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78596         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78597         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78598         * modules/strdup (EXTRA_DIST): Add strdup.h.
78599         * modules/strftime (EXTRA_DIST): Add strftime.h.
78600         * modules/strndup (EXTRA_DIST): Add strndup.h.
78601         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78602         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78603         * modules/time_r (EXTRA_DIST): Add time_r.h.
78604         * modules/timespec (EXTRA_DIST): Add timespec.h.
78605         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78606         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78607         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78608         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78609         * modules/userspec (EXTRA_DIST): Add userspec.h.
78610         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78611         * modules/utimens (EXTRA_DIST): Add utimens.h.
78612         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78613         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78614         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78615         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78616         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78617         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78618         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78619         * modules/yesno (EXTRA_DIST): Add yesno.h.
78620
78621 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78624
78625         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78626         * m4/dev-ino.m4, same-inode.m4: Remove.
78627
78628         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78629         * m4/acl.m4 (AC_FUNC_ACL):
78630         * m4/backupfile.m4 (gl_BACKUPFILE):
78631         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78632         * m4/canon-host.m4 (gl_CANON_HOST):
78633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78634         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78635         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78636         * m4/cloexec.m4 (gl_CLOEXEC):
78637         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78638         * m4/closeout.m4 (gl_CLOSEOUT):
78639         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78640         * m4/dirname.m4 (gl_DIRNAME):
78641         * m4/exclude.m4 (gl_EXCLUDE):
78642         * m4/exitfail.m4 (gl_EXITFAIL):
78643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78644         * m4/file-type.m4 (gl_FILE_TYPE):
78645         * m4/filemode.m4 (gl_FILEMODE):
78646         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78647         * m4/fpending.m4 (gl_FUNC_FPENDING):
78648         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78649         * m4/fts.m4 (gl_FUNC_FTS):
78650         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78651         * m4/getdate.m4 (gl_GETDATE):
78652         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78653         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78654         * m4/getpass.m4 (gl_FUNC_GETPASS):
78655         * m4/gettime.m4 (gl_GETTIME):
78656         * m4/getugroups.m4 (gl_GETUGROUPS):
78657         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78658         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78659         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78660         * m4/hash.m4 (gl_HASH):
78661         * m4/idcache.m4 (gl_IDCACHE):
78662         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78663         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78664         * m4/long-options.m4 (gl_LONG_OPTIONS):
78665         * m4/lstat.m4 (gl_FUNC_LSTAT):
78666         * m4/md5.m4 (gl_MD5):
78667         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78668         * m4/memcoll.m4 (gl_MEMCOLL):
78669         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78670         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78671         * m4/memxor.m4 (gl_MEMXOR):
78672         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78673         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78674         * m4/modechange.m4 (gl_MODECHANGE):
78675         * m4/mountlist.m4 (gl_MOUNTLIST):
78676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78677         * m4/openat.m4 (gl_FUNC_OPENAT):
78678         * m4/pathmax.m4 (gl_PATHMAX):
78679         * m4/physmem.m4 (gl_PHYSMEM):
78680         * m4/posixtm.m4 (gl_POSIXTM):
78681         * m4/posixver.m4 (gl_POSIXVER):
78682         * m4/quote.m4 (gl_QUOTE):
78683         * m4/quotearg.m4 (gl_QUOTEARG):
78684         * m4/readtokens.m4 (gl_READTOKENS):
78685         * m4/readutmp.m4 (gl_READUTMP):
78686         * m4/regex.m4 (gl_REGEX):
78687         * m4/safe-read.m4 (gl_SAFE_READ):
78688         * m4/safe-write.m4 (gl_SAFE_WRITE):
78689         * m4/same.m4 (gl_SAME):
78690         * m4/save-cwd.m4 (gl_SAVE_CWD):
78691         * m4/savedir.m4 (gl_SAVEDIR):
78692         * m4/settime.m4 (gl_SETTIME):
78693         * m4/sha1.m4 (gl_SHA1):
78694         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78695         * m4/stat-macros.m4 (gl_STAT_MACROS):
78696         * m4/stat-time.m4 (gl_STAT_TIME):
78697         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78698         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78699         * m4/strdup.m4 (gl_FUNC_STRDUP):
78700         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78701         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78702         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78703         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78704         * m4/time_r.m4 (gl_TIME_R):
78705         * m4/timespec.m4 (gl_TIMESPEC):
78706         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78707         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78708         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78709         * m4/userspec.m4 (gl_USERSPEC):
78710         * m4/utimecmp.m4 (gl_UTIMECMP):
78711         * m4/utimens.m4 (gl_UTIMENS):
78712         * m4/xalloc.m4 (gl_XALLOC):
78713         * m4/xgetcwd.m4 (gl_XGETCWD):
78714         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78715         * m4/xreadlink.m4 (gl_XREADLINK):
78716         * m4/xstrtod.m4 (gl_XSTRTOD):
78717         * m4/yesno.m4 (gl_YESNO):
78718         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78719         to get the necessary .h files and whatnot.
78720
78721 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78722             Bruno Haible  <bruno@clisp.org>
78723
78724         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78725         /bin/sh understanding of '!' conditional negation.
78726
78727 2006-08-21  Jim Meyering  <jim@meyering.net>
78728
78729         * modules/openat (Depends-on): Really alphabetize.
78730
78731         * modules/acl (Depends-on): Add error and quote.
78732
78733         * check-module (find_included_lib_files): Add at-func.c to the
78734         ok-to-include-more-than-once white list.
78735
78736         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78737
78738 2006-08-21  Bruno Haible  <bruno@clisp.org>
78739
78740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78741         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78742         Reported by Martin Lambers <marlam@marlam.de>.
78743
78744 2006-08-21  Bruno Haible  <bruno@clisp.org>
78745
78746         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78747         specify an installation location, don't emit a noinst_LIBRARIES or
78748         noinst_LTLIBRARIES assignment.
78749
78750 2006-08-21  Bruno Haible  <bruno@clisp.org>
78751
78752         BeOS portability.
78753         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78754         BeOS has mbrtowc() but no <wctype.h>.
78755
78756 2006-08-21  Bruno Haible  <bruno@clisp.org>
78757
78758         BeOS portability.
78759         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78760         exist.
78761
78762 2006-08-21  Bruno Haible  <bruno@clisp.org>
78763
78764         BeOS portability.
78765         * lib/mbchar.h: Include <wctype.h> only if it exists.
78766
78767 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         Remove files that are no longer needed by their respective modules.
78770         * m4/obstack.m4: Remove.
78771         * m4/strerror_r.m4: Remove.
78772         * m4/uint32_t.m4: Remove.
78773         * m4/uintptr_t.m4: Remove.
78774         * m4/ullong_max.m4: Remove.
78775         * m4/xstrtoimax.m4: Remove.
78776         * m4/xstrtoumax.m4: Remove.
78777
78778         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78779         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78780         dependencies now capture this.
78781
78782         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78783         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78784         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78785         * m4/human.m4 (gl_HUMAN): Likewise.
78786         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78787         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78788
78789         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78790
78791         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78792         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78793         stdint.
78794         * m4/human.m4 (gl_HUMAN): Likewise.
78795         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78796         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78797         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78798         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78799         * m4/xstrtol (gl_XSTRTOL): Likewise.
78800
78801         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78802         AC_TYPE_LONG_LONG_INT.
78803         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78804         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78805         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78807
78808         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78809         on stdbool.
78810
78811         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78812         (gl_PREREQ_XSTRTOUL): Remove.
78813
78814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78815
78816         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78817         mode.
78818
78819 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         Add and change modules to make it easier for coreutils to use
78822         gnulib-tool.
78823         * modules/backupfile (Files): Remove m4/d-ino.m4.
78824         (Depends-on): Add d-ino.
78825         * modules/cycle-check (Depends-on): Add stdint.
78826         (lib_SOURCES): Add cycle-check.h.
78827         * modules/d-ino: New module.
78828         * modules/d-type: New module.
78829         * modules/error (Files): Remove m4/strerror_r.m4.
78830         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78831         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78832         m4/inttypes_h.m4, m4/uintmax_t.m4.
78833         (Depends-on): Add stdint.
78834         (lib_SOURCES): Add fsusage.h.
78835         * modules/getcwd (Files): Remove d-ino.m4.
78836         (Depends-on): Add d-ino.
78837         * modules/getndelim2 (Depends-on): Add stdint.
78838         * modules/glob (Files): Remove m4/d-type.m4.
78839         (Depends-on): Add d-type.
78840         * modules/host-os: New module.
78841         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78842         m4/inttypes_h.m4, m4/uintmax_t.m4.
78843         * Depends-on: Add stdint.
78844         (lib_SOURCES): Add human.h.
78845         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78846         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78847         m4/uintmax_t.m4, m4/ulonglong.m4.
78848         (Depends-on): Add stdint.
78849         (EXTRA_DIST): Add inttostr.h.
78850         * modules/lchmod: New module.
78851         * modules/link-follow: New module.
78852         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78853         (Depends-on): Add lchmod.
78854         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78855         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78856         (Depends-on): Add stdint.
78857         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78858         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78859         (Depends-on): Add stdint.
78860         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78861         * modules/perl: New module.
78862         * modules/regex (Depends-on): Add stdint.
78863         * modules/rmdir-errno: New module.
78864         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78865         m4/intmax_t.m4.
78866         (Depends-on): Add stdint.
78867         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78868         m4/uintmax_t.m4.
78869         (Depends-on): Add stdint.
78870         * modules/unlink-busy: New module.
78871         * modules/utimecmp (Depends-on): Add stdint.
78872         * modules/uptime: New module.
78873         * modules/winsz-ioctl: New module.
78874         * modules/winsz-termios: New module.
78875         * modules/xnanosleep (Depends-on): Add nanosleep.
78876         * modules/ullong_max: Remove.
78877         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78878         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78879         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78880         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78881         (Depends-on): Add inttypes.
78882         (lib_SOURCES): Add xstrtol.h.
78883         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78884         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78885         * MODULES.html.sh: Move 'assert' into the assert section.
78886         Move 'dummy' into the linking section.
78887         Remove ullong_max.
78888         Add section for compatibility checks for POSIX:2001 functions,
78889         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78890         winsz-ioctl, and winsz-termios into it.
78891         Add lchmod.
78892         Add top-level Misc section and put host-os, perl, and uptime
78893         into it.
78894
78895 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78898         now assume the stdint module.  Do not include inttypes.h.
78899         * lib/fsusage.h: Likewise.
78900         * lib/getndelim2.c: Likewise.
78901         * lib/human.h: Likewise.
78902         * lib/inttostr.h: Likewise.
78903         * lib/obstack.c: Likewise.
78904         * lib/regex_internal.h: Likewise.
78905         * lib/tempname.c: Likewise.
78906         * lib/utimecmp.c: Likewise.
78907         * lib/xstrtol.h: Likewise.
78908
78909         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78910
78911         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78912         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78913         * lib/xtime.h: Likewise.
78914
78915 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78916
78917         * modules/openat (Files): Add lib/fchmodat.c.
78918         Fixes problem reported by Jay Youngman.
78919
78920 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78923         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78924
78925 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78926             Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78929         and is a script that invokes bison. Tighten the code. Add comments.
78930
78931 2006-08-18  Jim Meyering  <jim@meyering.net>
78932
78933         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78934         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78935         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78936         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78937
78938 2006-08-18  Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/bison-i18n: New file.
78941         * MODULES.html.sh (Internationalization functions): Add it.
78942
78943 2006-08-18  Bruno Haible  <bruno@clisp.org>
78944
78945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78946         sys/statvfs.h. When getmntinfo was found, check its declaration and
78947         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78948
78949 2006-08-18  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/bison-i18n.m4: New file, from bison.
78952
78953 2006-08-18  Bruno Haible  <bruno@clisp.org>
78954
78955         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78956         (ME_DUMMY): Treat "kernfs" as a dummy.
78957         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78958
78959 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         Update from coreutils.
78962
78963         2006-08-15  Jim Meyering  <jim@meyering.net>
78964
78965         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78966
78967         2006-01-17  Jim Meyering  <jim@meyering.net>
78968
78969         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78970
78971         2006-01-11  Jim Meyering  <jim@meyering.net>
78972
78973         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78974         Check for the lchmod function.
78975
78976 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         Update from coreutils.
78979
78980         * lib/__fpending.h: Add copyright notice.
78981         * lib/fprintftime.h: Likewise.
78982         * lib/savedir.c: Use (C) in copyright notice.
78983         * lib/savedir.h: Likewise.
78984
78985         2006-08-15  Jim Meyering  <jim@meyering.net>
78986
78987         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78988         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78989         in support of the EXPECTED_ERRNO macro.
78990         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78991         definitions.  Instead, define the appropriate symbols and include
78992         "at-func.c".
78993         * lib/mkdirat.c (mkdirat): Likewise.
78994         * lib/fchmodat.c (fchmodat): Likewise.
78995         (ENOSYS): Remove definition.
78996         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78997         it.  Don't include "unistd--.h" -- it wasn't ever used.
78998
78999         2006-01-17  Jim Meyering  <jim@meyering.net>
79000
79001         Rewrite fts.c not to change the current working directory,
79002         by using openat, fstatat, fdopendir, etc..
79003
79004         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79005         (HAVE_OPENAT_SUPPORT): Define.
79006         [_LIBC] (fchdir): Don't undef or define; no longer used.
79007         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79008         Now, this `function' always succeeds, and consumes its file descriptor
79009         parameter -- so callers must not close such FDs.  Update callers.
79010         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79011         (diropen): Add parameter, SP.  Adjust all callers.
79012         Implement using diropen_fd, rather than open.
79013         (fts_open): Initialize new member, fts_cwd_fd.
79014         Remove fts_rft-setting code.
79015         (fts_close): Close fts_cwd_fd, if necessary.
79016         (__opendir2): Define in terms of opendir or opendirat,
79017         depending on whether the FST_NOCHDIR flag is set.
79018         (fts_build): Since fts_safe_changedir consumes its FD, and since
79019         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79020         and close the dup'd file descriptor upon failure.
79021         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79022         (fts_safe_changedir): Tweak semantics to reflect that this function
79023         now calls cwd_advance_fd and hence consumes its FD argument.
79024         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79025         [struct FTS] (fts_rft): Remove now-unused member.
79026         [struct FTS] (fts_cycle.state): Improve comment.
79027
79028         * lib/openat.c (openat_needs_fchdir): New function.
79029         * lib/openat.h (openat_needs_fchdir): Declare it.
79030
79031 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79034         Problem and fix reported by Pádraig Brady in
79035         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79036
79037 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79040
79041 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/memcoll.c (memcoll): Optimize for the common case where the
79044         arguments are bytewise equal.
79045
79046 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * doc/regexprops-generic.texi: Add a copyright notice.
79049
79050 2006-08-15  Bruno Haible  <bruno@clisp.org>
79051
79052         * modules/tmpdir (License): Change to LGPL.
79053
79054 2006-08-15  Bruno Haible  <bruno@clisp.org>
79055
79056         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79057         module.
79058
79059 2006-08-14  Simon Josefsson  <jas@extundo.com>
79060
79061         * config/srclist.txt: Add gnupload.
79062
79063 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79064
79065         Change copyright notice from LGPL 2 to GPL 2, since that's the
79066         standard form used in the gnulib repository.
79067         * tests/test-lock.c: Likewise.
79068         * tests/test-stdint.c: Likewise.
79069         * tests/test-tls.c: Likewise.
79070
79071         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79072         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79073         Add copyright notice.
79074
79075         * check-module: Add copyright notice.  Output a copyright
79076         notice if "--version" is specified.
79077         * modules/COPYING: New file.
79078         * tests/test-getaddrinfo.c: Add copyright notice.
79079         * tests/test-verify.c: Likewise.
79080
79081 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         Change copyright notice from LGPL 2 to GPL 2, since that's the
79084         standard form used in the gnulib repository.
79085         * lib/lock.c: LGPL -> GPL.
79086         * lib/lock.h: Likewise.
79087         * lib/strnlen1.c: Likewise.
79088         * lib/strnlen1.h: Likewise.
79089         * lib/tls.c: Likewise.
79090         * lib/tls.h: Likewise.
79091         * lib/tmpdir.c: Likewise.
79092
79093         * lib/TODO: Remove; this belongs only in coreutils.
79094
79095 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         Add copyright notices to long-enough files that lack them, since
79098         otherwise the files aren't clearly free.  Use the same notice that
79099         getdate.texi already uses.
79100         * doc/alloca-opt.texi: Add copyright notice.
79101         * doc/alloca.texi: Likewise.
79102         * doc/ctime.texi: Likewise.
79103         * doc/functions.texi: Likewise.
79104         * doc/gcd.texi: Likewise.
79105         * doc/gnulib-tool.texi: Likewise.
79106         * doc/inet_ntoa.texi: Likewise.
79107         * doc/visibility.texi: Likewise.
79108
79109         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79110         * doc/quote.texi: Add copyright notice.
79111
79112         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79113         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79114         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79115         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79116         is now obsolete, and give a pointer to the Sun list.
79117         Add copyright notice.
79118
79119 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * config/srclistvars.sh: Add copyright notice.
79122
79123 2006-08-14  Eric Blake  <ebb9@byu.net>
79124
79125         Import the following change from libc:
79126
79127         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79128
79129         Upstream bug 2997.
79130         * lib/misc/error.c: Add space between program name and message if file
79131         name is missing.
79132
79133 2006-08-12  Karl Berry  <karl@gnu.org>
79134
79135         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79136         remove, these originate in gnulib now.
79137
79138 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79139
79140         * doc/Makefile (standards.info standards.html standards.dvi):
79141         Also depend on make-stds.texi.
79142
79143 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79144
79145         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79146         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79147
79148         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79149         in wchar_t.  Problem reported by Eric Blake.
79150
79151         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79152         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79153         Also, help the compiler to keep LEN in a register.
79154
79155 2006-08-11  Eric Blake  <ebb9@byu.net>
79156
79157         * users.txt: Sort.  Add tar.
79158
79159 2006-08-11  Bruno Haible  <bruno@clisp.org>
79160
79161         * users.txt: New file.
79162
79163 2006-08-11  Bruno Haible  <bruno@clisp.org>
79164
79165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79166         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79167
79168 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79169
79170         * modules/snprintf (Depends-on): Remove minmax.
79171         (Maintainer): Add self and Bruno.
79172
79173 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79176         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79177         (EOVERFLOW): Define if the system does not.
79178         Do not include "minmax.h"; it wasn't used.
79179         (snprintf): Don't assume size_t promotes to an unsigned type.
79180         Fix bug when generated string was too long for the buffer: the
79181         buffer's contents are supposed to be the initial prefix of the
79182         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79183         exceeds INT_MAX; do the check ourselves.
79184
79185         Import the following changes from libc:
79186
79187         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79188
79189         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79190         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79191         set wc to the byte which couldn't be converted.
79192         (re_string_reconstruct): Don't clear valid_raw_len before calling
79193         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79194         tip_context using re_string_context_at.
79195
79196         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79197
79198         * lib/posix/regex.h: g++ still cannot handled [restrict].
79199
79200         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79201
79202         * lib/posix/regex.h: Remove special handling for VMS.
79203
79204 2006-08-10  Jim Meyering  <jim@meyering.net>
79205
79206         * modules/same-inode: New module.
79207         * modules/dev-ino: New module.
79208         * modules/cycle-check: Depend on these modules, rather than simply
79209         including their .h files.
79210         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79211         required via m4/cycle-check.m4.
79212         * modules/same: Depend on new same-inode module, rather than
79213         including same-inode.h.
79214         * modules/chdir-safer: New file.
79215
79216         * modules/chown (Depends-on): Add stat-macros.
79217
79218 2006-08-10  Jim Meyering  <jim@meyering.net>
79219
79220         * m4/cycle-check.m4: New file.
79221         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79222         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79223
79224 2006-08-10  Eric Blake  <ebb9@byu.net>
79225
79226         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79227         in from original proposal.
79228
79229 2006-08-10  Eric Blake  <ebb9@byu.net>
79230         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79231
79232         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79233         namespace.
79234
79235 2006-08-10  Bruno Haible  <bruno@clisp.org>
79236
79237         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79238         as well.
79239
79240 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         Sync from coreutils.
79243
79244         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79245
79246         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79247         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79248
79249 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * modules/restrict: Remove; no longer needed now that we assume
79252         Autoconf 2.59 or later.
79253         * MODULES.html.sh: Remove 'restrict'.
79254         * modules/argp (Depends-on): Remove 'restrict'.
79255         * modules/base64 (Depends-on): Likewise.
79256         * modules/gc (Depends-on): Likewise.
79257         * modules/getaddrinfo (Depends-on): Likewise.
79258         * modules/glob (Depends-on): Likewise.
79259         * modules/inet_ntop (Depends-on): Likewise.
79260         * modules/inet_pton (Depends-on): Likewise.
79261         * modules/memxor (Depends-on): Likewise.
79262         * modules/regex (Depends-on): Likewise.
79263         * modules/strtok_r (Depends-on): Likewise.
79264         * modules/time_r (Depends-on): Likewise.
79265
79266 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79269         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79270         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79271         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79272         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79273         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79274         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79275         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79276
79277         Merge from coreutils.
79278         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79279         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79280         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79281         * m4/time_r.m4 (gl_TIME_R): Likewise.
79282
79283 2006-08-09  Karl Berry  <karl@gnu.org>
79284
79285         * config/srclist.txt: no more gettext-tools, per Bruno.
79286
79287 2006-08-08  Eric Blake  <ebb9@byu.net>
79288
79289         * modules/verror: New module.
79290         * MODULES.html.sh: Document it.
79291
79292 2006-08-08  Eric Blake  <ebb9@byu.net>
79293
79294         * lib/verror.h, lib/verror.c: New files.
79295
79296 2006-08-08  Eric Blake  <ebb9@byu.net>
79297
79298         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79299         verror_at_line output complies with GNU Coding Standards even when
79300         file is NULL.
79301
79302 2006-08-07  Bruno Haible  <bruno@clisp.org>
79303
79304         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79305         versions of AIX.
79306         Reported by Ralf Wildenhues.
79307
79308 2006-08-07  Bruno Haible  <bruno@clisp.org>
79309
79310         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79311         in an AC_DEFUN. Needed so that the autoconf snippets can use
79312         AC_REQUIRE.
79313
79314 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79315
79316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79317         Initialize pkgdata_DATA.
79318         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79319         overriding it.
79320
79321 2006-08-06  Eric Blake  <ebb9@byu.net>
79322
79323         * lib/error.h: Fold in some upstream changes from glibc.
79324         * lib/error.c: Likewise.
79325
79326 2006-08-04  Bruno Haible  <bruno@clisp.org>
79327
79328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79329         Make the mostlyclean-local rule depend on mostlyclean-generic.
79330         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79331
79332 2006-07-31  Bruno Haible  <bruno@clisp.org>
79333
79334         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79335         <stdlib.h>, <string.h>.
79336
79337 2006-07-30  Bruno Haible  <bruno@clisp.org>
79338
79339         * modules/readlink (License): Change to LGPL.
79340
79341 2006-07-30  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79344         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79345         set PKGDATADIR to point to it.
79346
79347 2006-07-30  Bruno Haible  <bruno@clisp.org>
79348
79349         * modules/csharpexec (configure.ac): Comment out macro invocation.
79350         * modules/javaexec (configure.ac): Likewise.
79351         * modules/javacomp-script (configure.ac): Likewise.
79352
79353         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79354
79355 2006-07-30  Bruno Haible  <bruno@clisp.org>
79356
79357         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79358         linked-list.
79359
79360 2006-07-30  Bruno Haible  <bruno@clisp.org>
79361
79362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79363
79364 2006-07-30  Bruno Haible  <bruno@clisp.org>
79365
79366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79367         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79368         get removed.
79369
79370 2006-07-29  Bruno Haible  <bruno@clisp.org>
79371
79372         Make it possible for gnulib-tool to work with locally modified or
79373         augmented gnulib repositories.
79374         * gnulib-tool (func_usage): Document --local-dir option.
79375         (local_gnulib_dir): New variable.
79376         Handle --local-dir option.
79377         (func_lookup_file): New function.
79378         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79379         (func_get_description, func_get_filelist, func_get_description,
79380         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79381         func_get_automake_snippet, func_get_include_directive,
79382         func_get_license, func_get_maintainer): Use func_lookup_file.
79383         (func_import, func_create_testdir): Use func_lookup_file.
79384
79385 2006-07-29  Bruno Haible  <bruno@clisp.org>
79386
79387         * modules/setenv (Depends-on): Add unistd.
79388
79389 2006-07-29  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79392
79393 2006-07-29  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79396
79397 2006-07-29  Bruno Haible  <bruno@clisp.org>
79398
79399         * gnulib-tool (import, update): If there is no Makefile.am, look at
79400         aclocal.m4, instead of bailing out.
79401
79402 2006-07-29  Bruno Haible  <bruno@clisp.org>
79403
79404         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79405         Categorize the options by when they are useful.
79406
79407 2006-07-29  Bruno Haible  <bruno@clisp.org>
79408
79409         * gnulib-tool (func_usage): Document option --no-libtool.
79410         Handle option --no-libtool.
79411         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79412         for changed semantics of $libtool variable.
79413         (func_import): Likewise. If libtool is not used, show this through
79414         an option --no-libtool.
79415         (func_create_testdir): Update.
79416
79417 2006-07-29  Bruno Haible  <bruno@clisp.org>
79418
79419         * gnulib-tool (func_import): Extend error message about missing
79420         --doc-base.
79421
79422 2006-07-29  Bruno Haible  <bruno@clisp.org>
79423
79424         * gnulib-tool (func_import): Don't create the $docbase directory if
79425         there is no file to store there.
79426
79427 2006-07-29  Bruno Haible  <bruno@clisp.org>
79428
79429         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79430         relevant, look for configure.ac there, not in the current directory.
79431         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79432
79433 2006-07-29  Bruno Haible  <bruno@clisp.org>
79434
79435         * gnulib-tool (SORT): New variable.
79436         (func_usage): Undocument --assume-autoconf option.
79437         Remove --assume-autoconf option handling.
79438         (autoconf_minversion): Determine from the contents of configure.ac.
79439         (func_import): Remove autoconf_minversion handling.
79440         Suggested by Eric Blake.
79441
79442 2006-07-29  Bruno Haible  <bruno@clisp.org>
79443
79444         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79445
79446 2006-07-29  Bruno Haible  <bruno@clisp.org>
79447
79448         * config/srclist.txt (*setenv.[ch]): Remove rules.
79449
79450 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79451
79452         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79453
79454 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79455
79456         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79457         arpa/inet.h.
79458
79459 2006-07-28  Simon Josefsson  <jas@extundo.com>
79460
79461         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79462         * modules/inet_pton (Depends-on): Likewise.
79463
79464 2006-07-28  Simon Josefsson  <jas@extundo.com>
79465
79466         * m4/netinet_in_h.m4: New file.
79467
79468 2006-07-28  Simon Josefsson  <jas@extundo.com>
79469
79470         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79471         #include's.
79472
79473 2006-07-28  Simon Josefsson  <jas@extundo.com>
79474
79475         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79476         #include's.
79477
79478 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79481         setgid on directories only if they set these bits.
79482         * lib/modechange.h: Remove obsolete comment about masks.
79483
79484 2006-07-28  Eric Blake  <ebb9@byu.net>
79485
79486         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79487         macro expansion.
79488
79489 2006-07-28  Bruno Haible  <bruno@clisp.org>
79490
79491         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79492
79493 2006-07-28  Bruno Haible  <bruno@clisp.org>
79494
79495         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79496
79497 2006-07-28  Bruno Haible  <bruno@clisp.org>
79498
79499         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79500         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79501         Define fallbacks.
79502         Avoids link error on FreeBSD 4.x.
79503         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79504
79505         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79506         encoding.
79507         * lib/mbswidth.c (iswcntrl): Likewise.
79508
79509 2006-07-27  Bruno Haible  <bruno@clisp.org>
79510
79511         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79512         test.
79513
79514 2006-07-27  Bruno Haible  <bruno@clisp.org>
79515
79516         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79517         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79518         defined.
79519
79520 2006-07-26  Eric Blake  <ebb9@byu.net>
79521
79522         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79523
79524 2006-07-26  Eric Blake  <ebb9@byu.net>
79525
79526         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79527         like mingw that lack mkstemp.
79528         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79529         avoid compilation warning on mingw.
79530
79531 2006-07-26  Bruno Haible  <bruno@clisp.org>
79532
79533         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79534         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79535         INT_FAST*_MIN, INTPTR_MIN.
79536
79537 2006-07-25  Bruno Haible  <bruno@clisp.org>
79538
79539         * modules/version-etc (Depends-on): Add stdarg.
79540
79541 2006-07-25  Bruno Haible  <bruno@clisp.org>
79542
79543         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79544         complex commands.
79545
79546 2006-07-25  Bruno Haible  <bruno@clisp.org>
79547
79548         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79549         defined in <stdarg.h> or config.h.
79550
79551 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79554         (gl_STDIO_SAFER): Remove.
79555
79556 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * MODULES.html.sh (File stream based Input/Output):
79559         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79560         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79561         * modules/fopen-safer, modules/tmpfile-safer: New files.
79562         * modules/stdio-safer: Remove.
79563
79564 2006-07-24  Bruno Haible  <bruno@clisp.org>
79565
79566         * modules/tmpdir: New file.
79567         * MODULES.html.sh (File system functions): Add it.
79568
79569 2006-07-24  Bruno Haible  <bruno@clisp.org>
79570
79571         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79572         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79573
79574 2006-07-24  Bruno Haible  <bruno@clisp.org>
79575
79576         * modules/clean-temp: New file.
79577
79578 2006-07-24  Bruno Haible  <bruno@clisp.org>
79579
79580         * m4/tmpdir.m4: New file, from GNU gettext.
79581
79582 2006-07-24  Bruno Haible  <bruno@clisp.org>
79583
79584         * lib/tmpdir.h: New file, from GNU gettext.
79585         * lib/tmpdir.c: New file, from GNU gettext.
79586
79587 2006-07-24  Bruno Haible  <bruno@clisp.org>
79588
79589         * lib/clean-temp.h: New file, from GNU gettext.
79590         * lib/clean-temp.c: New file, from GNU gettext.
79591
79592 2006-07-23  Eric Blake  <ebb9@byu.net>
79593
79594         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79595         (Depends-on): Add binary-io.
79596
79597 2006-07-23  Eric Blake  <ebb9@byu.net>
79598
79599         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79600
79601 2006-07-23  Eric Blake  <ebb9@byu.net>
79602
79603         * lib/tmpfile-safer.c: New file.
79604         * lib/stdio-safer.h (fopen_safer): Add prototype.
79605         * lib/stdio--.h (tmpfile): Make safer.
79606
79607 2006-07-23  Bruno Haible  <bruno@clisp.org>
79608
79609         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79610         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79611         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79612         gl_linked_remove_at): Use it.
79613
79614 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79615         and Simon Josefsson <jas@extundo.com>
79616
79617         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79618
79619         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79620
79621 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * modules/close-stream: New file.
79624         * modules/closeout (Description): Make it clear that it exits
79625         with a diagnostic on error.
79626         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79627         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79628
79629 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * m4/close-stream.m4: New file.
79632
79633 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * lib/close-stream.c, lib/close-stream.h: New files.
79636
79637 2006-07-22  Bruno Haible  <bruno@clisp.org>
79638
79639         Merge from GNU gettext 0.15.
79640
79641         2006-05-01  Bruno Haible  <bruno@clisp.org>
79642
79643                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79644
79645         2006-07-22  Bruno Haible  <bruno@clisp.org>
79646
79647                 * modules/javaversion: New file.
79648                 * MODULES.html.sh (Java): Add javaversion.
79649
79650         2006-03-12  Bruno Haible  <bruno@clisp.org>
79651
79652                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79653
79654         2005-12-04  Bruno Haible  <bruno@clisp.org>
79655
79656                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79657                 (untested).
79658
79659         2006-06-21  Bruno Haible  <bruno@clisp.org>
79660
79661                 Avoid warnings from recent versions of mcs.
79662                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79663                 -o, -L, -r any more. Use options documented since mcs-1.0
79664                 instead. Similarly for -g.
79665
79666         2005-12-04  Bruno Haible  <bruno@clisp.org>
79667
79668                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79669                 .resources, not .resource.
79670
79671         2005-07-09  Bruno Haible  <bruno@clisp.org>
79672
79673                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79674                 add a .dll suffix.
79675                 Reported by Mark Junker <mjscod@gmx.de>.
79676
79677         2006-07-22  Bruno Haible  <bruno@clisp.org>
79678
79679                 * modules/gettext: Upgrade to gettext-0.15.
79680                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79681                 m4/visibility.m4.
79682                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79683
79684 2006-07-22  Bruno Haible  <bruno@clisp.org>
79685
79686         Merge from GNU gettext 0.15.
79687
79688         2006-03-25  Bruno Haible  <bruno@clisp.org>
79689
79690                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79691
79692         2006-07-21  Bruno Haible  <bruno@clisp.org>
79693
79694                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79695                 "1.1".
79696
79697         2006-05-09  Bruno Haible  <bruno@clisp.org>
79698
79699                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79700                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79701                 for the conftestver execution.
79702
79703         2006-05-01  Bruno Haible  <bruno@clisp.org>
79704
79705                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79706                 optional target-version argument. Verify that the compiler
79707                 groks source of the specified source-version, or add -source
79708                 option as necessary. Verify that the compiler produces
79709                 bytecode in the specified target-version, or add -target and
79710                 -source options as necessary. Make the result of the test
79711                 available as variable CONF_JAVAC. Also log error output in
79712                 config.log.
79713
79714         2006-03-11  Bruno Haible  <bruno@clisp.org>
79715
79716                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79717
79718         2006-05-09  Bruno Haible  <bruno@clisp.org>
79719
79720                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79721                 CLASSPATH_SEPARATOR to a semicolon.
79722
79723         2006-03-12  Bruno Haible  <bruno@clisp.org>
79724
79725                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79726                 available as variable CONF_JAVA, for subsequent autoconf
79727                 tests. Also log error output in config.log.
79728
79729         2006-07-19  Bruno Haible  <bruno@clisp.org>
79730
79731                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79732                 that getline works on glibc2 systems. Needed to avoid trouble
79733                 in relocatable.c.
79734                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79735
79736         2005-12-04  Bruno Haible  <bruno@clisp.org>
79737
79738                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79739                 launcher (untested).
79740
79741         2005-12-04  Bruno Haible  <bruno@clisp.org>
79742
79743                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79744
79745         2006-07-22  Bruno Haible  <bruno@clisp.org>
79746
79747                 * gettext.m4: Update from GNU gettext-0.15.
79748                 * nls.m4: Likewise.
79749                 * po.m4: Likewise.
79750                 * inttypes-pri.m4: Likewise.
79751                 * inttypes-h.m4: Renamed from inttypes.m4.
79752                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79753
79754 2006-07-22  Bruno Haible  <bruno@clisp.org>
79755
79756         Merge from GNU gettext 0.15.
79757
79758         2005-07-05  Bruno Haible  <bruno@clisp.org>
79759
79760                 * printf-args.c (printf_fetchargs): Work around broken
79761                 definition of wint_t on mingw.
79762
79763         2005-02-12  Bruno Haible  <bruno@clisp.org>
79764
79765                 * xallocsa.h: Add extern "C" for C++.
79766
79767         2006-05-17  Bruno Haible  <bruno@clisp.org>
79768
79769                 Cygwin portability.
79770                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79771
79772         2006-04-30  Bruno Haible  <bruno@clisp.org>
79773
79774                 * progreloc.c: Include <mach-o/dyld.h> if available.
79775                 (find_executable): Use _NSGetExecutablePath when possible.
79776
79777         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79778
79779                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79780                 function.
79781
79782         2005-12-29  Bruno Haible  <bruno@clisp.org>
79783
79784                 * progreloc.c (set_program_name_and_installdir): Fix
79785                 compilation error.
79786
79787         2005-12-04  Bruno Haible  <bruno@clisp.org>
79788
79789                 Cygwin portability.
79790                 * progreloc.c: Include <windows.h> also on Cygwin.
79791                 (find_executable): Add support for Cygwin.
79792                 (set_program_name_and_installdir): Handle also platforms with
79793                 nonempty EXEEXT.
79794
79795         2006-07-11  Bruno Haible  <bruno@clisp.org>
79796
79797                 * javacomp.c: Fix a comment.
79798                 Reported by Jim Meyering.
79799
79800         2006-04-30  Bruno Haible  <bruno@clisp.org>
79801
79802                 * javacomp.h (compile_java_class): Add source_version,
79803                 target_version arguments.
79804                 * javacomp.c: Rewritten to choose only a compiler that
79805                 respects the specified source_version and target_version.
79806
79807         2006-06-27  Bruno Haible  <bruno@clisp.org>
79808
79809                 Assume correct S_ISDIR macro.
79810                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79811
79812         2006-07-22  Bruno Haible  <bruno@clisp.org>
79813
79814                 * javaversion.h: New file, from GNU gettext.
79815                 * javaversion.c: New file, from GNU gettext.
79816                 * javaversion.java: New file, from GNU gettext.
79817                 * javaversion.class: New file, from GNU gettext.
79818
79819         2006-05-17  Bruno Haible  <bruno@clisp.org>
79820
79821                 Cygwin portability.
79822                 * javaexec.c (execute_java_class): Test for jview program
79823                 also on Cygwin.
79824
79825         2006-04-09  Bruno Haible  <bruno@clisp.org>
79826
79827                 * fatal-signal.c: Don't include string.h.
79828                 (at_fatal_signal): Use a copying loop instead of memcpy.
79829
79830         2005-12-04  Bruno Haible  <bruno@clisp.org>
79831
79832                 * csharpexec.c: Add support for 'clix' launcher (untested).
79833                 (execute_csharp_using_sscli): New function.
79834                 (execute_csharp_program): Call it.
79835
79836         2006-06-21  Bruno Haible  <bruno@clisp.org>
79837
79838                 Avoid warnings from recent versions of mcs.
79839                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79840                 -o, -L, -r any more. Use options documented since mcs-1.0
79841                 instead. Similarly for -g.
79842
79843         2005-07-09  Bruno Haible  <bruno@clisp.org>
79844
79845                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79846                 add a .dll suffix.
79847                 Reported by Mark Junker <mjscod@gmx.de>.
79848
79849         2006-06-17  Bruno Haible  <bruno@clisp.org>
79850
79851                 * config.charset: Update for NetBSD 3.0.
79852
79853         2006-05-17  Bruno Haible  <bruno@clisp.org>
79854
79855                 Cygwin portability.
79856                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79857
79858         2006-05-16  Bruno Haible  <bruno@clisp.org>
79859
79860                 * localcharset.c [CYGWIN]: Include <windows.h>.
79861                 (get_charset_aliases): For Cygwin, return the same CPxxx
79862                 aliases list as under WIN32.
79863                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79864                 the environment variables. Fall back to GetACP().
79865
79866         2006-04-05  Bruno Haible  <bruno@clisp.org>
79867
79868                 * config.charset: Update Juan Manuel Guerrero's address.
79869
79870         2005-02-12  Bruno Haible  <bruno@clisp.org>
79871
79872                 * allocsa.h: Add extern "C" for C++.
79873
79874         2005-02-10  Bruno Haible  <bruno@clisp.org>
79875
79876                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79877                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79878
79879         2006-07-22  Bruno Haible  <bruno@clisp.org>
79880
79881                 * gettext.h: Update to GNU gettext-0.15.
79882
79883 2006-07-22  Bruno Haible  <bruno@clisp.org>
79884
79885         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79886         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79887         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79888
79889 2006-07-21  Eric Blake  <ebb9@byu.net>
79890
79891         * modules/stdlib-safer: New file.
79892         * MODULES.html.sh (File stream based Input/Output): Add
79893         stdlib-safer.
79894
79895 2006-07-21  Eric Blake  <ebb9@byu.net>
79896
79897         * lib/stdlib-safer.h: New file from coreutils, required by
79898         stdlib--.h.
79899
79900 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79903
79904 2006-07-20  Bruno Haible  <bruno@clisp.org>
79905
79906         * gnulib-tool: Recognize new option --assume-autoconf.
79907         (autoconf_minversion): New variable.
79908         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79909
79910 2006-07-20  Bruno Haible  <bruno@clisp.org>
79911
79912         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79913
79914 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79915
79916         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79917         Reindent and repaginate.
79918
79919 2006-07-19  Derek Price  <derek@ximbiot.com>
79920
79921         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79922         Correct grammar.
79923
79924 2006-07-17  Bruno Haible  <bruno@clisp.org>
79925
79926         * modules/list: New file.
79927         * modules/array-list: New file.
79928         * modules/carray-list, modules/carray-list-tests: New files.
79929         * modules/linked-list, modules/linked-list-tests: New files.
79930         * modules/avltree-list, modules/avltree-list-tests: New files.
79931         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79932         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79933         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79934         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79935         * modules/oset: New file.
79936         * modules/array-oset: New file.
79937         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79938         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79939         * tests/test-carray_list.c: New file.
79940         * tests/test-linked_list.c: New file.
79941         * tests/test-avltree_list.c: New file.
79942         * tests/test-rbtree_list.c: New file.
79943         * tests/test-linkedhash_list.c: New file.
79944         * tests/test-avltreehash_list.c: New file.
79945         * tests/test-rbtreehash_list.c: New file.
79946         * tests/test-avltree_oset.c: New file.
79947         * tests/test-rbtree_oset.c: New file.
79948         * MODULES.html.sh (Container data structures): New section.
79949
79950 2006-07-17  Bruno Haible  <bruno@clisp.org>
79951
79952         * m4/gl_list.m4: New file.
79953
79954 2006-07-17  Bruno Haible  <bruno@clisp.org>
79955
79956         * lib/gl_list.h: New file.
79957         * lib/gl_list.c: New file.
79958         * lib/gl_array_list.h: New file.
79959         * lib/gl_array_list.c: New file.
79960         * lib/gl_carray_list.h: New file.
79961         * lib/gl_carray_list.c: New file.
79962         * lib/gl_linked_list.h: New file.
79963         * lib/gl_linked_list.c: New file.
79964         * lib/gl_anylinked_list1.h: New file.
79965         * lib/gl_anylinked_list2.h: New file.
79966         * lib/gl_avltree_list.h: New file.
79967         * lib/gl_avltree_list.c: New file.
79968         * lib/gl_anyavltree_list1.h: New file.
79969         * lib/gl_anyavltree_list2.h: New file.
79970         * lib/gl_rbtree_list.h: New file.
79971         * lib/gl_rbtree_list.c: New file.
79972         * lib/gl_anyrbtree_list1.h: New file.
79973         * lib/gl_anyrbtree_list2.h: New file.
79974         * lib/gl_anytree_list1.h: New file.
79975         * lib/gl_anytree_list2.h: New file.
79976         * lib/gl_linkedhash_list.h: New file.
79977         * lib/gl_linkedhash_list.c: New file.
79978         * lib/gl_anyhash_list1.h: New file.
79979         * lib/gl_anyhash_list2.h: New file.
79980         * lib/gl_avltreehash_list.h: New file.
79981         * lib/gl_avltreehash_list.c: New file.
79982         * lib/gl_rbtreehash_list.h: New file.
79983         * lib/gl_rbtreehash_list.c: New file.
79984         * lib/gl_anytreehash_list1.h: New file.
79985         * lib/gl_anytreehash_list2.h: New file.
79986
79987         * lib/gl_oset.h: New file.
79988         * lib/gl_oset.c: New file.
79989         * lib/gl_array_oset.h: New file.
79990         * lib/gl_array_oset.c: New file.
79991         * lib/gl_avltree_oset.h: New file.
79992         * lib/gl_avltree_oset.c: New file.
79993         * lib/gl_rbtree_oset.h: New file.
79994         * lib/gl_rbtree_oset.c: New file.
79995         * lib/gl_anytree_oset.h: New file.
79996
79997 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79998
79999         * m4/mkancesdirs.m4: New file.
80000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80001         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80002         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80003         it.
80004
80005 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80008         * lib/mkancesdirs.h: New files.
80009         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80010         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80011         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80012         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80013         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80014         callers changed.  Revamp internals significantly, by not
80015         attempting to create directories that are temporarily more
80016         permissive than the final results.  Do not attempt to use
80017         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80018         This removes some race conditions, fixes some bugs, and simplifies
80019         things.  Use new dirchownmod function to do owner and mode changes.
80020         * lib/mkdir-p.h: Likewise.
80021         * lib/modechange.c (octal_to_mode): New function.
80022         (struct mode_change): New member mentioned.
80023         (make_node_op_equals): New arg mentioned.  All callers changed.
80024         (mode_compile): Keep track of which mode bits the user has explicitly
80025         mentioned.
80026         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80027         New arg PMODE_BITS, to keep track of which mode bits the user
80028         mentioned; it treats S_ISUID and S_ISGID speciall.
80029         All callers changed.
80030         * lib/modechange.h: Likewise.
80031
80032 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80033
80034         * MODULES.html.sh: Add mkancestors.
80035         * modules/mkancesdirs: New module.
80036         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80037         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80038         The chdir-safer and afs files are now orphans; I'll remove them
80039         unless someone speaks up.
80040         Add lib/dirchownmod.c, lib/dirchownmod.h.
80041         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80042         Add lchown, mkancesdirs.
80043         (Maintainer): Add self.
80044
80045 2006-07-15  Karl Berry  <karl@gnu.org>
80046
80047         * gnulib-tool: help message wording/arrangement.
80048
80049 2006-07-14  Simon Josefsson  <jas@extundo.com>
80050
80051         * doc/gnulib.texi (Libtool and Windows): New section.
80052
80053 2006-07-12  Simon Josefsson  <jas@extundo.com>
80054
80055         * modules/gendocs (License): Fix license, approved by Karl.
80056
80057 2006-07-12  Eric Blake  <ebb9@byu.net>
80058
80059         * MODULES.html.sh: Add gendocs.
80060
80061 2006-07-11  Eric Blake  <ebb9@byu.net>
80062
80063         * modules/fdl: New module, to install doc/fdl.texi.
80064         * MODULES.html.sh: Add new section for documentation modules.
80065         * gnulib-tool: Avoid space-tab.
80066         (--doc-base): New option, to manage files from doc.
80067
80068 2006-07-11  Eric Blake  <ebb9@byu.net>
80069
80070         * m4/absolute-header.m4: Fix comments to match recent change.
80071
80072 2006-07-11  Eric Blake  <ebb9@byu.net>
80073
80074         * gnulib-tool: List --doc-base before --tests-base.
80075
80076 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80077
80078         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80079
80080 2006-07-11  Bruno Haible  <bruno@clisp.org>
80081
80082         * README: Mention where to put documentation.
80083
80084 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80085
80086         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80087
80088 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80091         to stdint.m4.
80092
80093 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80096         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80097         "no/such/file/stdint.h" when there is no such file, so that
80098         the resulting C code can be parsed by dodgy compilers.
80099         Problems reported by Bob Proulx.
80100
80101 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80102
80103         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80104         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80105         macros into the GNU _D_EXACT_NAMLEN.
80106         * lib/savedir.c:  Likewise.
80107         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80108
80109 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80110         and Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80113         * m4/savedir.m4:
80114         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80115         macros into the GNU _D_EXACT_NAMLEN.
80116
80117 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80120         around the absolute name, to work around a problem with the HP-UX
80121         11.23 native C compiler, reported by Bob Proulx.
80122
80123 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * doc/maintain.texi, make-stds.texi: Sync from
80126         <http://savannah.gnu.org/projects/gnustandards>.
80127
80128 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80131
80132 2006-07-09  Jim Meyering  <jim@meyering.net>
80133
80134         * m4/glob.m4: Remove a doubled word in a comment.
80135
80136 2006-07-09  Jim Meyering  <jim@meyering.net>
80137
80138         * lib/argp-pv.c: Remove a doubled word in a comment.
80139         * lib/check-version.c (check_version): Likewise.
80140         * lib/javacomp.c (compile_java_class): Likewise.
80141
80142 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80143
80144         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80145         for the benefit of people using Autoconf 2.60.  If you want to
80146         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80147         (or m4/onceonly.m4, if pre-2.57) manually.
80148
80149 2006-07-08  Jim Meyering  <jim@meyering.net>
80150
80151         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80152         comment.
80153         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80154         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80155         comment.
80156
80157 2006-07-08  Jim Meyering  <jim@meyering.net>
80158
80159         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80160
80161 2006-07-07  Simon Josefsson  <jas@extundo.com>
80162
80163         * tests/test-crc.c: Change expected crc value, the test vector
80164         were probably computed using the old broken crc.c?
80165
80166 2006-07-06  Simon Josefsson  <jas@extundo.com>
80167
80168         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80169         now the canonical place for the M4 file).
80170
80171         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80172         from the sys_socket dependency now.
80173
80174         * modules/inet_pton (Files): Ditto.
80175
80176         * modules/inet_ntop (Files): Ditto.
80177
80178 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80179
80180         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80181         not gl_PREREQ_GETUSERSHELL.
80182
80183 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80184
80185         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80186         with only one argument, for Autoconf 2.60.
80187         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80188         expand to nothing, so add a shell command to avoid syntax error.
80189         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80190
80191 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80192
80193         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80194
80195 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80196
80197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80198         no longer needed.  Check for isblank decl.
80199         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80200         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80201         of existence.
80202
80203 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * lib/getloadavg.c: Use __VMS, not VMS.
80206         * lib/getopt.c: Likewise.
80207         * lib/getpagesize.h: Likewise.
80208         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80209         and probably does not work.
80210
80211 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * lib/.cppi-disable: Add wcwidth.
80214         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80215         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80216         (ISGRAPH): Remove.  All uses changed to isgraph.
80217         (FOLD) [!defined _LIBC]: Remove special case.
80218         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80219         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80220         HAVE_ISBLANK.
80221         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80222         case.
80223
80224 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80225
80226         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80227         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80228         brackets.  Other minor changes to suppress some compiler
80229         warnings.
80230
80231 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80232         and Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80235         of invoking obsolescent AC_HEADER_DIRENT macro.
80236         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80237         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80238         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80239         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80240         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80241         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80242         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80243         * m4/readdir.m4: Remove; no longer needed.
80244
80245 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80246         and Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80249         Don't worry about this obsolete case any more.
80250         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80251         directories.
80252         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80253         worry about this obsolete case any more.
80254         * lib/fts.c: Likewise.
80255         * lib/getcwd.c: Likewise.
80256         * lib/glob.h: Likewise.
80257         * lib/savedir.c: Likewise.
80258
80259 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80262         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80263         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80264         needed.
80265         All uses removed.
80266         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80267         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80268         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80269         needed.
80270         * m4/getdate.m4 (gl_GETDATE): Likewise.
80271         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80272         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80273         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80274         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80275         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80276         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80277         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80278         needed.
80279
80280 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * lib/memcasecmp.c: Include <limits.h>.
80283         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80284         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80285         Don't assume isdigit succeeds only on '0' through '9'.
80286
80287 2006-07-05  Eric Blake  <ebb9@byu.net>
80288
80289         * modules/getaddrinfo (Depends-on): Add snprintf.
80290
80291 2006-07-05  Eric Blake  <ebb9@byu.net>
80292
80293         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80294         to avoid 'header present but could not be compiled' on cygwin.
80295
80296 2006-07-05  Eric Blake  <ebb9@byu.net>
80297
80298         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80299         missing from netdb.h.
80300         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80301
80302 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80303
80304         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80305         no longer needed.
80306         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80307         * m4/getdate.m4 (gl_GETDATE): Likewise.
80308         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80309         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80310         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80311         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80313
80314 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80315
80316         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80317         All uses of is_space replaced by isspace.
80318         * lib/exit.h: Don't talk about STDC_HEADERS.
80319         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80320         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80321         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80322         replaced by isprint etc.
80323         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80324         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80325         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80326         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80327         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80328         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80329
80330 2006-07-05  Bruno Haible  <bruno@clisp.org>
80331
80332         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80333         the function exists, before testing against AIX.
80334         Reported by Martin Lambers <marlam@marlam.de>.
80335
80336 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80339         From Mark D. Baushke.
80340
80341 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80344         to the absolute name, not just one, to bypass Sun C 5.8's
80345         "warning: #include of /usr/include/... may be non-portable".
80346
80347 2006-07-04  Eric Blake  <ebb9@byu.net>
80348
80349         * modules/dirname-tests: New test module.
80350         * tests/test-dirname.c: New file, replacing dirname.c
80351         TEST_DIRNAME section that was recently deleted.
80352
80353 2006-07-04  Bruno Haible  <bruno@clisp.org>
80354
80355         Assume ANSI C header files and <ctype.h> functions.
80356         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80357         (mbsnwidth): Use isprint, iscntrl instead.
80358
80359 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         Merge from coreutils.
80362         * MODULES.html.sh: Add xstrtold.
80363         * modules/xstrtold: New file.
80364         * modules/cycle-check (Files): Add lib/same-inode.h.
80365         * modules/dirname (Files): Add m4/double-slash-root.m4.
80366         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80367         * modules/mkdir-p (Files): Add lib/same-inode.h.
80368         * modules/same (Files): Add lib/same-inode.h.
80369
80370 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80373         This is to keep the terminology clean; POSIX talks about
80374         "absolute pathnames", not "full pathnames", but the GNU
80375         Coding Standards say to use "path" for something else;
80376         so use "absolute" to keep both sides happy.
80377         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80378         Set gl_absolute_header, not gl_full_header_path.
80379         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80380         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80381         All uses changed.
80382
80383         Merge from coreutils.
80384
80385         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80386
80387         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80388         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80389         want to require the building of c-strtod.o.
80390         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80391         needs -lm directly.
80392         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80393
80394         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80397         --as-needed option if available.  Problem reported by Albert Chin in
80398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80399         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80400         cc merely issues a bunch of annoying warnings for --as-needed
80401         (this problem was reported by Bob Proulx).  Also, try linking with
80402         -lm to detect a bug in binutils 2.16 (this problem was reported
80403         by Ralf Wildenhues).
80404
80405         2006-06-18  Jim Meyering  <jim@meyering.net>
80406
80407         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80408         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80409         macro.
80410         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80411         also check for glibc-2.4's abort-inducing bug.
80412
80413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80414         Low-probability clean-up should be to use rmdir to get rid of
80415         the just-created directory, not unlink.
80416
80417         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80418         configure fail, and request a bug report to inform us about it.
80419         Add a comment that, barring reports to the contrary, in 2007 we'll
80420         assume ftruncate is universally available.
80421
80422         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80425
80426         2006-03-12  Jim Meyering  <jim@meyering.net>
80427
80428         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80429         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80430         * m4/same.m4 (gl_SAME): Likewise.
80431         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80432
80433         2006-03-11  Eric Blake  <ebb9@byu.net>
80434
80435         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80436         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80437         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80438         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80439
80440 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80443         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80444         reported by Mark D. Baushke, one in
80445         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80446
80447         Merge from coreutils.
80448
80449         * lib/.cppi-disable: Add stdint_.h.
80450         * lib/.cvsignore: Add stdint.h.
80451
80452         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80455         both double and long double versions.
80456         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80457         * lib/xstrtold.c: New file.
80458         * lib/xstrtod.h (xstrtold): New decl.
80459
80460         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         * lib/filemode.c (setst): Remove.
80463         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80464         (arguably) clearer, and the generated code is a bit smaller on my
80465         Debian GNU/Linux stable x86 host.
80466
80467         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80470         Assume that filemode.h includes sys/types.h and sys/stat.h.
80471         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80472         (ftypelet): Reorder to put common cases first, for efficiency.
80473         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80474         to do 'M'.
80475         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80476         of 10, for compatibility with FreeBSD.  All callers changed.
80477         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80478         types that can't be deduced solely from st_mode.  First arg is now a
80479         const pointer.
80480         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80481         (strmode): Renamed from mode_string.
80482         (filemodestring): New decl.
80483         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80484         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80485         needed.
80486         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80487
80488         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80491         fsusage.h now does that.  Include fsusage.h first, to test interface.
80492         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80493         at most one method (the old code could have generated decls that
80494         didn't conform to C89, not that this was ever exercised).
80495         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80496
80497         2006-03-19  Jim Meyering  <jim@meyering.net>
80498
80499         Work even in a chroot where d_ino values for entries in "/"
80500         don't match the stat.st_ino values for the same names.
80501         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80502         number, iterate through all entries again, using lstat instead.
80503         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80504         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80505
80506         * lib/getcwd.c (__getcwd): Clarify a comment.
80507         Use memcpy in place of a call to strcpy.
80508
80509         2006-03-12  Jim Meyering  <jim@meyering.net>
80510
80511         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80512         matches that of the current directory (which we're about to chdir ".."
80513         out of), then save the dev-ino of the parent, instead.
80514
80515         * lib/same-inode.h (SAME_INODE): New file/macro.
80516         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80517         Include "same-inode.h", instead.
80518         * lib/same.c: Likewise.
80519         * lib/cycle-check.h: Include "same-inode.h".
80520         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80521         * lib/cycle-check.c (SAME_INODE): Remove definition.
80522         * lib/root-dev-ino.h: Include "same-inode.h".
80523
80524         2006-03-11  Eric Blake  <ebb9@byu.net>
80525
80526         * lib/same.c (same_name): s/base_name/last_component/
80527         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80528         * lib/filenamecat.c (file_name_concat): Likewise.
80529
80530         2006-03-11  Eric Blake  <ebb9@byu.net>,
80531                     Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80534         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80535         drive prefix.
80536         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80537         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80538         (last_component): New method.
80539         * lib/dirname.c (dir_len): Determine when drive letters need a
80540         subsequent slash.  Preserve // when it is special.
80541         (dir_name): Don't append dot when drive letter is absolute.
80542         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80543         * lib/basename.c (base_name): New semantics - malloc the result.
80544         Preserve // when it is special.  Preserve relative files that look
80545         like drive letters.
80546         (base_len): Preserve // when it is special.
80547         (last_component): New method, similar to old base_name semantics.
80548         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80549         base_name.  Strip redundant slashes from ///.
80550
80551 2006-07-03  Jim Meyering  <jim@meyering.net>
80552
80553         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80554         macro is used before the first cycle_check call.
80555
80556 2006-07-03  Eric Blake  <ebb9@byu.net>
80557
80558         * modules/dirname (Depends-on): Add xstrndup.
80559
80560 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80563         test cases, so that config.log is a bit easier to follow.
80564
80565 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80568         both are 64 bits, since this seems to be the tradition, and this
80569         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80570         we ever run into a host that prefers long long to long in this
80571         case, we'll need another configure-time test.  Problem reported by
80572         Jim Meyering.
80573
80574 2006-07-02  Eric Blake  <ebb9@byu.net>
80575
80576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80577
80578 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         * modules/inttypes (Depends-on): No longer depends on stdint.
80581         * modules/stdint (Description): Say more about assumptions.
80582         Say that the fast types might differ.  Say macros are used.
80583         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80584         (Makefile.am): Revise list of substituted symbols to match
80585         new stdint.m4.
80586         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80587         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80588         * tests/test-stdint.c (verify_same_types)
80589         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80590         the code conforms to C99/C89.
80591         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80592         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80593
80594 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80597         but fix a bug, by requiring at least 64 bits.
80598         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80599         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80600         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80601         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80602
80603         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80604         changes.  Make 2.59 a prerequisite.  Check and substitute for
80605         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80606         inttypes.h.  Do not use special include files; just use the
80607         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80608         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80609         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80610         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80611         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80612         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80613         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80614         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80615         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80616         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80617         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80618         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80619         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80620         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80621         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80622         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80623         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80624         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80625         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80626         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80627         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80628         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80629         not check for things that C99 does not require, e.g., int8_t.  If
80630         a test isn't needed unless <stdint.h> isn't working, and is
80631         unlikely to be needed for any other reason, then don't do it
80632         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80633         size_t, since we assume C89 freestanding at least.  Do not check
80634         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80635         the right thing even if the types are not defined.  Instead use:
80636         (gl_STDINT_TYPE_PROPERTIES): New macro.
80637         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80638         testing whether <sys/types.h> clashes, as Autoconf does this for
80639         us now.  All uses removed.
80640         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80641         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80642         (gl_CHECK_TYPE_SAME):
80643         Remove; no longer needed.
80644         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80645         exists, since we'll return 0 anyway in that case.
80646         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80647
80648 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80651         possible collision with system files.
80652         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80653         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80654         WCHAR_MIN and WCHAR_MAX in this case.
80655         (<stddef.h>): Do not include; no longer needed.
80656         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80657         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80658         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80659         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80660         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80661         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80662         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80663         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80664         !defined(__c99))]: Include in this case too, since it's harmless
80665         now.
80666         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80667         dangerous to do so.
80668         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80669         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80670         (_STDINT_MIN, _STDINT_MAX): New macros.
80671         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80672         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80673         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80674         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80675         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80676         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80677         macros, not typedefs; this simplifies things quite a bit.
80678         Use long int for all types narrower than int64_t.
80679         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80680         Define in terms of long long int or int64_t or long int,
80681         not int64_t or int32_t.  This saves some compile-time testing.
80682         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80683         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80684         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80685         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80686         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80687         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80688         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80689         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80690         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80691         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80692         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80693         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80694         undef any previous version and define our own version, for
80695         simplicity and consistency with the new macros for types.
80696         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80697         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80698         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80699         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80700         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80701         @WINT_T_SUFFIX@ to keep things simple here.
80702         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80703         Simplify by assuming typical 8/16/32/64 host, since we're
80704         already doing that elsewhere anyway.
80705         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80706         and assume long long int is 64 bits if available.  This
80707         speeds up 'configure'.
80708
80709 2006-07-01  Eric Blake  <ebb9@byu.net>
80710
80711         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80712         Reported by Andreas Buening.
80713
80714 2006-07-01  Eric Blake  <ebb9@byu.net>
80715
80716         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80717
80718 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80719
80720         * lib/getaddrinfo.c: fixed typo
80721
80722 2006-06-29  Jim Meyering  <jim@meyering.net>
80723
80724         * modules/strftime (Maintainer): Add my name, since with the
80725         FPRINTFTIME changes strftime.c has forked from glibc.
80726
80727 2006-06-29  Eric Blake  <ebb9@byu.net>
80728
80729         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80730
80731 2006-06-29  Eric Blake  <ebb9@byu.net>
80732
80733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80734
80735 2006-06-29  Eric Blake  <ebb9@byu.net>
80736
80737         * lib/stat_.h: New file.
80738
80739 2006-06-29  Eric Blake  <ebb9@byu.net>
80740
80741         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80742         unused static function.
80743
80744 2006-06-29  Eric Blake  <ebb9@byu.net>
80745
80746         * doc/functions.texi (Function Portability): Document missing lstat
80747         on mingw.
80748
80749 2006-06-29  Eric Blake  <ebb9@byu.net>
80750
80751         * MODULES.html.sh: Add sys_stat.
80752         * modules/sys_stat: New module.
80753         * modules/mkstemp (Depends-on): Add sys_stat.
80754
80755 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80756
80757         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80758
80759 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80760
80761         * m4/c-bs-a.m4: Removed.
80762
80763 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80764
80765         * lib/strftime.c: Assume strftime() exists.
80766
80767 2006-06-29  Derek Price  <derek@ximbiot.com>
80768
80769         * modules/c-bs-a: Removed - \a is C89.
80770         * MODULES.html.sh: Remove c-bs-a.
80771
80772 2006-06-29  Bruno Haible  <bruno@clisp.org>
80773
80774         * modules/wcwidth (License): Change to LGPL.
80775
80776 2006-06-28  Simon Josefsson  <jas@extundo.com>
80777
80778         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80779         on _WIN32.
80780
80781         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80782         getnameinfo.
80783
80784 2006-06-28  Simon Josefsson  <jas@extundo.com>
80785
80786         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80787
80788 2006-06-28  Simon Josefsson  <jas@extundo.com>
80789
80790         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80791         functions there.  It will succeed on Windows XP, but on Windows
80792         2000 and (presumably) earlier, it will fail, and use the internal
80793         re-implementation.
80794         (use_win32_p): New function.
80795         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80796         Support AI_NUMERICSERV to disable getservbyname.
80797         (getnameinfo): New function, only supports
80798         NI_NUMERICHOST|NI_NUMERICSERV for now.
80799
80800         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80801         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80802         getnameinfo.
80803
80804 2006-06-28  Eric Blake  <ebb9@byu.net>
80805
80806         * modules/wcwidth: New file.
80807         * modules/mbchar (Depends-on): Add wcwidth.
80808         * modules/mbswidth (Depends-on): Add wcwidth.
80809         * MODULES.html.sh: Add wcwidth.
80810
80811 2006-06-28  Eric Blake  <ebb9@byu.net>
80812
80813         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80815
80816 2006-06-28  Eric Blake  <ebb9@byu.net>
80817
80818         * lib/xvasprintf.h: Fix comments.
80819
80820 2006-06-28  Eric Blake  <ebb9@byu.net>
80821
80822         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80823         * lib/mbswidth.c (wcwidth): Move from here...
80824         * lib/wcwidth.h: ...to this new file.
80825
80826 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80827
80828         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80829
80830         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80831         it's obsolete.
80832         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80833
80834 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80835
80836         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80837         Autoconf 2.60 says this stuff was obsolete.
80838
80839 2006-06-28  Bruno Haible  <bruno@clisp.org>
80840
80841         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80842
80843 2006-06-28  Bruno Haible  <bruno@clisp.org>
80844
80845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80846         gt_TYPE_WCHAR_T.
80847
80848 2006-06-28  Bruno Haible  <bruno@clisp.org>
80849
80850         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80851         declaration for wcwidth.
80852         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80853
80854 2006-06-28  Bruno Haible  <bruno@clisp.org>
80855
80856         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80857         (mkdir): Define using _mkdir.
80858
80859 2006-06-28  Bruno Haible  <bruno@clisp.org>
80860
80861         * lib/getaddrinfo.h: Fix POSIX URL.
80862         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80863         _WIN32.
80864         (use_win32_p): Make static.
80865         (getaddrinfo): Reject service name if it is empty or does not consist
80866         solely of decimal digits, or if its value is > 65535.
80867         (getnameinfo): Remove useless casts.
80868
80869 2006-06-27  Simon Josefsson  <jas@extundo.com>
80870
80871         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80872         Eggert and Martin Lambers.
80873
80874 2006-06-27  Simon Josefsson  <jas@extundo.com>
80875
80876         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80877         Eggert and Martin Lambers.
80878
80879 2006-06-27  Bruno Haible  <bruno@clisp.org>
80880
80881         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80882         result to 0, not to empty.
80883         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80884
80885 2006-06-27  Bruno Haible  <bruno@clisp.org>
80886
80887         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80888
80889 2006-06-26  Simon Josefsson  <jas@extundo.com>
80890
80891         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80892         present.
80893
80894 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80897         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80899
80900 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80901
80902         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80903
80904 2006-06-26  Bruno Haible  <bruno@clisp.org>
80905
80906         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80907
80908 2006-06-26  Bruno Haible  <bruno@clisp.org>
80909
80910         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80911
80912 2006-06-26  Bruno Haible  <bruno@clisp.org>
80913
80914         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80915         SGI C compiler in pre-C99 mode.
80916         Suggested by Mark D. Baushke and Larry Jones.
80917
80918 2006-06-26  Bruno Haible  <bruno@clisp.org>
80919
80920         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80921         WCHAR_MAX.
80922         Reported by Mark D. Baushke and Larry Jones.
80923
80924 2006-06-26  Bruno Haible  <bruno@clisp.org>
80925
80926         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80927         in pre-C99 mode.
80928         Suggested by Mark D. Baushke and Larry Jones.
80929
80930 2006-06-23  Simon Josefsson  <jas@extundo.com>
80931             Bruno Haible  <bruno@clisp.org>
80932
80933         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80934         Emit mostlyclean-local rule.
80935         (func_emit_tests_Makefile_am): Likewise.
80936         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80937
80938 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80939
80940         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80941
80942 2006-06-23  Bruno Haible  <bruno@clisp.org>
80943
80944         * tests/test-stdint.c: Update to match ISO C 99 Technical
80945         Corrigendum 1.
80946
80947 2006-06-23  Bruno Haible  <bruno@clisp.org>
80948
80949         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80950
80951 2006-06-23  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/stdint_.h: Treat IRIX like OpenBSD.
80954
80955 2006-06-23  Bruno Haible  <bruno@clisp.org>
80956
80957         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80958         ISO C 99 Technical Corrigendum 1.
80959
80960 2006-06-22  Simon Josefsson  <jas@extundo.com>
80961
80962         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80963         MinGW.
80964
80965 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80966
80967         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80968         needed.  Some compiler complained about some of them.  Problem reported
80969         by Larry Jones in
80970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80971
80972 2006-06-21  Simon Josefsson  <jas@extundo.com>
80973
80974         * tests/test-getaddrinfo.c: New file.
80975
80976         * modules/getaddrinfo-tests: New file.
80977
80978         * MODULES.html.sh: Add inet_pton.
80979
80980         * modules/inet_pton: New file.
80981
80982 2006-06-21  Simon Josefsson  <jas@extundo.com>
80983
80984         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80985         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80986         of using the (limited) gnulib implementation on Windows XP.
80987
80988         * m4/inet_pton.m4: New file.
80989
80990 2006-06-21  Simon Josefsson  <jas@extundo.com>
80991
80992         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80993         variable.
80994
80995         * lib/socket_.h: Don't define WINVER.
80996
80997         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80998         slightly modified to work in gnulib.
80999
81000 2006-06-21  Simon Josefsson  <jas@extundo.com>
81001
81002         * doc/gnulib.texi (Windows sockets): Add.
81003
81004 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81005
81006         * lib/read-file.c (fread_file): Start with buffer allocation of
81007         0 bytes rather than 1 byte; this simplifies the code.
81008         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81009         code to free buffer and save/restore errno.
81010         (internal_read_file): Remove unused local.
81011
81012 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81015         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81016         Problem reported by Denis Excoffier in
81017         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81018
81019 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81020
81021         * modules/sys_socket, modules/socklen: Include sys/types since
81022         FreeBSD 4.x's sys/socket.h needs it.
81023
81024 2006-06-19  Simon Josefsson  <jas@extundo.com>
81025
81026         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81027
81028 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81031
81032 2006-06-19  Bruno Haible  <bruno@clisp.org>
81033
81034         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81035         and FULL_PATH_INTTYPES_H in angle brackets.
81036         Reported by Mark D. Baushke <mdb@gnu.org>.
81037
81038 2006-06-17  Eric Blake  <ebb9@byu.net>
81039
81040         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81041         errno.
81042
81043 2006-06-17  Bruno Haible  <bruno@clisp.org>
81044
81045         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81046         <sys/inttypes.h>.
81047
81048 2006-06-17  Bruno Haible  <bruno@clisp.org>
81049
81050         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81051         whether errno is declared. Assume <errno.h> declares errno.
81052
81053 2006-06-17  Bruno Haible  <bruno@clisp.org>
81054
81055         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81056
81057 2006-06-17  Bruno Haible  <bruno@clisp.org>
81058
81059         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81060         problem on Solaris 2.5.1.
81061
81062 2006-06-16  Eric Blake  <ebb9@byu.net>
81063
81064         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81065         * lib/unicodeio.c [!defined errno]: Likewise.
81066         * lib/strtol.c [!defined errno]: Likewise.
81067         * lib/strtod.c [!defined errno]: Likewise.
81068
81069 2006-06-15  Eric Blake  <ebb9@byu.net>
81070
81071         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81072
81073 2006-06-15  Eric Blake  <ebb9@byu.net>
81074
81075         * config/srclist.txt (ssize_t.m4): Lose sync.
81076
81077 2006-06-15  Bruno Haible  <bruno@clisp.org>
81078
81079         * modules/stdint (Files): Include m4/full-header-path.m4,
81080         m4/size_max.m4, m4/wchar_t.m4.
81081         (Makefile.am): Many more substitutions.
81082         * modules/stdint-tests: New file.
81083         * tests/test-stdint.c: New file.
81084
81085 2006-06-15  Bruno Haible  <bruno@clisp.org>
81086
81087         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81088         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81089         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81090         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81091         gl_CHECK_TYPE_SAME): New macros.
81092
81093 2006-06-15  Bruno Haible  <bruno@clisp.org>
81094
81095         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81096
81097 2006-06-15  Bruno Haible  <bruno@clisp.org>
81098
81099         * lib/stdint_.h: Rewritten to be fully auto-configured.
81100         Fixes bug on HP-UX/IA64.
81101
81102 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81103
81104         * lib/getdate.y (__attribute__): Don't define if already defined.
81105         Problem reported by Larry Jones.
81106         * lib/utimens.c (__attribute__): Likewise.
81107
81108 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81109
81110         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81111         reported by Andreas Schwab.
81112
81113 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81114             Bruno Haible  <bruno@clisp.org>
81115
81116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81117         check for the declaration of strnlen and a run test that exposes the
81118         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81119         rpl_strndup.
81120
81121 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81122             Bruno Haible  <bruno@clisp.org>
81123
81124         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81125
81126 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81127
81128         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81129         compile test, for Tru64 4.0D.
81130
81131 2006-05-28  Karl Berry  <karl@gnu.org>
81132
81133         * config/srclist.txt (printf-args.c): lose sync.
81134
81135 2006-05-26  Martin Lambers  <marlam@marlam.de>
81136
81137         * lib/getpass.c: Updates the test for the native W32 API, and adds
81138         missing includes, thus fixing compilation warnings.
81139
81140 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81141
81142         * lib/exclude.c (exclude_fnmatch): New function.
81143         (excluded_file_name): Call exclude_fnmatch.
81144         * lib/exclude.h (excluded_file_name): New prototype
81145
81146 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         * lib/tempname.c (small_open, large_open): New macros.
81149         (__open, __open64) [!_LIBC]: Remove.
81150         (__gen_tempname): Use small_open and large_open instead of __open
81151         and __open64.  This fixes a portability bug on HP-UX 11.11i
81152         reported by Simon Wing-Tang in
81153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81154
81155 2006-05-24  Bruno Haible  <bruno@clisp.org>
81156
81157         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81158         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81159         Reported by Thorsten Maerz <torte@netztorte.de> via
81160         Aaron Stone <aaron@serendipity.cx>.
81161
81162 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81165         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81166         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81167         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81168         not really conditional on the cache.
81169         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81170
81171 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81172
81173         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81174         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81175         (my_usleep): Don't mishandle maximum value.
81176
81177 2006-05-19  Jim Meyering  <jim@meyering.net>
81178
81179         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81180
81181 2006-05-17  Bruno Haible  <bruno@clisp.org>
81182
81183         Cygwin portability.
81184         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81185
81186 2006-05-17  Bruno Haible  <bruno@clisp.org>
81187
81188         * lib/stdint_.h: Fix recognition of Cygwin.
81189
81190 2006-05-15  Bruno Haible  <bruno@clisp.org>
81191
81192         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81193         on libtool patch by Ralf Wildenhues.
81194
81195 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81198         test for C99 conformance; (bool) 0.5 is an integer constant
81199         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81200         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81201
81202 2006-05-11  Simon Josefsson  <jas@extundo.com>
81203
81204         * m4/xvasprintf.m4: Fix obvious typo.
81205
81206 2006-05-11  Jim Meyering  <jim@meyering.net>
81207
81208         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81209         James Lemley.
81210
81211 2006-05-10  Simon Josefsson  <jas@extundo.com>
81212
81213         * lib/md4.c: Typo fix, update copyright years.
81214         (K1, K2): Don't use L because it turn computations into 64-bit on
81215         64-bit platforms.
81216
81217 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81220         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81221         unwanted sign propagation, e.g., on hosts with 64-bit int.
81222         There still are some problems with reeelly weird theoretical hosts
81223         (e.g., 33-bit int) but it's not worth worrying about now.
81224         * lib/sha1.c (rol): Likewise.
81225         (K1, K2, K3, K4): Remove unnecessary L suffix.
81226
81227 2006-05-10  Bruno Haible  <bruno@clisp.org>
81228
81229         * lib/des.c: Cast to avoid warnings.
81230
81231 2006-05-09  Bruno Haible  <bruno@clisp.org>
81232
81233         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81234         (Depends-on): Depend also on xsize, stdarg.
81235         (configure.ac): Add gl_XVASPRINTF.
81236
81237 2006-05-09  Bruno Haible  <bruno@clisp.org>
81238
81239         * m4/xvasprintf.m4: New file.
81240
81241 2006-05-09  Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81244         (EOVERFLOW): Define fallback value.
81245         (xstrcat): New function.
81246         (xvasprintf): Recognize the special case of a string concatenation.
81247
81248 2006-05-08  Eric Blake  <ebb9@byu.net>
81249
81250         * gnulib-tool (func_version): Base copyright year on CVS date.
81251         (func_emit_copyright_notice): New function.
81252         (func_emit_lib_Makefile_am): Use it.
81253         (func_emit_tests_Makefile_am): Likewise.
81254         (func_import): Likewise.
81255
81256 2006-05-08  Bruno Haible  <bruno@clisp.org>
81257
81258         * modules/stdarg: New file.
81259         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81260
81261 2006-05-08  Bruno Haible  <bruno@clisp.org>
81262
81263         * m4/stdarg.m4: New file, from GNU gettext.
81264
81265 2006-05-08  Bruno Haible  <bruno@clisp.org>
81266
81267         * config/srclist.txt (build-aux/config.rpath): different from latest
81268         release.
81269
81270 2006-05-08  Bruno Haible  <bruno@clisp.org>
81271
81272         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81273
81274 2006-05-05  Jim Meyering  <jim@meyering.net>
81275
81276         * m4/warning.m4: New file, derived from bison's file by the same name.
81277
81278 2006-05-03  Bruno Haible  <bruno@clisp.org>
81279
81280         * lib/stdint_.h: Shorter URL.
81281         * lib/inttypes.h: Likewise.
81282
81283 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81286
81287 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * lib/verify.h: Document the internals better.  Most of this change
81290         was written by Bruno Haible.
81291
81292 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         * doc/verify.texi: New file, partly based on a proposal by
81295         Bruno Haible.
81296
81297 2006-05-02  Bruno Haible  <bruno@clisp.org>
81298
81299         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81300         test from here...
81301         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81302
81303 2006-04-29  Bruno Haible  <bruno@clisp.org>
81304
81305         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81306         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81307
81308 2006-04-29  Bruno Haible  <bruno@clisp.org>
81309
81310         * gnulib-tool: Make --update option actually work.
81311
81312 2006-04-29  Bruno Haible  <bruno@clisp.org>
81313
81314         * doc/gcd.texi: New file.
81315         * doc/gnulib.texi: Include it.
81316
81317 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         * lib/getdate.y (get_date): When adding relative date, start with the
81320         initial time, not with the result of the first mktime call.
81321
81322 2006-04-25  Bruno Haible  <bruno@clisp.org>
81323
81324         * gnulib-tool (func_import): Output the include directives in three
81325         blocks, sorted separately.
81326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81327
81328 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81331         to define main with arguments, for C++.  Reported by Eric Blake.
81332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81333         Prefer 'int main ()' to 'int main (void)', for C++.
81334         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81336         for 'main', for C99 and C++.
81337
81338 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81341         Don't assume that exit status -1 is valid.
81342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81343         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81344         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81345         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81346         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81347         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81348         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81349         functions can be used without declaring them, or that you can
81350         exit with status -1.
81351         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81352
81353 2006-04-24  Karl Berry  <karl@gnu.org>
81354
81355         * config/srclist.txt (longdouble.m4): sync lost.
81356
81357 2006-04-24  Eric Blake  <ebb9@byu.net>
81358
81359         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81360
81361 2006-04-24  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81364         poll() implementation in AIX.
81365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81366
81367 2006-04-24  Bruno Haible  <bruno@clisp.org>
81368
81369         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81370         assigned exactly once.
81371
81372 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81373             Bruno Haible  <bruno@clisp.org>
81374
81375         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81376         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81377         for AM_CPPFLAGS.
81378
81379 2006-04-23  Bruno Haible  <bruno@clisp.org>
81380
81381         * modules/copy-file: Depend on unistd.
81382         * modules/execute: Likewise.
81383         * modules/fatal-signal: Likewise.
81384         * modules/findprog: Likewise.
81385         * modules/mkdtemp : Likewise.
81386         * modules/pipe: Likewise.
81387         * modules/wait-process: Likewise.
81388
81389 2006-04-23  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81392         condition was already detected.
81393         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81394
81395 2006-04-23  Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/copy-file.c: Include <unistd.h> unconditionally.
81398         * lib/execute.c: Likewise.
81399         * lib/fatal-signal.c: Likewise.
81400         * lib/findprog.c: Likewise.
81401         * lib/mkdtemp.c: Likewise.
81402         * lib/pipe.h: Likewise.
81403         * lib/pipe.c: Likewise.
81404         * lib/wait-process.h: Likewise.
81405
81406 2006-04-23  Bruno Haible  <bruno@clisp.org>
81407
81408         * gnulib-tool (func_usage): Fix --import description. Document
81409         --update.
81410         (func_import): Create temporary file in a temporary directory, if
81411         --dry-run is specified. Silence errors from 'grep' when there are no
81412         m4 files in $m4dir.
81413         (func_create_testdir): Silence errors from 'grep' when there are no
81414         m4 files in $m4dir.
81415         Reported by Karl Berry <karl@freefriends.org>.
81416
81417 2006-04-20  Bruno Haible  <bruno@clisp.org>
81418
81419         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81420         one argument, so that the code will be portable to Autoconf 2.60.
81421         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81422         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81423         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81424
81425 2006-04-19  Derek Price  <derek@ximbiot.com>
81426             Eric Blake  <ebb9@byu.net>
81427
81428         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81429         rather than "/full/path.h".  Update comment to match.  Shorten &
81430         generalize m4_translit call via AS_TR_CPP.
81431
81432 2006-04-19  Derek Price  <derek@ximbiot.com>
81433             Eric Blake  <ebb9@byu.net>
81434
81435         * lib/inttypes.h: Correct grammar in comment.
81436
81437 2006-04-18  Derek Price  <derek@ximbiot.com>
81438             Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         * modules/inttypes: New file.
81441         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81442
81443 2006-04-18  Derek Price  <derek@ximbiot.com>
81444             Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81447         New files.
81448
81449 2006-04-18  Derek Price  <derek@ximbiot.com>
81450             Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         * lib/inttypes.h: New file.
81453         * lib/strtoimax.c: Assume <inttypes.h>.
81454
81455 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81456
81457         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81458         isn't mounted.  Problem reported by Kir Kolyshkin.
81459
81460 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81461
81462         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81463         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81464         Derek R. Price.
81465         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81466         implementation.
81467
81468 2006-04-12  Eric Blake  <ebb9@byu.net>
81469
81470         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81471         is now done automatically by the corresponding Autoconf macro.
81472
81473 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81476         time_r.h.
81477
81478 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         Merge regex changes from libc, removing some of our
81481         POSIX-conformance changes that were rejected and redoing them in a
81482         less-intrusive way.
81483
81484         * lib/regcomp.c (re_compile_internal, init_dfa):
81485         Length arg is now size_t, not Idx.  All uses changed.
81486         (peek_token): Forward decl now says internal_function.
81487         (__re_error_msgid, __re_error_msgid_idx):
81488         Now static rather than extern with attribute_hidden.
81489         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81490         For some reason libc prefers K&R style defns for external functions.
81491         (regerror) [!defined _LIBC]: Likewise.
81492         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81493         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81494         (build_range_exp, build_collating_symbol):
81495         Use K&R-style defn.
81496         (re_compile_fastmap): Use '\0' to memset, not 0.
81497         (utf8_sb_map): Make the calculations more obvious.
81498         (init_dfa, parse_bracket_exp, build_charclass_op):
81499         Call calloc and cast result, as glibc does.
81500         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81501         (build_range_exp, build_collating_symbol):
81502         Now internal functions.
81503
81504         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81505
81506         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81507         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81508         Don't depend on VMS; depend on __VMS instead, for POSIX
81509         namespace cleanness.
81510         (regoff_t): Define to ssize_t, not long int.
81511
81512         Remove the REG_ macros named below.  Instead, make the old names
81513         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81514         __USE_GNU_REGEX.
81515         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81516         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81517         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81518         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81519         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81520         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81521         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81522         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81523         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81524         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81525         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81526         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81527         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81528         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81529         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81530         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81531         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81532         (REG_NREGS):
81533         Remove.  All uses replaced by the old RE_* names.
81534         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81535         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81536         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81537         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81538         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81539         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81540         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81541         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81542         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81543         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81544         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81545         Don't bother having these macros be independent of each others'
81546         values, since they no longer exist in the POSIX name space.
81547
81548         Rename the following member names back to their old names,
81549         unless !__USE_GNU_REGEX.  All uses changed back.
81550         (buffer): Renamed from re_buffer.
81551         (allocated): Renamed from re_allocated.
81552         (used): Renamed from re_used.
81553         (syntax): Renamed from re_syntax.
81554         (fastmap): Renamed from re_fastmap.
81555         (translate): Renamed from re_translate.
81556         (can_be_null): Renamed from re_can_be_null.
81557         (regs_allocated): Renamed from re_regs_allocated.
81558         (fastmap_accurate): Renamed from re_fastmap_accurate.
81559         (no_sub): Renamed from re_no_sub.
81560         (not_bol): Renamed from re_not_bol.
81561         (not_eol): Renamed from re_not_eol.
81562         (newline_anchor): Renamed from re_newline_anchor.
81563         (num_regs): Renamed from rm_num_regs.
81564         (start): Renamed from rm_start.
81565         (end): Renamed from rm_end.
81566
81567         (free_state): Move up a bit.
81568
81569         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81570         #define to be empty.
81571         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81572         when that is what is intended.
81573         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81574         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81575         (MAX): New macro.
81576         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81577         All uses changed back to re_malloc, etc.  It's now the caller's
81578         responsibility to check for overflow; all callers changed.
81579         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81580         (re_x2nrealloc): Remove.
81581         (free_state): Remove decl.
81582
81583         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81584         (re_set_registers, re_exec):
81585         Use K&R-style defn.
81586
81587         2006-01-31  Roland McGrath  <roland@redhat.com>
81588
81589         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81590         Reported by Mike Frysinger <vapier@gentoo.org>.
81591
81592         2006-01-15  Andreas Jaeger  <aj@suse.de>
81593
81594         [BZ #1950]
81595         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81596         build_wcs_upper_buffer change.
81597         (build_wcs_upper_buffer): Change return type.
81598
81599         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81600
81601         * lib/regex_internal.h: Include <stdint.h> if available.
81602
81603         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81604
81605         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81606
81607         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81608
81609         * lib/regcomp.c: Adjust for changed secondary hash function.
81610
81611         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81612
81613         * lib/regex.h: Pretty printing.
81614         Clean up namespace a bit.
81615
81616         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81617
81618         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81619         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81620
81621         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81622                     Ulrich Drepper  <drepper@redhat.com>
81623
81624         [BZ #1302]
81625         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81626         changed.
81627         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81628
81629         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81630
81631         [BZ #281]
81632         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81633         * lib/regcomp.c: Remove unnecessary uses of
81634         unsigned RE_TRANSLATE_TYPE.
81635         * lib/regex_internal.h: Likewise.
81636         * lib/regex_internal.c: Likewise.
81637         * lib/regexec.c: Likewise.
81638         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81639
81640         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81641
81642         * lib/regexec.c (find_recover_state): Remove unnecessary
81643         initialization.
81644         (transit_state_bkref): Make DFA a const pointer.
81645         (get_subexp): Likewise.
81646         (check_arrival): Likewise.
81647         (update_cur_sifted_state): Likewise.
81648         (re_search_internal): Likewise.
81649         (prune_impossible_nodes): Likewise.
81650         (acquire_init_state_context): Likewise.
81651         (proceed_next_node): Likewise.
81652         (set_regs): Likewise.
81653         (free_fail_stack_return): Likewise.
81654         (check_arrival_expand_ecl): Mark DFA parameter as const.
81655         (check_arrival_expand_ecl_sub): Likewise.
81656         (check_subexp_limits): Likewise.
81657         (sub_epsilon_src_nodes):  Likewise.
81658         (add_epsilon_src_nodes):  Likewise.
81659         (merge_state_array): Likewise.
81660         (update_regs): Likewise.
81661         (build_trtable): Likewise.
81662         (sift_states_backward): Mark MCTX parameter as const.
81663         (build_sifted_states): Likewise.
81664         (update_cur_sifted_state): Likewise.
81665         (sift_states_mkref): Likewise.
81666         (check_arrival_expand_ecl): Mark eclosure as const.
81667         (check_dst_limits_calc_pos_1): Likewise.
81668         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81669         pointer.
81670
81671         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81672
81673         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81674         (transit_state_sb): Likewise.
81675         (transit_state_mb): Likewise.
81676         (sift_states_iter_mb): Likewise.
81677         (check_arrival_add_next_nodes): Likewise.
81678         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81679         [_LIBC] (re_search_2_stub): Use mempcpy.
81680
81681         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81682         mbrtowc for very simple UTF-8 case.
81683
81684         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81685         a pointer-to-const.
81686         (re_acquire_state_context): Likewise.
81687         * lib/regex_internal.h: Adjust prototypes.
81688
81689         * lib/regex.c: Prevent using C++ compilers.
81690
81691         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81692         (re_acquire_state_context): Likewise.
81693
81694 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         * modules/regex (Depends-on): Add ssize_t.
81697
81698 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81701         translation table.
81702
81703 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81706
81707 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81708             Bruno Haible  <bruno@clisp.org>
81709
81710         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81711         <sys/types.h> and <inttypes.h>.
81712
81713 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81714
81715         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81716         `__error_t_defined', so argp.h will not typedef the former.
81717
81718 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81719
81720         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81721         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81722         glibc names.  Even if glibc is changed to conform to POSIX, the
81723         traditional names will be available anyway, since regex depends on
81724         the extensions module.  Also, fix a longstanding typo in the
81725         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81726         reported by Emanuele Giaquinta.  Also, change sense of cached
81727         variable, so that the message makes sense.
81728
81729 2006-03-24  Simon Josefsson  <jas@extundo.com>
81730
81731         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81732         including some doc fixes.
81733         (base64_encode_alloc): Fix +1 bug on allocation failures.
81734
81735 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81736
81737         * lib/base64.c (base64_encode): Do not read past end of array with
81738         unsanitized input on systems with CHAR_BIT > 8.
81739
81740 2006-03-24  Eric Blake  <ebb9@byu.net>
81741
81742         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81743
81744 2006-03-22  Karl Berry  <karl@gnu.org>
81745
81746         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81747         * config/srclistvars.sh (COREUTILS): new var.
81748
81749 2006-03-17  Jim Meyering  <jim@meyering.net>
81750
81751         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81752         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81753
81754 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81755
81756         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81757         no longer needs it.  Instead, check that regoff_t is as least
81758         as wide as ptrdiff_t.
81759
81760         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81761         so that our regex.h stays compatible with the installed regex.
81762         This is helpful for installers who configure --without-included-regex.
81763         Problem reported by Emanuele Giaquinta.
81764
81765 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81766
81767         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81768         Typedef to long int, not to off_, as POSIX will likely change
81769         in that direction.
81770
81771 2006-03-15  Eric Blake  <ebb9@byu.net>
81772
81773         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81774
81775 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81776
81777         * lib/argp-help.c (validate_uparams): Fix typo
81778         * lib/argp-parse.c (argp_default_options): Consistently begin help
81779         messages with a lowercase letter.
81780
81781 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81784         overrun buffers and shouldn't be used (much as gets shouldn't be
81785         used).
81786         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81787
81788 2006-03-08  Simon Josefsson  <jas@extundo.com>
81789
81790         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81791         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81792
81793 2006-03-08  Simon Josefsson  <jas@extundo.com>
81794
81795         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81796         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81797
81798 2006-03-08  Simon Josefsson  <jas@extundo.com>
81799
81800         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81801         signal that configure disabled the device.
81802
81803 2006-03-08  Simon Josefsson  <jas@extundo.com>
81804
81805         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81806         languages.
81807
81808 2006-03-07  Simon Josefsson  <jas@extundo.com>
81809
81810         * modules/getopt (Depends-on): Add unistd.
81811
81812         * modules/unistd: New file.
81813
81814 2006-03-07  Simon Josefsson  <jas@extundo.com>
81815
81816         * modules/gc-random: New file.
81817
81818 2006-03-07  Simon Josefsson  <jas@extundo.com>
81819
81820         * m4/unistd_h.m4: New file.
81821
81822 2006-03-07  Simon Josefsson  <jas@extundo.com>
81823
81824         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81825         test to be side-effect free by storing the result in the cache
81826         variable gl_cv_lib_readline, and moving the assignment of
81827         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81828         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81829
81830 2006-03-07  Simon Josefsson  <jas@extundo.com>
81831
81832         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81833         error on missing devices (the functions will return an error).
81834
81835         * m4/gc.m4: Move random stuff to gc-random.m4
81836
81837 2006-03-07  Simon Josefsson  <jas@extundo.com>
81838
81839         * lib/unistd_.h: New file.
81840
81841 2006-03-07  Simon Josefsson  <jas@extundo.com>
81842
81843         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81844
81845 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81848         Problem reported by Juan Manuel Guerrero.
81849
81850 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81851
81852         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81853         the unistd module.
81854         * lib/getlogin_r.c: Likewise.
81855         * lib/getlogin_r.h: Likewise.
81856         * lib/glob.c: Likewise.
81857         * lib/pagealign_alloc.c: Likewise.
81858         * lib/unistd_.h: Remove; no longer needed.
81859
81860 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81863         Add unistd.
81864         * modules/c-stack (Depends-on): Add unistd.
81865         * modules/getlogin_r: Likewise.
81866         * modules/glob: Likewise.
81867         * modules/pagealign_alloc: Likewise.
81868         * modules/unistd (Files): Remove lib/unistd_.h.
81869         (EXTRA_DIST): Remove.
81870         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81871         need unistd_.h.
81872         (MOSTLYCLEANFILES): Remove unistd.h-t.
81873
81874 2006-03-03  Simon Josefsson  <jas@extundo.com>
81875
81876         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81877
81878 2006-03-03  Simon Josefsson  <jas@extundo.com>
81879
81880         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81881         libidn and bison.
81882
81883 2006-03-03  Simon Josefsson  <jas@extundo.com>
81884
81885         * build-aux/maint.mk: Add indent target.
81886
81887 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81888
81889         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81890         our replacement poll.h in any case, to avoid a differing
81891         declaration from a system header.  Seen on AIX.
81892
81893 2006-03-01  Simon Josefsson  <jas@extundo.com>
81894
81895         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81896         <kasal@ucw.cz>.
81897
81898 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * modules/gettime (Depends-on): Add extensions module.
81901         * modules/nanosleep (Depends-on): Likewise.
81902         * modules/settime (Depends-on): Likewise.
81903
81904 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81905
81906         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81907         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81908         pedantically.
81909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81910         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81911
81912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81913         not "==".  Reported by Ralf Wildenhues.
81914
81915 2006-03-01  Karl Berry  <karl@gnu.org>
81916
81917         * doc/Copyright/request-*: new files, synced from gnuorg.
81918
81919 2006-03-01  Karl Berry  <karl@gnu.org>
81920
81921         * config/srclist.txt (Copyright/*): new entries.
81922
81923 2006-02-28  Simon Josefsson  <jas@extundo.com>
81924
81925         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81926
81927 2006-02-27  Simon Josefsson  <jas@extundo.com>
81928
81929         * lib/base64.h: Indent #define's.  From Jim Meyering
81930         <jim@meyering.net>.
81931
81932 2006-02-27  Jim Meyering  <jim@meyering.net>
81933
81934         Revert the change of 2006-02-24, so these files can continue
81935         to be sync'd from gettext.
81936         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81937         of `config.h'.
81938
81939 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         * modules/intprops: New file.
81942         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81943         Add intprops.
81944         * modules/getloadavg (Files): Remove lib/intprops.h.
81945         (Depends-on): Add intprops.
81946         * modules/human: Likewise.
81947         * modules/inttostr: Likewise.
81948         * modules/openat: Likewise.
81949         * modules/sig2str: Likewise.
81950         * modules/userspec: Likewise.
81951         * modules/utimecmp: Likewise.
81952         * modules/xnanosleep: Likewise.
81953         * modules/xstrtol: Likewise.
81954
81955 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81956
81957         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81958         * modules/lock-tests (TESTS): Use $(EXEEXT).
81959         * modules/tls-tests: Likewise.
81960         * modules/argp-tests: Likewise.
81961         (check_PROGRAMS): New var, replacing...
81962         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81963
81964 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81965
81966         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81967         `config.h'.
81968
81969 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81972
81973 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81974
81975         Sync from coreutils.
81976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81977         gl_CHDIR_SAFER.
81978
81979 2006-02-22  Jim Meyering  <jim@meyering.net>
81980
81981         Sync from coreutils.
81982         * m4/chdir-safer.m4: New file.
81983
81984 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81987         AT_FDCWD exceeds INT_MAX.
81988         * lib/openat.h (AT_FDCWD): Likewise.
81989
81990 2006-02-17  Eric Blake  <address@hidden>
81991
81992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81993
81994 2006-02-16  Simon Josefsson  <jas@extundo.com>
81995
81996         * modules/getaddrinfo (Depends-on): Add sys_socket.
81997
81998 2006-02-15  Simon Josefsson  <jas@extundo.com>
81999
82000         * build-aux/maint.mk: Add dsyntax-check rule.
82001
82002 2006-02-15  Eric Blake  <ebb9@byu.net>
82003
82004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82005         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82006         'present but cannot compile' warnings on cygwin.
82007         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82008         use ws2tcpip.h if sys/socket.h works.
82009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82010         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82011
82012 2006-02-14  Simon Josefsson  <jas@extundo.com>
82013
82014         * modules/maintainer-makefile (Files): Rename.
82015
82016         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82017         and (the local) Makefile.cfg to maint-cfg.mk.
82018
82019         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82020         to the latter.
82021
82022         * modules/maintainer-makefile: New module.
82023
82024         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82025         severaly stripped to make it possible to build it up from scratch
82026         with reliable tests.
82027
82028         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82029         fixes to permit overriding the default actions when configure and
82030         makefile are not available.
82031
82032 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         Sync from coreutils.
82035         * modules/lstat (Depends-on): Don't depend on xalloc.
82036         (License): Change from GPL to LGPL, since this is now simply a
82037         replacement for a libc function.
82038
82039 2006-02-14  Jim Meyering  <jim@meyering.net>
82040
82041         Sync from coreutils.
82042
82043         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82044         failure on deficient systems, and simplify gnulib lgpl dependencies.
82045         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82046         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82047
82048         * lib/xalloc-die.c: Remove unused definition of N_.
82049
82050 2006-02-14  Jim Meyering  <jim@meyering.net>
82051
82052         Sync from coreutils.
82053         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82054         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82055         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82056         double-quote uses of that variable, to accommodate the rare case in
82057         which getmntent is available in none of the libraries checked.  This
82058         happens at least on FreeBSD 5.0.
82059
82060 2006-02-13  Simon Josefsson  <jas@extundo.com>
82061
82062         * gnulib-tool (Usage): Fix --import, from
82063         karl@freefriends.org (Karl Berry).
82064
82065 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82066
82067         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82068
82069 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82070
82071         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82072         "autoupdate" on 2005-12-12.
82073
82074 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * modules/closeout (Depends-on): Remove atexit.
82077
82078 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82079
82080         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82081         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82082
82083 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82084
82085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82086         __EXTENSIONS__ if this causes compilation to fail.  Problem
82087         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82088         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82089
82090 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82093         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82095         All uses changed.
82096
82097 2006-01-26  Simon Josefsson  <jas@extundo.com>
82098
82099         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82100         prototype is visible on mingw32.
82101
82102         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82103         for mingw32.
82104
82105         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82106         mingw32).
82107
82108 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82109
82110         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82111         attempt to open for write; this always fails, at least on POSIX
82112         hosts.  This reinstates the 2006-01-09 change, which was
82113         inadvertently removed.
82114
82115 2006-01-26  Bruno Haible  <bruno@clisp.org>
82116
82117         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82118         Reported by Paul Eggert.
82119
82120 2006-01-26  Bruno Haible  <bruno@clisp.org>
82121             Paul Eggert  <eggert@cs.ucla.edu>
82122
82123         * lib/stdbool_.h (_Bool)
82124         [(! (defined __cplusplus || defined __BEOS__)
82125           && !defined __GNUC__
82126           && !(defined __HP_cc || defined __xlc__
82127                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82128                || defined __sgi))]:
82129         #define to signed char in these cases too; this simplifies
82130         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82131         etc., separately) and makes it more conservative.
82132
82133 2006-01-25  Simon Josefsson  <jas@extundo.com>
82134
82135         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82136         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82137         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82138
82139 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82140
82141         * lib/argp-namefrob.h: Bugfix. Remove stray #
82142
82143 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82146         so that we test the test.
82147         Check for yet another HP-UX cc bug involving *bool |= bool.
82148
82149 2006-01-25  Karl Berry  <karl@gnu.org>
82150
82151         * config/srclist.txt (vasnprintf.c): sync lost.
82152
82153 2006-01-25  Jim Meyering  <jim@meyering.net>
82154
82155         Sync from the stable (b5) branch of coreutils:
82156
82157         * lib/fts.c (fts_children): Don't let close() clobber errno from
82158         failed fchdir().
82159
82160         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82161         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82162         a dangling symlink.  That can also happen at least for ELOOP.
82163         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82164         FYI, this bug predates the inclusion of fts.c in coreutils.
82165
82166         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82167         in their own block, so pre-c99 compilers don't object.
82168
82169         Avoid the double-free (first in fts_read, second in fts_close) that
82170         would occur when an `active' directory is made inaccessible (e.g.,
82171         via chmod a-x) during a traversal.
82172         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82173         before returning.  Reproduce this failure by
82174         mkdir -p a/b; cd a; chmod a-x . b
82175         Reported by Stavros Passas.
82176
82177 2006-01-25  Jim Meyering  <jim@meyering.net>
82178
82179         * lib/fileblocks.c: Remove more useless parentheses.
82180         * lib/readutmp.h: Likewise.
82181
82182 2006-01-25  Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82185         warnings.
82186         Reported by Paul Eggert.
82187
82188 2006-01-25  Bruno Haible  <bruno@clisp.org>
82189
82190         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82191         rid of a trap command. For Solaris sh.
82192         Reported by Mark D. Baushke <mdb@gnu.org>.
82193
82194 2006-01-24  Simon Josefsson  <jas@extundo.com>
82195
82196         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82197         Bruno.
82198
82199 2006-01-24  Karl Berry  <karl@gnu.org>
82200
82201         * config/srclist.txt (argp-namefrob.h): sync lost.
82202
82203 2006-01-24  Jim Meyering  <jim@meyering.net>
82204
82205         * modules/openat (Files): Add lib/intprops.h.
82206         From Mark D. Baushke.
82207
82208 2006-01-24  Jim Meyering  <jim@meyering.net>
82209
82210         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82211         Reported by Mark D. Baushke.
82212
82213 2006-01-24  Jim Meyering  <jim@meyering.net>
82214
82215         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82216
82217 2006-01-24  Bruno Haible  <bruno@clisp.org>
82218
82219         * modules/strnlen (Maintainer): Change from glibc to all.
82220
82221 2006-01-24  Bruno Haible  <bruno@clisp.org>
82222
82223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82224         Patch by Paul Eggert.
82225
82226 2006-01-24  Bruno Haible  <bruno@clisp.org>
82227
82228         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82229         already has it.
82230         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82231         2005-11-26.
82232
82233         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82234         'signed char' to avoid problems with the built-in _Bool type.
82235         Reported by Paul Eggert on 2005-11-26.
82236
82237 2006-01-24  Bruno Haible  <bruno@clisp.org>
82238
82239         * gnulib-tool (func_import): Avoid constructing complicated sed
82240         expressions inside backquote.
82241         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82242
82243 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82244
82245         These changes imported from libc.
82246         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82247         test and two separate function calls.
82248         * lib/strndup.c (__strndup): Add libc_hidden_def.
82249
82250 2006-01-23  Simon Josefsson  <jas@extundo.com>
82251
82252         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82253         Remove the test_*_SOURCES variable: automake infers it by default.
82254         * modules/tls-tests: Likewise.
82255
82256 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82257
82258         Work around porting bugs reported by Dieter in
82259         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82260         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82261         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82262         Include "getopt.h" first, to check interface.
82263         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82264         !HAVE_DECL_GETENV.
82265         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82266         (__strndup): Revert to K&R-style function dfns, the glibc style.
82267         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82268         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82269         Include strnlen.h first, to get prototype properly.
82270         (strnlen): Renamed from __strnlen.
82271         Remove weak alias.
82272
82273 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82276
82277 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82278
82279         * config/srclist.txt: Adjust to reflect glibc reorganization.
82280         This affects only comments.
82281
82282 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82283
82284          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82285          Reported by Bruce Korb <bkorb@gnu.org>.
82286
82287 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82288
82289         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82290         to pacify gcc -Wswitch-default.
82291
82292 2006-01-22  Bruno Haible  <bruno@clisp.org>
82293
82294         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82295         temporary buffer for sprintf, take into account the precision also
82296         for 'd', 'i', 'u', 'o', 'x', 'X'.
82297
82298 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82299
82300         * modules/argp-tests: New module
82301         * tests/test-argp.c: New file
82302         * tests/test-argp-2.sh: New file
82303
82304 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82305
82306         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82307         (__argp_base_name): Removed
82308         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82309         typo.
82310         (__argp_base_name): Provide macro definition or extern declaration
82311         depending on the configuration
82312
82313 2006-01-20  Simon Josefsson  <jas@extundo.com>
82314
82315         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82316
82317 2006-01-20  Simon Josefsson  <jas@extundo.com>
82318
82319         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82320
82321 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82324         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82325         Suggested by Bruno Haible.
82326
82327 2006-01-20  Karl Berry  <karl@gnu.org>
82328
82329         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82330         until changes propagate, I guess.
82331
82332 2006-01-19  Simon Josefsson  <jas@extundo.com>
82333
82334         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82335
82336 2006-01-19  Simon Josefsson  <jas@extundo.com>
82337
82338         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82339
82340 2006-01-19  Simon Josefsson  <jas@extundo.com>
82341
82342         * gnulib-tool: Set check_PROGRAMS.
82343
82344         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82345         modules/des-tests, modules/gc-arcfour-tests,
82346         modules/gc-arctwo-tests, modules/gc-des-tests,
82347         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82348         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82349         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82350         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82351         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82352         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82353         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82354         test_*_SOURCES.
82355
82356 2006-01-18  Simon Josefsson  <jas@extundo.com>
82357
82358         * modules/socklen (Depends-on): Depend on sys_socket.
82359
82360 2006-01-18  Simon Josefsson  <jas@extundo.com>
82361
82362         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82363         modules/des-tests, modules/gc-arcfour-tests,
82364         modules/gc-arctwo-tests, modules/gc-des-tests,
82365         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82366         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82367         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82368         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82369         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82370         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82371         $(EXEEXT) to automake TESTS variable, for mingw32.
82372
82373 2006-01-17  Simon Josefsson  <jas@extundo.com>
82374
82375         * modules/socklen (Include): Need sys/socket.h.
82376
82377 2006-01-17  Bruno Haible  <bruno@clisp.org>
82378
82379         * modules/ssize_t (Include): Add <sys/types.h>.
82380
82381 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82384         it's not portable and it doesn't work with cross-compiles.
82385         Problem reported by Bruno Haible.  Fix missing-$ typo in
82386         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82387         -zignore from being used with Sun's C compiler.
82388
82389 2006-01-12  Simon Josefsson  <jas@extundo.com>
82390
82391         * lib/base64.c: Fix warning, reported by Bruno Haible
82392         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82393
82394 2006-01-12  Bruno Haible  <bruno@clisp.org>
82395
82396         * modules/ldd: New file.
82397         * build-aux/ldd.sh.in: New file.
82398         * MODULES.html.sh (Support for building libraries and executables): Add
82399         ldd.
82400
82401 2006-01-12  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/ldd.m4: New file.
82404
82405 2006-01-12  Bruno Haible  <bruno@clisp.org>
82406
82407         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82408         endless loop while replacing $auxdir with build-aux.
82409
82410 2006-01-11  Simon Josefsson  <jas@extundo.com>
82411
82412         * lib/stdint_.h (SIZE_MAX): Add missing (.
82413
82414 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         Sync from coreutils.
82417         * lib/md5.c: Fix commentary typos.
82418         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82419         * lib/md5.h (__attribute__): Remove; unused.
82420         * lib/sha1.c: Fix commentary to match md5 better.
82421         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82422         so that we don't need to worry about alignment.  All uses changed.
82423         This merges the 2005-10-28 md5 change into sha1.
82424
82425 2006-01-11  Jim Meyering  <jim@meyering.net>
82426
82427         Sync from coreutils.
82428         * lib/md5.c (OP): Fix spacing.
82429
82430 2006-01-11  Bruno Haible  <bruno@clisp.org>
82431
82432         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82433         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82434         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82435
82436 2006-01-11  Bruno Haible  <bruno@clisp.org>
82437
82438         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82439         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82440         the "early" section as well.
82441
82442 2006-01-11  Bruno Haible  <bruno@clisp.org>
82443
82444         Avoid "ar: no archive members specified" error on MacOS X.
82445         * gnulib-tool (func_modules_add_dummy): New function.
82446         (func_import, func_create_testdir): Invoke it.
82447
82448 2006-01-11  Bruno Haible  <bruno@clisp.org>
82449
82450         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82451         with $auxdir in AC_CONFIG_FILES statements.
82452
82453 2006-01-11  Bruno Haible  <bruno@clisp.org>
82454
82455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82456         Initialize also noinst_HEADERS to empty.
82457
82458 2006-01-11  Bruno Haible  <bruno@clisp.org>
82459
82460         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82461         variables.
82462         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82463         autoreconf.
82464
82465 2006-01-11  Bruno Haible  <bruno@clisp.org>
82466
82467         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82468         overridable by the user.
82469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82470
82471 2006-01-10  Simon Josefsson  <jas@extundo.com>
82472
82473         * modules/sys_socket: New file.
82474
82475 2006-01-10  Simon Josefsson  <jas@extundo.com>
82476
82477         * m4/sys_socket_h.m4: New file.
82478
82479 2006-01-10  Simon Josefsson  <jas@extundo.com>
82480
82481         * lib/socket_.h: New file.
82482
82483 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         * modules/readutmp (Maintainer): Add myself.
82486
82487 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82488
82489         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82490         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82491         People who are still concerned with buggy memcmp implementations
82492         can invoke gl_FUNC_MEMCMP themselves.
82493
82494 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * lib/regex_internal.h (BITSET_WORD_BITS):
82497         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82498         preprocessor mishandles large unsigned values as if they were signed.
82499         Problem reported by Claudio Fontana in
82500         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82501
82502 2006-01-10  Jim Meyering  <jim@meyering.net>
82503
82504         Avoid the double-free (first in fts_read, second in fts_close) that
82505         would occur when an `active' directory is made inaccessible (e.g.,
82506         via chmod a-x) during a traversal.
82507         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82508         before returning.  Reproduce this failure by
82509         mkdir -p a/b; cd a; chmod a-x . b
82510         Reported by Stavros Passas.
82511
82512         Sync from coreutils.
82513         * lib/sha1.c: Tweak grammar in a comment.
82514
82515 2006-01-10  Jim Meyering  <jim@meyering.net>
82516
82517         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82518         Patch by Joerg Sonnenberger.
82519
82520 2006-01-10  Bruno Haible  <bruno@clisp.org>
82521
82522         * modules/readutmp: Depend on module free.
82523         * modules/strtok_r: Depend on module restrict.
82524
82525 2006-01-10  Bruno Haible  <bruno@clisp.org>
82526
82527         * modules/gettext (configure.ac): Add an invocation of
82528         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82529
82530 2006-01-10  Bruno Haible  <bruno@clisp.org>
82531
82532         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82533         Reported by Werner Lemberg <wl@gnu.org>.
82534
82535 2006-01-10  Bruno Haible  <bruno@clisp.org>
82536
82537         * lib/localcharset.c: Update from GNU gettext.
82538
82539 2006-01-10  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/argp.h (__const): Remove macro. Use const instead.
82542         * lib/argp-fmtstream.h (__const): Likewise.
82543         * lib/glob_.h (__const): Remove macro.
82544         * lib/glob-libc.h: Use const instead of __const.
82545
82546 2006-01-10  Bruno Haible  <bruno@clisp.org>
82547
82548         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82549         variable.
82550         Needed to avoid an automake error regarding the 'gettext' module.
82551
82552 2006-01-09  Simon Josefsson  <jas@extundo.com>
82553
82554         * modules/inet_ntop (Depends-on): Add restrict.
82555
82556 2006-01-09  Simon Josefsson  <jas@extundo.com>
82557
82558         * modules/gc-rijndael-tests (License): Put under LGPL.
82559
82560         * modules/gc-des-tests (License): Likewise.
82561
82562         * modules/gc-arcfour-tests (License): Likewise.
82563
82564         * modules/gc-arctwo-tests (License): Likewise.
82565
82566         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82567
82568         * modules/gc-hmac-sha1-tests (Files): Likewise.
82569
82570         * modules/gc-hmac-md5-tests (License): Likewise.
82571
82572         * modules/gc-sha1-tests (License): Likewise.
82573
82574         * modules/gc-md5-tests (License): Likewise.
82575
82576         * modules/gc-md4-tests (License): Likewise.
82577
82578         * modules/gc-md2-tests (License): Likewise.
82579
82580         * modules/gc-tests (License): Likewise.
82581
82582         * modules/des-tests (License): Likewise.
82583
82584         * modules/md4-tests (License): Likewise.
82585
82586         * modules/md2-tests (License): Likewise.
82587
82588 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         Sync from coreutils:
82591
82592         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82593         * modules/lib-ignore: New file.
82594         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82595         chdir-safer.m4, lchmod.m4.
82596         * modules/openat: Add mkdirat.c, openat-priv.h.
82597
82598 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         Sync from coreutils.
82601         * m4/lib-ignore.m4: New file.
82602         * m4/lchmod.m4: New file.
82603
82604 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         Sync from coreutils.
82607         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82608         for write access: POSIX says that must fail.
82609         * lib/fts.c (diropen): Likewise.
82610         * lib/save-cwd.c (save_cwd): Likewise.
82611         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82612         well, for minor improvements on hosts that lack O_DIRECTORY.
82613         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82614         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82615         Fall back on chown if open failed with EACCES.
82616
82617         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82618         Report an error at compile-time if only a 1-second nominal clock
82619         resolution is found.
82620
82621         * lib/lchmod.h: New file.
82622         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82623         (make_dir_parents): Use lchown rather than chown, and
82624         lchmod rather than chmod.
82625
82626         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82627         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82628         "proc" reported by n0dalus.
82629
82630         * lib/mountlist.c: Include <limits.h>.
82631         (dev_from_mount_options)
82632         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82633         New function.  It no longer assumes "dev=" has the System V meaning
82634         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82635         (read_file_system_list)
82636         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82637         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82638         dev= in that case.
82639
82640         * lib/posixtm.h (PDS_PRE_2000): New macro.
82641         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82642         allow_century.  All usages changed.  Reject dates outside the range
82643         1969-1999 if PDS_PRE_2000 is used.
82644
82645 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         Sync from coreutils.
82648         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82649         (Time of day items): Mention the possibility of leap seconds.
82650         Problem reported by Dr. David Alan Gilbert.
82651
82652 2006-01-09  Jim Meyering  <jim@meyering.net>
82653
82654         Sync from coreutils.
82655
82656         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82657
82658         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82659
82660         * lib/modechange.c (mode_compile): Reject an invalid mode string
82661         that starts with an octal digit.  From Andreas Gruenbacher.
82662
82663         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82664         and dup to open_safer and dup_safer, respectively.
82665         (openat_permissive): Fix typo in comment.
82666
82667         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82668         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82669         (_): Remove; no longer needed.
82670         (openat): Renamed from rpl_openat; no need for rpl_openat
82671         since openat.h renames openat for us.
82672         Replace most of the body with a call to openat_permissive,
82673         to avoid duplicate code.
82674         Port to (probably hypothetical) environments were mode_t is
82675         wider than int.
82676         (openat_permissive): Require mode arg, so that we can check
82677         types better.  Put it just after flags.  Change cwd failure
82678         indicator from pointer-to-bool to pointer-to-errno-value.
82679         All callers changed.
82680         Invoke openat_save_fail and/or openat_restore_fail if
82681         cwd_errno is null, so that openat can call us.
82682         (openat_permissive, fdopendir, fstatat, unlinkat):
82683         Simplify errno handling to avoid some duplicate code,
82684         as it's OK to set errno on success.
82685         * lib/openat.h: Revamp code so that function macros depend on
82686         __OPENAT_PREFIX only, not also on AT_FDCWD.
82687         (openat_ro): Remove.  Caller changed to use openat_permissive.
82688         (openat_permissive): Now a macro, if not a function.
82689         (openat_restore_fail, openat_save_fail): Now always functions,
82690         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82691
82692         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82693         and openat.c.
82694         * lib/mkdirat.c: Include openat-priv.h.
82695         Remove definitions of macros defined therein.
82696         * lib/openat.c: Likewise.
82697
82698         * lib/mkdirat.c (mkdirat): New file and function.
82699         * lib/openat.h (mkdirat): Declare.
82700
82701         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82702
82703         * lib/openat.h (openat_permissive): Declare.
82704         (openat_ro): Define.
82705
82706         * lib/openat.c (EXPECTED_ERRNO): New macro.
82707         (openat_permissive): New function -- used in remove.c rewrite.
82708         (all functions): Set errno just before returning, only if there
82709         was an actual failure.
82710         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82711
82712         Emulate openat-family functions using Linux's procfs, if possible.
82713         Idea and some code based on Ulrich Drepper's glibc changes.
82714
82715         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82716         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82717         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82718         before falling back on save_cwd and restore_cwd.
82719         (fdopendir, fstatat, unlinkat): Likewise.
82720
82721         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82722         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82723
82724         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82725         as second argument to va_arg.  Otherwise, some versions of gcc
82726         warn that `if this code is reached, the program will abort'.
82727
82728 2006-01-09  Jim Meyering  <jim@meyering.net>
82729
82730         Sync from coreutils.
82731         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82732         Require openat-priv.h.
82733
82734 2006-01-09  Bruno Haible  <bruno@clisp.org>
82735
82736         * modules/strnlen (Include): Use strnlen.h.
82737
82738 2006-01-09  Bruno Haible  <bruno@clisp.org>
82739
82740         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82741
82742 2006-01-09  Bruno Haible  <bruno@clisp.org>
82743
82744         * lib/sysexit_.h (EX_OK): New macro.
82745         Suggested by Martin Lambers <marlam@marlam.de>.
82746
82747 2006-01-09  Bruno Haible  <bruno@clisp.org>
82748
82749         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82750         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82751
82752 2006-01-09  Bruno Haible  <bruno@clisp.org>
82753
82754         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82755         numbers.
82756
82757 2006-01-09  Bruno Haible  <bruno@clisp.org>
82758
82759         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82760         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82761         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82762         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82763
82764 2006-01-09  Bruno Haible  <bruno@clisp.org>
82765
82766         * build-aux/javacomp.sh.in: New file, moved from lib/.
82767         * modules/javacomp-script (Files): Update.
82768         (configure.ac): Add AC_CONFIG_FILES invocation.
82769         (EXTRA_DIST): Remove variable.
82770
82771         * build-aux/javaexec.sh.in: New file, moved from lib/.
82772         * modules/javaexec (Files): Update.
82773         (configure.ac): Add AC_CONFIG_FILES invocation.
82774         (EXTRA_DIST): Remove javaexec.sh.in.
82775
82776         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82777         * modules/csharpcomp-script (Files): Update.
82778         (configure.ac): Add AC_CONFIG_FILES invocation.
82779         (EXTRA_DIST): Remove variable.
82780
82781         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82782         * modules/csharpexec (Files): Update.
82783         (configure.ac): Add AC_CONFIG_FILES invocation.
82784         (EXTRA_DIST): Remove csharpexec.sh.in.
82785
82786 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82787
82788         Sync from coreutils.
82789
82790         Add POSIX ACL support
82791         * lib/acl.h (copy_acl, set_acl): Add declarations.
82792         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82793         systems other than Linux.
82794         (chmod_or_fchmod): New function: use fchmod when possible,
82795         and chmod otherwise.
82796         (file_has_acl): Add a POSIX ACL implementation, with a
82797         Linux-specific subcase.
82798         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82799         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82800         acls are unsupported.
82801         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82802         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82803         are unsupported.
82804
82805 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82806
82807         Sync from coreutils.
82808         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82809
82810 2006-01-07  Bruno Haible  <bruno@clisp.org>
82811
82812         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82813         gl_EARLY.
82814
82815 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82818         Problem reported for Mingw by Mark Junker.
82819
82820 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         * README: Gnulib normally doesn't generate a tarball.
82823
82824 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82825
82826         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82827         long int, not int, for nanosecond counts, so that people who are
82828         used to POSIX struct timespec won't be surprised.  Reported by Jim
82829         Meyering.
82830
82831 2005-12-28  Bruno Haible  <bruno@clisp.org>
82832
82833         * build-aux/config.rpath: Update from GNU gettext.
82834
82835 2005-12-16  Jim Meyering  <jim@meyering.net>
82836
82837         * modules/fprintftime: New module.
82838         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82839
82840 2005-12-16  Jim Meyering  <jim@meyering.net>
82841
82842         * m4/fprintftime.m4: New file.
82843
82844 2005-12-16  Jim Meyering  <jim@meyering.net>
82845
82846         * lib/fprintftime.c, lib/fprintftime.h: New files.
82847
82848 2005-12-15  Simon Josefsson  <jas@extundo.com>
82849
82850         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82851         new m4/socklen.m4.
82852
82853 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82854
82855         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82856         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82857
82858 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82859
82860         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82861         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82862         struct uparams is valid. Fall back to the default values if it is
82863         not.
82864
82865 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82866
82867         * modules/argp (Files): Add argp-pin.c
82868         (Depends-on): dirname
82869         (lib_SOURCES): Add argp-pin.c
82870
82871 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82872
82873         * m4/argp.m4:  Check if program_invocation_name and
82874         program_invocation_short_name are declared and define appropriate
82875         macros if they are not.
82876
82877 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82878
82879         * lib/argp-help.c (__argp_base_name): New function
82880         (__argp_short_program_name): Rewrite using __argp_base_name
82881         * lib/argp-namefrob.h: Define program_invocation_name and
82882         program_invocation_short_name if requested
82883         (__argp_base_name): Add prototype
82884         * lib/argp-parse.c (argp_def): Use gettext wrappers
82885         (argp_default_parser): Use __argp_base_name
82886         * lib/argp-pin.c: New file. Defines program_invocation_name and
82887         program_invocation_short_name on systems that lack them.
82888
82889 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82892         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82893         porting problem reported by Georg Schwarz in
82894         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82895
82896 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82899         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82900         porting problem reported by Georg Schwarz in
82901         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82902
82903 2005-12-05  Bruno Haible  <bruno@clisp.org>
82904
82905         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82906         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82907         Reported by Mark Junker <mjscod@gmx.de>.
82908
82909 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82910
82911         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82912         Use implementation from Albert Chin, with some
82913         comments/corrections by Stepan Kasal and myself.
82914
82915 2005-12-02  Bruno Haible  <bruno@clisp.org>
82916
82917         * gnulib-tool (func_import): Accept GPLed build tool modules when
82918         --lgpl is given.
82919         * modules/csharpcomp-script: New file.
82920         * modules/csharpcomp: Depend on it.
82921         * modules/javacomp-script: New file.
82922         * modules/javacomp: Depend on it.
82923         Suggested by Simon Josefsson.
82924
82925 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82928         statement, to work around an HP-UX 10.20 compiler bug reported by
82929         Peter O'Gorman.
82930
82931 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82932
82933         * modules/savedir (Depends-on): Add openat.
82934
82935 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82938         (uintmax_t) [defined uintmax_t]: Do not declare.
82939         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82940         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82941         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82942         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82943         sake of portability to weird hosts that C allows (though we don't
82944         know of any practical examples).
82945
82946         * lib/savedir.h (fdsavedir): New decl.
82947         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82948         contains most of the former guts of savedir.
82949         (savedir): Use savedirstream.
82950         Include "openat.h".
82951
82952 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82953
82954         * modules/obstack (Files): Add m4/ulonglong.m4.
82955         Problem reported by Davide Angelocola.
82956
82957 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82958
82959         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82960         coreutils no longer futzes with rounding modes.
82961
82962 2005-11-14  Jim Meyering  <jim@meyering.net>
82963
82964         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82965         replacement of mkstemp.
82966
82967 2005-11-10  Simon Josefsson  <jas@extundo.com>
82968
82969         * lib/readline.c: Remove EOL.
82970
82971 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         * modules/gethrxtime (Depends-on): Add gettime.
82974
82975 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82976
82977         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82978         or gettimeofday; no longer needed.
82979
82980 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82981
82982         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82983         time business.
82984         (gethrxtime) [! (HAVE_NANOUPTIME
82985         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82986         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82987         our own approximation.
82988
82989 2005-11-08  Eric Blake  <ebb9@byu.net>
82990
82991         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82992
82993 2005-11-08  Eric Blake  <ebb9@byu.net>
82994
82995         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82996
82997 2005-11-04  Bruno Haible  <bruno@clisp.org>
82998
82999         * gnulib-tool: Implement --update mode.
83000
83001 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         Fix porting problem reported by Theodoros V. Kalamatianos.
83004         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83005         Don't assume that futimes failing means we must fail.
83006
83007 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83008
83009         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83010         variables to suggest the intended function of the PATH_MAX check.
83011
83012 2005-10-30  Kean Johnston  <jkj@sco.com>
83013
83014         Trivial changes to support SCO systems.
83015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83016         as PATH_MAX.
83017         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83018         where __ptr is null when no I/O is pending.
83019
83020 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83023         leave errno alone.  Problem reported by Dmitry V. Levin.
83024
83025 2005-10-28  Simon Josefsson  <jas@extundo.com>
83026
83027         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83028         Test more.
83029
83030         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83031
83032         * modules/md2, modules/md2-tests: New files.
83033
83034 2005-10-28  Simon Josefsson  <jas@extundo.com>
83035
83036         * m4/inet_ntop.m4: More tests.
83037
83038         * m4/gc-md2.m4, md2.m4: New file.
83039
83040 2005-10-28  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83043         "restrict" keywords, as per POSIX.  Protect the function
83044         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83045         Don't use K&R prototypes.  Check the sprintf return values.
83046         Re-define EAFNOSUPPORT if not present.  Indent.
83047
83048         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83049         suggested by Bruno Haible <bruno@clisp.org>.
83050
83051         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83052
83053         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83054
83055         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83056         libgcrypt).
83057
83058         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83059
83060         * lib/md2.h, lib/md2.c: New files.
83061
83062 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83065         errno alone.  Problem reported by Frederic Jolliton.
83066
83067 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * modules/verify (License): Change from GPL to LGPL.  This is a
83070         tiny module and there are apparently near-equivalents that are
83071         under the BSD license.
83072
83073 2005-10-24  Simon Josefsson  <jas@extundo.com>
83074
83075         * modules/sha1: Relicense to LGPL.
83076
83077 2005-10-24  Simon Josefsson  <jas@extundo.com>
83078
83079         * lib/md4.h: Shrink buffer size, now that we changed the type.
83080
83081 2005-10-23  Simon Josefsson  <jas@extundo.com>
83082
83083         * gnulib-tool (func_import): Fix --tests-base.
83084
83085 2005-10-22  Simon Josefsson  <jas@extundo.com>
83086
83087         * modules/arcfour (Depends-on): Need stdint.
83088
83089 2005-10-22  Simon Josefsson  <jas@extundo.com>
83090
83091         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83092         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83093
83094 2005-10-22  Simon Josefsson  <jas@extundo.com>
83095
83096         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83097         suggested by Bruno Haible <bruno@clisp.org>.
83098
83099 2005-10-22  Simon Josefsson  <jas@extundo.com>
83100
83101         * lib/crc.h: Include stddef.h, for size_t.
83102
83103 2005-10-22  Simon Josefsson  <jas@extundo.com>
83104
83105         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83106         arcfour_context struct (simplify test vector testing in GNU
83107         Shishi).
83108
83109 2005-10-21  Simon Josefsson  <jas@extundo.com>
83110
83111         * modules/des, modules/des-tests: New files.
83112
83113         * modules/gc-des, modules/gc-des-tests: New files.
83114
83115         * tests/test-des.c, tests/test-gc-des.c: New file.
83116
83117 2005-10-21  Simon Josefsson  <jas@extundo.com>
83118
83119         * modules/arctwo, modules/arctwo-tests: New files.
83120
83121         * tests/test-arctwo.c: New file.
83122
83123         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83124
83125         * tests/test-gc-arctwo.c: New file.
83126
83127 2005-10-21  Simon Josefsson  <jas@extundo.com>
83128
83129         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83130         Bruno Haible <bruno@clisp.org>.
83131
83132         * m4/gc-des.m4: New file.
83133
83134 2005-10-21  Simon Josefsson  <jas@extundo.com>
83135
83136         * m4/arctwo.m4: New file.
83137
83138         * m4/gc-arctwo.m4: New file.
83139
83140 2005-10-21  Simon Josefsson  <jas@extundo.com>
83141
83142         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83143         block.
83144
83145 2005-10-21  Simon Josefsson  <jas@extundo.com>
83146
83147         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83148         <bruno@clisp.org>.
83149
83150         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83151
83152         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83153         Bruno Haible <bruno@clisp.org>.
83154
83155         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83156         <bruno@clisp.org>.
83157
83158 2005-10-21  Simon Josefsson  <jas@extundo.com>
83159
83160         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83161
83162 2005-10-21  Simon Josefsson  <jas@extundo.com>
83163
83164         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83165
83166 2005-10-21  Simon Josefsson  <jas@extundo.com>
83167
83168         * lib/des.h, lib/des.c: New files.
83169
83170         * lib/gc-gnulib.c: Support DES.c
83171
83172 2005-10-21  Simon Josefsson  <jas@extundo.com>
83173
83174         * lib/arctwo.h, lib/arctwo.c: New files.
83175
83176         * lib/gc-gnulib.c: Support ARCTWO.
83177
83178 2005-10-21  Simon Josefsson  <jas@extundo.com>
83179
83180         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83181         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83182
83183 2005-10-21  Simon Josefsson  <jas@extundo.com>
83184
83185         * gnulib-tool (func_import, func_create_testdir): Define automake
83186         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83187         Makefile.am snippet),
83188         suggested by Bruno Haible <bruno@clisp.org>.
83189
83190         * modules/gc (Makefile.am): Use it.
83191
83192 2005-10-21  Bruno Haible  <bruno@clisp.org>
83193
83194         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83195         patch.
83196
83197 2005-10-19  Simon Josefsson  <jas@extundo.com>
83198
83199         * tests/test-gc-rijndael.c: New file.
83200
83201         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83202
83203 2005-10-19  Simon Josefsson  <jas@extundo.com>
83204
83205         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83206         interface too.
83207
83208 2005-10-19  Simon Josefsson  <jas@extundo.com>
83209
83210         * tests/test-gc-arcfour.c: New file.
83211
83212         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83213
83214 2005-10-19  Simon Josefsson  <jas@extundo.com>
83215
83216         * modules/gc-md4, modules/gc-md4-tests: New file.
83217
83218         * tests/test-gc-md4.c: New file.
83219
83220 2005-10-19  Simon Josefsson  <jas@extundo.com>
83221
83222         * m4/gc-md4.m4: New file.
83223
83224 2005-10-19  Simon Josefsson  <jas@extundo.com>
83225
83226         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83227         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83228         <kasal@ucw.cz>.
83229
83230 2005-10-19  Simon Josefsson  <jas@extundo.com>
83231
83232         * m4/gc-arcfour.m4: New file.
83233
83234         * m4/gc-rijndael.m4: New file.
83235
83236 2005-10-19  Simon Josefsson  <jas@extundo.com>
83237
83238         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83239
83240 2005-10-19  Simon Josefsson  <jas@extundo.com>
83241
83242         * lib/gc-gnulib.c: Support ARCFOUR.
83243
83244 2005-10-19  Simon Josefsson  <jas@extundo.com>
83245
83246         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83247         support.
83248
83249         * lib/gc.h: Add ECB enum type.
83250
83251         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83252
83253 2005-10-18  Simon Josefsson  <jas@extundo.com>
83254
83255         * tests/test-md5.c: New file.
83256
83257         * modules/md5-tests: New file.
83258
83259 2005-10-18  Simon Josefsson  <jas@extundo.com>
83260
83261         * tests/test-md4.c: New file.
83262
83263         * modules/md4, modules/md4-tests: New files.
83264
83265 2005-10-18  Simon Josefsson  <jas@extundo.com>
83266
83267         * m4/md4.m4: New file.
83268
83269 2005-10-18  Simon Josefsson  <jas@extundo.com>
83270
83271         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83272
83273 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83274
83275         * gnulib-tool (func_create_testdir): Omit the second check whether
83276         BUILT_SOURCES in nonempty.
83277
83278 2005-10-17  Simon Josefsson  <jas@extundo.com>
83279
83280         * tests/test-rijndael.c: New file.
83281
83282 2005-10-17  Simon Josefsson  <jas@extundo.com>
83283
83284         * modules/sha1: Depend on stdint instead of md5.
83285
83286         * modules/md5: Depend on stdint, remove uint32_t.
83287
83288 2005-10-17  Simon Josefsson  <jas@extundo.com>
83289
83290         * modules/gc-sha1-tests: New file.
83291
83292         * tests/test-gc-sha1.c: New file.
83293
83294 2005-10-17  Simon Josefsson  <jas@extundo.com>
83295
83296         * m4/md5.m4: Remove call to uint32_t.m4.
83297
83298 2005-10-17  Simon Josefsson  <jas@extundo.com>
83299
83300         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83301
83302         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83303         md5.h.
83304
83305         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83306
83307         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83308
83309 2005-10-17  Simon Josefsson  <jas@extundo.com>
83310
83311         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83312
83313 2005-10-17  Simon Josefsson  <jas@extundo.com>
83314
83315         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83316
83317 2005-10-17  Simon Josefsson  <jas@extundo.com>
83318
83319         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83320
83321         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83322
83323 2005-10-17  Bruno Haible  <bruno@clisp.org>
83324
83325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83326         that it can also be used in a test.
83327
83328 2005-10-16  Bruno Haible  <bruno@clisp.org>
83329
83330         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83331         TESTS_ENVIRONMENT, so that individual tests can augment it.
83332
83333         * gnulib-tool (func_create_testdir): Use an intermediate target for
83334         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83335         macros, like $(ALLOCA_H), which cannot be passed through the command
83336         line.
83337
83338 2005-10-15  Simon Josefsson  <jas@extundo.com>
83339
83340         * modules/rijndael-tests: New file.
83341
83342         * modules/rijndael: New file.
83343
83344 2005-10-15  Simon Josefsson  <jas@extundo.com>
83345
83346         * m4/rijndael.m4: New file.
83347
83348 2005-10-15  Simon Josefsson  <jas@extundo.com>
83349
83350         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83351
83352         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83353
83354 2005-10-14  Simon Josefsson  <jas@extundo.com>
83355
83356         * tests/test-arcfour.c: New file.
83357
83358         * modules/arcfour, modules/arcfour-tests: New files.
83359
83360 2005-10-14  Simon Josefsson  <jas@extundo.com>
83361
83362         * m4/arcfour.m4: New file.
83363
83364 2005-10-14  Simon Josefsson  <jas@extundo.com>
83365
83366         * lib/arcfour.h, lib/arcfour.c: New files.
83367
83368 2005-10-14  Roland McGrath  <roland@redhat.com>
83369
83370         Import from libc.  [BZ #1331]
83371         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83372         macro argument.
83373         Reported by Matej Vela <vela@debian.org>.
83374
83375 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83378         include <wchar.h>; no longer needed.
83379
83380 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83383
83384 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83385         and  Ulrich Drepper  <drepper@redhat.com>
83386
83387         Import from libc.
83388         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83389         instead of inline stream orientation test and two separate
83390         function calls.  Pay no attention to USE_IN_LIBIO.
83391
83392 2005-10-13  Simon Josefsson  <jas@extundo.com>
83393
83394         * modules/gc-hmac-md5-tests: New file.
83395
83396         * tests/test-gc-hmac-sha1.c: New file.
83397
83398         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83399
83400         * modules/gc-hmac-md5-tests: New file.
83401
83402         * tests/test-gc-md5.c: New file.
83403
83404         * modules/gc-md5-tests: New file.
83405
83406 2005-10-13  Simon Josefsson  <jas@extundo.com>
83407
83408         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83409         Move memory allocation outside of loop.
83410
83411 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83414         intermediate directory is in a read-only file system.  Problem
83415         reported by Eric Blake.
83416
83417 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83418
83419         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83420
83421 2005-10-12  Simon Josefsson  <jas@extundo.com>
83422
83423         * tests/test-hmac-sha1.c: New file.
83424
83425         * modules/hmac-sha1-tests: New file.
83426
83427         * modules/hmac-sha1: New file.
83428
83429 2005-10-12  Simon Josefsson  <jas@extundo.com>
83430
83431         * modules/gc-sha1: New file.
83432
83433 2005-10-12  Simon Josefsson  <jas@extundo.com>
83434
83435         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83436
83437         * tests/test-gc-pbkdf2-sha1.c: New file.
83438
83439 2005-10-12  Simon Josefsson  <jas@extundo.com>
83440
83441         * modules/gc-md5, modules/gc-hmac-md5: New files.
83442
83443         * modules/gc (Files): Remove md5, memxor and hmac files.
83444
83445 2005-10-12  Simon Josefsson  <jas@extundo.com>
83446
83447         * m4/gc-pbkdf2-sha1.m4: New file.
83448
83449         * m4/gc-hmac-sha1.m4: New file.
83450
83451         * m4/gc-sha1: New file.
83452
83453         * m4/hmac-sha1.m4: New file.
83454
83455 2005-10-12  Simon Josefsson  <jas@extundo.com>
83456
83457         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83458
83459         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83460
83461 2005-10-12  Simon Josefsson  <jas@extundo.com>
83462
83463         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83464         suggested by Bruno Haible <bruno@clisp.org>.
83465
83466 2005-10-12  Simon Josefsson  <jas@extundo.com>
83467
83468         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83469
83470 2005-10-12  Simon Josefsson  <jas@extundo.com>
83471
83472         * lib/gc-pbkdf2-sha1.c: New file.
83473
83474         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83475
83476 2005-10-12  Simon Josefsson  <jas@extundo.com>
83477
83478         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83479
83480         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83481
83482 2005-10-12  Simon Josefsson  <jas@extundo.com>
83483
83484         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83485         GC_USE_HMAC_MD5, respectively.
83486
83487         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83488         (gc_md5): Fix typo.
83489
83490         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83491
83492         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83493
83494         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83495
83496 2005-10-12  Bruno Haible  <bruno@clisp.org>
83497
83498         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83499         Reported by Stepan Kasal <kasal@ucw.cz>.
83500
83501 2005-10-11  Simon Josefsson  <jas@extundo.com>
83502
83503         * tests/test-crc.c: New file.
83504
83505         * modules/crc, modules/crc-tests: New files.
83506
83507 2005-10-11  Simon Josefsson  <jas@extundo.com>
83508
83509         * m4/crc.m4: New file.
83510
83511 2005-10-11  Simon Josefsson  <jas@extundo.com>
83512
83513         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83514
83515         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83516
83517         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83518
83519 2005-10-11  Simon Josefsson  <jas@extundo.com>
83520
83521         * lib/crc.h, lib/crc.c: New files.
83522
83523         * lib/gc.h (gc_hash_buffer): Add doc.
83524
83525 2005-10-11  Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/c-strcasestr: New file.
83528         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83529
83530 2005-10-11  Bruno Haible  <bruno@clisp.org>
83531
83532         * modules/c-strcase: New file.
83533         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83534
83535 2005-10-11  Bruno Haible  <bruno@clisp.org>
83536
83537         * lib/strcasecmp.c: Include limits.h.
83538         (strcasecmp): Avoid integer overflow on exotic platforms.
83539         * lib/strncasecmp.c: Include limits.h.
83540         (strncasecmp): Avoid integer overflow on exotic platforms.
83541         Reported by Paul Eggert.
83542
83543 2005-10-11  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/c-strcasestr.h: New file, from GNU gettext.
83546         * lib/c-strcasestr.c: New file, from GNU gettext.
83547
83548 2005-10-11  Bruno Haible  <bruno@clisp.org>
83549
83550         * lib/c-strcase.h: New file, from GNU gettext.
83551         * lib/c-strcasecmp.c: New file, from GNU gettext.
83552         * lib/c-strncasecmp.c: New file, from GNU gettext.
83553
83554 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * modules/mempcpy (License): GPL -> LGPL.
83557         * modules/strchrnul (License): Likewise.
83558         * modules/sysexits (License): Likewise.
83559
83560 2005-10-08  Simon Josefsson  <jas@extundo.com>
83561
83562         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83563
83564 2005-10-07  Simon Josefsson  <jas@extundo.com>
83565
83566         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83567
83568 2005-10-06  Simon Josefsson  <jas@extundo.com>
83569
83570         * tests/test-hmac-md5.c: New file.
83571
83572         * modules/hmac-md5-tests: New file.
83573
83574         * modules/hmac-md5: New file.
83575
83576 2005-10-06  Simon Josefsson  <jas@extundo.com>
83577
83578         * m4/hmac-md5.m4: New file.
83579
83580         * m4/memxor.m4: Require gl_C_RESTRICT.
83581
83582 2005-10-06  Simon Josefsson  <jas@extundo.com>
83583
83584         * lib/memxor.c (memxor): Avoid casts and warnings.
83585
83586 2005-10-06  Simon Josefsson  <jas@extundo.com>
83587
83588         * lib/hmac-md5.c: New file.
83589
83590         * lib/hmac.h: New file.
83591
83592 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83593
83594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83595         promotes to int, not unsigned int, to catch the AIX 5.3
83596         compiler bug.
83597
83598 2005-10-05  Simon Josefsson  <jas@extundo.com>
83599
83600         * modules/memxor: New file.
83601
83602         * modules/iconv (Files): Move config.rpath to havelib, it is used
83603         there.
83604
83605         * modules/havelib (Files): Add config.rpath.
83606
83607 2005-10-05  Simon Josefsson  <jas@extundo.com>
83608
83609         * m4/memxor.m4: New file.
83610
83611 2005-10-05  Simon Josefsson  <jas@extundo.com>
83612
83613         * lib/memxor.c (memxor): Fix compiler error.
83614
83615         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83616         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83617
83618         * lib/memxor.h, lib/memxor.c: New files.
83619
83620         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83621         we assume all systems have it, suggested by Jim Meyering
83622         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83623         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83624         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83625         same reasons.
83626
83627 2005-10-05  Simon Josefsson  <jas@extundo.com>
83628
83629         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83630
83631 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83634         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83635         needed, since the source code now assumes these .h files.
83636
83637 2005-10-05  Derek Price  <derek@ximbiot.com>
83638
83639         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83640
83641 2005-10-05  Bruno Haible  <bruno@clisp.org>
83642
83643         * modules/stdint (License): Change to LGPL.
83644
83645 2005-10-04  Simon Josefsson  <jas@extundo.com>
83646
83647         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83648         D. Baushke" <mdb@gnu.org>.
83649
83650 2005-10-04  Bruno Haible  <bruno@clisp.org>
83651
83652         * lib/verify.h (verify_true): Provide alternative definition for C++.
83653
83654 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83657         (SSIZE_MAX): New macro, if not already defined.
83658         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83659         than 2 GiB.
83660
83661 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         Sync from coreutils.
83664         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83665         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83666         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83667         ULLONG_MAX doesn't work with 2.7.2.1.
83668
83669 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83670
83671         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83672         From Ben Pfaff.
83673
83674         * modules/exclude (Depends-on): Depend on verify.
83675         * modules/strtoimax (Depends-on): Likewise.
83676         * modules/utimecmp (Depends-on): Likewise.
83677
83678 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         * lib/exclude.c: Include verify.h.
83681         (verify): Remove.  All callers changed to use verify.h's version.
83682         * lib/strtoimax.c: Likewise.
83683         * lib/utimecmp.c: Likewis.e
83684
83685         Sync from coreutils.
83686         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83687         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83688         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83689         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83690         bother returning ENOSYS if settimeofday or stime fails; just let
83691         them return whatever errno they want to return.
83692         * lib/utimens.c: Include unistd.h, for dup2.
83693         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83694         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83695
83696 2005-10-02  Jim Meyering  <jim@meyering.net>
83697
83698         Sync from coreutils.
83699         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83700         from glibc-2.2.5 that fails for read-only files.
83701
83702 2005-10-02  Jim Meyering  <jim@meyering.net>
83703
83704         Sync from coreutils.
83705         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83706         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83707         `#if HAVE_CONFIG_H'.
83708         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83709         Remove AT_FDCWD test.
83710         Do not consume the fd unless successful.
83711         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83712         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83713         block, so that we don't even try to compile it if settimeofday is
83714         available.  This works around a compilation failure on OSF1 V5.1,
83715         due to stime requiring a `long int*' while tv_sec is `int'.
83716
83717 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83718
83719         Sync from coreutils.
83720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83721         against `yes', rather than just testing for nonempty.
83722
83723 2005-10-01  Simon Josefsson  <jas@extundo.com>
83724
83725         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83726         and Darwin.
83727
83728         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83729         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83730         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83731         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83732         Check if struct addrinfo is declared.
83733
83734 2005-10-01  Simon Josefsson  <jas@extundo.com>
83735
83736         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83737         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83738         AI_* and EAI_* definitions.  Protect function declarations.
83739
83740 2005-10-01  Jim Meyering  <jim@meyering.net>
83741
83742         Sync from coreutils.
83743
83744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83745         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83746         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83748         in the inet and nsl libraries.  Required on Solaris 5.7.
83749
83750 2005-10-01  Jim Meyering  <jim@meyering.net>
83751
83752         Sync from coreutils.
83753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83754         in the inet and nsl libraries.  Required on Solaris 5.7.
83755
83756 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83757
83758         * lib/getdelim.c (getdelim): Remove unused variables.
83759
83760 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83763         so that the code works even with ancient cpp.  Portability problem
83764         with GCC 2.7.2.1 reported by Thomas M.Ott.
83765
83766 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * modules/regex (Depends-on): Add strcase.
83769
83770         * modules/gethostname (Licence): Change from GPL to LGPL, since
83771         gethostname.c is a trivial implementation of a standard library
83772         function.
83773         * modules/poll (License): Change from GPL to LGPL, since it's
83774         derived from LGPL code.
83775
83776 2005-09-27  Jim Meyering  <jim@meyering.net>
83777
83778         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83779         HAVE_CONFIG_H.
83780
83781         * lib/intprops.h (signed_type_or_expr__): Define.
83782         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83783         for unsigned types.
83784
83785 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * lib/verify.h (verify_expr): Remove, replacing with:
83788         (verify_true): New macro that returns true instead of void.
83789         (verify_type__): Remove.
83790         (verify): Use verify_true rather than verify_type__.
83791
83792 2005-09-26  Bruno Haible  <bruno@clisp.org>
83793
83794         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83795         is necessary.
83796         (lib_SOURCES): Remove mbchar.c.
83797         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83798         (Files): Add m4/mbrtowc.m4.
83799         * modules/mbiter: Likewise.
83800         * modules/mbuiter: Likewise.
83801
83802 2005-09-26  Bruno Haible  <bruno@clisp.org>
83803
83804         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83805         compile mbchar.c if they are not both present.
83806         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83807         * m4/mbiter.m4 (gl_MBITER): Likewise.
83808         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83809         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83810         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83811
83812 2005-09-25  Jim Meyering  <jim@meyering.net>
83813
83814         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83815         also uses socklen_t.
83816
83817 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * lib/utimens.c (ENOSYS): Define if not already defined.
83820         (futimens): Support having a null PATH if the file descriptor
83821         is nonnegative.
83822
83823         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83824         Remove.
83825         (__attribute): Define to empty unless GCC 3.1 or later.
83826         This works around a core dump on OpenBSD 3.4, which has GCC
83827         2.95.3, which dumps core when given __attribute__(()).  It also
83828         simplifies other tests, since we really don't want to bother with
83829         worrying about which ancient version of GCC supported what.
83830         Original problem reported by Yoann Vandoorselaere, with part of
83831         the fix suggested by Derek Price.
83832
83833 2005-09-24  Jim Meyering  <jim@meyering.net>
83834
83835         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83836         so we can once again use a positive bitfield width of 1 -- now we
83837         don't have to explain why we were using a bitfield width of 2.
83838
83839 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83842         and similarly for the other external symbols.  Problem reported
83843         by James Gallager.
83844
83845         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83846         bug reported by Jim Meyering.
83847
83848         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83850         not needed, since socklen is a prerequisite module.
83851
83852 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83853
83854         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83855         Problem reported by Eric Blake.
83856         (getaddrinfo): Initialize se so that it's not garbage.
83857         Redo internal storage allocation so that it doesn't make unportable
83858         assumptions about alignment.
83859         Fix a memory leak.
83860
83861         * lib/utimens.c (futimens): Use futimesat if available.
83862         Prefer it to futimes since it doesn't have the futimes bug.
83863
83864         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83865         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83866         Instead, declare a function that returns a pointer to an array,
83867         and use verify_type__ to declare the size of the array.
83868         Problem and germ of a solution reported by Bruno Haible.
83869         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83870         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83871
83872 2005-09-23  Jim Meyering  <jim@meyering.net>
83873
83874         Sync from coreutils.
83875         Correct build failure (socklen_t not defined) on at least
83876         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83878
83879 2005-09-23  Jim Meyering  <jim@meyering.net>
83880
83881         * modules/getaddrinfo (Depends-on): Add socklen.
83882
83883 2005-09-23  Bruno Haible  <bruno@clisp.org>
83884
83885         * tests/test-verify.c: New file.
83886
83887 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         Sync from coreutils.
83890
83891         * modules/argmatch (Depends-on): Add verify.
83892         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83893         unistd-safer.
83894         * modules/save-cwd (Depends-on): Likewise.
83895
83896         * modules/openat (Files): Add lib/openat-die.c.
83897         (Depends-on): Remove error, exitfail.
83898         Add dirname.
83899
83900         * modules/verify: New file.
83901         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83902         with "verify" module.
83903
83904 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83905
83906         Sync from coreutils.
83907
83908         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83909         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83910         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83911         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83912         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83913         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83914         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83915         Don't bother checking for string.h, stdlib.h, unistd.h.
83916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83917         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83918         module's job.
83919         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83920         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83921
83922         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83923         (gl_GETDATE): Use it.
83924
83925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83926
83927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         Sync from coreutils.
83930
83931         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83932         stat-time.h.
83933         * lib/argmatch.h: Include verify.h
83934         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83935         (ARGMATCH_ASSERT): Remove; unused.
83936         * lib/canonicalize.c: Assume STDC_HEADERS.
83937         * lib/exclude.c: Include "strcase.h".
83938         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83939         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83940         and stdio-safer.h.
83941         (getusershell): Call fopen, not fopen_safer.
83942         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83943         Do not include unistd-safer.h.
83944         (save_cwd): Don't call fd_safer; no longer needed
83945         now that we include fcntl--.h.
83946
83947         * lib/getdate.y (relative_time): New type.
83948         (RELATIVE_TIME_0): New constant.
83949         (parser_control): Use relative_time instead of doing it ourselves.
83950         (%union): Add new relative_time rel member.
83951         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83952         Now typeless.
83953         (relunit, relunit_snumber): Now of type rel.
83954         (zone, rel, relunit, get_date): Adjust to above changes.
83955
83956         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83957         Do not include unistd-safer.h.
83958         (getloadavg): Don't call fd_safer; no longer needed
83959         now that we include fcntl--.h.
83960
83961         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83962         (make_dir_parents): Treat ENOSYS like EEXIST.
83963
83964         Improve quality of diagnostics on restore_cwd failure.
83965         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83966         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83967         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83968         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83969         each time through the loop.  Do not diagnose restore_cwd failure;
83970         that is the caller's job (and perhaps the caller does not care).
83971
83972         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83973         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83974         If the file already exists but is not a directory, don't bother
83975         to try to make its parents.
83976         Close potential file descriptor leak if we can't chdir("/") (!).
83977         Don't always return true if chdir($PWD) fails; return true only
83978         if the requested action was done successfully (except for the
83979         chdir($PWD)).
83980         Don't log final directory unless we actually made it.
83981         Refactor to avoid duplicate code to fix up permissions.
83982         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83983
83984         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83985         to make it a bit faster and (I hope) clearer.
83986         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83987         Fix bug in formats like %2N.
83988
83989         * lib/verify.h: New file.
83990
83991 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         Sync from coreutils.
83994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83995
83996 2005-09-22  Jim Meyering  <jim@meyering.net>
83997
83998         Sync from coreutils.
83999
84000         * m4/lstat.m4 (gl_FUNC_LSTAT):
84001         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84002         Remove obsolete comment.
84003         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84004         * m4/xstrtod.m4: Likewise.
84005
84006         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84007
84008 2005-09-22  Jim Meyering  <jim@meyering.net>
84009
84010         Sync from coreutils.
84011
84012         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84013
84014         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84015         the .tm_year member, since otherwise gcc-4.0 would now warn about
84016         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84017
84018         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84019         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84020
84021         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84022         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84023         when run in a time zone for which daylight savings time is in effect
84024         for the starting date.
84025
84026         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84027         stop us from restricting permissions of just-created absolute-named
84028         directories.
84029         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84030         to restore initial working directory.
84031         * lib/mkdir-p.c (make_dir_parents): New parameter:
84032         different_working_dir, to tell caller if/when we change the working
84033         directory and are unable to return to the initial one.
84034         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84035         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84036         `return false'.  This fixes a bug introduced on 2004-07-30.
84037
84038         * lib/openat.c (fdopendir): Be sure to close the supplied
84039         file descriptor before returning.  This makes our replacement
84040         implementation a little closer to Solaris's, where fdopendir
84041         ties the file descriptor to the returned DIR* pointer.
84042         * lib/openat.c (unlinkat): New function.
84043         * lib/openat.h (unlinkat): Add prototype.
84044         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84045         (openat_restore_fail): Rename from openat_restore_die.
84046         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84047
84048         Provide an alternative to exiting immediately upon save_cwd or
84049         restore_cwd failure.  Now, an application can arrange e.g.,
84050         to perform a longjump in that case.
84051         * lib/openat.c: Include dirname.h.
84052         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84053         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84054         and openat_restore_die rather than calling error directly.
84055         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84056
84057         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84058         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84059         define.
84060
84061         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84062         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84063                             int utc, int nanoseconds);
84064         Background:
84065         date should not have to allocate a megabyte of virtual memory to
84066         handle a format argument like +%1048575T.  When implemented with
84067         strftime, it must allocate such a buffer, use strftime to fill it
84068         in, print it, then free it.
84069         With fprintftime, it simply prints everything and exits.
84070         With no need for memory allocation, that's one fewer way to fail.
84071         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84072         optional field width, not before, so we accept %9:z, not %:9z.
84073         (my_strftime): Be sure to use L_('x') for literals.
84074
84075         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84076         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84077         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84078         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84079         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84080         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84081         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84082         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84083         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84084         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84085         * lib/xgethostname.c, lib/xreadlink.c:
84086         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84087
84088         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84089         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84090         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84091         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84092         and don't include <sys/file.h>).
84093
84094 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84095
84096         Sync from coreutils.
84097
84098         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84099         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84100         [!LDAV_DONE]: Avoid unused variable warning.
84101
84102 2005-09-21  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/unicodeio.h (unicode_to_mb): New declaration.
84105
84106 2005-09-20  Derek Price  <derek@ximbiot.com>
84107
84108         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84109         getaddrinfo.h.
84110
84111 2005-09-20  Bruno Haible  <bruno@clisp.org>
84112
84113         * gnulib-tool: Remove trailing slashes from the values specified for
84114         --source-base, --m4-base, --tests-base, --aux-dir.
84115         Suggested by Simon Josefsson <jas@extundo.com>.
84116
84117 2005-09-20  Bruno Haible  <bruno@clisp.org>
84118
84119         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84120         func_modules_to_filelist, func_import, func_create_testdir): Make all
84121         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84122         change when gnulib-tool is invoked in a different locale.
84123
84124 2005-09-19  Simon Josefsson  <jas@extundo.com>
84125
84126         * m4/socklen.m4: Fix typo.
84127
84128 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84129
84130         Use a consistent style for including <config.h>.
84131         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84132         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84133         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84134         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84135         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84136         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84137         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84138         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84139         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84140         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84141         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84142         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84143         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84144         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84145         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84146         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84147         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84148         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84149         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84150         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84151         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84152         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84153         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84154         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84155         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84156         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84157         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84158         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84159         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84160         lib/xstrtoumax.c, lib/yesno.c:
84161         Standardize inclusion of config.h.
84162         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84163         lib/inttostr.h:  Removed inclusion of config.h from header files.
84164         * lib/inttostr.c:  Adjusted in-tree users.
84165         * lib/timespec.h: Remove superfluous warning to include config.h.
84166         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84167         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84168         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84169         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84170         config.h with HAVE_CONFIG_H.
84171
84172 2005-09-19  Jim Meyering  <jim@meyering.net>
84173
84174         * modules/pathmax (License): Change to LGPL.
84175
84176 2005-09-19  Derek Price  <derek@ximbiot.com>
84177
84178         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84179
84180 2005-09-19  Bruno Haible  <bruno@clisp.org>
84181
84182         * gnulib-tool (import): Provide default for --tests-base.
84183
84184 2005-09-19  Bruno Haible  <bruno@clisp.org>
84185
84186         * doc/quote.texi: New file, extracted from gnulib.texi.
84187         * doc/ctime.texi: New file, extracted from gnulib.texi.
84188         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84189         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84190         * doc/gnulib.texi: Include them.
84191
84192 2005-09-18  Bruno Haible  <bruno@clisp.org>
84193
84194         Portability fix.
84195         * gnulib-tool (func_readlink): New function.
84196         (func_ln_if_changed): Use it.
84197
84198 2005-09-18  Bruno Haible  <bruno@clisp.org>
84199
84200         * gnulib-tool: Support --with-tests also with --import.
84201         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84202         (func_import): Use variables $testsbase and $inctests. Emit a
84203         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84204         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84205         SUBDIRS += $testsdir.
84206         (func_create_testdir): Update.
84207
84208 2005-09-18  Bruno Haible  <bruno@clisp.org>
84209
84210         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84211         instead of $dry_run.
84212         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84213         (func_ln_if_changed): Don't handle dry-run here.
84214         (func_import): In dry-run mode, detect more precisely which actions
84215         would be performed, and don't use "...ing" verbs.
84216
84217 2005-09-18  Bruno Haible  <bruno@clisp.org>
84218
84219         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84220         (func_import): Use join on two temporary files instead of three nested
84221         loops, in order to determine which files are new or old.
84222
84223 2005-09-18  Bruno Haible  <bruno@clisp.org>
84224
84225         * gnulib-tool (func_import): Comment out code that spits out the
84226         new files with --dry-run.
84227
84228 2005-09-18  Bruno Haible  <bruno@clisp.org>
84229
84230         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84231
84232 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84233
84234         * lib/stat-time.h: New file.
84235         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84236         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84237         in a different way.
84238         (timespec_cmp): New function.
84239         * lib/utimecmp.c: Include stat-time.h.
84240         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84241         members exist, not on the obsolescent ST_MTIM_NSEC.
84242         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84243
84244 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84247
84248 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84249
84250         * MODULES.html.sh (File system functions): Add stat-time.
84251         * modules/stat-time: New file.
84252         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84253         is now done in a different way, by the stat-time module.
84254         * modules/utimecmp (Depends-on): Add stat-time.
84255
84256 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * m4/st_mtim.m4: Remove.  Superseded by...
84259         * m4/stat-time.m4: New file.
84260         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84261         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84262
84263 2005-09-15  Derek Price  <derek@ximbiot.com>
84264
84265         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84266
84267 2005-09-15  Derek Price  <derek@ximbiot.com>
84268
84269         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84270         * lib/regex_internal.c: Ditto, using this...
84271         (__GNUC_PREREQ): ...new macro.
84272         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84273         using...
84274         (__GNUC_PREREQ): ...this new macro.
84275
84276         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84277
84278 2005-09-15  Derek Price  <derek@ximbiot.com>
84279             Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84282         changes, consolidating in...
84283         * lib/regex_internal.h: ...this file.
84284
84285 2005-09-13  Jim Meyering  <jim@meyering.net>
84286
84287         * lib/canon-host.c: Filter through gnu indent and reword comments
84288         slightly.
84289         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84290
84291 2005-09-13  Derek Price  <derek@ximbiot.com>
84292
84293         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84294         failure.
84295         Reported by Jim Meyering  <jim@meyering.net>.
84296
84297 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84298
84299         * lib/base64.c: Typo.
84300         (base64_encode): Put b64str in initialized data section.
84301
84302 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         Merge glibc and coreutils changes into gnulib, plus a few
84305         extra fixes.
84306         * lib/md5.c: Use #error rather than a string.
84307         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84308         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84309         (__attribute__): Define to empty for non recent-GCC.
84310         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84311         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84312         Renamed from their non-__ counterparts, with new macros replacing
84313         them if not _LIBC.  Add __THROW attribute.
84314         (rol): Remove.
84315         (struct md5_ctx): Align buffer if using GCC.
84316         * lib/sha1.h (struct sha1_ctx): Likewise.
84317         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84318         The old name was backwards.
84319         (NOTSWAP): Remove; not used.
84320         (rol): New macro, moved here from md5.h.
84321         (sha1_process_block): Remove a FIXME that doesn't make sense.
84322
84323 2005-09-12  Derek Price  <derek@ximbiot.com>
84324
84325         Return usable errors from canon-host.
84326         * lib/canon-host.h: New file.
84327         * lib/canon-host.c (canon_host): Wrap...
84328         (canon_host_r): ...this new function, which now relies exclusively on
84329         getaddrinfo.
84330         (ch_strerror): New function.
84331         (last_cherror): New global.
84332         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84333         interface.
84334         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84335         void *.
84336         (freeaddrinfo): Free ai->ai_canonname when set.
84337
84338 2005-09-12  Derek Price  <derek@ximbiot.com>
84339
84340         Make canon-host require getaddrinfo.
84341         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84342         AC_LIBSOURCE canon-host.h.  Call...
84343         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84344         gl_GETADDRINFO.
84345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84346
84347 2005-09-12  Derek Price  <derek@ximbiot.com>
84348
84349         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84350         LGPL.
84351         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84352
84353 2005-09-12  Derek Price  <derek@ximbiot.com>
84354
84355         * lib/gai_strerror.c: Include config.h when available.  Include
84356         getaddrinfo.h before other headers to test interface.
84357         Reported by Larry Jones <lawrence.jones@ugs.com>.
84358
84359 2005-09-12  Derek Price  <derek@ximbiot.com>
84360             Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         * modules/glob (Files): Add glob-libc.h.
84363
84364 2005-09-12  Derek Price  <derek@ximbiot.com>
84365             Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84368         glob_.h, glob-libc.h.
84369         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84370
84371 2005-09-12  Derek Price  <derek@ximbiot.com>
84372             Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84375         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84376         protecting things that should be done only in gnulib contexts.
84377         * lib/glob_.h: New file, containing only the glob things needed for
84378         gnulib.
84379         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84380         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84381         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84382         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84383         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84384         and to respect the namespace rules better.
84385
84386 2005-09-08  Simon Josefsson  <jas@extundo.com>
84387
84388         * modules/socklen: New file.
84389
84390 2005-09-08  Simon Josefsson  <jas@extundo.com>
84391
84392         * m4/socklen.m4: New file.
84393
84394 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * modules/utimens (Files): Add m4/utimbuf.m4, since
84397         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84398         Reported by Sergey Poznyakoff.
84399
84400 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84403         definitions, since that's the preferred style in glibc.
84404         Fix a minor spacing issue, and update copyright notice to match
84405         glibc's.
84406
84407 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84410
84411 2005-09-06  Simon Josefsson  <jas@extundo.com>
84412
84413         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84414         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84415
84416 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84419         warning.
84420
84421 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * config/srclist.txt: Add glibc bug 1302.
84424
84425 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         Change bitset word type from unsigned int to unsigned long int,
84428         as this has better performance on typical 64-bit hosts.
84429         Port bitset code to hosts with unusual word sizes.
84430         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84431         (build_collating_symbol):
84432         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84433         argument is a bitset.  This is merely a style issue, but it makes
84434         it clearer that an entire array is expected.
84435         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84436         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84437         Port to the case where bitset_word is not the same as unsigned int.
84438         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84439         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84440         Likewise.
84441         * lib/regexec.c (check_dst_limits_calc_pos_1,
84442         check_subexp_matching_top):
84443         (build_trtable, group_nodes_into_DFAstates):
84444         Likewise.
84445         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84446         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84447         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84448         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84449         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84450         * lib/regcomp.c (optimize_subexps, lower_subexp):
84451         Work even if bitset_word has holes in its bitwise representation.
84452         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84453         * lib/regexec.c (check_dst_limits_calc_pos_1,
84454         check_subexp_matching_top):
84455         Likewise.
84456         * lib/regex_internal.c (re_string_reconstruct):
84457         Don't assume UCHAR_MAX == 255.
84458         * lib/regex_internal.h (bitset_set_all): Likewise.
84459         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84460         All uses changed.
84461         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84462         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84463         All uses changed.
84464         (BITSET_WORD_MAX): New macro.
84465         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84466         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84467         (bitset_empty, bitset_copy):
84468         Prefer sizeof (bitset) to multiplying it out ourselves.
84469         (bitset_not_merge): Remove; unused.
84470         (bitset_contain): Return bool, not unsigned int with one bit on.
84471         All callers changed.
84472         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84473         alignment than re_node_set; do this by defining a new internal
84474         type struct dests_alloc and using it to allocate memory.
84475
84476 2005-09-05  Bruno Haible  <bruno@clisp.org>
84477
84478         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84479         links.
84480
84481 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84482
84483         * modules/size_max (Makefile.am): Add size_max.h
84484
84485 2005-09-04  Derek Price  <derek@ximbiot.com>
84486
84487         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84488
84489 2005-09-03  Simon Josefsson  <jas@extundo.com>
84490
84491         * gnulib-tool: Fix typo.
84492
84493 2005-09-03  Simon Josefsson  <jas@extundo.com>
84494
84495         * config/srclist.txt: Add glibc bug 1293.
84496
84497 2005-09-03  Derek Price  <derek@ximbiot.com>
84498
84499         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84500         From Larry Jones <lawrence.jones@ugs.com>.
84501
84502 2005-09-02  Simon Josefsson  <jas@extundo.com>
84503
84504         * modules/socklen: New file.
84505
84506 2005-09-02  Simon Josefsson  <jas@extundo.com>
84507
84508         * modules/havelib: New module.
84509
84510         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84511         Use havelib.
84512
84513 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84514
84515         Check for arithmetic overflow when calculating sizes, to prevent
84516         some buffer-overflow issues.  These patches are conservative, in the
84517         sense that when I couldn't determine whether an overflow was possible,
84518         I inserted a run-time check.
84519         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84520         macros.
84521         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84522         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84523         (re_xnrealloc, re_x2nrealloc): New inline functions.
84524         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84525         parse_bracket_exp):
84526         (build_equiv_class, build_charclass): Check for arithmetic overflow
84527         in size expression calculations.
84528         * lib/regex_internal.c (re_string_realloc_buffers):
84529         (build_wcs_upper_buffer, re_node_set_add_intersect):
84530         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84531         (re_dfa_add_node, register_state): Likewise.
84532         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84533         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84534         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84535         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84536
84537 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84538
84539         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84540         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84541
84542 2005-09-02  Bruno Haible  <bruno@clisp.org>
84543
84544         Support for lib vs. lib64 distinction on biarch platforms.
84545         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84546         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84547         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84548
84549 2005-09-02  Bruno Haible  <bruno@clisp.org>
84550
84551         * gnulib-tool (import): In the other first-use case, provide defaults
84552         as well.
84553
84554 2005-09-02  Bruno Haible  <bruno@clisp.org>
84555
84556         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84557         patches not yet found in the latest gettext release.
84558
84559 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84562         to avoid a collision with bits/local_lim.h in glibc.
84563         All uses changed.  Problem reported by Dmitry V. Levin in
84564         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84565
84566         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84567         bugs in int versus size_t comparisons.
84568         (re_string_context_at): Fix bug where the code assumed that
84569         Idx is signed.
84570
84571         Use bool where appropriate.
84572         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84573         All callers changed.
84574         (calc_eclosure_iter): Likewise, for ROOT arg.
84575         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84576         (build_charclass_op): Likewise, for NON_MATCH arg.
84577         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84578         (re_string_construct_common): Likewise, for ICASE arg.
84579         * lib/regexec.c (re_search_2_stub, re_search_stub):
84580         Likewise, for RET_LEN arg.
84581         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84582         (set_regs): Likewise, for FL_BACKTRACK arg.
84583         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84584         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84585         (calc_eclosure_iter, parse_bracket_exp):
84586         Use bool for internal variables that are booleans.
84587         * lib/regexec.c (re_search_internal, check_matching,
84588         proceed_next_node):
84589         (set_regs, build_sifted_states, sift_states_bkref):
84590         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84591         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84592         (find_collation_sequence_value):
84593         Likewise.
84594         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84595         (re_node_set_compare):
84596         Return bool, not int. All callers changed.
84597         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84598         (build_trtable, check_node_accept): Likewise.
84599         * lib/regex_internal.h: Include stdbool.h.
84600
84601         Fix bugs uncovered when converting to bool.
84602         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84603         failure instead of charging ahead blindly.
84604         * lib/regex_internal.c (register_state): Likewise.
84605         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84606         for freeing internal storage.
84607         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84608         bitset pieces used as boolean, to avoid undefined behavior
84609         on hosts that do int overflow checking.
84610
84611 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         * config/srclist.txt: Add glibc bugs 1285-1287.
84614
84615 2005-09-01  Jim Meyering  <jim@meyering.net>
84616
84617         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84618         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84619         Require gl_STAT_MACROS, too.
84620
84621 2005-09-01  Bruno Haible  <bruno@clisp.org>
84622
84623         * gnulib-tool (import): In the first-use case, provide defaults.
84624
84625 2005-09-01  Bruno Haible  <bruno@clisp.org>
84626
84627         * gnulib-tool (func_import): Remove the .tmp files.
84628
84629 2005-09-01  Bruno Haible  <bruno@clisp.org>
84630
84631         * gnulib-tool (func_import): Fix handling of symbolic links.
84632
84633 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84634
84635         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84636         old glibc regex code mishandles strings longer than 2**31 bytes.
84637         This patch fixes this when the regex code is used in gnulib
84638         (i.e., outside glibc).
84639
84640         This patch should not affect the use of the regex code inside
84641         glibc.  No doubt this problem also needs to be handled for glibc
84642         as well, but the result will be an incompatible change to the
84643         glibc ABI, and the old ABI will have to be supported too.  That
84644         can be the the subject for another patch.
84645
84646         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84647         governing whether the rest of this patch is active.  By default,
84648         the macro is disabled and the patch has no effect.
84649         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84650         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84651         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84652         (re_match_2, re_set_registers): Use the new types.
84653         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84654         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84655         New macros.
84656         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84657         (re_string_context_at, bin_tree_t, re_dfastate_t):
84658         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84659         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84660         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84661         (re_string_char_size_at, re_string_wchar_at):
84662         (re_string_elem_size_at):
84663         Use the new types and macros to port to 64-bit hosts.
84664         Use unsigned types for internal values, so that the code
84665         mostly works even for arrays larger than SSIZE_MAX.
84666         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84667         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84668         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84669         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84670         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84671         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84672         (calc_inveclosure, parse_dup_op, build_range_exp):
84673         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84674         (fetch_number, create_token_tree, mark_opt_subexp):
84675         Likewise.
84676         * lib/regex_internal.c (re_string_construct_common,
84677         create_ci_newstate):
84678         (create_cd_newstate, re_string_allocate, re_string_construct):
84679         (re_string_realloc_buffers, build_wcs_upper_buffer):
84680         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84681         (re_string_reconstruct, re_string_peek_byte_case):
84682         (re_string_fetch_byte_case, re_string_context_at):
84683         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84684         (re_node_set_init_copy, re_node_set_add_intersect):
84685         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84686         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84687         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84688         (re_acquire_state, re_acquire_state_context, register_state):
84689         Likewise.
84690         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84691         search_cur_bkref_entry):
84692         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84693         (re_search_internal, re_search_2_stub, re_search_stub)
84694         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84695         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84696         (update_cur_sifted_state, check_dst_limits):
84697         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84698         (check_subexp_limits, sift_states_bkref, merge_state_array):
84699         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84700         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84701         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84702         (expand_bkref_cache, check_node_accept_bytes):
84703         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84704         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84705         (acquire_init_state_context, check_halt_node_context):
84706         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84707         (sift_states_backward, clean_state_log_if_needed):
84708         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84709         (find_recover_state, transit_state_sb, transit_state_mb):
84710         (transit_state_bkref, build_trtable, match_ctx_clean):
84711         Likewise.
84712         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84713         to work around an assumption that REG_MISSING is negative.
84714
84715         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84716         (seek_collating_symbol_entry) [defined _LIBC]:
84717         (lookup_collation_sequence_value) [defined _LIBC]:
84718         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84719         Use prototypes rather than old-style function definitions.
84720         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84721         (transit_state_sb) [0]:
84722         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84723
84724         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84725         rm_eo.
84726
84727         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84728         (optimize_subexps, lower_subexp):
84729         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84730         since the signed shift might overflow.  Use 1u<<31 instead.
84731         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84732         Likewise.
84733         * lib/regexec.c (check_dst_limits_calc_pos_1,
84734         check_subexp_matching_top): Likewise.
84735
84736         * lib/regcomp.c (optimize_subexps, lower_subexp):
84737         Use CHAR_BIT rather than 8, for clarity.
84738         * lib/regexec.c (check_dst_limits_calc_pos_1):
84739         (check_subexp_matching_top): Likewise.
84740         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84741         have to worry about portability issues when shifting it left.
84742         Remove no-longer-needed test for table_size > 0.
84743         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84744         in a word, as the resulting behavior is undefined.
84745         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84746         in one case, a <= should have been an <, and in another case the
84747         whole test was missing.
84748         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84749         the standard name CHAR_BIT.
84750         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84751         this is not true on one's complement and signed-magnitude hosts.
84752
84753         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84754         next_last_offset.
84755         (struct re_dfa_t): Remove unused member states_alloc.
84756         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84757
84758 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84759
84760         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84761         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84762         and large-file glibc and in 32-bit large-file Solaris.
84763
84764 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84767         lengths fit in regoff_t; this isn't true if regoff_t is the same
84768         width as size_t.
84769         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84770         (= START + RANGE) instead of RANGE.  This avoids overflow
84771         problems when regoff_t is the same width as size_t.
84772         All callers changed.
84773         (re_search_2_stub): Check for overflow when adding the
84774         sizes of the two strings.
84775         (re_search_stub): Check for overflow when adding START
84776         to RANGE; if it occurs, substitute the extreme value.
84777
84778 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84781
84782 2005-08-31  Jim Meyering  <jim@meyering.net>
84783
84784         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84785         a pointer-to-const.
84786         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84787         (register_state): Likewise.
84788         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84789         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84790         (group_nodes_into_DFAstates): Likewise.
84791
84792 2005-08-31  Jim Meyering  <jim@meyering.net>
84793
84794         * check-module: Add a FIXME comment.
84795
84796 2005-08-31  Eric Blake  <ebb9@byu.net>
84797
84798         * modules/unistd-safer (Files): Add unistd--.h.
84799         * modules/stdio-safer (Files): Add stdio--.h.
84800
84801 2005-08-31  Derek Price  <derek@ximbiot.com>
84802
84803         * lib/getdelim.c (getdelim): Return EOF on EOF.
84804         Reported by Larry Jones <lawrence.jones@ugs.com>.
84805
84806 2005-08-31  Bruno Haible  <bruno@clisp.org>
84807
84808         Avoid unnecessary diffs in the generated lib/Makefile.am.
84809         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84810         the generated files.
84811         (func_import): Don't set cmd.
84812
84813 2005-08-31  Bruno Haible  <bruno@clisp.org>
84814
84815         * lib/strstr.c: Include <stddef.h>, for NULL.
84816         * lib/strcasestr.c: Likewise.
84817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84818
84819 2005-08-31  Bruno Haible  <bruno@clisp.org>
84820
84821         * gnulib-tool: New option --macro-prefix.
84822         (func_import): Use macro_prefix.
84823         (import): Handle option --macro-prefix.
84824
84825 2005-08-31  Bruno Haible  <bruno@clisp.org>
84826
84827         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84828         Also use new variables cached_lgpl, cached_libtool.
84829
84830 2005-08-31  Bruno Haible  <bruno@clisp.org>
84831
84832         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84833         always instantiating them.
84834
84835 2005-08-31  Bruno Haible  <bruno@clisp.org>
84836
84837         * gnulib-tool (func_import): Read the previous cached settings
84838         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84839         earlier added by gnulib but are now dropped. Warn when a gnulib file
84840         overwrites a non-gnulib file.
84841
84842 2005-08-31  Bruno Haible  <bruno@clisp.org>
84843
84844         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84845         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84846         projects that don't keep autogenerated files in CVS. Put into
84847         actioncmd only the specified modules, not the transitive closure.
84848
84849 2005-08-31  Bruno Haible  <bruno@clisp.org>
84850
84851         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84852         Create directories that shall be filled.
84853         (import): Don't look for gl_* macros in configure.ac. Recurse across
84854         all directories containing a gnulib-cache.m4 files, if meaningful.
84855
84856 2005-08-31  Bruno Haible  <bruno@clisp.org>
84857
84858         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84859         (import): Set seen_libtool when we see gl_LIBTOOL.
84860
84861 2005-08-31  Bruno Haible  <bruno@clisp.org>
84862
84863         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84864         declaration macro definitions from generated gnulib.m4.
84865
84866 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84867
84868         * lib/iconvme.h: Add prototype for iconv_alloc.
84869
84870 2005-08-29  Simon Josefsson  <jas@extundo.com>
84871
84872         * lib/iconvme.c: Fix errno.
84873
84874 2005-08-29  Bruno Haible  <bruno@clisp.org>
84875
84876         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84877         that it works when the directory contains spaces.
84878
84879 2005-08-29  Bruno Haible  <bruno@clisp.org>
84880
84881         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84882
84883 2005-08-29  Bruno Haible  <bruno@clisp.org>
84884
84885         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84886         Emit more advice.
84887
84888 2005-08-29  Bruno Haible  <bruno@clisp.org>
84889         and Stepan Kasal  <kasal@ucw.cz>
84890
84891         * check-module: If more parameters are given, check each of them
84892         separately; add more exceptions, as noted by Jim Meyering.
84893         (check_module): New procedure.
84894         (%exempt_header): Now contains all exceptions.
84895
84896 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84897
84898         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84899
84900 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84901
84902         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84903
84904 2005-08-28  Bruno Haible  <bruno@clisp.org>
84905
84906         * m4/gnulib-tool.m4: New file.
84907
84908 2005-08-27  Jim Meyering  <jim@meyering.net>
84909
84910         * modules/unistd-safer (Files): Add pipe-safer.c.
84911         * modules/fcntl-safer (Files): Add creat-safer.c.
84912
84913 2005-08-27  Jim Meyering  <jim@meyering.net>
84914
84915         * m4/stdlib-safer.m4: New file.  From coreutils.
84916         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84917         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84918         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84919         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84920         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84921
84922 2005-08-27  Jim Meyering  <jim@meyering.net>
84923
84924         * lib/fopen-safer.c: Merge minor changes from coreutils.
84925         * lib/dup-safer.c: Likewise.
84926         * lib/fd-safer.c: Likewise.
84927
84928         Merge from coreutils.
84929         * lib/stdio--.h: New file.
84930         * lib/stdlib--.h: New file.
84931         * lib/mkstemp-safer.c: New file.
84932
84933         GNU tar needs these.
84934         * lib/pipe-safer.c: New file.
84935         * lib/creat-safer.c: New file.
84936         * lib/fcntl--.h (creat): Define to creat_safer.
84937         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84938         * lib/unistd--.h (pipe): Define to pipe_safer.
84939         * lib/unistd-safer.h: Declare pipe_safer.
84940
84941 2005-08-26  Simon Josefsson  <jas@extundo.com>
84942
84943         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84944         Haible <bruno@clisp.org>.
84945
84946 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * lib/regex_internal.h: Remove all references to
84949         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84950         or better.
84951         (bitset_not, bitset_merge, bitset_not_merge):
84952         (bitset_mask, re_string_allocate, re_string_construct):
84953         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84954         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84955         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84956         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84957         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84958         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84959         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84960         (re_acquire_state_context):
84961         Remove unnecessary forward decls.
84962         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84963         Put __attribute at function definition,
84964         now that the function decl has been removed.
84965         * lib/regex_internal.c (re_string_peek_byte_case):
84966         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84967         Likewise.
84968
84969 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84970
84971         * m4/regex.m4: Add AC_PREREQ(2.50).
84972         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84973
84974 2005-08-25  Simon Josefsson  <jas@extundo.com>
84975
84976         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84977         __fsetlocking.
84978
84979 2005-08-25  Simon Josefsson  <jas@extundo.com>
84980
84981         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84982         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84983         GLIBC specific code.
84984
84985 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         Make regex safe for g++.  This fixes one real bug (an "err"
84988         that should have been "*err").  g++ problem reported by
84989         Sam Steingold.
84990         * lib/regex_internal.h (re_calloc): New macro, consistent with
84991         re_malloc etc.  All callers of calloc changed to use re_calloc.
84992         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84993         not int.  All callers changed.
84994         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84995         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84996         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84997         (find_recover_state): Change "err" to "*err"; this fixes what
84998         appears to be a real bug.
84999         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85000         versus int.
85001
85002 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         * modules/regex (Depends-on): Add malloc, since the code
85005         assumes that !malloc(0) means failure.
85006
85007 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85010
85011         alloca modernization/simplification for regex.
85012         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85013         needs to be at the start of the file, and can be moved into
85014         regex_internal.h and simplified.
85015         * lib/regex_internal.h: Include <alloca.h>.
85016         (__libc_use_alloca) [!defined _LIBC]: New macro.
85017         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85018         now works outside glibc.
85019
85020 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85021
85022         * config/srclist.txt: Add glibc bugs 1241, 1245.
85023
85024 2005-08-25  Jim Meyering  <jim@meyering.net>
85025
85026         * lib/open-safer.c: Include <config.h>.
85027         Otherwise, we'd lose LARGEFILE support in any file using
85028         e.g. "fcntl--.h"
85029
85030 2005-08-25  Bruno Haible  <bruno@clisp.org>
85031
85032         * m4/minmax.m4: Require autoconf 2.52.
85033         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85034         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85035         alternatives of translit over the alphabet.
85036         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85037
85038 2005-08-24  Simon Josefsson  <jas@extundo.com>
85039
85040         * tests/test-getpass.c: New file.
85041
85042 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85043
85044         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85045         for GNU regex features.
85046
85047 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85050         * lib/regex.h (regerror): Likewise.
85051
85052         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85053         requires this.  (The code never needed it.)
85054
85055         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85056         All uses of recently-renamed identifiers changed to use the new,
85057         POSIX-compliant names.  The code will build and run just fine
85058         without these changes, but it's better to eat our own dog food
85059         and use the standard-conforming names.
85060
85061         * lib/regex.h: Fix a multitude of POSIX name space violations.
85062         These changes have an effect only for programs that define
85063         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85064         do not change anything for programs compiled in the normal way.
85065         Also, there is no effect on the ABI.
85066
85067         (_REGEX_SOURCE): New macro.
85068         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85069         defined and _GNU_SOURCE is not; this fixes a name space violation.
85070
85071         Rename the following macros to obey POSIX requirements.
85072         The old names are still visible as macros if _REGEX_SOURCE is defined.
85073         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85074         RE_BACKSLASH_ESCAPE_IN_LISTS.
85075         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85076         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85077         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85078         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85079         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85080         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85081         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85082         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85083         (REG_INTERVALS): renamed from RE_INTERVALS.
85084         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85085         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85086         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85087         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85088         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85089         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85090         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85091         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85092         RE_UNMATCHED_RIGHT_PAREN_ORD.
85093         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85094         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85095         (REG_DEBUG): renamed from RE_DEBUG.
85096         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85097         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85098         unusual, since we can't clash with the POSIX REG_ICASE.
85099         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85100         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85101         (REG_NO_SUB): renamed from RE_NO_SUB.
85102         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85103         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85104         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85105         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85106         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85107         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85108         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85109         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85110         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85111         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85112         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85113         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85114         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85115         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85116         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85117         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85118         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85119         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85120         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85121         (REG_FIXED): Renamed from REGS_FIXED.
85122         (REG_NREGS): Renamed from RE_NREGS.
85123
85124         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85125         of other REG_* macros, since POSIX says the user is allowed to
85126         #undef these macros selectively.
85127
85128         (reg_errcode_t): Update comment stating what other tables need
85129         to be consistent.
85130
85131         Rename the following enum values to obey POSIX requirements.
85132         The old names are still visible as macros.
85133         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85134         is not defined, since GNU is supposed to be a superset of POSIX as
85135         much as possible, and since we want reg_errcode_t to be a signed
85136         type for implementation consistency.
85137         (_REG_NOERROR): Renamed from REG_NOERROR.
85138         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85139         (_REG_BADPAT): Renamed from REG_BADPAT.
85140         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85141         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85142         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85143         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85144         (_REG_EBRACK): Renamed from REG_EBRACK.
85145         (_REG_EPAREN): Renamed from REG_EPAREN.
85146         (_REG_EBRACE): Renamed from REG_EBRACE.
85147         (_REG_BADBR): Renamed from REG_BADBR.
85148         (_REG_ERANGE): Renamed from REG_ERANGE.
85149         (_REG_ESPACE): Renamed from REG_ESPACE.
85150         (_REG_BADRPT): Renamed from REG_BADRPT.
85151         (_REG_EEND): Renamed from REG_EEND.
85152         (_REG_ESIZE): Renamed from REG_ESIZE.
85153         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85154         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85155         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85156         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85157         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85158
85159         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85160         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85161         changed.  But support the old name if the new one is not defined
85162         and if _REGEX_SOURCE.
85163
85164         Change the following member names in struct re_pattern_buffer.
85165         The old names are still supported if !_REGEX_SOURCE.
85166         The new names are always supported, regardless of _REGEX_SOURCE.
85167         (re_buffer): Renamed from buffer.
85168         (re_allocated): Renamed from allocated.
85169         (re_used): Renamed from used.
85170         (re_syntax): Renamed from syntax.
85171         (re_fastmap): Renamed from fastmap.
85172         (re_translate): Renamed from translate.
85173         (re_can_be_null): Renamed from can_be_null.
85174         (re_regs_allocated): Renamed from regs_allocated.
85175         (re_fastmap_accurate): Renamed from fastmap_accurate.
85176         (re_no_sub): Renamed from no_sub.
85177         (re_not_bol): Renamed from not_bol.
85178         (re_not_eol): Renamed from not_eol.
85179         (re_newline_anchor): Renamed from newline_anchor.
85180
85181         Change the following member names in struct re_registers.
85182         The old names are still supported if !_REGEX_SOURCE.
85183         The new names are always supported, regardless of _REGEX_SOURCE.
85184         (rm_num_regs): Renamed from num_regs.
85185         (rm_start): Renamed from start.
85186         (rm_end): Renamed from end.
85187
85188         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85189         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85190         Prepend __ to parameter names.
85191
85192         Undo yesterday's changes.
85193
85194 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85197         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85198         lib/regex.c.
85199
85200 2005-08-24  Jim Meyering  <jim@meyering.net>
85201
85202         Sync from coreutils.
85203         * m4/fcntl-safer.m4: New file.
85204
85205         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85206         and object files for this module.
85207
85208 2005-08-24  Jim Meyering  <jim@meyering.net>
85209
85210         Sync from coreutils.
85211         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85212
85213 2005-08-24  Jim Meyering  <jim@meyering.net>
85214
85215         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85216         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85217
85218 2005-08-24  Jim Meyering  <jim@meyering.net>
85219
85220         * modules/fcntl-safer: New module.
85221         * modules/fts (Depends-on): Add fcntl-safer.
85222         * MODULES.html.sh (File descriptor based Input/Output):
85223         Add fcntl-safer.
85224
85225 2005-08-24  Bruno Haible  <bruno@clisp.org>
85226
85227         Support for unit test modules.
85228         * modules/README: Mention tests modules.
85229         * modules/TEMPLATE-TESTS: New file.
85230         * gnulib-tool: New options --extract-tests-module, --with-tests and
85231         --tests-base (unused for the moment).
85232         (testsbase, inctests): New variables.
85233         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85234         (func_verify_module): Exclude TEMPLATE-TESTS.
85235         (func_verify_nontests_module, func_verify_tests_module): New functions.
85236         (func_get_dependencies): Add implicit dependency for tests modules.
85237         (func_get_tests_module): New function.
85238         (func_modules_transitive_closure): When --with-tests was specified,
85239         include the unit tests as well, unless explicitly avoided.
85240         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85241         (func_emit_tests_Makefile_am): New function.
85242         (func_create_testdir): When --with-tests was specified, emit a
85243         tests/ directory.
85244         * MODULES.html.sh (Future developments): Update.
85245
85246 2005-08-24  Bruno Haible  <bruno@clisp.org>
85247
85248         * modules/tls-tests: New file.
85249         * tests/test-tls.c: New file, from GNU gettext.
85250
85251 2005-08-24  Bruno Haible  <bruno@clisp.org>
85252
85253         * modules/lock-tests: New file.
85254         * tests/test-lock.c: New file, from GNU gettext.
85255
85256 2005-08-24  Bruno Haible  <bruno@clisp.org>
85257
85258         * lib/lock.h: Add multiple inclusion guard.
85259         * lib/tls.h: Add multiple inclusion guard.
85260
85261 2005-08-24  Bruno Haible  <bruno@clisp.org>
85262
85263         * gnulib-tool: Add support for the --aux-dir option to
85264         --create-testdir, --create-megatestdir, --test, --megatest.
85265         (func_create_testdir, func_create_megatestdir): Optionally emit a
85266         AC_CONFIG_AUX_DIR directive.
85267         (create-testdir, create-megatestdir, test, megatest): Provide a
85268         default value for $auxdir.
85269
85270 2005-08-24  Bruno Haible  <bruno@clisp.org>
85271
85272         * gnulib-tool (import): Use compound statement instead of subshell
85273         where possible.
85274
85275 2005-08-24  Bruno Haible  <bruno@clisp.org>
85276
85277         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85278
85279 2005-08-24  Bruno Haible  <bruno@clisp.org>
85280
85281         * gnulib-tool (func_version): Update.
85282
85283 2005-08-24  Bruno Haible  <bruno@clisp.org>
85284
85285         * gnulib-tool (func_import, func_create_testdir,
85286         func_create_megatestdir): Quote all autoconf macro arguments.
85287
85288 2005-08-24  Bruno Haible  <bruno@clisp.org>
85289
85290         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85291         option --force, because --force causes the aclocal.m4 of each
85292         subdirectory to be newer than the corresponding config.h.in.
85293
85294 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85295
85296         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85297         All contents moved to gl_REGEX.
85298         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85299         assume that it does.
85300
85301 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * lib/regex.h (REG_NOSYS)
85304         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85305         Define, since POSIX requires it as of 2001.
85306         (_REG_ENOSYS)
85307         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85308         New private symbol, used to keep the enum signed in all cases.
85309         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85310         Youngman in
85311         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85312
85313         * lib/regex_internal.c (re_string_skip_chars, register_state):
85314         (calc_state_hash):
85315         Remove forward decls; no longer needed now that we use prototypes.
85316         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85317         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85318         (clean_state_log_if_needed): Likewise.
85319
85320 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * config/srclist.txt: Add glibc bugs 1231-1233.
85323
85324 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         Fix problems reported by Sam Steingold in
85327         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85328         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85329         assumed that reg_errcode_t is a signed type, which is not
85330         necessarily true if _XOPEN_SOURCE is not defined.
85331         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85332         since some compilers warn about it otherwise.
85333
85334 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85337         (init_word_char, create_initial_state, duplicate_node_closure):
85338         (fetch_token, peek_token_bracket, build_range_exp):
85339         (build_collating_symbol): Remove forward decls; no longer needed
85340         now that we use prototypes.
85341
85342         * lib/regcomp.c:
85343         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85344         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85345         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85346         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85347         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85348         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85349         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85350         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85351         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85352         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85353         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85354         (build_charclass, build_charclass_op, fetch_number, create_tree):
85355         (create_token_tree, mark_opt_subexp, duplicate_tree):
85356         Use prototypes rather than old-style definitions.
85357
85358         * lib/regex_internal.c:
85359         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85360         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85361         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85362         (re_string_reconstruct, re_string_peek_byte_case):
85363         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85364         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85365         (re_node_set_init_copy, re_node_set_add_intersect):
85366         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85367         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85368         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85369         (re_acquire_state, re_acquire_state_context, register_state):
85370         (create_ci_newstate, create_cd_newstate, free_state):
85371         Likewise.
85372         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85373         re_search_2):
85374         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85375         (re_search_internal, prune_impossible_nodes):
85376         (acquire_init_state_context, check_matching, static):
85377         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85378         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85379         (update_regs, sift_states_backward, build_sifted_states):
85380         (clean_state_log_if_needed, merge_state_array):
85381         (update_cur_sifted_state, add_epsilon_src_nodes):
85382         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85383         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85384         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85385         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85386         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85387         (check_arrival, check_arrival_add_next_nodes):
85388         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85389         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85390         (check_node_accept_bytes, check_node_accept, extend_buffers):
85391         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85392         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85393         (sift_ctx_init):
85394         Likewise.
85395
85396         * lib/regex_internal.h:
85397         (re_string_allocate, re_string_construct, re_string_reconstruct):
85398         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85399         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85400         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85401         (re_string_context_at, re_string_peek_byte_case):
85402         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85403         is defined, since we now use prototypes always.
85404
85405         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85406         C89 or better.  All uses removed.
85407
85408 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * config/srclist.txt: Add glibc bugs 1220-1227.
85411
85412 2005-08-20  Jim Meyering  <jim@meyering.net>
85413
85414         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85415         of unused local, dfa.
85416
85417 2005-08-20  Bruno Haible  <bruno@clisp.org>
85418
85419         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85420
85421 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85424         (re_node_set_insert_last, re_dfa_add_node):
85425         Rename local variables to avoid GCC shadowing warnings.
85426
85427 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85430         [defined lint]: Suppress bogus uninitialized-variable warnings.
85431
85432         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85433         and let the caller return REG_ESPACE if out of space.  This
85434         removes an uninitialied-variable warning with GCC 4.0.1, and also
85435         avoids taking the address of a local variable.  All callers
85436         changed.
85437
85438 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85441         $LIBCSRC/posix/regexec.c.
85442         Add glibc bug 1217 for regcomp.c.
85443
85444 2005-08-19  Jim Meyering  <jim@meyering.net>
85445
85446         * lib/regexec.c (proceed_next_node): Redo local variables to
85447         avoid GCC shadowing warnings.
85448
85449 2005-08-18  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/strstr.c (strstr): Fix return value in multibyte case.
85452         * lib/strcasestr.c (strcasestr): Likewise.
85453
85454 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85457
85458 2005-08-17  Jim Meyering  <jim@meyering.net>
85459
85460         Make the %s format (seconds since the epoch) work for a negative
85461         number and when used with a zero-padded field width, e.g. %015s.
85462
85463         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85464         label so that it precedes the code to set `digits'.  Otherwise,
85465         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85466         print `00-22'.  Now, it prints `-0022', as it should.
85467
85468 2005-08-17  Bruno Haible  <bruno@clisp.org>
85469
85470         * modules/strstr (Files): Add m4/mbrtowc.m4.
85471         (Depends-on): Add mbuiter.
85472
85473 2005-08-17  Bruno Haible  <bruno@clisp.org>
85474
85475         * modules/strcasestr: New file.
85476         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85477         strcasestr.
85478
85479 2005-08-17  Bruno Haible  <bruno@clisp.org>
85480
85481         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85482
85483 2005-08-17  Bruno Haible  <bruno@clisp.org>
85484
85485         * modules/mbuiter: New file.
85486         * MODULES.html.sh (Extended multibyte and wide character utilities):
85487         Add mbuiter.
85488
85489 2005-08-17  Bruno Haible  <bruno@clisp.org>
85490
85491         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85492         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85493
85494 2005-08-17  Bruno Haible  <bruno@clisp.org>
85495
85496         * m4/strcasestr.m4: New file.
85497
85498 2005-08-17  Bruno Haible  <bruno@clisp.org>
85499
85500         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85501         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85502
85503 2005-08-17  Bruno Haible  <bruno@clisp.org>
85504
85505         * lib/strcasestr.h: New file.
85506         * lib/strcasestr.c: New file.
85507
85508 2005-08-17  Bruno Haible  <bruno@clisp.org>
85509
85510         * lib/strcasecmp.c: Use mbuiter.h.
85511
85512 2005-08-17  Bruno Haible  <bruno@clisp.org>
85513
85514         * lib/mbuiter.h: New file.
85515
85516 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85517
85518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85519         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85520         and gl_GETOPT are both invoked via different paths (as happens
85521         with GNU tar CVS because it uses both argp and getopt), the former
85522         wins.
85523
85524 2005-08-16  Bruno Haible  <bruno@clisp.org>
85525
85526         * modules/tls: New file.
85527         * MODULES.html.sh (Multithreading): Add tls.
85528
85529 2005-08-16  Bruno Haible  <bruno@clisp.org>
85530
85531         * modules/strnlen1: New file.
85532         * MODULES.html.sh (String handling): Add strnlen1.
85533
85534 2005-08-16  Bruno Haible  <bruno@clisp.org>
85535
85536         * modules/strcase (Files): Add m4/mbrtowc.m4.
85537         (Depends-on): Add strnlen1, mbchar.
85538
85539 2005-08-16  Bruno Haible  <bruno@clisp.org>
85540
85541         * modules/mbiter: New file.
85542         * MODULES.html.sh (Extended multibyte and wide character utilities):
85543         Add mbiter.
85544
85545 2005-08-16  Bruno Haible  <bruno@clisp.org>
85546
85547         * modules/mbfile: New file.
85548         * MODULES.html.sh (Extended multibyte and wide character utilities):
85549         Add mbfile.
85550
85551 2005-08-16  Bruno Haible  <bruno@clisp.org>
85552
85553         * modules/mbchar: New file.
85554         * MODULES.html.sh (Extended multibyte and wide character utilities):
85555         New section.
85556
85557 2005-08-16  Bruno Haible  <bruno@clisp.org>
85558
85559         * m4/tls.m4: New file, from GNU gettext.
85560
85561 2005-08-16  Bruno Haible  <bruno@clisp.org>
85562
85563         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85564         always.
85565         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85566
85567 2005-08-16  Bruno Haible  <bruno@clisp.org>
85568
85569         * m4/mbiter.m4: New file.
85570
85571 2005-08-16  Bruno Haible  <bruno@clisp.org>
85572
85573         * m4/mbfile.m4: New file.
85574
85575 2005-08-16  Bruno Haible  <bruno@clisp.org>
85576
85577         * m4/mbchar.m4: New file.
85578
85579 2005-08-16  Bruno Haible  <bruno@clisp.org>
85580
85581         * lib/tls.h: New file, from GNU gettext.
85582         * lib/tls.c: New file, from GNU gettext.
85583
85584 2005-08-16  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/strnlen1.h: New file.
85587         * lib/strnlen1.c: New file.
85588
85589 2005-08-16  Bruno Haible  <bruno@clisp.org>
85590
85591         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85592         (mbi_init): Update.
85593         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85594         NUL byte, not after it.
85595
85596 2005-08-16  Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/strcase.h (strcasecmp): Add note in comments.
85599         * lib/strncasecmp.c: Use code from strcasecmp.c.
85600         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85601         (strcasecmp): Work correctly in multibyte locales.
85602
85603 2005-08-16  Bruno Haible  <bruno@clisp.org>
85604
85605         * lib/mbiter.h: New file.
85606
85607 2005-08-16  Bruno Haible  <bruno@clisp.org>
85608
85609         * lib/mbfile.h: New file.
85610
85611 2005-08-16  Bruno Haible  <bruno@clisp.org>
85612
85613         * lib/mbchar.h: New file.
85614         * lib/mbchar.c: New file.
85615
85616 2005-08-16  Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85619         the valid ones. Makes the comparison operations transitive:
85620         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85621         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85622
85623 2005-08-15  Simon Josefsson  <jas@extundo.com>
85624
85625         * modules/ssize_t (License): Change to 'unlimited'.
85626
85627         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85628
85629 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85630
85631         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85632         Add comments for each pending glibc patch.
85633
85634 2005-08-15  Bruno Haible  <bruno@clisp.org>
85635
85636         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85637         __cplusplus is defined.
85638
85639 2005-08-14  Jim Meyering  <jim@meyering.net>
85640
85641         Sync from coreutils.
85642
85643         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85644         Use the hash-table-based cycle-detection code not just when
85645         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85646         Reported by James Youngman in
85647         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85648         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85649         FTS_TIGHT_CYCLE_CHECK.
85650         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85651         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85652         once again.
85653         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85654         * lib/fts.c (fd_safer): Remove decl.
85655         Include fcntl--.h rather than unistd-safer.h
85656         (fts_safe_changedir): Don't call fd_safer; no longer needed
85657         now that we include fcntl--.h.
85658
85659 2005-08-12  Simon Josefsson  <jas@extundo.com>
85660
85661         * modules/getndelim2: Use ssize_t module.
85662         * modules/getnline: Likewise.
85663         * modules/safe-read: Likewise.
85664         * modules/xreadlink: Likewise.
85665
85666         * modules/ssize_t: New file.
85667
85668 2005-08-12  Simon Josefsson  <jas@extundo.com>
85669
85670         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85671
85672 2005-08-12  Simon Josefsson  <jas@extundo.com>
85673
85674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85675         ssize_t.
85676
85677 2005-08-12  Simon Josefsson  <jas@extundo.com>
85678
85679         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85680         readline, getdelim and check_version.
85681         (Support for systems lacking ISO C 99: Sizes of integer types):
85682         Add size_max.
85683
85684 2005-08-12  Bruno Haible  <bruno@clisp.org>
85685
85686         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85687
85688 2005-08-11  Simon Josefsson  <jas@extundo.com>
85689
85690         * modules/readline: New file.
85691
85692         * modules/strnlen (Files): Add strnlen.h.
85693
85694 2005-08-11  Simon Josefsson  <jas@extundo.com>
85695
85696         * m4/readline.m4: New file.
85697
85698 2005-08-11  Simon Josefsson  <jas@extundo.com>
85699
85700         * lib/readline.h, readline.c: New file.
85701
85702 2005-08-11  Simon Josefsson  <jas@extundo.com>
85703
85704         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85705         gl_AVOID.
85706
85707 2005-08-11  Bruno Haible  <bruno@clisp.org>
85708
85709         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85710
85711 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85712
85713         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85714
85715 2005-08-10  Simon Josefsson  <jas@extundo.com>
85716
85717         * tests/test-iconvme.c: New file.
85718
85719 2005-08-10  Simon Josefsson  <jas@extundo.com>
85720
85721         * m4/strnlen.m4: New file.
85722
85723         * m4/strndup.m4: Don't check for strnlen declaration, done in
85724         strnlen.m4.
85725
85726 2005-08-10  Simon Josefsson  <jas@extundo.com>
85727
85728         * lib/strndup.c: Use strnlen.h.
85729
85730         * lib/strnlen.h: New file.
85731
85732 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85733
85734         * README: Typos.
85735
85736 2005-08-02  Simon Josefsson  <jas@extundo.com>
85737
85738         * modules/readline: New file.
85739
85740 2005-08-02  Simon Josefsson  <jas@extundo.com>
85741
85742         * modules/getdelim: New file.
85743
85744         * modules/getline: Rewrite, don't use getndelim2.
85745
85746 2005-08-02  Simon Josefsson  <jas@extundo.com>
85747
85748         * m4/getline.m4: Separate out getdelim stuff into separate module.
85749
85750         * m4/getdelim.m4: New file.
85751
85752 2005-08-02  Simon Josefsson  <jas@extundo.com>
85753
85754         * lib/getline.h, getline.c: Rewrite.
85755
85756         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85757
85758 2005-07-31  Bruno Haible  <bruno@clisp.org>
85759
85760         * lib/lock.h (gl_lock_initializer): New macro.
85761         (gl_lock_define_initialized): Use it.
85762         (gl_rwlock_initializer): New macro.
85763         (gl_rwlock_define_initialized): Use it.
85764         (gl_recursive_lock_initializer): New macro.
85765         (gl_recursive_lock_define_initialized): Use it.
85766
85767 2005-07-30  Karl Berry  <karl@gnu.org>
85768
85769         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85770         Report from Ben Pfaff, regarding getopt.
85771
85772 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85775         normal way.
85776         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85777         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85778         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85779         (gl_GETOPT): Use the new macros.  Most of the implementation
85780         is moved to the new macros.  This is for programs like Emacs
85781         that don't want all the functionality of gl_GETOPT.
85782
85783 2005-07-26  Bruno Haible  <bruno@clisp.org>
85784
85785         * m4/lock.m4: Update from GNU gettext.
85786
85787 2005-07-26  Bruno Haible  <bruno@clisp.org>
85788
85789         * lib/lock.h: Update from GNU gettext.
85790         * lib/lock.c: Update from GNU gettext.
85791
85792 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85793
85794         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85795         obsolescent AC_TRY_RUN.  Include the default includes files, for
85796         'exit'.
85797
85798 2005-07-24  Bruno Haible  <bruno@clisp.org>
85799
85800         * modules/visibility: New file.
85801         * MODULES.html.sh (Misc): Add visibility.
85802
85803 2005-07-24  Bruno Haible  <bruno@clisp.org>
85804
85805         * m4/visibility.m4: New file.
85806
85807 2005-07-24  Bruno Haible  <bruno@clisp.org>
85808
85809         * doc/visibility.texi: New file.
85810
85811 2005-07-22  Bruno Haible  <bruno@clisp.org>
85812
85813         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85814         $(ALLOCA_H), redundant through BUILT_SOURCES.
85815         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85816         redundant through BUILT_SOURCES.
85817         * modules/byteswap (Makefile.am): Remove explicit dependency on
85818         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85819         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85820         $(FNMATCH_H), redundant through BUILT_SOURCES.
85821         * modules/getopt (Makefile.am): Remove explicit dependency on
85822         $(GETOPT_H), redundant through BUILT_SOURCES.
85823         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85824         redundant through BUILT_SOURCES.
85825         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85826         redundant through BUILT_SOURCES.
85827         * modules/stdbool (Makefile.am): Remove explicit dependency on
85828         $(STDBOOL_H), redundant through BUILT_SOURCES.
85829         * modules/stdint (Makefile.am): Remove explicit dependency on
85830         $(STDINT_H), redundant through BUILT_SOURCES.
85831         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85832         Remove explicit dependency on $(SYSEXITS_H).
85833         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85834
85835 2005-07-18  Simon Josefsson  <jas@extundo.com>
85836
85837         * lib/check-version.c (check_version): Accept identical versions too.
85838
85839 2005-07-18  Bruno Haible  <bruno@clisp.org>
85840
85841         * modules/lock: New file.
85842         * MODULES.html.sh (Multithreading): New section.
85843
85844 2005-07-18  Bruno Haible  <bruno@clisp.org>
85845
85846         * m4/lock.m4: New file, from GNU gettext.
85847
85848 2005-07-18  Bruno Haible  <bruno@clisp.org>
85849
85850         * lib/lock.h: New file, from GNU gettext.
85851         * lib/lock.c: New file, from GNU gettext.
85852
85853 2005-07-18  Bruno Haible  <bruno@clisp.org>
85854
85855         * lib/lock.h (gl_once_t): New type.
85856         (gl_once_define, gl_once): New macros.
85857         * lib/lock.c (fresh_once): New variable.
85858         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85859         functions.
85860
85861 2005-07-16  Simon Josefsson  <jas@extundo.com>
85862
85863         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85864         workaround, suggested by Bruno.
85865
85866 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * modules/xalloc (Depends-on): Add xalloc-die.
85869         * modules/xvasprintf (Depends-on): Add xalloc-die.
85870
85871 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85874         with a minor change.
85875
85876 2005-07-15  Bruno Haible  <bruno@clisp.org>
85877
85878         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85879         When using lib/poll.c, define poll as rpl_poll.
85880
85881 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * modules/argp (Depends-on): Remove unlocked-io.
85884
85885 2005-07-14  Derek Price  <derek@ximbiot.com>
85886
85887         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85888         for glob symlink bug.
85889
85890 2005-07-14  Bruno Haible  <bruno@clisp.org>
85891
85892         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85893         Instead, test for *_unlocked function declarations directly.
85894
85895 2005-07-11  Simon Josefsson  <jas@extundo.com>
85896
85897         * modules/size_max: New file.
85898
85899         * modules/xsize: Depend on size_max module for size_max.m4.
85900
85901 2005-07-11  Simon Josefsson  <jas@extundo.com>
85902
85903         * lib/size_max.h: New file.
85904
85905 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85908         copyright symbol and the year.
85909         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85910         (version_etc_va): Use parameterized copyright notice.
85911         Reword to conform to the current GNU coding standards.
85912
85913 2005-07-11  Karl Berry  <karl@gnu.org>
85914
85915         * doc/gnulib.texi (Quoting): new node.
85916         (Initial import): more info, from Patrice.
85917
85918 2005-07-11  Bruno Haible  <bruno@clisp.org>
85919
85920         * gnulib-tool (func_usage): Document option --avoid.
85921         (Command line options): Handle --avoid.
85922         (func_acceptable): New function.
85923         (func_modules_transitive_closure): Use it.
85924
85925 2005-07-11  Bruno Haible  <bruno@clisp.org>
85926
85927         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85928         Reported by Jim Meyering.
85929
85930 2005-07-10  Bruno Haible  <bruno@clisp.org>
85931
85932         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85933         Needed when size_t is smaller than 'unsigned int'.
85934         Reported by Paul Eggert.
85935
85936 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85937
85938         * modules/argp (Depends-on): Add unlocked-io
85939
85940 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85941
85942         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85943         block of defines.
85944
85945 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85946
85947         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85948         fix now.
85949
85950 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85951         and Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85954         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85955
85956 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * modules/regex (Files): Add lib/regex_internal.c,
85959         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85960         (Depends-on): Add extensions.
85961         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85962
85963 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85966         pathconf.
85967         * m4/same.m4 (gl_SAME): Likewise.
85968         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85969
85970         * m4/regex.m4: Adjust to new libc regex implementation.
85971         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85972         all the .c and .h parts of (the new) regex.
85973         Quote the m4 stuff better.
85974         Check for RE_ICASE bug of old gnulib.
85975         Check for REG_STARTEND of recent libc.
85976         Rename local variables from jm_* to gl_*.
85977         Quote operand of "test -f".
85978         Say "recent enough" version of libc, not "version 2".
85979         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85980         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85981         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85982         Remove check for btowc, isascii.
85983         Require AM_LANGINFO_CODESET.
85984
85985 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         * lib/regex.c, regex.h: Sync from libc.
85988         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85989         * lib/regexec.c:
85990         New files, synced from libc, except that regex_internal.h
85991         currently has a small porting fix.
85992
85993 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85996         regex_internal.c, regexec.c.
85997         Add regex_internal.h too, but as a comment, since the libc version
85998         is currently broken in gnulib mode.
85999
86000 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86001
86002         Support programs like Emacs that use gnulib but not gettext.
86003         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86004         * modules/gettext-h: New file.
86005         * modules/gettext (Files): Remove lib/gettext.h.
86006         (Depends-on): Add gettext-h.
86007         (Makefile.am): Remove lib_SOURCES.
86008         * modules/argmatch, modules/c-stack, modules/closeout:
86009         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86010         * modules/execute, modules/file-type, modules/getaddrinfo:
86011         * modules/getopt, modules/human, modules/javacomp:
86012         * modules/javaexec, modules/mkdir-p, modules/obstack:
86013         * modules/openat, modules/pagealign_alloc, modules/pipe:
86014         * modules/quotearg, modules/regex, modules/rpmatch:
86015         * modules/unicodeio, modules/userspec, modules/version-etc:
86016         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86017         * modules/xsetenv:
86018         Depend on gettext-h, not gettext.
86019
86020 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * gnulib-tool (func_import): Add support for 'public domain' license.
86023         * modules/alloca, modules/atexit, modules/memmove:
86024         Now public domain, not GPL.
86025         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86026         * modules/realloc, modules/strerror, modules/strtod:
86027         Now LGPL, not GPL.
86028
86029 2005-07-05  Bruno Haible  <bruno@clisp.org>
86030
86031         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86032         autoconf CVS. Needed for mingw.
86033
86034 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86035
86036         Remove the dependency of the strftime module on the tzset module.
86037         * modules/strftime (Depends-on): Remove dependency on tzset.
86038
86039 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86040
86041         Remove the dependency of the strftime module on the tzset module.
86042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86043         gl_FUNC_TZSET_CLOBBER.
86044
86045 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86046
86047         Remove the dependency of the strftime module on the tzset module.
86048         * lib/strftime.c (my_strftime)
86049         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86050         Copy the input structure, to work around some of the bug with
86051         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86052         Solaris releases, you should also use the tzset module, but we won't
86053         require it as a dependency any more since we don't want LGPLed code
86054         to depend on GPLed code.
86055
86056 2005-07-02  Jim Meyering  <jim@meyering.net>
86057
86058         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86059         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86060         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86061         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86062
86063 2005-07-02  Jim Meyering  <jim@meyering.net>
86064
86065         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86066
86067 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86070         declares only 'struct timespec;' (!).
86071
86072 2005-07-01  Jim Meyering  <jim@meyering.net>
86073
86074         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86075         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86076         * lib/save-cwd.c, tempname.c:
86077         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86078         and don't include <sys/file.h>).
86079
86080 2005-06-29  Jim Meyering  <jim@meyering.net>
86081
86082         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86083         type name.  Use the variable name instead.
86084         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86085         Likewise.
86086
86087 2005-06-28  Simon Josefsson  <jas@extundo.com>
86088
86089         * modules/check-version (Files): Add check-version.m4.
86090
86091 2005-06-28  Simon Josefsson  <jas@extundo.com>
86092
86093         * m4/check-version.m4: New file, suggested by Jim Meyering
86094         <jim@meyering.net>.
86095
86096 2005-06-28  Simon Josefsson  <jas@extundo.com>
86097
86098         * lib/check-version.h, lib/check-version.c: New files.
86099
86100 2005-06-28  Simon Josefsson  <jas@extundo.com>
86101
86102         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86103         collision with global variable.  Better indentation.  Don't
86104         increment buffer pointer beyond buffer end.  Based on comments
86105         from Paul Eggert <eggert@cs.ucla.edu>.
86106
86107         * lib/base64.h: Indent.
86108
86109 2005-06-28  Simon Josefsson  <jas@extundo.com>
86110
86111         * doc/gnulib.texi (Library version handling): New section.
86112
86113 2005-06-28  Jim Meyering  <jim@meyering.net>
86114
86115         * check-module (find_included_lib_files): Hard-code another
86116         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86117         but modules/fts-lgpl (correctly) does not list those files.
86118
86119         * modules/canonicalize (Files): Add lib/pathmax.h.
86120
86121 2005-06-25  Simon Josefsson  <jas@extundo.com>
86122
86123         * modules/check-version: New file.
86124
86125 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86126
86127         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86128         initializer of struct addrinfo, as an indication that we don't
86129         care how many members the structure has.
86130
86131 2005-06-24  Derek Price  <derek@ximbiot.com>
86132         and Bruno Haible  <bruno@clisp.org>
86133
86134         Remove stat module & update lstat.
86135         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86136         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86137         * m4/stat.m4: Remove this file.
86138
86139 2005-06-24  Derek Price  <derek@ximbiot.com>
86140         and Bruno Haible  <bruno@clisp.org>
86141
86142         Remove stat module & update lstat.
86143         * lib/stat.c: Remove this file...
86144         (slash_aware_lstat): ...moving this content and its support...
86145         * lib/lstat.c (rpl_lstat): ...into here.
86146         * lib/lstat.h: New file.
86147
86148 2005-06-24  Derek Price  <derek@ximbiot.com>
86149         and Bruno Haible  <bruno@clisp.org>
86150
86151         Remove stat module & update lstat.
86152         * config/srclist.txt (libc sources): Remove stat.
86153
86154 2005-06-24  Derek Price  <derek@ximbiot.com>
86155         and Bruno Haible  <bruno@clisp.org>
86156
86157         Remove stat module & update lstat.
86158         * MODULES.html.sh (stat): Remove.
86159         * MODULES.html: Regenerated.
86160         * modules/lstat (Description): Correct function name.
86161         (Files): Add "lstat.h".
86162         (Depends-on): Remove stat, add xalloc, stat-macros.
86163         * modules/stat: Remove this file.
86164         (Include): Add "lstat.h", remove <sys/stat.h>.
86165
86166 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86167
86168         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86169         (ranged_convert): Don't save conversion in a temporary struct.
86170         This causes a warning with GCC 4.0.0, and anyway in the typical
86171         case it's not worth the extra 100 bytes or so of code.
86172         (ranged_convert, __mktime_internal): When calling a function via a
86173         pointer P, use P () rather than (*P) (), as we now assume C89 or
86174         better.
86175
86176 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86179         "who -r" failed to give output.  Problem reported by Tim Waugh.
86180
86181         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86182         (xcalloc): Use it to avoid needless tests.
86183         Problem reported by Jim Meyering.
86184
86185 2005-06-20  Derek Price  <derek@ximbiot.com>
86186
86187         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86188         unnecessary for Autoconfs > 2.59c.
86189
86190 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86191
86192         * lib/argp.h (__option_is_short): Check upper limit of
86193         __key. Isprint() requires its argument to have the value
86194         of an unsigned char or EOF.
86195
86196 2005-06-16  Jim Meyering  <jim@meyering.net>
86197
86198         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86199         when either N or S is zero.
86200
86201 2005-06-16  Derek Price  <derek@ximbiot.com>
86202
86203         * m4/bison.m4: Declare YACC & YFLAGS precious.
86204
86205 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86206
86207         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86208         multibyte string or pattern, fall back on unibyte matching.
86209         Problem reported by James Youngman.
86210
86211 2005-06-08  Bruno Haible  <bruno@clisp.org>
86212
86213         * modules/csharpcomp: New file.
86214         * MODULES.html.sh (C#): Add csharpcomp.
86215
86216 2005-06-08  Bruno Haible  <bruno@clisp.org>
86217
86218         * m4/csharpcomp.m4: New file, from GNU gettext.
86219
86220 2005-06-08  Bruno Haible  <bruno@clisp.org>
86221
86222         * lib/csharpcomp.h: New file, from GNU gettext.
86223         * lib/csharpcomp.c: New file, from GNU gettext.
86224         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86225
86226 2005-06-08  Bruno Haible  <bruno@clisp.org>
86227
86228         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86229         warning on mingw.
86230
86231 2005-06-07  Derek Price  <derek@ximbiot.com>
86232
86233         Sync from CVS.
86234         * lib/glob_.h: Indent nested #ifdef.
86235
86236 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86237
86238         Sync from coreutils.
86239         Use "file name" when talking about file names, instead of "filename"
86240         or "path", as per the GNU coding standards.
86241         * lib/mkdir-p.c: Renamed from makepath.c.
86242         (make_dir_parents): Renamed from make_path.  All callers changed.
86243         * lib/mkdir-p.h: Likewise.  All includers changed.
86244         * lib/filenamecat.c: Renamed from path-concat.c.
86245         (file_name_concat): Renamed from path_concat.  All callers changed.
86246         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86247         * lib/filenamecat.h: Likewise.  All includers changed.
86248         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86249         in comments or local variable names.
86250         * lib/basename.c: Likewise.
86251         * lib/canonicalize.c, canonicalize.h: Likewise.
86252         * lib/dirname.c, dirname.h: Likewise.
86253         * lib/euidaccess.c: Likewise.
86254         * lib/exclude.c: Likewise
86255         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86256         * lib/fsusage.c, fsuage.h: Likewise.
86257         * lib/fts.c, fts_.h: Likewise.
86258         * lib/getcwd.c: Likewise.
86259         * lib/getloadavg.c: Likewise.
86260         * lib/mkstemp.c: Likewise.
86261         * lib/mountlist.c, mountlist.h: Likewise.
86262         * lib/openat.c, openat.h: Likewise.
86263         * lib/readlink-stub.c: Likewise.
86264         * lib/readutmp.c, readutmp.h: Likewise.
86265         * lib/rename.c: Likewise.
86266         * lib/rmdir.c: Likewise.
86267         * lib/same.c: Likewise.
86268         * lib/savedir.c: Likewise.
86269         * lib/stripslash.c: Likewise.
86270         * lib/tempname.c: Likewise.
86271         * lib/xreadlink.c: Likewise.
86272         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86273         All uses changed.
86274         * lib/exclude.h: Likewise.
86275
86276         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86277         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86278         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86279         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86280         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86281         files have been getting away with it for years (MORE/BSD 4.3
86282         is extinct now).
86283         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86284         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86285
86286         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86287         Define to 256, not 255, as per modern POSIX.
86288
86289 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86290
86291         Sync from coreutils.
86292         Use "file name" when talking about file names, instead of "filename"
86293         or "path", as per the GNU coding standards.
86294         * MODULES.html.sh: mkdir-p renamed from makepath.
86295         filenamecat renamed from path-concat.
86296         * modules/filenamecat: Renamed from modules/path-concat.
86297         (Files): filenamecat.h and filenamecat.c renamed from
86298         path-concat.h and path-concat.c.
86299         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86300         (Include): filenamecat.h, not path-concat.h.
86301         * modules/mkdir-p: Renamed from modules/makepath.
86302         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86303         makepath.c.
86304         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86305         (Include): mkdir-p.h, not makepath.h.
86306
86307 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86308
86309         Sync from coreutils.
86310         * m4/mkdir-p.m4: Renamed from makepath.m4.
86311         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86312         Rename files from makepath.c to mkdir-p.c, and from
86313         makepath.h to mkdir-p.h.
86314         * m4/filenamecat.m4: Renamed from path-concat.m4.
86315         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86316         Rename files from path-concat.c to filenamecat.c,
86317         and from path-concat.h to filenamecat.h.
86318         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86319         "file name" in local variables or comments.
86320         * m4/rename.m4: Likewise.
86321
86322 2005-06-01  Bruno Haible  <bruno@clisp.org>
86323
86324         * modules/csharpexec: New file.
86325         * MODULES.html.sh (C#): New section.
86326
86327 2005-06-01  Bruno Haible  <bruno@clisp.org>
86328
86329         * m4/csharp.m4: New file, from GNU gettext.
86330         * m4/csharpexec.m4: New file, from GNU gettext.
86331
86332 2005-06-01  Bruno Haible  <bruno@clisp.org>
86333
86334         * lib/csharpexec.h: New file, from GNU gettext.
86335         * lib/csharpexec.c: New file, from GNU gettext.
86336         * lib/csharpexec.sh.in: New file, from GNU gettext.
86337
86338 2005-05-31  Derek Price  <derek@ximbiot.com>
86339             Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         Sync from cvs.
86342         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86343
86344 2005-05-31  Derek Price  <derek@ximbiot.com>
86345             Paul Eggert  <eggert@cs.ucla.edu>
86346
86347         Sync from cvs.
86348         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86349
86350 2005-05-29  Derek Price  <derek@ximbiot.com>
86351
86352         * config/srclist.txt (glob_.h, glob.c): Add these files.
86353
86354 2005-05-29  Derek Price  <derek@ximbiot.com>
86355
86356         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86357         * modules/glob: New file.
86358         * modules/getlogin_r: Add link to POSIX spec in description.
86359
86360 2005-05-29  Derek Price  <derek@ximbiot.com>
86361             Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * m4/glob.m4: New file.
86364
86365 2005-05-29  Derek Price  <derek@ximbiot.com>
86366             Paul Eggert  <eggert@cs.ucla.edu>
86367
86368         * lib/glob_.h, lib/glob.c: New files.
86369
86370 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86371
86372         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86373         * modules/fts-lgpl (Depends-on): Remove gettext.
86374
86375 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86378         and don't require gt_INTTYPES_PRI.
86379
86380 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86381
86382         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86383
86384         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86385         the configuration hassle isn't worth it.
86386         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86387         (LONGEST_MODIFIER, PRIuMAX): Remove.
86388
86389 2005-05-27  Bruno Haible  <bruno@clisp.org>
86390
86391         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86392
86393 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86394
86395         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86396         _POSIX_PTHREAD_SEMANTICS for Solaris.
86397
86398 2005-05-25  Derek Price  <derek@ximbiot.com>
86399
86400         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86401
86402 2005-05-25  Derek Price  <derek@ximbiot.com>
86403             Paul Eggert  <eggert@cs.ucla.edu>
86404
86405         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86406         * lib/getlogin_r.c, getlogin_r.h: New files.
86407
86408 2005-05-25  Bruno Haible  <bruno@clisp.org>
86409             Derek Price  <derek@ximbiot.com>
86410
86411         * lib/getlogin_r.h: Simplify API documentation.
86412
86413 2005-05-23  Derek Price  <derek@ximbiot.com>
86414
86415         * modules/minmax (Files): Add m4/minmax.m4.
86416         (configure.ac): Add gl_MINMAX.
86417
86418 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86421         so that unistd-safer.h (GPL'ed code) need not be included.
86422
86423 2005-05-22  Bruno Haible  <bruno@clisp.org>
86424
86425         * m4/minmax.m4: New file.
86426         Based on a patch by Derek Price <derek@ximbiot.com>.
86427
86428 2005-05-22  Bruno Haible  <bruno@clisp.org>
86429
86430         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86431         (INT64_MIN): Fix definition.
86432         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86433
86434         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86435         NEED_SIGNED_INT_TYPES.
86436
86437         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86438         HAVE_SYSTEM_INTTYPES.
86439
86440 2005-05-22  Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86443         Also include <sys/param.h> if it defines MIN, MAX.
86444         Based on a patch by Derek Price <derek@ximbiot.com>.
86445
86446 2005-05-21  Jim Meyering  <jim@meyering.net>
86447
86448         * modules/fts (Files): Add m4/inttypes-pri.m4.
86449         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86450
86451 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86452
86453         New fts module.
86454         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86455         (setup_dir, free_dir): New functions.
86456         (enter_dir, leave_dir): Define trivial
86457         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86458         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86459         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86460         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86461         Move to fts-cycle.c.
86462         (fts_open): Use setup_dir.
86463         (fts_close): Use free_dir.
86464         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86465         This adds a label and some gotos, but the alternatives were messier.
86466         Check for memory allocation failure when entering a dir.
86467         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86468         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86469         (FTS): New member fts_cycle, that is a union that contains the
86470         old active_dir_ht and cycle_state.  All uses changed to mention
86471         fts_cycle.ht and fts_cycle.state.
86472         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86473         fts.c, with the following changes:
86474         (setup_dir, free_dir): New functions.
86475         (enter_dir): Now returns bool.  Return true if successful, false
86476         if memory exhausted.  All callers changed.
86477         Do not bother partly cleaning up on
86478         memory allocation failure; that is free_dir's job.
86479         However, free ad if hash_insert fails, to avoid memory leak.
86480         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86481         fts->fts_options to see which union member to use.
86482
86483 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86484
86485         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86486         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86487
86488 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86489
86490         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86491
86492 2005-05-20  Jim Meyering  <jim@meyering.net>
86493
86494         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86495         Now a macro, to pacify GCC.
86496
86497 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86498
86499         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86500         of -1.
86501
86502 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86503
86504         * lib/chown.c (rpl_chown): Return -1 on failure.
86505
86506 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86509         Don't check for stddef.h.
86510         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86511         don't use its results.
86512         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86513         since we include them unconditionally.  Don't require
86514         AM_STDBOOL_H, since stdbool is a prerequisite.
86515         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86516         since we assume C89 or better.
86517         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86518         as we don't use their results.
86519         Don't check for fchdir, memmove, memset, strrchr, as we use
86520         them unconditionally.
86521         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86522         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86523
86524 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86525
86526         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86527         Include <stddef.h> unconditionally, since we assume C89 now.
86528         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86529         * lib/fts.c: Include fts_.h first, to check interface.
86530         Do not include intprops.h; no longer needed.
86531         Include cycle-check.h and hash.h, since fts_.h no longer does.
86532         Remove unnecessary casts of closedir to void.
86533         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86534         decide whether to decrement nlinks.
86535         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86536         (FTS): Use struct hash_table * instead of Hash_table, so that
86537         we no longer need to include hash.h here.
86538
86539 2005-05-18  Jim Meyering  <jim@meyering.net>
86540
86541         * modules/dirfd (License): Change to LGPL.  Most of the code
86542         is already in the public domain.
86543
86544 2005-05-18  Jim Meyering  <jim@meyering.net>
86545
86546         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86547         Reported by Yoann Vandoorselaere.
86548
86549 2005-05-17  Jim Meyering  <jim@meyering.net>
86550
86551         * m4/fts.m4: New file, from coreutils.
86552
86553 2005-05-17  Jim Meyering  <jim@meyering.net>
86554
86555         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86556
86557 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86558
86559         Sync from coreutils.
86560         * m4/unlinkdir.m4: New file.
86561
86562 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86563
86564         Sync from coreutils.
86565         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86566         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86567         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86568         White space changes only.
86569         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86570         special.
86571         * lib/yesno.c: Include getline.h, not ctype.h.
86572         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86573         Use getline to remove arbitrary restriction on response length.
86574
86575 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86576
86577         * config/srclist-update: Spell out "Street" in FSF postal
86578         mail address; this is the style the FSF seems to prefer.
86579
86580         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86581         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86582         this updates FSF postal mail address.
86583
86584         Sync from coreutils.
86585         * modules/unlinkdir: New file.
86586         * modules/yesno (Depends-on): Add getline.
86587         * MODULES.html.sh (File system functions): Add unlinkdir.
86588
86589 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86590
86591         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86592         lib/strsep.h:
86593         Change the initial comment to refer to GPL, not LGPL.
86594         gnulib-tool will change it to LGPL as needed.
86595
86596         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86597         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86598         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86599         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86600         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86601         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86602         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86603         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86604         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86605         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86606         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86607         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86608         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86609         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86610         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86611         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86612         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86613         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86614         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86615         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86616         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86617         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86618         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86619         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86620         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86621         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86622         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86623         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86624         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86625         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86626         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86627         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86628         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86629         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86630         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86631         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86632         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86633         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86634         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86635         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86636         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86637         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86638         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86639         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86640         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86641         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86642         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86643         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86644         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86645         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86646         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86647         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86648         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86649         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86650         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86651         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86652         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86653         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86654         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86655         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86656         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86657         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86658         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86659         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86660         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86661         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86662         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86663         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86664         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86665         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86666         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86667         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86668         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86669         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86670         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86671         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86672         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86673         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86674         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86675         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86676         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86677         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86678         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86679         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86680         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86681         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86682         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86683         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86684         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86685         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86686         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86687         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86688         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86689         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86690         lib/yesno.c, lib/yesno.h:
86691         Update FSF postal mail address.
86692
86693 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86694
86695         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86696         tests/test-memmem.c, tests/test-stpncpy.c:
86697         Update FSF postal mail address.
86698
86699 2005-05-13  Bruno Haible  <bruno@clisp.org>
86700
86701         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86702         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86703         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86704         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86705         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86706         Add support for 64-bit integers in the MSVC compiler.
86707
86708 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86709
86710         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86711
86712 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86713
86714         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86715
86716 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86717
86718         * doc/getdate.texi (General date syntax): Don't say that date
86719         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86720         Problem reported by Nic Ferrier.
86721
86722 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86723
86724         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86725         specified in ai_socktype. Fix invalid ai_protocol
86726         check. ai_protocol is usually set to 0 or depending on
86727         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86728         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86729         ai_socktype / ai_protocol in the returned addrinfo structure.
86730
86731 2005-05-10  Simon Josefsson  <jas@extundo.com>
86732
86733         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86734         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86735
86736 2005-05-10  Karl Berry  <karl@gnu.org>
86737
86738         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86739         (from http://www.gnu.org/licenses).
86740         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86741         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86742         fdl.texi suffices.
86743
86744 2005-05-10  Karl Berry  <karl@gnu.org>
86745
86746         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86747         (COPYING.DOC): remove.
86748
86749         * config/srclist-update: new FSF address.
86750
86751 2005-05-10  Derek Price  <derek@ximbiot.com>
86752
86753         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86754         possible.
86755
86756 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86757             Bruno Haible  <bruno@clisp.org>
86758
86759         * modules/inet_ntop: New file.
86760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86761         inet_ntop.
86762
86763 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86764             Bruno Haible  <bruno@clisp.org>
86765
86766         * m4/inet_ntop.m4: New file.
86767
86768 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86769             Bruno Haible  <bruno@clisp.org>
86770
86771         * lib/inet_ntop.h: New file.
86772         * lib/inet_ntop.c: New file, from glibc with modifications.
86773
86774 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86775
86776         * modules/time_r (License): Change to LGPL.
86777         * modules/extensions (License): Change to LGPL.  Actually,
86778         the license is more permissive than that, but currently gnulib-tool
86779         doesn't know how to handle more-permissive licenses.
86780
86781         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86782         Problem reported by Dave Love.
86783
86784 2005-05-08  Jim Meyering  <jim@meyering.net>
86785
86786         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86787         blank.
86788
86789 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86790
86791         * modules/argmatch (Depends-on): Add stdbool.
86792         * modules/backupfile (Depends-on): Likewise.
86793         * modules/chdir-long (Depends-on): Likewise.
86794         * modules/closeout (Depends-on): Likewise.
86795         * modules/cycle-check (Depends-on): Likewise.
86796         * modules/dirname (Depends-on): Likewise.
86797         * modules/fnmatch (Depends-on): Likewise.
86798         * modules/fsusage (Depends-on): Likewise.
86799         * modules/fwriteerror (Depends-on): Likewise.
86800         * modules/getcwd (Depends-on): Likewise.
86801         * modules/getloadavg (Depends-on): Likewise.
86802         * modules/hard-locale (Depends-on): Likewise.
86803         * modules/makepath (Depends-on): Likewise.
86804         * modules/mountlist (Depends-on): Likewise.
86805         * modules/nanosleep (Depends-on): Likewise.
86806         * modules/posixtm (Depends-on): Likewise.
86807         * modules/quotearg (Depends-on): Likewise.
86808         * modules/readtokens (Depends-on): Likewise.
86809         * modules/readtokens0 (Depends-on): Likewise.
86810         * modules/readutmp (Depends-on): Likewise.
86811         * modules/save-cwd (Depends-on): Likewise.
86812         * modules/strftime (Depends-on): Likewise.
86813         * modules/userspec (Depends-on): Likewise.
86814         * modules/utimecmp (Depends-on): Likewise.
86815         * modules/xgetcwd (Depends-on): Likewise.
86816         * modules/xnanosleep (Depends-on): Likewise.
86817         * modules/xstrtod (Depends-on): Likewise.
86818         * modules/yesno (Depends-on): Likewise.
86819
86820 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86821
86822         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86823         needless checks.
86824
86825 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86826
86827         Merge from coreutils.  Among other things,
86828         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86829         * lib/fd-safer.c: New file.
86830         * lib/fcntl-safer.h, open-safer.c: Remove.
86831         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86832         * lib/dup-safer.c: Include unistd-safer.h first.
86833         Don't include errno.h.
86834         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86835         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86836         * lib/file-type.c: Rely on file-type.h change.
86837         * lib/getloadavg.c: Include unistd-safer.h.
86838         (getloadavg): Use safer open.
86839         * lib/getusershell.c: Include "stdio-safer.h".
86840         (getusershell): Use safer fopen.
86841         * lib/long-options.c (long_options): Use NULL rather than 0.
86842         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86843         'free'.
86844         * lib/modechange.c: Likewise.
86845         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86846         (MODE_DONE): New constant.
86847         (struct mode_change): Remove 'next' member.
86848         (make_node_op_equals): New function; like the old one of the
86849         same name, except it allocates an array.
86850         (mode_compile, mode_create_from_ref): Use it.
86851         (mode_compile): Allocate result as an array, not a linked list.
86852         Parse octal string ourself, so that we catch mistakes like "+0".
86853         (mode_adjust): Arg is an array, not a linked list.
86854         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86855         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86856         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86857         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86858         Remove.  This is now stat-macros.h's job.
86859         (talloc): Remove.  All callers replaced by xalloc, so that
86860         our invokers don't have to worry about reporting memory failures.
86861         (make_node_op_equals): Remove.
86862         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86863         New constants.
86864         (struct mode_change): Moved here from modechange.h.
86865         (mode_append_entry): Remove.
86866         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86867         apps to have incorrect behavior.  Use simpler algorithm for head
86868         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86869         Detect more invalid usages rather than having somewhat-random behavior.
86870         Don't insert an "a=" action, as that leads to incorrect behavior.
86871         (mode_compile, mode_create_from_ref): Return NULL on error instead
86872         of an enum, since now there's only one way to have an error.  All
86873         callers changed.
86874         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86875         at the correct time.  Simplify calculation of "+u" and its ilk.
86876         Don't mishandle "+X".
86877         (mode_free): Remove "register" and localize decls.
86878         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86879         (struct mode_change): Move to modechange.c; callers don't
86880         need to see this stuff.
86881         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86882         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86883         (mode_change, mode_adjust): Reflect the new signatures noted above.
86884         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86885         that might redefine system include files.
86886         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86887         (my_usleep): Use NULL rather than (void *) 0.
86888         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86889         Use siginterrupt to specify that system calls should be interrupted.
86890         (rpl_nanosleep): Move initialization of suspended closer to call of
86891         my_usleep.
86892         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86893         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86894         (desirable_utmp_entry): New function.
86895         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86896         using x2nrealloc, to simplify logic.
86897         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86898         size calculation.  Do not assume utmp file is a regular file.
86899         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86900         (READ_UTMP_CHECK_PIDS): New constant.
86901         * lib/save-cwd.c: Include unistd-safer.h.
86902         (save_cwd): Use fd_safer.
86903         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86904         [!_LIBC] Include "stat-macros.h" instead.
86905         * lib/unistd-safer.h (fd_safer): New decl.
86906
86907 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86908
86909         * modules/getloadavg (Depends-on): Add unistd-safer.
86910         * modules/getusershell (Depends-on): Add stdio-safer.
86911         * modules/lstat (Depends-on): Remove xalloc.
86912         * modules/mkstemp (Depends-on): Add stat-macros.
86913         * modules/modechange (Depends-on): Remove xstrtol.
86914         Add stat-macros, xalloc.
86915         * modules/save-cwd (Depends-on): Add unistd-safer.
86916         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86917         * modules/unistd-safer (Files): Add lib/fd-safer.c
86918         (Makefile.am): Remove lib_SOURCES.
86919
86920         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86921         Remove fcntl-safer; unistd-safer supersedes it.
86922
86923 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86924
86925         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86926         AC_HEADER_STAT.
86927         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86928         (gl_PREREQ_CHOWN): Remove.
86929         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86930         it.  Don't require AC_HEADER_STAT.
86931         (gl_PREREQ_LSTAT): Remove.
86932         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86933         Don't require AC_HEADER_STAT.
86934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86935         (gl_PREREQ_RMDIR): Remove.
86936         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86937         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86938         the stat-macros module a prerequisite.
86939         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86940         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86941         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86942         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86943         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86944         variable names.
86945         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86946         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86947         variable prefixes.
86948         * m4/fcntl-safer.m4: Remove.
86949         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86950         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86951         Invoke gl_PREREQ_FD_SAFER.
86952         (gl_PREREQ_FD_SAFER): New macro.
86953         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86954         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86955         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86956         Remove duplicate call to AC_LIBOBJ(readutmp).
86957         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86958
86959         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86960         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86961
86962 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * MODULES.html.sh (Misc): Add byteswap.
86965
86966 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86967
86968         * modules/getcwd (Depends-on): Add extensions.
86969         * modules/openat (Depends-on): Likewise.
86970
86971 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86972
86973         * modules/byteswap: New file.
86974
86975 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86976
86977         * m4/byteswap.m4: New file.
86978
86979 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86980
86981         * lib/byteswap_.h: New file.
86982
86983 2005-04-25  Karl Berry  <karl@gnu.org>
86984
86985         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86986
86987 2005-04-25  Albert Chin  <china@thewrittenword.com>
86988
86989         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86990         Toolkit C bug.
86991
86992 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86993
86994         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86995         (func_ln_if_changed): Remove forcibly for no error message
86996         in case file does not exist.
86997
86998 2005-04-19  Simon Josefsson  <jas@extundo.com>
86999
87000         * gnulib-tool (Options): Make --symlink mean --symbolic.
87001
87002 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87003
87004         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87005
87006 2005-04-16  Simon Josefsson  <jas@extundo.com>
87007
87008         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87009
87010 2005-04-15  Simon Josefsson  <jas@extundo.com>
87011
87012         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87013
87014 2005-04-15  Simon Josefsson  <jas@extundo.com>
87015
87016         * gnulib-tool: Rename --symlink to --symbolic.
87017
87018 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87019
87020         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87021         symbolic links to files instead of copying/moving.  Add --aux-dir,
87022         specifying directory relative --dir where auxiliary build tools
87023         are placed.
87024
87025 2005-04-14  Bruno Haible  <bruno@clisp.org>
87026
87027         * modules/allocsa (License): Change to LGPL.
87028         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87029
87030 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87031
87032         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87033         that "UTC +1 second" continues to work.  Problem reported
87034         by Dmitry V. Levin.
87035         (relunit_snumber): New rule.
87036         (relunit): Use it.
87037
87038 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87039
87040         * lib/getdate.y (universal_time_zone_table): New constant.
87041         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87042         universal_time_zone_table.
87043         (lookup_zone): Prefer universal_time_zone_table to
87044         local_time_zone_table, so that "GMT" time stamps are allowed in
87045         London during the summer.  Problem reported by Ian Abbott.
87046
87047 2005-04-12  Jim Meyering  <jim@meyering.net>
87048
87049         * lib/human.c (humblock): Set *options even when returning due to
87050         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87051         warning from gcc-4.
87052
87053 2005-04-09  Jim Meyering  <jim@meyering.net>
87054
87055         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87056         -Wuninitialized: initialize tm0.tm_year.
87057
87058 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87059
87060         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87061         count, since there's no maximum.  All uses changed.
87062         Add member dsts_seen.
87063         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87064         not being INT_MAX.
87065         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87066         Use pc_rels_seen to decide whether a date is absolute.
87067
87068         * lib/getdate.y (number): Don't overwrite year.
87069         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87070         check.
87071
87072 2005-04-02  Simon Josefsson  <jas@extundo.com>
87073
87074         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87075         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87076
87077 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87078
87079         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87080         where no absolute path name can be longer than PATH_MAX.
87081
87082 2005-03-27  Jim Meyering  <jim@meyering.net>
87083
87084         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87085
87086 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87089         "one's complement" -> "ones' complement" in comment, as per Knuth.
87090         "value of type" -> "type or expression" in comment.
87091         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87092
87093 2005-03-26  Jim Meyering  <jim@meyering.net>
87094
87095         Comment nits.
87096         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87097         Correct typos: s/or/of/.
87098
87099 2005-03-26  Jim Meyering  <jim@meyering.net>
87100
87101         * modules/check-include-files: Move to ../ and rename to...
87102         * check-module: ...this.
87103
87104 2005-03-25  Jim Meyering  <jim@meyering.net>
87105
87106         * modules/xvasprintf (Files): Add xalloc.h.
87107
87108 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * modules/gettext (Files): config/config.rpath ->
87111         build-aux/config.rpath
87112         * modules/iconv (Files): Likewise.
87113         Problem reported by Oskar Liljeblad.
87114
87115 2005-03-23  Jim Meyering  <jim@meyering.net>
87116
87117         * modules/check-include-files: New script to check for
87118         missing dependencies, multiple includes, etc.
87119
87120         * modules/c-strtold (Depends-on): Add xalloc.
87121         * modules/c-strtod (Depends-on): Add xalloc.
87122         * modules/hash (Depends-on): Add xalloc.
87123         (Files): Remove lib/xalloc.h.
87124
87125         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87126         * modules/userspec (Files): Add lib/inttostr.h.
87127
87128 2005-03-23  Jim Meyering  <jim@meyering.net>
87129
87130         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87131
87132 2005-03-22  Jim Meyering  <jim@meyering.net>
87133
87134         * modules/stat-macros: New module.
87135         * modules/canonicalize, modules/euidaccess, modules/file-type,
87136         * modules/filemode, modules/lchown, modules/makepath,
87137         * modules/rmdir, modules/stat: Depend on new stat-macros module
87138         rather than listing lib/stat-macros.h manually.
87139         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87140
87141 2005-03-22  Jim Meyering  <jim@meyering.net>
87142
87143         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87144
87145 2005-03-22  Bruno Haible  <bruno@clisp.org>
87146
87147         * config/srclist.txt: Replace target directory 'config' with
87148         'build-aux'.
87149         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87150         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87151         ../build-aux/.
87152
87153 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * modules/chdir-long (Depends-on): Add mempcpy.
87156
87157         * modules/acl, modules/backupfile, modules/c-strtod,
87158         modules/c-strtold, modules/canon-host, modules/canonicalize,
87159         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87160         modules/exclude, modules/exitfail, modules/file-type,
87161         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87162         modules/getdate, modules/getline, modules/getpagesize,
87163         modules/getpass, modules/getugroups, modules/group-member,
87164         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87165         modules/inttostr, modules/long-options, modules/makepath,
87166         modules/md5, modules/memcasecmp, modules/memcoll,
87167         modules/modechange, modules/mountlist, modules/path-concat,
87168         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87169         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87170         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87171         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87172         modules/strftime, modules/strndup, modules/strverscmp,
87173         modules/timespec, modules/unlocked-io, modules/userspec,
87174         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87175         modules/yesno:
87176         Remove lib_SOURCES line from Makefile.am section, as this is now
87177         done automatically by the corresponding Autoconf macro.
87178
87179 2005-03-21  Jim Meyering  <jim@meyering.net>
87180
87181         Changes imported from coreutils.
87182
87183         * lib/cycle-check.c: Don't include xalloc.h.
87184
87185         * lib/path-concat.c: Don't include assert.h.
87186         (path_concat): Remove assertion that would have triggered
87187         for ABASE starting with more than one slash.
87188         Reported by Andreas Schwab.
87189
87190         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87191         properly when ABASE is an absolute file name.
87192         Correct the description of this function.
87193         Include <assert.h>.
87194         Add an assertion and a test driver.
87195         This fixes a bug introduced on 2004-07-02.
87196         Andreas Schwab reported the resulting failure of cp --parents:
87197         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87198
87199 2005-03-21  Jim Meyering  <jim@meyering.net>
87200
87201         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87202         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87203
87204 2005-03-21  Jim Meyering  <jim@meyering.net>
87205         and  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87208         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87209         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87210         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87211         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87212         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87213         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87214         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87215         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87216         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87217         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87218         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87219         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87220         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87221         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87222         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87223         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87224         for these modules.
87225
87226 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87229         (which shouldn't happen), generate nothing instead of returning 0
87230         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87231
87232 2005-03-16  Bruno Haible  <bruno@clisp.org>
87233
87234         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87235         HAVE_LONGLONG_64BIT.
87236
87237 2005-03-16  Bruno Haible  <bruno@clisp.org>
87238
87239         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87240         HAVE_LONGLONG_64BIT.
87241
87242 2005-03-16  Bruno Haible  <bruno@clisp.org>
87243
87244         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87245         HAVE_LONGLONG_64BIT.
87246
87247 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87248
87249         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87250         reliably distinguish strftime failure from empty output on POSIX
87251         hosts.
87252
87253 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87254
87255         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87256         (iconv_string): Don't guess a size-zero buffer, as that might cause
87257         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87258         result would be 'too large', where 'too large' is (heuristically)
87259         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87260         overflow concerns.  This will prevent some unwanted malloc failures
87261         when the inputs are very large.
87262
87263 2005-03-15  Karl Berry  <karl@gnu.org>
87264
87265         * config/srclist.txt (config.rpath): from gettext.
87266         * config/config.rpath: update.
87267
87268 2005-03-15  Bruno Haible  <bruno@clisp.org>
87269
87270         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87271         to 'negate'.
87272
87273         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87274         variable.
87275
87276         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87277         results.
87278
87279 2005-03-14  Simon Josefsson  <jas@extundo.com>
87280
87281         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87282         <fx@gnu.org>.
87283
87284 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87287         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87288         intprops.h.
87289         * lib/strtol.c: Likewise.
87290
87291 2005-03-14  Jim Meyering  <jim@meyering.net>
87292
87293         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87294         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87295         to be nonzero so that we (and caller) can detect the difference
87296         between a valid zero-length expansion and an error return, even
87297         when the underlying strftime fails before writing anything into
87298         that location.
87299
87300 2005-03-14  Bruno Haible  <bruno@clisp.org>
87301
87302         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87303         Update from GNU gettext 0.14.3.
87304
87305 2005-03-10  Jim Meyering  <jim@meyering.net>
87306
87307         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87308
87309 2005-03-10  Jim Meyering  <jim@meyering.net>
87310
87311         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87312         so that this module works on systems without fchdir.
87313
87314 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         Factor int-properties macros into a single file, except for
87317         glibc-related files.
87318         * lib/intprops.h: New file.
87319         * lib/getloadavg.c: Include it instead of limits.h.
87320         (INT_STRLEN_BOUND): Remove.
87321         * lib/human.c: Include intprops.h.
87322         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87323         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87324         302/1000.
87325         * lib/inttostr.h: Include intprops.h instead of limits.h.
87326         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87327         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87328         for consistency with intprops.h.
87329         (time_t_is_integer, twos_complement_arithmetic): Use them.
87330         * lib/sig2str.h: Include <signal.h>, intprops.h.
87331         (INT_STRLEN_BOUND): Remove.
87332         * lib/strftime.c (TYPE_SIGNED): Remove.
87333         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87334         * lib/strtol.c: Adjust comments to match intprops.h.
87335         * lib/userspec.c: Include intprops.h.
87336         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87337         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87338         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87339         instead of rolling our own expressions.
87340         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87341
87342         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87343         instead of int.
87344         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87345         the right thing even if adding 1900 would overflow.  Similarly
87346         for tm_mon + 1 and tm_yday + 1.
87347         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87348         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87349         (DO_SIGNED_NUMBER): New macro.
87350         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87351
87352 2005-03-07  Bruno Haible  <bruno@clisp.org>
87353
87354         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87355
87356 2005-03-07  Bruno Haible  <bruno@clisp.org>
87357
87358         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87359
87360 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87361
87362         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87363         (func_import): Only replace files via --import when they have actually
87364         changed.
87365
87366 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87367
87368         * m4/mmap-anon.m4: New file.
87369         * m4/pagealign_alloc.m4: New file.
87370
87371 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87372             Bruno Haible  <bruno@clisp.org>
87373
87374         * modules/pagealign_alloc: New file.
87375         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87376
87377 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87378             Bruno Haible  <bruno@clisp.org>
87379
87380         * lib/pagealign_alloc.h: New file.
87381         * lib/pagealign_alloc.c: New file.
87382
87383 2005-03-03  Bruno Haible  <bruno@clisp.org>
87384
87385         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87386         Use an all-permissive copyright notice, recommended by RMS.
87387
87388 2005-03-02  Bruno Haible  <bruno@clisp.org>
87389
87390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87391         of AIX, the replacement has to be done only after <string.h> is
87392         included, therefore not in config.h. stpncpy.h does the replacement,
87393         and stpncpy.c uses it.
87394
87395 2005-03-02  Bruno Haible  <bruno@clisp.org>
87396
87397         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87398         stpncpy.c uses it.
87399
87400 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87401
87402         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87403         The workaround isn't strictly needed for POSIX conformance, and
87404         it's too much of a pain to configure and maintain.  We'll ask
87405         people to fix their kernels instead.
87406         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87407         (NANOSLEEP_BUG_WORKAROUND): Remove.
87408         (xnanosleep): Remove the workaround.
87409
87410 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87411
87412         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87413         Reported by Derek Price.
87414         (Include): Add "timespec.h".
87415
87416         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87417
87418 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87419
87420         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87421         to detect nanosleep bug.
87422
87423 2005-03-01  Bruno Haible  <bruno@clisp.org>
87424
87425         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87426
87427 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87428
87429         * modules/gethrxtime: New file.
87430         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87431         (Depends-on): Add gethrxtime.
87432         (configure.ac): Add gl_XNANOSLEEP.
87433         (Makefile.am): Remove lib_SOURCES line.
87434
87435 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87436
87437         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87438         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87439
87440 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87441
87442         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87443         * lib/timespec.h (gettime): Return void, since it always
87444         succeeds now.  All uses changed.
87445         * lib/gettime.c (gettime): Likewise.
87446         [HAVE_NANOTIME]: Prefer nanotime.
87447         Assume gettimeofday succeeds, as POSIX requires.
87448         Assime time () succeeds, since other code already does.
87449         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87450         (timespec_subtract): Remove.
87451         (NANOSLEEP_BUG_WORKAROUND): New constant.
87452         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87453         things considerably.  Use it only on GNU/Linux hosts, since the
87454         workaround shouldn't be needed elsewhere.
87455
87456 2005-02-24  Bruno Haible  <bruno@clisp.org>
87457
87458         * modules/gettext (Files): Add m4/glibc2.m4.
87459
87460 2005-02-24  Bruno Haible  <bruno@clisp.org>
87461
87462         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87463         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87464         * m4/progtest.m4:
87465         Update from GNU gettext 0.14.2.
87466         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87467
87468 2005-02-24  Bruno Haible  <bruno@clisp.org>
87469
87470         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87471         * lib/config.charset: Update from GNU gettext 0.14.2.
87472
87473 2005-02-24  Bruno Haible  <bruno@clisp.org>
87474
87475         * lib/gettext.h: Update from GNU gettext 0.14.2.
87476
87477 2005-02-23  Simon Josefsson  <jas@extundo.com>
87478
87479         * m4/iconvme.m4: New file.
87480
87481 2005-02-23  Jim Meyering  <jim@meyering.net>
87482
87483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87484         change.
87485         Thanks to Bruno Haible for catching it.
87486
87487 2005-02-22  Simon Josefsson  <jas@extundo.com>
87488
87489         * modules/iconvme: New file.
87490
87491         * MODULES.html.sh: Add iconvme.
87492
87493 2005-02-22  Simon Josefsson  <jas@extundo.com>
87494
87495         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87496
87497 2005-02-22  Simon Josefsson  <jas@extundo.com>
87498
87499         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87500
87501 2005-02-22  Jim Meyering  <jim@meyering.net>
87502
87503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87504         s/ifndef/ifdef/.
87505
87506 2005-02-20  Neil Conway  <neilc@samurai.com>
87507
87508         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87509         returned by OSX/Darwin if the specified buffer is not large
87510         enough for the hostname.
87511
87512 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87513
87514         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87515         pass it to _help, otherwise the latter coredumps trying to
87516         dereference state.root_argp.
87517
87518 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87519
87520         * modules/chdir-long (Depends-on): Add memrchr.
87521         * modules/memrchr (Files): Add lib/memrchr.h.
87522         (Include): "memrchr.h".
87523
87524 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87525
87526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87527
87528 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87529
87530         * lib/memrchr.h: New file.
87531         * lib/chdir-long.c: Include it.
87532         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87533         Don't bother including stddef.h.
87534
87535 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87538         inclusion.
87539         Include <sys/types.h>, for dev_t.
87540         (ME_DUMMY, ME_REMOTE): Move from here....
87541         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87542         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87543         Dmitry V. Levin.
87544         Include mountlist.h first, to test the interface.
87545
87546 2005-01-29  Bruno Haible  <bruno@clisp.org>
87547
87548         * lib/progname.c (program_name): Initialize.
87549         Needed when linking statically on MacOS X.
87550
87551 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87552
87553         Sync from coreutils.
87554         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87555         (Depends-on): Add c-strtod.
87556         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87557
87558 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87559
87560         Sync from coreutils.
87561         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87562
87563         Remove files that are specific to coreutils.
87564         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87565
87566 2005-01-28  Bruno Haible  <bruno@clisp.org>
87567
87568         * modules/javacomp: New file.
87569         * MODULES.html.sh (Java): Add javacomp.
87570
87571 2005-01-28  Bruno Haible  <bruno@clisp.org>
87572
87573         * m4/javacomp.m4: New file, from GNU gettext.
87574
87575 2005-01-28  Bruno Haible  <bruno@clisp.org>
87576
87577         * lib/javacomp.sh.in: New file, from GNU gettext.
87578         * lib/javacomp.h: New file, from GNU gettext.
87579         * lib/javacomp.c: New file, from GNU gettext.
87580
87581 2005-01-26  Simon Josefsson  <jas@extundo.com>
87582
87583         * lib/gai_strerror.c: Use GPL in header.
87584
87585 2005-01-26  Bruno Haible  <bruno@clisp.org>
87586
87587         * modules/javaexec: New file.
87588         * MODULES.html.sh (Java): Add javaexec.
87589
87590 2005-01-26  Bruno Haible  <bruno@clisp.org>
87591
87592         * m4/javaexec.m4: New file, from GNU gettext.
87593
87594 2005-01-26  Bruno Haible  <bruno@clisp.org>
87595
87596         * lib/javaexec.sh.in: New file, from GNU gettext.
87597         * lib/javaexec.h: New file, from GNU gettext.
87598         * lib/javaexec.c: New file, from GNU gettext.
87599
87600 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87601
87602         * modules/lchown (Depends-on): Remove lchown.h
87603
87604 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87605
87606         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87607         must be defined if the header file was not found, in order
87608         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87609
87610 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87611
87612         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87613         initializers for struct pentry_state.
87614         (__argp_error): Check return value of __asprintf
87615         (__argp_failure): Translate error message
87616
87617         * lib/argp-parse.c: Removed braces around the expansion of N_()
87618
87619 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87620
87621         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87622         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87623         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87624         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87625         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87626         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87627         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87628         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87629         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87630         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87631         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87632         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87633         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87634         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87635         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87636         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87637         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87638         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87639         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87640         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87641         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87642         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87643         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87644         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87645         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87646         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87647         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87648         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87649         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87650         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87651         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87652         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87653         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87654         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87655         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87656         Use an all-permissive copyright notice, recommended by RMS.
87657
87658 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87659
87660         * modules/chdir-long (Depends-on): Remove mempcpy.
87661
87662 2005-01-21  Jim Meyering  <jim@meyering.net>
87663
87664         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87665         same value as for Solaris 9.
87666
87667         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87668         component length.  This included changing the parameter to be
87669         of type `char *' rather than `char const *'.
87670         * lib/chdir-long.h (chdir_long): Update prototype.
87671
87672         * lib/openat.c (fdopendir, fstatat): New functions.
87673         * lib/openat.h: Include headers required for use of DIR and struct
87674         stat.
87675         [AT_SYMLINK_NOFOLLOW]: Define.
87676         (fdopendir, fstatat): Add prototypes.
87677
87678 2005-01-21  Bruno Haible  <bruno@clisp.org>
87679
87680         * modules/classpath: New file.
87681         * MODULES.html.sh (Java): Add classpath.
87682
87683 2005-01-21  Bruno Haible  <bruno@clisp.org>
87684
87685         * lib/classpath.h: New file, from GNU gettext.
87686         * lib/classpath.c: New file, from GNU gettext.
87687
87688 2005-01-20  Simon Josefsson  <jas@extundo.com>
87689
87690         * modules/version-etc-fsf: New file.
87691
87692 2005-01-20  Simon Josefsson  <jas@extundo.com>
87693
87694         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87695         * lib/version-etc.c: Remove version_etc_copyright.
87696         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87697         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87698
87699 2005-01-20  Simon Josefsson  <jas@extundo.com>
87700
87701         * lib/base64.h (isbase64): Add.
87702
87703         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87704         using a unsigned prototype, don't inline.
87705         (base64_decode): Use it.
87706
87707 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87708
87709         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87710         it.
87711
87712 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87713
87714         * lib/save-cwd.c (save_cwd): Remove code to support the case
87715         where fchdir is missing or flaky.
87716
87717 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87718
87719         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87720
87721 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87722
87723         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87724         AC_LIBSOURCES now does this.
87725         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87726         with new ullong_max module.
87727
87728 2005-01-19  Bruno Haible  <bruno@clisp.org>
87729
87730         * modules/sh-quote: New file.
87731         * MODULES.html.sh (Executing programs): Add sh-quote.
87732
87733 2005-01-19  Bruno Haible  <bruno@clisp.org>
87734
87735         * lib/sh-quote.h: New file, from GNU gettext.
87736         * lib/sh-quote.c: New file, from GNU gettext.
87737
87738 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87739
87740         Merge from coreutils.
87741         * m4/ullong_max.m4: New file.
87742         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87743         (gl_MACROS): Assume localeconv exists.
87744
87745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87746
87747         Merge changes from coreutils, as described below in several
87748         changelogs dated today.
87749
87750         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87751         (O_DIRECTORY): Remove; not needed here, since "." must be
87752         a directory.  All uses removed.
87753         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87754         universal on Suns, and we also need to test for IRIX.
87755         Revamp code to use 'if' rather than '#if'.
87756         Avoid unnecessary comparison of cwd->desc to 0.
87757
87758         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87759         for known valid error numbers rather than observed invalid ones.
87760
87761 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         * modules/ullong_max: New file.
87764
87765         * modules/chdir-long, modules/openat: New files.
87766         * modules/save-cwd (Depends-on): Depend on chdir-long.
87767         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87768
87769 2005-01-18  Jim Meyering  <jim@meyering.net>
87770
87771         Merge from coreutils.
87772         * m4/chdir-long.m4, m4/openat.m4: New files.
87773         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87774         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87775         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87776         is sane and DOES follow symlinks.  Besides, testing 20 different
87777         systems found no broken chown implementations.
87778         Prompted by a change in rsync's copy of this macro.
87779         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87780
87781         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87782
87783         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87784         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87785         NULL-means-set-to-current-time semantics.
87786         Remove temporary file immediately, rather than waiting
87787         for configure's at-exit trap code to do it.
87788
87789 2005-01-18  Jim Meyering  <jim@meyering.net>
87790
87791         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87792
87793         * lib/utimens.c (futimens): Account for the fact that futimes
87794         can also fail with errno == ENOSYS or errno == ENOENT.
87795         Patch from Dmitry V. Levin.
87796
87797         Change the name of the robust chdir function from chdir to chdir_long.
87798         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87799         (restore_cwd): Use chdir_long, not chdir.
87800         * lib/chdir-long.c: Renamed from chdir.c.
87801         * lib/chdir-long.h: Renamed from chdir.h.
87802         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87803         Hurd.
87804
87805 2005-01-18  Bruno Haible  <bruno@clisp.org>
87806
87807         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87808         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87809         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87810         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87811         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87812         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87813         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87814         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87815         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87816         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87817         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87818         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87819         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87820         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87821         Use an all-permissive copyright notice, recommended by RMS.
87822
87823 2005-01-18  Bob Proulx  <bob@proulx.com>
87824
87825         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87826         simplify offsetof() macro construct to avoid compile failure with
87827         native HP-UX 11.0 ANSI C compiler.
87828
87829 2005-01-17  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87832         redundant because stpncpy.m4 takes care of it.
87833
87834 2005-01-17  Bruno Haible  <bruno@clisp.org>
87835
87836         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87837
87838 2005-01-17  Bruno Haible  <bruno@clisp.org>
87839
87840         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87841         used.
87842
87843 2005-01-17  Bruno Haible  <bruno@clisp.org>
87844
87845         * lib/fwriteerror.h (fwriteerror): Change specification to include
87846         fclose.
87847         * lib/fwriteerror.c: Include <stdbool.h>.
87848         (fwriteerror): At the end, close the file stream. Record whether
87849         stdout was already closed.
87850
87851 2005-01-17  Bruno Haible  <bruno@clisp.org>
87852
87853         * lib/execute.c (environ): Declare if needed.
87854         * lib/pipe.c (environ): Likewise.
87855         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87856
87857 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87858
87859         * modules/argp: Depend on vsnprintf
87860
87861 2005-01-10  Jim Meyering  <jim@meyering.net>
87862
87863         * modules/closeout (Depends-on): Add atexit.
87864
87865 2005-01-06  Bruno Haible  <bruno@clisp.org>
87866
87867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87868
87869 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87872         definitions to be after all include files, to avoid collisions.
87873         Problem reported by Bob Proulx.
87874
87875 2005-01-04  Jim Meyering  <jim@meyering.net>
87876
87877         Changes imported from coreutils.
87878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87879         as the mkstemp template, use a temporary directory and an
87880         8.3-friendly template to avoid trouble on systems like DJGPP.
87881         Reported by Juan M. Guerrero via Stepan Kasal.
87882         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87883         close. Remove the temporary directory right away, rather than waiting
87884         for configure's at-exit trap code to do it.
87885         Suggestion from Stepan Kasal.
87886
87887 2005-01-01  Simon Josefsson  <jas@extundo.com>
87888
87889         * gnulib-tool: Print #include directives when --import'ing.
87890
87891 2004-12-28  Simon Josefsson  <jas@extundo.com>
87892
87893         * tests/test-base64.c: Include required header files.  Remove
87894         unused variables.
87895
87896 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87897
87898         * modules/error (Depends-on): Remove gettext.
87899
87900 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87901
87902         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87903         not needed.  This removes a dependency on the gettext module.
87904         [defined _LIBC]: Do not include <libintl.h>; not needed.
87905
87906 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87909         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87910
87911 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87912
87913         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87914         HAVE_DECL_STRTOLD.
87915
87916 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87917
87918         * modules/getdate (Depends-on): Remove alloca-opt.
87919
87920 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87923
87924 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87925
87926         * lib/argp-parse.c: Include <stddef.h>.
87927         (alignof, alignto): New macros.
87928         (parser_init): Don't assume that void * is aligned sufficiently
87929         for struct option.
87930
87931         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87932         need to extend the stack.
87933         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87934         large.
87935
87936 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87937
87938         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87939
87940 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87943         (2004-10-24) change.  Apparently this was a false alarm.
87944
87945         * modules/getdate: Depend on alloca-opt, not alloca.
87946
87947 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87948
87949         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87950         Remove now-obsolete comment about AIX.
87951         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87952         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87953         (YYMAXDEPTH): New macro.
87954
87955 2004-12-18  Simon Josefsson  <jas@extundo.com>
87956
87957         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87958
87959 2004-12-18  Bruno Haible  <bruno@clisp.org>
87960
87961         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87962
87963 2004-12-18  Bruno Haible  <bruno@clisp.org>
87964
87965         * lib/fatal-signal.c (fatal_signals): Make non-const.
87966         (init_fatal_signals): New function.
87967         (uninstall_handlers, install_handlers): Ignore signals that were set to
87968         SIG_IGN.
87969         (at_fatal_signal): Call init_fatal_signals.
87970         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87971         SIG_IGN.
87972         Reported by Paul Eggert.
87973
87974 2004-12-18  Bruno Haible  <bruno@clisp.org>
87975
87976         * doc/alloca.texi: New file.
87977         * doc/alloca-opt.texi: New file.
87978
87979 2004-12-17  Jim Meyering  <jim@meyering.net>
87980
87981         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87982         Otherwise, install-sh could exit with improper exit status when
87983         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87984
87985 2004-12-16  Simon Josefsson  <jas@extundo.com>
87986
87987         * tests/test-base64.c: Add license.
87988
87989 2004-12-15  Stepan Kasal  <address@hidden>
87990
87991         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87992
87993 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87994
87995         * modules/getcwd (Files): Add m4/d-ino.m4.
87996         Suggested by Mark D. Baushke.
87997
87998 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         * lib/getdate.y (textint): New member "negative".
88001         (time_zone_hhmm): New function.
88002         Expect 14 shift-reduce conflicts, not 13.
88003         (o_colon_minutes): New rule.
88004         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88005         (yylex): Set the "negative" member of signed numbers.
88006
88007 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88008
88009         * doc/getdate.texi (Time of day items, Time zone items):
88010         Describe new formats +00:00, UTC+00:00.
88011
88012 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88013
88014         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88015         spurious "-l"s.  Problem reported by Stepan Kasal.
88016
88017 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88018
88019         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88020         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88021
88022 2004-12-04  Simon Josefsson  <jas@extundo.com>
88023
88024         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88025         Vandoorselaere <yoann@prelude-ids.org>.
88026
88027 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88028
88029         Changes imported from coreutils.
88030         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88031         exist.
88032         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88033
88034 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88035
88036         Changes imported from coreutils.
88037         * lib/hard-locale.c: Assume <locale.h> exists.
88038         Include "strdup.h".
88039         (GLIBC_VERSION): New macro.
88040         (hard_locale): Assume setlocale exists.
88041         Rewrite to avoid #ifdef.
88042         Use strdup rather than malloc + strcpy.
88043         * lib/human.c: Assume <locale.h> exists.
88044         (human_readable): Assume localeconv exists.
88045
88046 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88047
88048         * modules/hard-locale (Depends-on): Add strdup.
88049
88050 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88051
88052         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88053         convert T2, not T.  (Imported from libc.)
88054
88055 2004-11-30  Simon Josefsson  <jas@extundo.com>
88056
88057         * modules/restrict (License): Change to LGPL.
88058
88059 2004-11-30  Simon Josefsson  <jas@extundo.com>
88060
88061         * m4/restrict.m4: Add copyright and copying conditions.
88062
88063 2004-11-30  Simon Josefsson  <jas@extundo.com>
88064
88065         * m4/base64.m4: New file.
88066
88067 2004-11-30  Simon Josefsson  <jas@extundo.com>
88068
88069         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88070         base64.
88071
88072         * tests/test-base64.c: New file.
88073
88074         * modules/base64: New file.
88075
88076 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88079         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88080
88081         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88082
88083 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88084
88085         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88086         (__getcwd.c): Don't restore errno; glibc doesn't.
88087         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88088         first, falling back to our code only if its results look suspicious.
88089         Ensure that the resulting buffer is only as large as necessary.
88090
88091         * lib/readutmp.c: Include readutmp.h first.
88092         Include <errno.h>, since readutmp.h no longer does that.
88093         * lib/readutmp.h: Don't include <errno.h>,
88094         <sys/param.h>, <time.h>; not needed to establish interface.
88095         (errno): Remove decl.
88096         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88097         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88098         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88099
88100 2004-11-28  Simon Josefsson  <jas@extundo.com>
88101
88102         * lib/base64.h, base64.c: New file.
88103
88104 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88105
88106         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88107
88108 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88109
88110         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88111         (Depends-on): Remove pathmax, same.  Add mempcpy.
88112         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88113         (Makefile.am): Append getcwd.h to lib_SOURCES.
88114         (Include): Add getcwd.h.
88115         (Maintainer): Change from Jim Meyering to "all, glibc",
88116         since getdate now uses intended-for-glibc code.
88117         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88118         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88119
88120 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88121
88122         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88123         HP's ANSI C compiler.
88124         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88125         Declaring int functions causes warnings on some modern systems and
88126         shouldn't be needed to compile on ancient ones.
88127         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88128         defined.
88129
88130         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88131         with the following changes.
88132         (__set_errno): Parenthesize properly.
88133         Include <stdbool.h>.
88134         (MIN, MAX, MATCHING_INO): New macros.
88135         (__getcwd): Define with prototype, not K&R form.
88136         Use heuristics to allocate default buffer on stack if possible.
88137         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88138         behavior, and to avoid the PATH_MAX limit when computing
88139         ../../../../...
88140         Use MATCHING_INO to compare inode number to file.
88141         Check for arithmetic overflow in size calculations.
88142         Fix bug in reallocation of dot array that caused getcwd to fail
88143         on directories nested deeper than 75.
88144         Be more careful about saving errno on error.
88145         Do not use realloc; use only free+malloc, as this is a bit
88146         more flexible and avoids a needless copy operation.
88147         Do not inspect st_dev and st_ino for symbolic links; POSIX
88148         doesn't specify the latter.
88149         Check for closedir errors.
88150         Avoid needless casts.
88151         Use "#ifdef weak_alias" around weak_alias, to be like other
88152         glibc code.
88153         The following changes to getcwd.c have effect only when used in
88154         gnulib; they have no effect inside glibc proper.
88155         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88156         as alloca isn't used.
88157         (alloca, __alloca): Likewise.
88158         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88159         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88160         unconditionally, as gnulib assumes C89 or better.
88161         Do not include <sys/param.h>.
88162         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88163         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88164         better.
88165         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88166         Include <dirent.h> in a way that is compatible with modern Autoconf.
88167         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88168         New macros, if not already defined.
88169         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88170         Use "_LIBC", not "defined _LIBC", for consistency.
88171         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88172         a mempcpy module.
88173         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88174         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88175         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88176         credit only to Jim Meyering and adjust the copyright dates.
88177         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88178         <stdlib.h>, <unistd.h>, "pathmax.h".
88179         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88180         (INITIAL_BUFFER_SIZE): Remove.
88181         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88182
88183 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88184
88185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88186         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88187         Use the _ONCE methods, for efficiency.
88188         Check for fcntl.h.  In test program, include <errno.h>
88189         and <fcntl.h> if available.  Remove old K&R cruft from
88190         test program.  Check for common errors in GNU/Linux,
88191         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88192         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88193         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88194         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88195         name accordingly.
88196         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88197         accommodate new getcwd.c.
88198         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88199         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88200         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88201         that's all we need now.
88202
88203 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88204
88205         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88206         argp-parse.c depends on getopt internals, that means we should
88207         always use our getopt, to be on the safe side.
88208         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88209         order not to spoil the result of an eventual previous invocation
88210         of gl_GETOPT_SUBSTITUTE.
88211
88212 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88213
88214         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88215         redefinition warnings. To avoid them, include the defines
88216         in `#if !defined __need_getopt ... #endif'. The only place
88217         where __getopt_argv_const is used is in definitions
88218         of getopt_long and getopt_long_only below, which are as well
88219         protected by `#ifndef __need_getopt'.
88220         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88221         __need_getopt after including <stdio.h> and <unistd.h> These
88222         headers might have defined it.
88223
88224 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88225
88226         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88227
88228 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88229
88230         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88231         (futimens): New function, which uses futimes if available.
88232         (futimens, utimens): Support timespec==NULL, with same semantics
88233         as utime and utimens.
88234         * lib/utimens.h (futimens): New decl.
88235
88236 2004-11-23  Jim Meyering  <jim@meyering.net>
88237
88238         * lib/getopt_.h: Remove trailing blanks.
88239
88240 2004-11-23  Jim Meyering  <jim@meyering.net>
88241
88242         * lib/__fpending.c: Add comment.
88243
88244 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * modules/canonicalize (Depends-on): Add xreadlink.
88247         Problem reported by James Youngman.
88248
88249 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88250
88251         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88252         New macros.
88253         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88254         optopt): Use them instead of invoking ## directly; otherwise, the
88255         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88256
88257 2004-11-19  Bruno Haible  <bruno@clisp.org>
88258
88259         * lib/strtok_r.c: Move comments from here...
88260         * lib/strtok_r.h: ... to here.
88261
88262 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88265         implementations that mishandle size_t overflow.
88266
88267 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88268
88269         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88270         might fail.  Problem reported by Yoann Vandoorselaere.
88271         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88272         implementations that mishandle size_t overflow.
88273
88274 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * modules/canon-host (Depends-on): Add strdup.
88277
88278 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88279
88280         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88281
88282 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88283
88284         * lib/canon-host.c: Include "strdup.h".
88285         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88286         Use strdup instead of malloc/strcpy to duplicate strings.
88287
88288         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88289         (human_space_before_unit): New constant.
88290         * lib/human.c (human_readable): Support it.
88291
88292         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88293         (xgetcwd): Set errno correctly when failing.
88294         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88295         the failure is actually due to a PATH_MAX problem.
88296
88297         Further getopt changes to make it more likely that glibc will
88298         buy the changes back.
88299         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88300         (getopt): Use it, so to preserve glibc semantic
88301         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88302         when compiling for libc.
88303         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88304         (getopt_long, getopt_long_only): Use it.
88305
88306         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88307         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88308         (getopt): Argv is now char * const *, as per standard.
88309         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88310         not char *__getopt_argv_const *.
88311         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88312         _getopt_long_only_r): Likewise.
88313         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88314         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88315         _getopt_long_r, _getopt_long_only_r): Likewise.
88316         * lib/getopt_.h (__getopt_argv_const): Remove.
88317         (getopt): Argv is now char * const *, as per standard.
88318
88319         * lib/getdate.y (tORDINAL): New token.
88320         (day, relunit): Allow it for relative times.
88321         (relative_time_table): Use tORDINAL for ordinals.
88322
88323 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88324
88325         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88326         Document that "second" isn't allowed as an ordinal number.
88327
88328 2004-11-16  Jim Meyering  <jim@meyering.net>
88329
88330         * modules/closeout (Depends-on): Add fpending.
88331
88332 2004-11-15  Jim Meyering  <jim@meyering.net>
88333
88334         * lib/closeout.c: Include "__fpending.h" once again.
88335         Include <stdbool.h>.
88336         (close_stdout): Don't fail just because stdout was closed initially,
88337         since some programs don't write to stdout in the normal course of
88338         operation (other than --version and --help), and we don't want this
88339         function to make e.g. `touch file >&-' fail.
88340         But do fail if it was closed and someone has tried to write to it.
88341         E.g., `printf foo >&-' must fail.
88342
88343 2004-11-13  Jim Meyering  <jim@meyering.net>
88344
88345         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88346
88347 2004-11-12  Simon Josefsson  <jas@extundo.com>
88348
88349         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88350         small doc fix is still pending.
88351
88352 2004-11-11  Simon Josefsson  <jas@extundo.com>
88353
88354         * modules/strtok_r: New file.
88355
88356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88357         strtok_r.
88358
88359 2004-11-11  Simon Josefsson  <jas@extundo.com>
88360
88361         * m4/strtok_r.m4: New file.
88362
88363         * m4/getopt.m4: Replace opterr.
88364
88365 2004-11-11  Simon Josefsson  <jas@extundo.com>
88366
88367         * lib/strtok_r.h, strtok_r.c: New file.
88368
88369 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88370
88371         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88372         of replacing opterr, getopt, etc.  This should handle the
88373         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88374
88375 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88376
88377         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88378         we can stop lying to compilers about the constness of argv when we
88379         are compiled outside glibc.
88380         (getopt, getopt_long, getopt_long_only): Use it.
88381         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88382         _getopt_internal, getopt): Likewise.
88383         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88384         _getopt_long_only_r): Likewise.
88385         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88386         _getopt_long_r, _getopt_long_only_r): Likewise.
88387
88388         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88389         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88390         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88391         the other external symbols.
88392         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88393         declaration, since the above renaming now works around collisions.
88394
88395 2004-11-11  Jim Meyering  <jim@meyering.net>
88396
88397         * lib/linebreak.c: Remove trailing blanks.
88398         * lib/alloca_.h: Likewise.
88399         * lib/acosl.c: Likewise.
88400         * lib/euidaccess.c: Likewise.
88401         * lib/allocsa.h: Likewise.
88402
88403 2004-11-10  Simon Josefsson  <jas@extundo.com>
88404
88405         * m4/getaddrinfo.m4: New file.
88406
88407 2004-11-10  Simon Josefsson  <jas@extundo.com>
88408
88409         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88410
88411 2004-11-10  Simon Josefsson  <jas@extundo.com>
88412
88413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88414         getaddrinfo.
88415
88416         * modules/getaddrinfo: New file.
88417
88418 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88419
88420         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88421
88422 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88423
88424         * lib/mktime.c (SHR): New macro, which is a portable
88425         substitute for >> that should work even on Crays.
88426         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88427         Problem reported by Mark D. Baushke in
88428         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88429         * lib/getdate.y (SHR): Likewise.
88430         (tm_diff): Use it.
88431         * lib/strftime.c (SHR): Likewise.
88432         (tm_diff): Use it.
88433         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88434         quote_these_too, so that right shifts are well defined.  All uses
88435         changed.
88436
88437 2004-11-10  Jim Meyering  <jim@meyering.net>
88438
88439         Ensure that no close failure goes unreported.
88440         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88441         return early when it seems there's nothing to flush.
88442         Don't include __fpending.h.
88443
88444 2004-11-10  Jim Meyering  <jim@meyering.net>
88445
88446         * modules/closeout (Depends-on): Remove fpending.
88447
88448 2004-11-10  Jim Meyering  <jim@meyering.net>
88449
88450         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88451
88452 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88453
88454         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88455         gl_FUNC_STRFTIME.
88456         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88457         and AC_REQUIRE when possible, to avoid duplicate checks.
88458         Check for <wchar.h>.
88459
88460 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88463
88464 2004-11-09  Bruno Haible  <bruno@clisp.org>
88465
88466         * m4/sockpfaf.m4: New file.
88467
88468 2004-11-05  Bruno Haible  <bruno@clisp.org>
88469
88470         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88471         Reported by Mark D. Baushke <mdb@cvshome.org>.
88472
88473 2004-11-04  Bruno Haible  <bruno@clisp.org>
88474
88475         2004-09-11  Bruno Haible  <bruno@clisp.org>
88476                 * allocsa.valgrind: New file.
88477         2004-02-06  Bruno Haible  <bruno@clisp.org>
88478                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88479                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88480                 Reported by Christopher Seip <chris.seip@hp.com>.
88481
88482 2004-11-04  Bruno Haible  <bruno@clisp.org>
88483
88484         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88485         (Makefile.am): Distribute it.
88486
88487 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88488
88489         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88490         with errno == ERANGE if the buffer is too small.
88491         Problem reported by Mark D. Baushke.
88492
88493 2004-11-03  Albert Chin  <china@thewrittenword.com>
88494             Paul Eggert  <eggert@cs.ucla.edu>
88495
88496         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88497         equivalent, substitute $ac_type for equivalent type rather than
88498         blindly using uint32_t *always* which won't work if uint32_t is not
88499         available.  Define _UINT32_T to work around typedef of uint32_t if
88500         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88501         2.5.1.
88502
88503 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88504
88505         * m4/jm-macros.m4: Sync from coreutils.
88506         (gl_MACROS): Check for mbrlen, for pathchk.
88507         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88508
88509 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88510
88511         * lib/xreadlink.c (MAXSIZE): New macro.
88512         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88513         size does not exceed MAXSIZE.  Avoid cast.
88514         As suggested by Mark D. Baushke in
88515         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88516         if readlink fails with buffer size just under MAXSIZE, try again
88517         with MAXSIZE.
88518
88519 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88520
88521         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88522
88523 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88524         and  Paul Eggert  <eggert@cs.ucla.edu>
88525
88526         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88527         (get_date): Overparenthesize to avoid GCC warning.
88528
88529 2004-11-02  Bruno Haible  <bruno@clisp.org>
88530
88531         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88532         returns void.
88533
88534 2004-11-02  Bruno Haible  <bruno@clisp.org>
88535
88536         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88537         function returns void.
88538
88539 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88540
88541         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88542         fflush_unlocked, flockfile, funlockfile, funlockfile,
88543         fputs_unlocked, putc_unlocked.
88544
88545 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88546
88547         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88548         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88549         already declared.
88550
88551 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88552
88553         * modules/getdate (Files): Add doc/getdate.texi.
88554         (Depends-on): Add setenv, xalloc.
88555
88556 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * lib/getdate.y: Add support for TZ="foo" within a date string.
88559         Fix some bugs near time_t boundaries.  Reject dates with
88560         out-of-range components, e.g., "Sept 31".
88561         Include <stdlib.h>, "setenv.h", "xalloc.h".
88562         (ISDIGIT_LOCALE): Remove; unused.
88563         Note that the TZ and time functions used here are not reentrant.
88564         (mktime_ok, get_tz): New functions.
88565         (TZBUFSIZE): New constant.
88566         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88567         This requires that we sometimes generate our own TZ="XXX..." setting.
88568
88569 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88570
88571         * doc/getdate.texi: New file, from coreutils with modifications for
88572         the new TZ parsing.
88573
88574 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88575
88576         * lib/mktime.c (not_equal_tm): Remove redundant check.
88577
88578 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * modules/regex (lib_SOURCES): Add regex.c.
88581         Reported by James Youngman in
88582         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88583
88584 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88585
88586         * lib/getdate.y: Use Bison 1.875 features, and some minor
88587         code cleanups.  This change does not affect semantics.
88588         Don't include <stdlib.h>; no longer needed.
88589         Don't include unlocked-io.h; only the "#if TEST" code uses
88590         stdio, and performance isn't crucial there.
88591         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88592         Bison 1.875 features as described below.
88593         All uses of "PC." replaced by "pc->".
88594         (YYSTYPE): Add a forward declaration.
88595         (yylex, yyerror): Use full prototypes in forward decls.
88596         Use "%pure-parser" rather than obsolescent "%pure_parser".
88597         Use %parse-param and %lex-param instead of obsolescent
88598         YYPARSE_PARAM and YYLEX_PARAM.
88599         (meridian_table, month_and_day_table, time_units_table,
88600         relative_time_table, time_zone_table, military_table,
88601         lookup_zone, lookup_word, get_date):
88602         Use NULL instead of 0 where appropriate.
88603         (to_hour): Avoid abort (), to avoid a dependency on
88604         stdlib.h.
88605         (yyerror, yylex): Now accepts parser_control * arg.
88606         (main) [TEST]: Use '\0' rather than 0 for char.
88607
88608 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88609
88610         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88611
88612 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88613
88614         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88615         It's now the caller's responsibility to handle the case where
88616         !HAVE_GETPAGESIZE && !defined getpagesize.
88617
88618         * lib/mktime.c (leapyear): Arg is long int, not int.
88619
88620 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88621
88622         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88623
88624 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88625
88626         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88627         missing.  Problem reported by James Youngman.
88628
88629 2004-10-16  Simon Josefsson  <jas@extundo.com>
88630
88631         * gnulib-tool: Fix comments.  Fix parse problem.
88632         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88633
88634 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88635
88636         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88637         implementation of getopt_long.  Problem reported by Alexander Taler in:
88638         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88639
88640 2004-10-15  Bruno Haible  <bruno@clisp.org>
88641
88642         * gnulib-tool: Untabify. Initialize supplied_libname.
88643         (func_usage): More homogenous output.
88644         (func_modules_transitive_closure, func_modules_to_filelist,
88645         func_emit_lib_Makefile_am): New functions.
88646         (func_import): New function, extracted from big case statement. Use
88647         func_get_license, func_modules_transitive_closure,
88648         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88649         opt_lgpl. Don't use test -a, as it's not portable.
88650         (func_create_testdir): Use func_modules_transitive_closure,
88651         func_modules_to_filelist, func_emit_lib_Makefile_am.
88652
88653 2004-10-15  Bruno Haible  <bruno@clisp.org>
88654
88655         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88656
88657 2004-10-15  Bruno Haible  <bruno@clisp.org>
88658
88659         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88660         the portions belonging to each module.
88661         Suggested by Derek Robert Price <derek@ximbiot.com>.
88662
88663 2004-10-12  Simon Josefsson  <jas@extundo.com>
88664
88665         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88666         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88667         to real functions.
88668
88669 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88670
88671         * modules/vsnprintf: New file.
88672
88673 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88674
88675         * m4/vsnprintf.m4: New file.
88676
88677 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88678
88679         * lib/vsnprintf.h: New file.
88680         * lib/vsnprintf.c: New file.
88681
88682 2004-10-11  Bruno Haible  <bruno@clisp.org>
88683
88684         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88685         vsnprintf.
88686
88687 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88690
88691 2004-10-07  Bruno Haible  <bruno@clisp.org>
88692
88693         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88694         fits into the provided buffer.
88695
88696 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         * lib/diacrit.c, diacrit.h: Add GPL notice.
88699
88700         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88701         notice.
88702         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88703         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88704         This avoids a potential constant-folding bug.
88705
88706 2004-10-05  Bruno Haible  <bruno@clisp.org>
88707
88708         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88709         for the declaration of strsep.
88710
88711 2004-10-05  Bruno Haible  <bruno@clisp.org>
88712
88713         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88714
88715 2004-10-04  Simon Josefsson  <jas@extundo.com>
88716
88717         * modules/memmem: New file.
88718         * tests/test-memmem.c: New file.
88719         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88720
88721 2004-10-04  Simon Josefsson  <jas@extundo.com>
88722
88723         * m4/memmem.m4: New file.
88724
88725 2004-10-04  Simon Josefsson  <jas@extundo.com>
88726
88727         * lib/memmem.h: New file.
88728         * lib/memmem.c: New file, taken from glibc.
88729
88730 2004-10-04  Simon Josefsson  <jas@extundo.com>
88731
88732         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88733         '#ifdef USE_UNLOCKED_IO'.
88734
88735 2004-10-04  Simon Josefsson  <jas@extundo.com>
88736
88737         * config/srclist.txt: Add memmem from glibc.
88738
88739 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88740
88741         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88742
88743         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88744         modules/exclude, modules/getdate, modules/getline,
88745         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88746         modules/getusershell, modules/linebuffer, modules/md5,
88747         modules/mountlist, modules/posixtm, modules/readtokens,
88748         modules/readutmp, modules/regex, modules/sha1,
88749         modules/version-etc, modules/yesno:
88750         Remove dependency on unlocked-io.
88751
88752 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88753
88754         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88755
88756         * m4/unlocked-io.m4: Add copyright notice.
88757         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88758
88759 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88760
88761         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88762         * lib/xmalloc.c (xmemdup): Likewise.
88763         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88764         XFREE): Remove these long-obsolescent macros.
88765         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88766         * lib/xstrdup.c: Remove.
88767
88768         * lib/regex.c (re_comp): Cast gettext return value to char *,
88769         Problem reported by Martin Neitzel via Mark D. Baushke.
88770
88771 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88772
88773         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88774         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88775         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88776         regex.c, sha1.c, version-etc.c, yesno.c:
88777         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88778         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88779         the includer's responsibility.
88780
88781         Sync from coreutils.
88782
88783         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88784         points to the start of a string, as the C Standard says the
88785         resulting behavior is undefined.
88786
88787         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88788         simple -> simple_backups, numbered_existing ->
88789         numbered_existing_backups, numbered -> numbered_backups
88790         to avoid shadowing problems.  All uses changed.
88791         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88792         * lib/backupfile.c (check_extension, numbered_backup):
88793         Rename locals to avoid shadowing 'basename'.
88794         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88795         once.
88796
88797         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88798         * lib/.cvsignore: Add getopt.h.
88799
88800 2004-10-04  Bruno Haible  <bruno@clisp.org>
88801
88802         * modules/README: New file.
88803         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88804         not a module.
88805
88806 2004-10-02  Jim Meyering  <jim@meyering.net>
88807
88808         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88809
88810 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88811
88812         * modules/strsep: New file.
88813
88814 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88815
88816         * m4/strsep.m4: New file.
88817
88818 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88819
88820         * lib/strsep.h: New file.
88821         * lib/strsep.c: New file.
88822
88823 2004-10-01  Simon Josefsson  <jas@extundo.com>
88824
88825         * lib/snprintf.c (snprintf): Handle size==0.
88826
88827 2004-10-01  Simon Josefsson  <jas@extundo.com>
88828             Bruno Haible  <bruno@clisp.org>
88829
88830         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88831         (snprintf): Declare 'args'.
88832
88833 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88834
88835         * lib/snprintf.c: Remove comments as to why each header is needed.
88836
88837 2004-10-01  Bruno Haible  <bruno@clisp.org>
88838
88839         * MODULES.html.sh: Add strsep.
88840
88841 2004-09-30  Simon Josefsson  <jas@extundo.com>
88842
88843         * modules/snprintf: New file.
88844
88845 2004-09-30  Simon Josefsson  <jas@extundo.com>
88846
88847         * m4/snprintf.m4: New file.
88848
88849 2004-09-30  Simon Josefsson  <jas@extundo.com>
88850
88851         * lib/snprintf.h, lib/snprintf.c: New files.
88852
88853 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88854
88855         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88856         (hol_entry_help): Never translate an empty string.
88857         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88858         * lib/argp.h (OPTION_NO_TRANS): New option.
88859
88860 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88861
88862         * modules/argp (Maintainer): Replace Simon Josefsson
88863         by Sergey Poznyakoff.
88864
88865 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88866
88867         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88868         changes merged back into glibc.
88869
88870 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88871
88872         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88873
88874 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88875
88876         * lib/xvasprintf.c: Include xalloc.h.
88877         (xvasprintf): Use xalloc_die, not xmalloc_die.
88878
88879 2004-09-29  Bruno Haible  <bruno@clisp.org>
88880
88881         * modules/alloca-opt: New file, derived from modules/alloca.
88882         * modules/allocsa: Depend on alloca-opt instead of alloca.
88883         * modules/setenv: Likewise.
88884         * modules/vasnprintf: Likewise.
88885         * MODULES.html.sh: Add alloca-opt.
88886
88887 2004-09-28  Simon Josefsson  <jas@extundo.com>
88888
88889         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88890         LGPL, and to replace license template from GPL to LGPL.
88891
88892 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         * modules/dummy: Change license to LGPL.
88895
88896 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88899
88900 2004-09-24  Simon Josefsson  <jas@extundo.com>
88901
88902         * modules/minmax (License): Change from GPL to LGPL.
88903
88904 2004-09-23  Simon Josefsson  <jas@extundo.com>
88905
88906         * gnulib-tool (--import): Typo.
88907
88908 2004-09-23  Simon Josefsson  <jas@extundo.com>
88909
88910         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88911
88912 2004-09-22  Bruno Haible  <bruno@clisp.org>
88913
88914         * modules/*: Add 'License' field.
88915         * gnulib-tool: Accept --extract-license option.
88916         (func_get_license): New function.
88917
88918 2004-09-21  Bruno Haible  <bruno@clisp.org>
88919
88920         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88921         Reported by Simon Josefsson.
88922
88923 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88924
88925         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88926         gl_AC_TYPE_LONG_LONG.
88927
88928 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88929
88930         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88931
88932 2004-09-18  Simon Josefsson  <jas@extundo.com>
88933         and  Paul Eggert  <eggert@cs.ucla.edu>
88934
88935         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88936         calls with autoreconf.  Define GL_LIB.
88937
88938 2004-09-14  Karl Berry  <karl@gnu.org>
88939
88940         * config/srclist.txt: unsync setenv.c, sigh.
88941
88942 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88943
88944         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88945         Problem reported by Bruno Haible in:
88946         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88947
88948 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * config/srclist.txt: Comment out argp-pvh.c.
88951
88952 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88953
88954         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88955         in case some system header has #define'd it.  Problem reported by
88956         Soeren D. Schulze in
88957         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88958
88959 2004-09-09  Karl Berry  <karl@gnu.org>
88960
88961         * regex.[ch]: delete from the root.  These were supposed to be
88962                 synced with emacs cvs, but this has not happened for about
88963                 a year, and anyway nothing else uses emacs regex.[ch].
88964                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88965                 lib/regex[.ch] is untouched.
88966
88967 2004-09-09  Bruno Haible  <bruno@clisp.org>
88968
88969         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88970
88971 2004-09-09  Bruno Haible  <bruno@clisp.org>
88972
88973         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88974         modifications.
88975         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88976
88977 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88978
88979         * modules/xvasprintf: New file.
88980         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88981
88982 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88983
88984         * lib/xvasprintf.h: New file.
88985         * lib/xvasprintf.c: New file.
88986         * lib/xasprintf.c: New file.
88987
88988 2004-09-08  Bruno Haible  <bruno@clisp.org>
88989
88990         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88991
88992 2004-09-08  Bruno Haible  <bruno@clisp.org>
88993
88994         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88995         length is > INT_MAX.
88996         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88997         more.
88998
88999 2004-09-08  Bruno Haible  <bruno@clisp.org>
89000
89001         * lib/stdint_.h: New file, taken from GNU clisp.
89002
89003 2004-09-08  Bruno Haible  <bruno@clisp.org>
89004             Oskar Liljeblad  <oskar@osk.mine.nu>
89005
89006         * modules/stdint: New file.
89007         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89008
89009 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89010
89011         Import from coreutils.
89012         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89013         strings on unbounded length.  alloca's performance benefits aren't
89014         that important here.
89015         (V_STRDUP): Remove.
89016         (parse_with_separator): New function, with most of the internals
89017         of the old parse_user_spec.  Allow user to omit both user and group,
89018         for compatibility with FreeBSD.
89019         Clone only the user name, not the entire spec.
89020         Do not set *uid, *gid unless entirely successful.
89021         Avoid memory leak in some failing cases.
89022         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89023         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89024         (parse_user_spec): Rewrite to use parse_with_separator.
89025
89026 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89027
89028         * modules/userspec: Don't depend on alloca.
89029
89030 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89031
89032         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89033
89034 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89035
89036         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89037         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89038         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89039
89040 2004-08-16  Simon Josefsson  <jas@extundo.com>
89041
89042         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89043         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89044         Add --dry-run for --import.
89045         Let user provided command line parameters override configure.ac
89046         settings.
89047
89048 2004-08-12  Simon Josefsson  <jas@extundo.com>
89049
89050         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89051         as discussed with Paul Eggert in threads rooted at
89052         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89053         and
89054         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89055         Before, the test was empty, and relied on ELIDE_CODE in source
89056         code.)
89057         (gl_PREREQ_GETOPT): New macro.
89058         (gl_GETOPT): Use them.
89059
89060 2004-08-12  Simon Josefsson  <jas@extundo.com>
89061
89062         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89063         * lib/getopt_.h: Renamed from getopt.h.
89064
89065 2004-08-12  Simon Josefsson  <jas@extundo.com>
89066
89067         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89068         Change default library name from libfoo to libgnu.
89069         Now, if you have a configure.ac that says:
89070                 gl_SOURCE_BASE(gl)
89071                 gl_M4_BASE(gl/m4)
89072                 gl_MODULES(error getopt etcetera)
89073                 gl_INIT
89074         you can import all you need by running:
89075                 ../gnulib/gnulib-tool --import
89076
89077         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89078         (Makefile.am): Rewrite, use logic from argz.
89079         (Include): Use <getopt.h> instead of "getopt.h".
89080
89081 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89082
89083         * modules/argp (Files): Add m4/unlocked-io.m4.
89084         (Depends-on): Add extensions.
89085
89086 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89087
89088         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89089         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89090         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89091         Check for program_invocation_name, program_invocation_short_name,
89092         flockfile, funlockfile, features.h, _getopt_long_only_r.
89093
89094 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89097         its complicated substitute.
89098         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89099         and program_invocation_name.
89100         (__argp_basename) [!_LIBC]: Remove; the only use was
89101         replaced by its body.
89102         (__argp_short_program_name): Change condition from
89103         !defined __argp_short_program_name to
89104         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89105         to match argp-namefrob.h.
89106         (__argp_failure): Don't assume strerror_r returns char *.
89107         * lib/argp-parse.c (N_): Define unconditionally.
89108         (argp_default_options): Fill out initializers with 0 to avoid
89109         gcc warnings.
89110
89111 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89112
89113         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89114         getopt1.c.
89115
89116 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89117
89118         Merge from coreutils.
89119
89120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89121
89122         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89123         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89124
89125 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89126
89127         Merge from coreutils.
89128
89129         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89130         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89131         for Reliant Unix 5.43.
89132
89133         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89134         (union fooround): Use uintmax_t, not long int.
89135         The rest is a merge from libc:
89136         [defined _LIBC]: Include <shlib-compat.h>.
89137         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89138
89139         * lib/settime.c (settime): Recode to avoid warning with
89140         Sun Forte C 6U2.
89141
89142         * lib/strverscmp.c: Convert to UTF-8.
89143
89144 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89147         m4/uintmax_t.m4.
89148
89149 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89150
89151         * modules/xalloc-die: New file.
89152         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89153
89154         * modules/md5 (Files): Add m4/uint32_t.m4.
89155         * modules/sha1: Renamed from modules/sha.
89156         (Files):
89157         Rename lib/sha.h to lib/sha1.h.
89158         Rename lib/sha.c to lib/sha1.c.
89159         Rename m4/sha.m4 to m4/sha1.m4.
89160         (lib_SOURCES): Likewise.
89161         (configure.ac): Rename gl_SHA to gl_SHA1.
89162         (Include): sha.h -> sha1.h.
89163
89164 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89165
89166         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89167         * m4/sha1.m4: Renamed from sha.m4.
89168         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89169
89170 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * lib/obstack.h (obstack_empty_p):
89173         Don't assume that chunk->contents is suitably aligned.
89174         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89175         Likewise. Problem reported by Benno in
89176         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89177
89178         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89179         readable.  This could be improved further but it'd take some work.
89180
89181 2004-08-08  Simon Josefsson  <jas@extundo.com>
89182
89183         * modules/xgethostname (Depends-on): Remove exit and error (not
89184         used).
89185
89186         * modules/getpass-gnu: Add getpass.h.
89187         (Depends-on): Add stdbool.
89188         * modules/getpass: Add getpass.h.
89189
89190 2004-08-08  Simon Josefsson  <jas@extundo.com>
89191
89192         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89193         Check getpass declaration.
89194
89195 2004-08-08  Simon Josefsson  <jas@extundo.com>
89196
89197         * lib/xgethostname.c: Don't include error.h (not used).
89198
89199         * lib/getpass.h: Add.
89200         * lib/getpass.c: Include getpass.h first.
89201
89202 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89203
89204         * lib/xalloc-die.c: New file.
89205         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89206         All uses removed.
89207         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89208         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89209         xalloc-die.c.
89210         (_, N_, xalloc_die): Move to xalloc-die.c.
89211         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89212         so that we needn't mess with xalloc_msg_memory_exhausted.
89213
89214         * lib/sha1.h: Renamed from sha.h.
89215         (SHA1_H): Renamed from _SHA_H.
89216         (sha1_ctx): Renamed from sha_ctx.
89217         (sha1_init_ctx): Renamed from sha_init_ctx.
89218         (sha1_process_block): Renamed from sha_process_block.
89219         (sha1_process_bytes): Renamed from sha_process_bytes.
89220         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89221         (sha1_read_ctx): Renamed from sha_read_ctx.
89222         (sha1_stream): Renamed from sha_stream.
89223         (sha1_buffer): Renamed from sha_buffer.
89224         * lib/sha1.c: Likewise; renamed from sha.c.
89225         Do not include <sys/types.h>.
89226         Include <stddef.h> rather than <stdlib.h>.
89227
89228 2004-08-08  Bruno Haible  <bruno@clisp.org>
89229
89230         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89231         FILESYSTEM_PREFIX_LEN.
89232         * lib/progreloc.c: Likewise.
89233         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89234
89235 2004-08-06  Simon Josefsson  <jas@extundo.com>
89236
89237         * modules/progname (Depends-on): Don't depend on stdbool.
89238
89239 2004-08-06  Simon Josefsson  <jas@extundo.com>
89240
89241         * modules/getsubopt: New file.
89242         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89243         getsubopt.
89244
89245 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89246
89247         More merge from coreutils.
89248
89249         * m4/utimens.m4, m4/utimecmp.m4: New files.
89250         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89251         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89252         prereq.m4, sha.m4: Import changes from coreutils.
89253
89254 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         More merge from coreutils.
89257         * modules/raise, modules/readtokens0, modules/utimens:
89258         * modules/utimecmp, module/xnanosleep: New files.
89259         * modules/strftime: Add lib/strftime.h.
89260         Change include from <time.h> to "strftime.h".
89261         * modules/yesno: Add lib/yesno.h.
89262         * modules/backupfile: Remove lib/addext.c.
89263         * modules/euidaccess: Add stat-macros.h.
89264         * modules/canonicalize, modules/euidaccess,
89265         modules/filemode, modules/lchown, modules/makepath,
89266         modules/rmdir, modules/stat: Likewise.
89267
89268 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89269
89270         Merge from tar.
89271         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89272         SIZE_MAX is a valid preprocessor constant.
89273         (__argp_basename): Change from "#ifndef _LIBC"
89274         to "#ifndef __argp_short_program_name", so that
89275         we don't compile these functions for tar.
89276
89277         More merges from coreutils.
89278         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89279         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89280         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89281         * lib/addext.c: Remove; no longer needed.
89282         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89283         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89284         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89285         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89286         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89287         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89288         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89289         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89290         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89291         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89292         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89293         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89294         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89295         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89296         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89297         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89298         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89299         Import changes from coreutils.
89300
89301 2004-08-05  Simon Josefsson  <jas@extundo.com>
89302
89303         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89304
89305 2004-08-05  Simon Josefsson  <jas@extundo.com>
89306
89307         * m4/getsubopt.m4: New file.
89308
89309 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89310
89311         Merge from coreutils.
89312
89313         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89314         * m4/getcwd-path-max.m4: New files.
89315
89316         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89317         FILESYSTEM_PREFIX_LEN ->
89318         FILE_SYSTEM_PREFIX_LEN.
89319         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89320         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89321         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89322         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89323
89324         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89325         prerequisite modules now handle the DOS stuff.
89326         Don't check for unistd.h.
89327
89328 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89329
89330         Merge from coreutils.
89331
89332         * lib/.gdb-history: Remove; this doesn't belong here.
89333
89334         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89335         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89336         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89337         * lib/getcwd.c: New files.
89338
89339         * lib/dirname.h: Include <stdbool.h>.
89340         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89341         for consistency with POSIX terminology.  All uses changed.
89342         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89343         (strip_trailing_slashes): Use bool for booleans.
89344         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89345
89346         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89347         sometimes returns a positive errno value even when it succeeds.
89348         (print_errno_message) [!LIBC]: Fall back on strerror if
89349         __strerror_r fails.
89350
89351         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89352         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89353         (longest_relative_suffix): New function.
89354         (path_concat): Use it.  Assume first argument is not NULL.
89355         Port to DOS.  Omit redundant separators.
89356         Report an error instead of returning NULL.
89357         Use mempcpy instead of memcpy.
89358         (xpath_concat): Remove: not declared or used.
89359
89360         * lib/same.h: Include <stdbool.h>
89361         (same_name): Return bool, not int.
89362         * lib/same.c (same_name): Likewise.
89363         (errno): Don't declare; we assume C89 or better now.
89364
89365         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89366         if not already defined.
89367
89368         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89369         * lib/dup-safer.c (errno): Likewise.
89370
89371 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89372
89373         Merge from coreutils.
89374         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89375         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89376         * modules/path-concat: Don't depend on strdup.
89377
89378 2004-08-03  Simon Josefsson  <jas@extundo.com>
89379
89380         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89381         * lib/progname.h: Don't include stdbool.h.
89382
89383 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89384
89385         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89386         * MODULES.html.sh (func_all_modules): Remove fatal.
89387
89388 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89391
89392 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89393
89394         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89395         working.
89396
89397 2004-08-02  Simon Josefsson  <jas@extundo.com>
89398
89399         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89400         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89401         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89402
89403 2004-08-01  Simon Josefsson  <jas@extundo.com>
89404
89405         * lib/xgetdomainname.c: Include stdlib.h, for free().
89406
89407 2004-07-19  Bruno Haible  <bruno@clisp.org>
89408
89409         * MODULES.html.sh (func_all_modules): Add dummy.
89410
89411 2004-07-16  Simon Josefsson  <jas@extundo.com>
89412
89413         * modules/dummy: New file.
89414
89415 2004-07-16  Simon Josefsson  <jas@extundo.com>
89416
89417         * lib/dummy.c: New file.
89418
89419 2004-07-16  Bruno Haible  <bruno@clisp.org>
89420
89421         * lib/backupfile.h: Add extern "C" for C++.
89422         * lib/closeout.h: Likewise.
89423         * lib/copy-file.h: Likewise.
89424         * lib/findprog.h: Likewise.
89425         * lib/full-write.h: Likewise.
89426         * lib/pathname.h: Likewise.
89427         * lib/progname.h: Likewise.
89428         * lib/stpcpy.h: Likewise.
89429         * lib/stpncpy.h: Likewise.
89430         * lib/strcase.h: Likewise.
89431         * lib/strstr.h: Likewise.
89432         * lib/xalloc.h: Likewise.
89433
89434         * lib/mbswidth.h: Add extern "C" for C++.
89435         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89436
89437 2004-07-13  Robert Millan  <robertmh@gnu.org>
89438
89439         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89440
89441 2004-07-09  Simon Josefsson  <jas@extundo.com>
89442
89443         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89444         failed without this.)
89445
89446 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89447
89448         * modules/chown (Files): Add lib/fchown-stub.c, since
89449         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89450
89451 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89452
89453         * lib/fchown-stub.c: New file.
89454
89455 2004-06-24  Jim Meyering  <jim@meyering.net>
89456
89457         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89458
89459 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89460
89461         * modules/argz: Omit "#include".
89462
89463         * MODULES.html.sh (func_all_modules): Add calloc, to match
89464         2004-06-01 addition of calloc module.
89465
89466 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89467
89468         * m4/argz.m4: New file, which is autoupdated from libtool.
89469
89470 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89471
89472         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89473         libtool.
89474
89475 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89476
89477         * config/srclist-update: Don't insist on "USA." before the
89478         close-comment, as libtool omits the period and puts the */ on a
89479         separate line.
89480         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89481         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89482
89483 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89484
89485         * modules/argz: New file.
89486         * MODULES.html.sh (func_all_modules): Add argz.
89487
89488 2004-06-12  Jim Meyering  <jim@meyering.net>
89489         and  Paul Eggert  <eggert@cs.ucla.edu>
89490
89491         * modules/hash (Files): Add lib/xalloc.h.
89492         * modules/pipe (Depends-on): Add wait-process.
89493         * modules/stat (Depends-on): Add xalloc.
89494         * modules/userspec (Files): Add lib/userspec.h.
89495         * modules/xstrto
89496
89497         Upgrade from gettext-0.13.
89498         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89499         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89500         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89501
89502 2004-06-10  Jim Meyering  <jim@meyering.net>
89503
89504         * lib/calloc.c: New file.
89505
89506 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89507
89508         * lib/getdate.y (yylex): Allow space between sign and number.
89509         Problem reported by Dan Jacobson.
89510
89511 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89512
89513         Merge from coreutils CVS.
89514
89515         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89516         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89517         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89518         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89519         xstrtol.m4: Fix copyright date and/or serial number.
89520
89521         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89522         See if we need an fchown replacement.
89523         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89524         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89525         and use the replacement function if we detect either defect.
89526
89527         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89528         gl_UTIMECMP.
89529
89530 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89531         and  Jim Meyering  <jim@meyering.net>
89532
89533         Merge from coreutils CVS.
89534
89535         * lib/stat-macros.h: New file, with contents from file-type.h
89536         and coreutils' system.h.
89537         * lib/file-type.c: Include "stat-macros.h".
89538         * lib/file-type.h (file_type): Move all macro definitions to new file,
89539         stat-macros.h.
89540
89541         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89542         Wrap old code with this conditional.
89543         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89544         function that does not dereference symlinks.
89545         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89546
89547         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89548         dependency problems.
89549         (xreadlink): Accept new arg SIZE, for efficiency.
89550         All decls and uses changed.
89551         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89552
89553         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89554         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89555
89556         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89557         sysexits.h.
89558
89559 2004-06-01  Jim Meyering  <jim@meyering.net>
89560
89561         * m4/calloc.m4: New file.
89562
89563 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89564
89565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89566         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89567         Also, fix a typo in a diagnostic.
89568
89569 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89570
89571         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89572         or AC_FUNC_REALLOC.
89573
89574 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89575
89576         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89577         macros to be defined.
89578         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89579         the allocator returns NULL because the requested size is zero.
89580
89581 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89582
89583         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89584         var.  Add comment explaining why libc still defines it.  This
89585         merges the following patch from glibc:
89586         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89587
89588 2004-05-20  Andreas Schwab  <schwab@suse.de>
89589
89590         * m4/free.m4: Replace free if it not known to work, not the other
89591         way round.
89592
89593 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89594
89595         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89596         present in glibc since revision 1.1 of this file.
89597         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89598         obstack_alignment_mask, obstack_alloc, obstack_base,
89599         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89600         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89601         obstack_grow0, obstack_init, obstack_int_grow,
89602         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89603         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89604         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89605         nonexistent functions.
89606
89607 2004-05-18  Karl Berry  <karl@gnu.org>
89608
89609         * config/srclist.txt: break link for vasnprintf.c.
89610
89611 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89612
89613         Port obstack to the AS/400, where pointers are 16 bytes wide and
89614         you cannot cast an integer to a valid pointer.  This patch is
89615         currently waiting to be integrated into glibc; see
89616         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89617
89618         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89619         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89620         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89621         (struct obstack): temp member is now a union of a pointer and
89622         an integer, instead of an integer.  All integer uses changed.
89623         This does not affect the physical layout of struct obstack,
89624         except on hosts (like the AS/400) where the size or alignment of
89625         void * is greater than that of ptrdiff_t.
89626         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89627         __STDC__)]: Store temporary in pointer member of union, not
89628         integer member.
89629         * lib/obstack.c: Include <stddef.h>, for offsetof.
89630         (struct fooalign): Remove; it doesn't need a name.
89631         (union fooround): Change double to long double, and add void *.
89632         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89633         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89634         not a macro.  Hence the values are always int; so remove all
89635         casts-to-int in uses.
89636
89637 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89638
89639         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89640         we can get this patch merged into glibc.
89641
89642 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89643             Paul Eggert  <eggert@cs.ucla.edu>
89644
89645         * m4/argp: Depend on alloca.
89646
89647 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89648             Paul Eggert  <eggert@cs.ucla.edu>
89649
89650         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89651         freecoding.
89652
89653 2004-05-17  Bruno Haible  <bruno@clisp.org>
89654
89655         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89656         precision that consists of a '.' followed by an empty digit string.
89657         Patch by Tor Lillqvist <tml@iki.fi>.
89658
89659 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89660
89661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89662         for backward compatibility with older code.  We need our own
89663         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89664         it under some other name, and our alloca.h will define it.
89665
89666 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89667             Derek Price  <derek@ximbiot.com>
89668
89669         * lib/alloca.c: Include <alloca.h>, to get our interface.
89670         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89671         include <alloca.h> first.  Use C89 prototype for alloca; this
89672         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89673         Use #elif for simplicity, since we can assume C89 now.
89674         Don't try to source the system alloca.h since it will not be found
89675         and to prevent recursively including its replacement.
89676         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89677         * lib/regex.c: Likewise.
89678
89679 2004-05-16  Derek Price  <derek@ximbiot.com>
89680             Paul Eggert  <eggert@cs.ucla.edu>
89681
89682         getline cleanup.  This changes the getndelim2 API: both order of
89683         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89684         no delimiter).
89685
89686         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89687         interface does that.
89688         (getline): Always use getdelim, so that we don't have two
89689         copies of this code.
89690         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89691         if available.
89692         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89693         (GETNDELIM2_MAXIMUM): New macro.
89694         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89695         instead of the old practice of delim2==0.  All callers changed.
89696         Return -1 on overflow, instead of returning junk.
89697         Do not set *linesize unless allocation succeeds.
89698         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89699         that we include sys/types.h.
89700         * lib/getnline.h: Likewise.
89701         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89702         (getndelim2): Reorder arguments.
89703         * lib/getnline.c (getnline, getndelim):
89704         Don't discard the NMAX argument.
89705         (getnline): Invoke getndelim, to avoid code duplication.
89706         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89707         of (size_t) -1 by callers of the getnline family.
89708
89709 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89710
89711         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89712         Check for gettimeofday.
89713         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89714         Check for settimeofday, stime.
89715
89716 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89717
89718         * lib/nanosleep.c (suspended): Change its type from int to
89719         sig_atomic_t volatile.
89720         (first_call): Make it private to rpl_nanosleep, and have it
89721         be zero initially as that's a bit faster.
89722         (my_usleep): Round up fractional times instead of truncating them,
89723         as this is the usual meaning for 'sleep'.
89724
89725         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89726         doesn't work.
89727         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89728         (ENOSYS): Define if not defined.
89729         (settime): Fall back on stime if it exists and settimeofday fails.
89730         But don't bother with fallbacks if a method fails with errno == EPERM.
89731
89732 2004-05-11  Jim Meyering  <jim@meyering.net>
89733
89734         Prior to this change, the save_cwd caller required read access to the
89735         current directory on most systems (ones with the fchdir function).
89736
89737         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89738         fails, try write-only, and finally, resort to using xgetcwd.
89739
89740 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89741
89742         * lib/obstack.c, obstack.h: Import changes from libc.
89743
89744 2004-04-28  Bruno Haible  <bruno@clisp.org>
89745
89746         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89747         also implicitly appends .exe to executables.
89748         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89749         accepts Windows pathnames.
89750         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89751         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89752         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89753         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89754         Reported by Derek Robert Price <derek@ximbiot.com>.
89755
89756 2004-04-21  Karl Berry  <karl@gnu.org>
89757
89758         * config/srclist.txt (localcharset.c): break sync.
89759
89760 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89761
89762         * m4/host-os.m4: Add a copyright notice.
89763
89764 2004-04-20  Jim Meyering  <jim@meyering.net>
89765
89766         Change UTILS_ to gl_ in AC_DEFINE'd names.
89767         Change utils_- and jm_-prefixed variables, too.
89768         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89769         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89771
89772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89773         Don't emit trailing blanks.
89774         Also rename jm_-prefixed variables to have gl_ prefix.
89775
89776         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89777         Also rename jm_-prefixed variables to have gl_ prefix.
89778
89779         * m4/jm-macros.m4: Reflect the renamings.
89780         * m4/prereq.m4: Likewise.
89781
89782 2004-04-20  Jim Meyering  <jim@meyering.net>
89783
89784         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89785         memory.
89786
89787 2004-04-20  Jim Meyering  <jim@meyering.net>
89788             Bruno Haible  <bruno@clisp.org>
89789
89790         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89791         memory when realloc fails.
89792
89793 2004-04-19  Jim Meyering  <jim@meyering.net>
89794
89795         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89796         now that readutmp.c may call `free (0)'.
89797
89798 2004-04-19  Bruno Haible  <bruno@clisp.org>
89799
89800         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89801         * m4/inttypes_h.m4: Likewise.
89802         * m4/stdint_h.m4: Likewise.
89803         * m4/intmax_t.m4: Likewise.
89804         * m4/uintmax_t.m4: Likewise.
89805
89806 2004-04-18  Jim Meyering  <jim@meyering.net>
89807
89808         * m4/prereq.m4: Don't forbid jm_ prefix.
89809
89810         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89811         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89812         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89813         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89814         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89815         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89816         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89817         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89818         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89819         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89820         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89821         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89822         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89823         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89824         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89825         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89826         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89827         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89828         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89829
89830 2004-04-18  Jim Meyering  <jim@meyering.net>
89831
89832         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89833         failure, don't leak memory and do call END_UTMP_ENT.
89834
89835 2004-04-16  Jim Meyering  <jim@meyering.net>
89836
89837         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89838         coreutils' stat program.
89839         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89840
89841 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89842
89843         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89844         C89.
89845         (CHAR_BIT): Remove, since we assume C89.
89846         Include <stdint.h> if available, as per current Autoconf CVS advice.
89847
89848 2004-03-31  Jim Meyering  <jim@meyering.net>
89849
89850         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89851         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89852         * m4/xalloc.m4: Likewise.
89853
89854 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89855
89856         Merge from coreutils.
89857
89858         * m4/inttostr.m4: New file.
89859         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89860         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89861         Require gl_CLOCK_TIME.
89862         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89863
89864 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89865
89866         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89867         not bool, to be more consistent with Unix conventions.
89868         Suggested by Bruno Haible.
89869
89870         Merge from coreutils.
89871
89872         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89873         * lib/umaxtostr.c: New files.
89874
89875         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89876         the usual <time.h> dance.
89877         (get_date): Change signature to support fractional time stamps.
89878         All callers changed.
89879         * lib/getdate.y: Include "getdate.h" first, as we can now
89880         assume C89 and don't need to worry about 'const'.
89881         Similarly, include "unlocked-io.h" near start, not in middle.
89882         Include <limits.h>.
89883         (textint.value): Use long int rather than int.
89884         (textint.digits): Use size_t rather than int.
89885         (BILLION, LOG10_BILLION): New constants.
89886         (parser_control): New member rel_ns.  Members day_ordinal,
89887         time_zone, month, day, hour, minutes, rel_year, rel_month,
89888         rel_day, rel_hour, rel_minutes, rel_seconds
89889         are now long int, not int.  Member seconds is now struct timespec,
89890         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89891         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89892         not int.
89893         (%union.intval): Now long int, not int.
89894         New member timespec.
89895         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89896         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89897         (spec): Now is a timespec or an item list.
89898         (timespec, items): New nonterminals.
89899         (time, rel, relunit, number, get_date):
89900         Add support for fractional seconds.
89901         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89902         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89903         (to_hour): First arg is now long int, not int.
89904         (to_year): Returns long int, not int.
89905         Don't treat year -70 like 70.
89906         (tm_diff): Returns long int, not int.
89907         (lookup_word): Use bool instead of int when appropriate.
89908         (yylex): Use size_t for count, not int.
89909         Detect overflow when parsing large integer constants.
89910         Add support for fractions.
89911         (get_date): Make pointers 'const' if possible.
89912         Use more-portable code to detect integer overflow.
89913         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89914         Don't use ctime; it's not reliable if the year has >4 digits.
89915
89916         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89917         This is for compatibility with BSD.
89918
89919         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89920         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89921         From coreutils' system.h.
89922
89923         * lib/userspec.c: Don't include "posixver.h".
89924         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89925         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89926         compatible extension.  Simplify code by removing a boolean int
89927         that was always nonzero if a string was nonnull.
89928
89929 2004-03-30  Jim Meyering  <jim@meyering.net>
89930
89931         Merge from coreutils.
89932
89933         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89934         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89935         on some systems one must include <grp.h> before it.
89936         Reported by Christian Krackowizer.
89937
89938 2004-03-30  Jim Meyering  <jim@meyering.net>
89939
89940         Merge from coreutils.
89941
89942         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89943
89944         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89945         an empty input stream.
89946
89947         * lib/readtokens.c: Include <stdbool.h>.
89948         (readtoken): Use `size_t' rather than int/long.
89949         All callers adjusted.
89950         Use `bool' rather than `int' where appropriate.
89951         Use memset rather than an explicit loop.
89952         Use x2nrealloc rather than xrealloc.
89953         Allow the use of `\0' as a delimiter.
89954         (readtokens): Likewise.
89955         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89956
89957 2004-03-30  Jim Meyering  <jim@meyering.net>
89958
89959         * m4/realloc.m4: Remove file, since now it does no more than
89960         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89961         the `configure.ac' section of module/realloc.
89962         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89963
89964 2004-03-30  Bruno Haible  <bruno@clisp.org>
89965
89966         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89967         nonnull.
89968
89969 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89970
89971         Merge changes to getloadavg.c from coreutils and Emacs.
89972
89973         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89974         Define to an expression, not to the empty string.
89975         Include cloexec.h and xalloc.h.
89976         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89977         Use set_cloexec_flag rather than rolling our own.
89978         * lib/cloexec.c, lib/cloexec.h: New files.
89979
89980 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89981
89982         * m4/cloexec.m4: New file.
89983
89984 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89985
89986         * lib/getopt.h: Sync with libc CVS.
89987
89988 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89989             Bruno Haible  <bruno@clisp.org>
89990
89991         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89992         mbswidth.
89993
89994 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89995             Bruno Haible  <bruno@clisp.org>
89996
89997         * lib/mbswidth.h: Include <wchar.h> only if
89998         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89999         <wchar.h>.
90000         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90001
90002 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90003
90004         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90005         Sync with libc CVS.
90006         * lib/getopt_int.h: New file, also synced from libc.
90007
90008 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90009
90010         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90011         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90012         Bring back getopt.c, getopt.h, getopt1.c.
90013
90014 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90015
90016         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90017         All uses changed.  Check for sa_sigaction member; this fixes
90018         a bug first reported by Jason Andrade in
90019         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90020
90021 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90022
90023         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90024         '#if' expressions.  Unlike the code it replaces, it does not
90025         depend on (defined _SC_PAGESIZE).  However, it does depend on
90026         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90027         first reported by Jason Andrade in
90028         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90029
90030 2004-02-25  Simon Josefsson  <jas@extundo.com>
90031
90032         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90033
90034 2004-02-25  Simon Josefsson  <jas@extundo.com>
90035
90036         * lib/strdup.h: New file.
90037         * lib/strdup.c: Include it.
90038         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90039         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90040
90041 2004-02-23  Karl Berry  <karl@gnu.org>
90042
90043         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90044         (from fencepost.gnu.org:/gd/gnuorg).
90045
90046 2004-02-23  Karl Berry  <karl@gnu.org>
90047
90048         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90049         * config/srclist.txt: add maintain/standards documents.
90050
90051 2004-02-18  Bruno Haible  <bruno@clisp.org>
90052
90053         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90054         Reported by Derek Robert Price <derek@ximbiot.com>.
90055
90056 2004-02-16  Karl Berry  <karl@gnu.org>
90057
90058         * config/mkinstalldirs, install-sh: update from automake.
90059
90060 2004-02-06  Karl Berry  <karl@gnu.org>
90061
90062         * m4/po.m4: update from gettext 0.14.1.
90063
90064 2004-02-06  Karl Berry  <karl@gnu.org>
90065
90066         * lib/config.charset: update from gettext 0.14.1.
90067
90068 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90069
90070         Add comments and code, prompted by suggestions from Bruno Haible
90071         for sh-quote.
90072         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90073         describing the enum quoting_style values.
90074         * lib/quotearg.c (quotearg_alloc): New function.
90075         (quotearg_buffer_restyled): Treat lone { and } as special.
90076         Treat = as special.  Work around bug with older shells
90077         that "see" a '\' that is really the 2nd byte of a multibyte char.
90078         Quote empty string with shell_quoting_style.
90079
90080 2004-02-03  Bruno Haible  <bruno@clisp.org>
90081
90082         * m4/pipe.m4: New file, from GNU gettext.
90083
90084 2004-02-03  Bruno Haible  <bruno@clisp.org>
90085
90086         * lib/pipe.h: New file, from GNU gettext.
90087         * lib/pipe.c: New file, from GNU gettext.
90088
90089 2004-01-27  Bruno Haible  <bruno@clisp.org>
90090
90091         * m4/execute.m4: New file, from GNU gettext.
90092
90093 2004-01-27  Bruno Haible  <bruno@clisp.org>
90094
90095         * lib/execute.h: New file, from GNU gettext.
90096         * lib/execute.c: New file, from GNU gettext.
90097         * lib/w32spawn.h: New file, from GNU gettext.
90098
90099 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90100
90101         Merge from diffutils.
90102
90103         * lib/file-type.c (file_type): Add typed memory objects.
90104         * lib/file-type.h (S_TYPEISTMO): New macro.
90105
90106         * lib/c-stack.h (c_stack_action): Remove argv argument.
90107         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90108         (die): Don't calculate message unless segv_action returns.
90109         (get_stack_location, min_address_from_argv, max_address_from_argv,
90110         volatile stack_base, volatile_stack_size): Remove.
90111         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90112         that every segmentation violation is a stack overflow.  (Ouch!)
90113         See Debian bug 136249 (still outstanding) for more info about why
90114         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90115
90116 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90117
90118         Exit-status fix from coreutils.
90119
90120         Use exit_failure consistently in place of EXIT_FAILURE,
90121         so that program exit statuses are consistent on failure.
90122
90123         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90124         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90125         * lib/argmatch.h: Comment fix to match the above.
90126         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90127         Now a macro referring to exit_failure, instead of a separate
90128         variable.  Include "exitfail.h" to get it.
90129         * lib/xstrtol.h: Include "exitfail.h".
90130         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90131
90132         * lib/long-options.c (parse_long_options): Use prototype
90133         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90134         for clarity.
90135
90136 2004-01-21  Jim Meyering  <jim@meyering.net>
90137
90138         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90139         so as not to conflict with a different-sized __mktime_internal
90140         function in GNU libc.
90141         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90142         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90143
90144 2004-01-20  Karl Berry  <karl@gnu.org>
90145
90146         * config/config.guess: update from config.
90147
90148         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90149
90150 2004-01-20  Bruno Haible  <bruno@clisp.org>
90151
90152         Safer stack allocation.
90153         * lib/setenv.c: Include allocsa.h.
90154         (alloca): Remove fallback definition.
90155         (freea): Remove macro.
90156         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90157         instead of freea.
90158
90159 2004-01-20  Bruno Haible  <bruno@clisp.org>
90160
90161         * m4/eealloc.m4: New file, from GNU gettext.
90162
90163 2004-01-20  Bruno Haible  <bruno@clisp.org>
90164
90165         * m4/allocsa.m4: New file, from GNU gettext.
90166
90167 2004-01-20  Bruno Haible  <bruno@clisp.org>
90168
90169         * lib/xallocsa.h: New file, from GNU gettext.
90170         * lib/xallocsa.c: New file, from GNU gettext.
90171
90172 2004-01-20  Bruno Haible  <bruno@clisp.org>
90173
90174         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90175
90176 2004-01-20  Bruno Haible  <bruno@clisp.org>
90177
90178         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90179         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90180         specially.
90181
90182 2004-01-20  Bruno Haible  <bruno@clisp.org>
90183
90184         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90185         patch.
90186
90187 2004-01-20  Bruno Haible  <bruno@clisp.org>
90188
90189         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90190
90191 2004-01-20  Bruno Haible  <bruno@clisp.org>
90192
90193         * lib/eealloc.h: New file.
90194
90195 2004-01-20  Bruno Haible  <bruno@clisp.org>
90196
90197         * lib/binary-io.h: Avoid warnings on Cygwin.
90198
90199 2004-01-20  Bruno Haible  <bruno@clisp.org>
90200
90201         * lib/allocsa.h: New file, from GNU gettext.
90202         * lib/allocsa.c: New file, from GNU gettext.
90203
90204 2004-01-18  Karl Berry  <karl@gnu.org>
90205
90206         * doc/gpl.texi, doc/lgpl.texi: new files.
90207
90208 2004-01-18  Karl Berry  <karl@gnu.org>
90209
90210         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90211         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90212
90213 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90214
90215         Merge from coreutils.
90216
90217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90218         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90219         (gl_DEFAULT_POSIX2_VERSION): Move
90220         the documentation from 'configure' into 'config.hin',
90221         so that 'configure --help' isn't burdened by it and
90222         we don't have to worry about its formatting there.
90223         Reword the documentation so that it's more succinct
90224         and can be run together into a single paragraph.
90225         * m4/same.m4 (gl_SAME): Check for pathconf.
90226
90227 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90228
90229         Merge from coreutils.
90230
90231         * lib/posixver.c: Include posixver.h.
90232
90233         * lib/same.c: Include <stdbool.h>, <limits.h>.
90234         (_POSIX_NAME_MAX): Define if not defined.
90235         (MIN): New macro.
90236         (same_name): If file names are silently truncated, report
90237         that the file names are the same if they are the same after
90238         the silent truncation.
90239
90240         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90241         conversion function.
90242         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90243         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90244         longer needed.
90245
90246 2004-01-15  Jim Meyering  <jim@meyering.net>
90247
90248         Merge from coreutils.
90249
90250         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90251         if no library is required.
90252         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90253         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90254         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90255         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90256         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90257         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90258         value, $ac_cv_search_crypt, if it's "none required".
90259         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90260         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90261         not gl_FUNC_GETLOADAVG.
90262         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90263         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90264
90265 2004-01-15  Jim Meyering  <jim@meyering.net>
90266
90267         Merge from coreutils.
90268
90269         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90270         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90271         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90272
90273         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90274         optional configure-time default.
90275
90276         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90277
90278         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90279
90280 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90281
90282         Merge from coreutils.
90283
90284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90285         value, $ac_cv_search_nanosleep, if it's "none required".
90286
90287 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90288
90289         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90290         with like-named macro in fnmatch.c.
90291         (EXT): Use an internal constant instead.
90292
90293         Merge fnmatch patches from glibc.
90294         * lib/fnmatch.c (mbsinit): Remove define.
90295         Add libc_hidden_ver (__fnmatch, fnmatch).
90296         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90297         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90298
90299 2004-01-14  Karl Berry  <karl@gnu.org>
90300
90301         * config/install-sh: update from automake.
90302
90303 2004-01-13  Karl Berry  <karl@gnu.org>
90304
90305         * config/install-sh: update from automake.
90306
90307 2004-01-09  Karl Berry  <karl@gnu.org>
90308
90309         * config/install-sh: update from automake.
90310
90311 2004-01-05  Karl Berry  <karl@gnu.org>
90312
90313         * config/config.{sub,guess}: update from config.
90314
90315 2003-12-31  Karl Berry  <karl@gnu.org>
90316
90317         * config/depcomp: update from automake.
90318
90319 2003-12-14  Karl Berry  <karl@gnu.org>
90320
90321         * lib/config.charset: update from gettext-runtime.
90322
90323 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90324
90325         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90326         Bug reported by Alfred M. Szmidt.
90327
90328 2003-12-03  Bruno Haible  <bruno@clisp.org>
90329
90330         * m4/gettext.m4: Upgrade from gettext-0.13.
90331         * m4/po.m4: Upgrade from gettext-0.13.
90332         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90333         * m4/intmax.m4: New file, from gettext-0.13.
90334         * m4/printf-posix.m4: New file, from gettext-0.13.
90335
90336 2003-11-29  Karl Berry  <karl@gnu.org>
90337
90338         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90339
90340 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90341             Bruno Haible  <bruno@clisp.org>
90342
90343         * lib/printf-parse.h: Don't include sys/types.h.
90344         (ARG_NONE): New macro.
90345         (char_directive): Change type of *arg_index fields to size_t.
90346         * lib/printf-parse.c: Don't include sys/types.h.
90347         (SSIZE_MAX): Remove macro.
90348         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90349         Remove unnecessary overflow check.
90350         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90351         fields.
90352
90353 2003-11-25  Bruno Haible  <bruno@clisp.org>
90354
90355         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90356
90357 2003-11-25  Bruno Haible  <bruno@clisp.org>
90358
90359         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90360         gt_TYPE_SSIZE_T.
90361
90362 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90363
90364         * modules/alloca: Remove dependency on xalloc.
90365
90366 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90367
90368         * lib/alloca.c: Remove dependency on xalloc module.
90369         (xalloc_die): Remove.
90370         (memory_full) [!defined emacs]: New macro.
90371         [!defined emacs]: Don't include xalloc.h.
90372         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90373         address arithmetic overflows.  Change datatypes a bit to avoid
90374         unnecessary casts.
90375
90376 2003-11-22  Jim Meyering  <jim@meyering.net>
90377
90378         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90379         s/size/size_t/.
90380
90381 2003-11-21  Karl Berry  <karl@gnu.org>
90382
90383         * config/config.{sub,guess}: update from config.
90384
90385 2003-11-18  Karl Berry  <karl@gnu.org>
90386
90387         * config/config.{sub,guess}: update from config.
90388
90389         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90390
90391 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90392
90393         * README: Mention that S+T cannot overflow if S is the size of
90394         an existing object and T is sufficiently small.
90395
90396 2003-11-17  Jim Meyering  <jim@meyering.net>
90397
90398         On systems without utime and without a utimes function capable of
90399         dealing with a NULL struct utimbuf* argument, this utime replacement
90400         could -- in unusual circumstances -- leak a file descriptor.
90401         * lib/utime.c: Include <unistd.h> and <errno.h>.
90402         (utime_null): Be sure to close `fd' and to preserve errno.
90403         Reported by Geoff Collyer via Arnold Robbins.
90404
90405 2003-11-17  Bruno Haible  <bruno@clisp.org>
90406
90407         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90408         (Depends-on): Add xsize.
90409
90410 2003-11-17  Bruno Haible  <bruno@clisp.org>
90411
90412         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90413
90414 2003-11-17  Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/vasnprintf.c (alloca): Remove fallback definition.
90417         (freea): Remove definition.
90418         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90419         Reported by Paul Eggert.
90420
90421 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90422             Bruno Haible  <bruno@clisp.org>
90423
90424         Protect against address arithmetic overflow.
90425         * lib/printf-args.h: Include stddef.h.
90426         (arguments): Change type of field 'count' to size_t.
90427         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90428         'unsigned int' where appropriate.
90429         * lib/printf-parse.h: Include sys/types.h.
90430         (char_directive): Change type of *arg_index fields to ssize_t.
90431         (char_directives): Change type of fields 'count', max_*_length to
90432         size_t.
90433         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90434         (SSIZE_MAX): Define fallback value.
90435         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90436         instead of 'int' where appropriate. Check a_allocated, d_allocated
90437         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90438         * lib/vasnprintf.c: Include xsize.h.
90439         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90440         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90441         overflow. Avoid wraparound when converting a width or precision from
90442         decimal to binary.
90443
90444 2003-11-16  Bruno Haible  <bruno@clisp.org>
90445
90446         Update from GNU gettext.
90447         * lib/printf-parse.c: Generalize to it can be compiled for wide
90448         strings.
90449         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90450         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90451         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90452         SNPRINTF): New macros.
90453         Don't include <alloca.h> if the file is used inside libintl.
90454         (local_wcslen): New function, for Solaris 2.5.1.
90455         (VASNPRINTF): Use it instead of wcslen.
90456
90457 2003-11-16  Bruno Haible  <bruno@clisp.org>
90458
90459         * lib/xsize.h (xmax): New function.
90460         (xsum, xsum3, xsum4): Declare as "pure" functions.
90461
90462 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90463
90464         * modules/xalloc (Files): Undo latest change, since xalloc.h
90465         no longer needs SIZE_MAX or PTRDIFF_MAX.
90466
90467 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90468
90469         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90470         gl_PTRDIFF_MAX.
90471
90472 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90473
90474         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90475         "return", to pacify some unknown compiler.  Problem reported
90476         by Joerg Schilling.
90477
90478 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90479
90480         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90481         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90482         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90483         heuristic is just as accurate as far as we know, and it removes a
90484         dependency on size_max.m4 and ptrdiff_max.m4.
90485
90486 2003-11-11  Bruno Haible  <bruno@clisp.org>
90487
90488         * modules/xsize (Files): Add m4/size_max.m4.
90489         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90490
90491 2003-11-11  Bruno Haible  <bruno@clisp.org>
90492
90493         * m4/size_max.m4: New file.
90494         * m4/ptrdiff_max.m4: New file.
90495         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90496         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90497         (gl_XALLOC): Invoke it.
90498
90499 2003-11-11  Bruno Haible  <bruno@clisp.org>
90500
90501         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90502         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90503         defined.
90504
90505 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90506
90507         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90508         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90509         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90510         From Bruno Haible.
90511         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90512         not (size_t) -1, since it's defined here.
90513
90514 2003-11-09  Karl Berry  <karl@gnu.org>
90515
90516         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90517
90518 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90519
90520         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90521         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90522         Reject sizes of exactly SIZE_MAX bytes.
90523         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90524         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90525
90526 2003-11-05  Bruno Haible  <bruno@clisp.org>
90527
90528         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90529         SIZE_MAX defined in <limits.h> on Solaris.
90530
90531 2003-11-04  Jim Meyering  <jim@meyering.net>
90532
90533         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90534         variable names, rather than @VAR@.
90535         * modules/poll: Likewise.
90536
90537 2003-11-04  Bruno Haible  <bruno@clisp.org>
90538
90539         * modules/xsize: New file.
90540         * modules/linebreak: Depend on xsize.
90541         * MODULES.html.sh (func_all_modules): Add xsize.
90542
90543 2003-11-04  Bruno Haible  <bruno@clisp.org>
90544
90545         * m4/xsize.m4: New file.
90546
90547 2003-11-04  Bruno Haible  <bruno@clisp.org>
90548
90549         * lib/xsize.h: New file.
90550         * lib/linebreak.c: Include xsize.h.
90551         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90552         argument for overflow.
90553         Suggested by Paul Eggert.
90554
90555 2003-11-03  Karl Berry  <karl@gnu.org>
90556
90557         * config/config.{guess,sub}: update from config.
90558
90559 2003-11-03  Jim Meyering  <jim@meyering.net>
90560
90561         * modules/userspec (lib_SOURCES): Add userspec.h.
90562         (Include): Add "userspec.h".
90563         Improve description.
90564
90565 2003-11-03  Jim Meyering  <jim@meyering.net>
90566
90567         * lib/userspec.c: Include "userspec.h".
90568         * lib/userspec.h: New file.
90569
90570 2003-11-03  Bruno Haible  <bruno@clisp.org>
90571
90572         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90573
90574 2003-11-03  Bruno Haible  <bruno@clisp.org>
90575
90576         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90577         available, to avoid (extremely rare) race condition.
90578         Suggested by Paul Eggert.
90579
90580 2003-11-02  Karl Berry  <karl@gnu.org>
90581
90582         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90583
90584 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90585
90586         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90587         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90588         (read_filesystem_list): Set and use me_type_malloced.
90589         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90590         whatever the type happens to be), for brevity and consistency.
90591         Check for size calculation overflow on Alphas running OSF/1.
90592
90593 2003-10-31  Jim Meyering  <jim@meyering.net>
90594
90595         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90596
90597         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90598
90599 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90600             Bruno Haible  <bruno@clisp.org>
90601
90602         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90603         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90604
90605 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90606
90607         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90608         netbsd*-gnu*.  Suggested by Robert Millan.
90609
90610 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90611
90612         * modules/group-member: Depend on stdbool.
90613
90614 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90615
90616         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90617
90618 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90619
90620         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90621         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90622         after the 'gnu' in these cases.  This fixes some bugs in the
90623         previous change, and is based on suggestions by Robert Millan.
90624
90625 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90626
90627         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90628         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90629         no longer needed.
90630         * lib/quotearg.c (quotearg_n_options): Use it.
90631         * lib/group-member.c: Include <stdbool.h>.
90632         (free_group_info): Arg is now const *; don't free arg.
90633         (get_group_info): Now returns bool and accepts struct group_info *,
90634         rather than returning a malloc'ed struct group_info *.
90635         All uses changed.  Check for overflow in internal size calculation.
90636
90637         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90638         rather than xmalloc/xrealloc.
90639         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90640         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90641         conformance bug: the old code used a pointer after freeing the
90642         storage that it addressed.
90643         * lib/hash.c (hash_initialize): Simplify the code by using
90644         xalloc_oversized rather than doing it by hand.
90645         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90646         the buffer preserved.  Use free and xmalloc instead.
90647         * lib/quotearg.c (quotearg_n_options): Likewise.
90648         Use a simpler test for size overflow.  Don't use xalloc_oversized
90649         because unsigned int might be wider than size_t (!); this suggests
90650         that we should switch from unsigned int to size_t for slot numbers.
90651
90652 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90653
90654         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90655         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90656         NetBSD kernels.  Requested by Richard Stallman.
90657
90658 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90659
90660         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90661         to allocate the returned structure.  Do not allocate a subarray,
90662         as x2nrealloc will do that.
90663         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90664         instead of xnrealloc.
90665         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90666
90667 2003-10-27  Bruno Haible  <bruno@clisp.org>
90668
90669         * lib/stdbool_.h: Better support for BeOS.
90670
90671 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90672
90673         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90674         now uses inline.
90675
90676 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90677
90678         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90679         callers that want to do their own size-overflow checking.  Include
90680         <stdbool.h>, since xalloc_oversized returns bool.
90681         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90682         to use xalloc_oversized.
90683
90684         Add two functions x2realloc, x2nrealloc, for programs that grow
90685         arrays dynamically by doubling their sizes.
90686         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90687         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90688         New functions.
90689
90690         Port to C99 semantics for 'inline' of external functions.
90691         Bug reported by Bruno Haible.
90692         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90693         with the old contents of xnmalloc.
90694         (xnmalloc, xmalloc): Use it.
90695         (xnrealloc_inline): New static inline function,
90696         with the old contents of xnrealloc.
90697         (xnrealloc, xrealloc): Use it.
90698
90699         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90700         that.
90701
90702 2003-10-26  Karl Berry  <karl@gnu.org>
90703
90704         * config/srclist.txt (COPYING.DOC): no longer available from
90705         /gd/gnuorg; don't know where the ultimate source is.
90706
90707 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90708
90709         Fix several address-calculation bugs in the hash modules,
90710         plus some minor code cleanup.
90711
90712         * lib/hash.h: Include <stdbool.h>, for bool.
90713         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90714         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90715         hash_get_n_entries, hash_get_max_bucket_length,
90716         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90717         hash_rehash): Use size_t rather than unsigned.
90718         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90719         hash_get_n_buckets_used, hash_get_n_entries,
90720         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90721         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90722         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90723         Likewise.
90724         (SIZE_MAX): Define if not defined.
90725         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90726         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90727         hash_print):
90728         Use const * when possible.
90729         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90730         (check_tuning): Fix bug: if tuning parameters were very close to
90731         0 or 1, rounding errors could have caused subscript violations.
90732         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90733         (hash_initialize): Add 'fail:' label
90734         to free table and return NULL, and use it to simplify code.
90735         Use calloc rather than clearing the storage ourself.
90736         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90737         buffer size calculations.
90738         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90739         Include <stddef.h>, for size_t.
90740         * lib/hash-pjw.c (hash_pjw): Likewise.
90741         Switch to method described by Bruno Haible.
90742         Include <limits.h>, for CHAR_BIT.
90743         (SIZE_BITS): New macro.
90744
90745 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90746
90747         * m4/getline.m4 (AM_FUNC_GETLINE):
90748         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90749         hosts.  Problem reported by Derek Robert Price in
90750         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90751         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90752         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90753
90754 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90755
90756         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90757         ceiling the allocation at NMAX bytes rather than silently
90758         discarding input bytes before NMAX is reached.  This makes
90759         a difference only if NMAX exceeds SIZE_MAX / 2.
90760
90761         * lib/obstack.c: Merge from glibc.
90762         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90763         Add libc_hidden_def (_obstack_newchunk).
90764         (_obstack_free) [! defined _LIBC]: Remove.
90765         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90766         a clone of the function body.
90767         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90768         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90769
90770         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90771         glibc.
90772         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90773         arg to memcpy.
90774
90775         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90776         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90777         Don't use lvalue casts, as GCC plans to remove support for them
90778         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90779         was also present in the non-GCC version, indicating that this
90780         code had always been buggy and had never been widely used.
90781         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90782         Use the fast variant of each macro, rather than copying the
90783         definiens of the fast variant; that way, we'll be more likely to
90784         catch future bugs in the fast variants.
90785
90786 2003-10-20  Bruno Haible  <bruno@clisp.org>
90787
90788         * modules/wait-process: New file.
90789         * MODULES.html.sh (func_all_modules): Add wait-process.
90790
90791 2003-10-20  Bruno Haible  <bruno@clisp.org>
90792
90793         * m4/wait-process.m4: New file.
90794
90795 2003-10-20  Bruno Haible  <bruno@clisp.org>
90796
90797         * lib/wait-process.h: New file, from GNU gettext.
90798         * lib/wait-process.c: New file, from GNU gettext.
90799
90800 2003-10-19  Jim Meyering  <jim@meyering.net>
90801
90802         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90803         HPUX 10.20.
90804
90805 2003-10-18  Karl Berry  <karl@gnu.org>
90806
90807         * config/config.guess: update from config.
90808
90809 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90810
90811         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90812         (getgroups): First arg is int, not size_t.
90813         Don't let 'free' mangle errno.
90814
90815 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90816
90817         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90818
90819 2003-10-16  Karl Berry  <karl@gnu.org>
90820
90821         * config/config.{guess,sub}: update from config.
90822
90823 2003-10-16  Jim Meyering  <jim@meyering.net>
90824
90825         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90826         memcpy.
90827
90828 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90829
90830         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90831         (SIZE_MAX): Remove.
90832         (new_exclude, add_exclude_file): Initial size no longer needs to
90833         be a power of 2.
90834         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90835         our own address arithmetic overflow checking.
90836
90837         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90838         (fnmatch): Do not alloca more than 2000 wide characters;
90839         instead, use malloc for large buffers.
90840         Check for address arithmetic overflow, and return -1
90841         with errno set to ENOMEM in that case.
90842         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90843         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90844         instead, return -1.  Check for address arithmetic overflow.
90845
90846 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90847
90848         Handle invalid suffixes and overflow independently, so that
90849         callers can treat them independently as needed.  Fix some bugs in
90850         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90851         suffix for a human-readable blocksize.  The major caller-visible
90852         change is the addition of a new
90853         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90854         that both overflow and suffix chars were found.
90855
90856         * lib/human.c (humblock): Don't check separately for invalid suffix
90857         char; that is xstrtoumax's job (now that its bug is fixed).
90858         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90859         INTMAX_MAX]: New macros.
90860         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90861         TYPE_MAXIMUM): New macros.
90862         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90863         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90864         if overflow occurs, as it's what __strtol does and it's more useful
90865         in practice.
90866         (__xstrtol): If __strtol reports some error other than ERANGE,
90867         reflect it to the caller as LONGINT_INVALID.  If it reports
90868         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90869         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90870         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90871         value.
90872         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90873         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90874         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90875         [defined UINTMAX_MAX]: New macros.
90876
90877 2003-10-14  Bruno Haible  <bruno@clisp.org>
90878
90879         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90880
90881 2003-10-14  Bruno Haible  <bruno@clisp.org>
90882
90883         * m4/sig_atomic_t: New file, from GNU gettext.
90884         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90885
90886 2003-10-14  Bruno Haible  <bruno@clisp.org>
90887
90888         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90889         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90890         Also use volatile where needed.
90891
90892 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90893
90894         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90895         Change maintainer from Bruno Haible to 'all'.
90896
90897 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90898
90899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90900
90901 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90902
90903         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90904         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90905         and define in terms of the other primitives.
90906         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90907         (SIZE_MAX): Define if not already defined.
90908         (array_size_overflow): New function.
90909         (xalloc_die): Abort instead of exiting if 'error' returns.
90910         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90911         (xmalloc, xrealloc): Use them.
90912         (xcalloc): Check for address arithmetic overflow.
90913         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90914         a bit faster than strcpy.
90915
90916 2003-10-10  Simon Josefsson  <jas@extundo.com>
90917
90918         * modules/argp (Depends-on): Add restrict and strcase.
90919
90920 2003-10-10  Simon Josefsson  <jas@extundo.com>
90921
90922         * m4/argp.m4: Add AC_C_INLINE.
90923
90924 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90925
90926         Merge getpass from libc, plus a few fixes.
90927
90928         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90929         Include <stdbool.h>.
90930         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90931         __fsetlocking to empty.
90932         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90933         do include <bits/libc-lock.h>.
90934         Do not include <fcntl.h>; not needed.
90935         [_LIBC]: Include <wchar.h>.
90936         (NOTCANCEL_MODE): New macro.
90937         (flockfile, funlockfile) [_LIBC]: New macros.
90938         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90939         [!_LIBC]: New macros.
90940         (call_fclose): New function.
90941         (getpass): Use it.  Save tty stream separately; this simplifies the
90942         code and makes it more reliable if stdin happens to equal stdout.
90943         Invoke __fsetlocking on tty.
90944         Handle thread cancellation if needed.
90945         Namespace cleanup (use __tcgetattr, __getline).
90946         Use bool for Booleans.
90947         [USE_IN_LIBIO]: Handle wide streams.
90948         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90949         stream might go where.
90950
90951         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90952         doesn't have to include <stdio.h> before us.
90953         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90954         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90955         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90956         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90957         if not declared, so that we can use getpass.c code from libc without
90958         rewriting it.
90959         (flockfile, ftrylockfile, funlockfile): New macros.
90960
90961 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90962
90963         * modules/getpass: Depend on stdbool.
90964
90965 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90966
90967         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90968
90969 2003-10-07  Karl Berry  <karl@gnu.org>
90970
90971         * config/config.{guess,sub}: update from config.
90972
90973 2003-10-06  Jim Meyering  <jim@meyering.net>
90974             Bruno Haible  <bruno@clisp.org>
90975
90976         This lets translators provide better translations for the
90977         "Written by ..." part of --version output.
90978         * lib/version-etc.h: Include stdarg.h.
90979         (version_etc_copyright): Declare as readonly.
90980         (version_etc): Make this function variadic with a NULL-terminated list
90981         of author name strings.
90982         (version_etc_va): New declaration.
90983         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90984         (version_etc_copyright): Declare as readonly.
90985         (version_etc_va): New function. Provide a different translatable string
90986         for each possible number of authors < 10. Abbreviate when there are 10
90987         authors or more.
90988         (version_etc): Make this function variadic. Call version_etc_va.
90989         Suggestion from Gary V. Vaughan.
90990
90991         * lib/long-options.h (parse_long_options): Change prototype: the
90992         authors string is moved to the end and becomes variadic.
90993         * lib/long-options.c: Include stdarg.h.
90994         (parse_long_options): Make this function variadic, too.
90995         Call version_etc_va, not version_etc.
90996
90997 2003-10-06  Bruno Haible  <bruno@clisp.org>
90998
90999         * modules/version-etc-2: Remove file.
91000         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91001
91002 2003-10-06  Bruno Haible  <bruno@clisp.org>
91003
91004         * modules/fatal-signal: New file.
91005         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91006
91007 2003-10-06  Bruno Haible  <bruno@clisp.org>
91008
91009         * m4/fatal-signal.m4: New file.
91010         * m4/signalblocking.m4: New file, from GNU gettext.
91011
91012 2003-10-06  Bruno Haible  <bruno@clisp.org>
91013
91014         * lib/version-etc-2.h: Remove file.
91015         * lib/version-etc-2.c: Remove file.
91016
91017 2003-10-06  Bruno Haible  <bruno@clisp.org>
91018
91019         * lib/fatal-signal.h: New file, from GNU gettext.
91020         * lib/fatal-signal.c: New file, from GNU gettext.
91021
91022 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91023
91024         * README: Rework advice for preventing empty .o files.
91025         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91026         not <sys/types.h>.
91027
91028 2003-10-04  Karl Berry  <karl@gnu.org>
91029
91030         * lib/argp*: update from libc.
91031
91032 2003-10-04  Karl Berry  <karl@gnu.org>
91033
91034         * config/config.{guess,sub}: update from config.
91035
91036 2003-10-02  Bruno Haible  <bruno@clisp.org>
91037
91038         * modules/lchown (Include): Add lchown.h.
91039         * modules/time_r (Include): Use "..." syntax.
91040         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91041
91042 2003-10-01  Simon Josefsson  <jas@extundo.com>
91043
91044         * MODULES.html.sh (func_all_modules): Move gethostname from section
91045         'based on' to section 'lacking' POSIX:2001.
91046
91047 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91048
91049         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91050         to output mode on the same stream.
91051
91052 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91053
91054         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91055         Fix arg typo in previous patch.
91056
91057 2003-09-28  Jim Meyering  <jim@meyering.net>
91058
91059         * lib/error.c: Correct cpp indentation.
91060
91061 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91062
91063         * modules/free: New file.
91064
91065 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91066
91067         * m4/free.m4: New file.
91068
91069 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91070
91071         * lib/minmax.h (MIN, MAX)
91072         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91073         Omit the special code that used __typeof__, since we worry that
91074         it could be more trouble than it's worth.  See:
91075         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91076         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91077
91078         * lib/free.c: New file.
91079
91080 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91081
91082         Trivial fixes to Makefile.am parts of module listings.
91083         * modules/strstr: Append strstr.h to lib_SOURCES.
91084         * modules/strcase: Likewise, for strcase.h.
91085
91086 2003-09-27  Karl Berry  <karl@gnu.org>
91087
91088         * config/mkinstalldirs: update from automake.
91089
91090 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91091
91092         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91093         (error_tail): Do not loop, reallocating temporary buffer, since
91094         the output cannot contain more wide characters than the input
91095         contains bytes, the size must be big enough already.  This avoids
91096         one potential size overflow calculation.  Check for size overflow
91097         when calculating temporary buffer size.  Free temporary buffer
91098         when done, if it was allocated with malloc; this plugs a memory
91099         leak.  Remove casts from void * to pointers, that are no longer
91100         needed now that we're assuming C89 or better.
91101
91102         Merge error changes from glibc.
91103
91104         * lib/error.c, error.h: Update copyright notice header to match glibc.
91105         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91106         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91107         Disable cancellation while printing error.
91108         * lib/error.h: Prepend __ to parameter names.
91109
91110 2003-09-26  Jim Meyering  <jim@meyering.net>
91111
91112         * lib/error.c (error_tail): Move some declarations
91113         into inner scope where the local variables are used.
91114
91115 2003-09-26  Bruno Haible  <bruno@clisp.org>
91116
91117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91118         stpncpy().
91119         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91120
91121 2003-09-26  Bruno Haible  <bruno@clisp.org>
91122
91123         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91124         (stpncpy): Define as alias for gnu_stpncpy.
91125         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91126
91127 2003-09-25  Simon Josefsson  <jas@extundo.com>
91128
91129         * lib/xgetdomainname.h: New file.
91130         * lib/xgetdomainname.c: New file.
91131
91132 2003-09-25  Simon Josefsson  <jas@extundo.com>
91133             Bruno Haible  <bruno@clisp.org>
91134
91135         * modules/getdomainname: New file.
91136         * modules/xgetdomainname: New file.
91137         * MODULES.html.sh (func_all_modules): Add getdomainname,
91138         xgetdomainname.
91139
91140 2003-09-25  Simon Josefsson  <jas@extundo.com>
91141             Bruno Haible  <bruno@clisp.org>
91142
91143         * m4/getdomainname.m4: New file.
91144
91145 2003-09-25  Simon Josefsson  <jas@extundo.com>
91146             Bruno Haible  <bruno@clisp.org>
91147
91148         * lib/getdomainname.h: New file.
91149         * lib/getdomainname.c: New file.
91150
91151 2003-09-25  Karl Berry  <karl@gnu.org>
91152
91153         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91154
91155 2003-09-25  Karl Berry  <karl@gnu.org>
91156
91157         * config/install-sh: update from automake.
91158
91159 2003-09-25  Bruno Haible  <bruno@clisp.org>
91160
91161         * modules/version-etc-2: New file, from modules/version-etc with
91162         modifications.
91163         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91164
91165 2003-09-25  Bruno Haible  <bruno@clisp.org>
91166
91167         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91168         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91169
91170 2003-09-24  Simon Josefsson  <jas@extundo.com>
91171
91172         * modules/xgethostname: Add xgethostname.h.
91173
91174 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91175
91176         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91177         the buffer associated with the argument.  Bug reported by
91178         Simon Josefsson.
91179
91180 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91181
91182         * README: Document assumptions that 'int' is at least 32 bits
91183         wide, that integer arithmetic is 2's complement without overflow,
91184         that there are no holes in integer values, that adding sizes of
91185         two nonoverlapping objects can't overflow, and that all-bits-zero
91186         yields scalar zero.  Fix spelling and capitalization typos.
91187
91188 2003-09-19  Karl Berry  <karl@gnu.org>
91189
91190         * lib/argp.h: update from libc.
91191
91192 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91193
91194         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91195         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91196         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91197
91198 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91199
91200         * gnulib-tool: Use "test -h", not "test -L", for portability
91201         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91202         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91203         (sed_extract_prog): Issue s commands one-by-one, rather than
91204         using \| in one s command.
91205
91206 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91207
91208         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91209         input error, instead of returning NULL the next time we are called
91210         (and therefore losing track of errno).
91211
91212 2003-09-16  Bruno Haible  <bruno@clisp.org>
91213
91214         * gnulib-tool (func_create_testdir): Warn about duplicated
91215         dependencies.
91216
91217 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91218
91219         * modules/argmatch, modules/fatal, modules/obstack,
91220         modules/xalloc, modules/xgethostname: Sort dependencies by
91221         importance, not alphabetically.
91222
91223 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91224
91225         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91226         fails, so that the caller gets the proper errno.
91227
91228         * lib/readutmp.c (read_utmp): Likewise.
91229         Check for fstat error.  Close stream and free storage
91230         when failing.
91231
91232 2003-09-14  Karl Berry  <karl@gnu.org>
91233
91234         * config/srclist.txt (strdup.c): disable for c89 changes.
91235
91236 2003-09-14  Jim Meyering  <jim@meyering.net>
91237
91238         * lib/getloadavg.c: Correct cpp indentation.
91239         * lib/strdup.c: Likewise.
91240         * lib/vasnprintf.c: Likewise.
91241
91242 2003-09-14  Bruno Haible  <bruno@clisp.org>
91243
91244         * modules/fwriteerror: New file.
91245         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91246
91247 2003-09-14  Bruno Haible  <bruno@clisp.org>
91248
91249         * lib/fwriteerror.h: New file.
91250         * lib/fwriteerror.c: New file.
91251
91252 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91253
91254         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91255         modules/xgethostname, modules/xalloc: Depend on exit.
91256
91257 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91258
91259         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91260
91261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91262         and AC_MINIX, too, so that their extensions are available.
91263
91264         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91265         This macro has been superseded by gl_BACKUPFILE.
91266
91267         More patches to assume C89 or better.
91268
91269         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91270
91271         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91272         unconditionally.
91273         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91274         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91275         Include <string.h>, <stdlib.h> unconditionally.
91276         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91277         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91278         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91279         headers or for string.h.
91280         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91281         or strtoul.
91282
91283         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91284         headers.
91285         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91286         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91287         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91288         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91290         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91291         memcpy, memset.
91292         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91293         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91294         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91295         strtol.
91296         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91297         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91299         strtoul.
91300
91301 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91302
91303         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91304         * lib/obstack.c [!defined _LIBC]: Likewise.
91305         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91306         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91307         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91308
91309         More changes to assume C89 or better.
91310
91311         * lib/error.c (error_tail): Assume vprintf.
91312
91313         * lib/argmatch.c (getenv): Remove decl.
91314         * lib/progreloc.c (get_full_program_name): Define via prototype.
91315         * lib/setenv.c (clearenv): Likewise.
91316         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91317         needed.
91318         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91319         (malloc, memcpy): Remove decls.
91320         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91321         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91322         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91323         (memcpy): Remove macro.
91324         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91325         (__P): Remove.  All uses removed.
91326         (PTR): Remove.  All uses changed to void *.
91327         (CHAR_BIT, NULL): Remove.
91328         (spaces, zeros, memset_space, memset_zero)
91329         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91330         Remove.
91331         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91332         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91333         Define with prototype.
91334         Remove now-unnecessary prototype decl.
91335         (extra_args_spec): Assume ANSI C.  All uses changed.
91336         (extra_args_spec_iso): Remove.
91337         (my_strftime, emacs_strftimeu): Define via prototype.
91338         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91339         unconditionally.
91340         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91341         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91342         (strtoul, strtol): Remove decls.
91343         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91344         LONG_MAX): Remove.
91345         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91346         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91347         (LOCALE_PARAM_PROTO): New macro.
91348         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91349         (INTERNAL (strtol), strtol): Define with a prototype.
91350         (PARAMS): Remove.  All uses removed.
91351         * lib/tempname.c: Include <string.h> unconditionally.
91352         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91353         * lib/xgethostname.c (main): Define with a prototype.
91354         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91355         Include <stdlib.h> unconditionally.
91356         (calloc, malloc, realloc, free): Remove decls.
91357         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91358         Include <stdlib.h> unconditionally.  Sort include file names.
91359         (strtod): Remove.
91360         (xstrtod): Define with a prototype.
91361         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91362         (strtol, strtoul): Remove decls.
91363
91364 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91365
91366         More patches to assume C89 or better.
91367         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91368         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91369         string.h, memchr, STDC_HEADERS.
91370
91371 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91372
91373         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91374         Include <stdlib.h>, <string.h> unconditionally.
91375         Remove now-unnecessary cast to char *.
91376         * lib/strnlen.c: Include <string.h> unconditionally.
91377         * lib/yesno.c (yesno): Define with a prototype.
91378
91379 2003-09-11  Bruno Haible  <bruno@clisp.org>
91380
91381         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91382
91383 2003-09-10  Jim Meyering  <jim@meyering.net>
91384
91385         * lib/error.c: Correct indentation of cpp directives.
91386
91387 2003-09-10  Bruno Haible  <bruno@clisp.org>
91388
91389         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91390         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91391         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91392         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91393         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91394         <stdlib.h> and <string.h> checks.
91395         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91396         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91397
91398 2003-09-10  Bruno Haible  <bruno@clisp.org>
91399
91400         * lib/strcspn.c: Include <string.h> unconditionally.
91401         * lib/strpbrk.c: Include <string.h> unconditionally.
91402         * lib/strstr.c: Include <string.h> unconditionally.
91403         * lib/unicodeio.c: Include <string.h> unconditionally.
91404         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91405         * lib/unsetenv.c: Likewise.
91406         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91407         * lib/yesno.c: Include <stdlib.h> unconditionally.
91408         (rpmatch): Add prototype.
91409
91410 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91411
91412         More patches to assume C89 or better.
91413         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91414         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91415         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91416         or for string.h.
91417         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91418         stdlib.h.
91419         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91420         C headers.
91421         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91422         string.h.
91423         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91424         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91425         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91426         or for string.h.
91427         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91428         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91429         C headers.
91430         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91431         memcpy.
91432         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91433         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91434         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91435         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91436         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91437         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91438         string.h, free.
91439         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91440         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91441         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91442         C headers, or for string.h.
91443         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91444         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91445         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91446         headers, memory.h, stdlib.h, string.h, strings.h.
91447         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91448         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91449         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91450         strchr.
91451         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91452         headers, memory.h, string.h.
91453         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91454         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91455         free.
91456         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91457         headers.
91458         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91459         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91460         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91461         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91462         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91463
91464 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91465
91466         More K&R removal.
91467
91468         * lib/acosl.c (main): Use a prototype.
91469         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91470         tanl.c: Likewise.
91471
91472         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91473
91474         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91475         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91476         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91477         with a prototype.
91478         * lib/getopt.c (const): Remove macro.
91479         Include <string.h> unconditionally.
91480         (my_index): Remove; all uses changed to strchr.
91481         (strlen): Remove decl.
91482         (exchange): Remove forward decl; no longer needed.
91483         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91484         Define with prototype.
91485         * lib/getopt1.c (const): Remove macro.
91486         (getopt_long, getopt_long_only, main): Define with prototype.
91487
91488         * lib/getugroups.c: Include <string.h> unconditionally.
91489
91490         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91491         (getusershell, setusershell, endusershell, readname, main):
91492         Define with prototypes.
91493
91494         * lib/group-member.c: Include group-member.h first.
91495         Include <stdlib.h> unconditionally.
91496
91497         * lib/hard-locale.c: Include hard-locale.h first.
91498         Include <stdlib.h>, <string.h> unconditionally.
91499
91500         * lib/hash.c (free, malloc): Remove decls.
91501         Include <stdlib.h> unconditionally.
91502
91503         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91504         (getenv): Do not declare.
91505
91506         * lib/idcache.c: Include <string.h> unconditionally.
91507
91508         * lib/long-options.c: Include long-options.h first, to test interface.
91509         Include <stdlib.h> unconditionally.
91510
91511         * lib/makepath.c: Include makepath.h first, to test interface.
91512         Include <stdlib.h> and <string.h> unconditionally.
91513
91514         * lib/linebuffer.c: Include <stdlib.h>.
91515         (free): Remove decl.
91516
91517         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91518         stddef.h. rpl_malloc returns void *, not char *.
91519         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91520         prototype.
91521
91522         * lib/md5.h: Include <limits.h> unconditionally.
91523         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91524         (__P): Remove; all uses removed.
91525         * lib/md5.c: Include "md5.h" first.
91526         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91527         md5_buffer, md5_process_bytes, md5_process_block):
91528         Define with prototypes.
91529         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91530         * lib/sha.c: Include "sha.h" first.
91531         Include <stdlib.h>, <string.h> unconditionally.
91532
91533         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91534         * lib/memcmp.c (__ptr_t): Likewise.
91535         * lib/memrchr.c (__ptr_t): Likewise.
91536         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91537         Include <string.h> unconditionally.
91538         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91539         * lib/memchr.c: Include <stdlib.h> unconditionally.
91540         * lib/memchr.c (LONG_MAX): Remove.
91541         * lib/memrchr.c (LONG_MAX): Likewise.
91542         * lib/memchr.c (__memchr): Define via a prototype.
91543         * lib/memrchr.c (__memrchr): Likewise.
91544         * lib/memcmp.c (__P): Remove, and remove all uses.
91545         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91546         Remove forward decls; no longer needed.
91547         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91548         Use types required by C89 in prototype.
91549
91550         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91551         * lib/savedir.c: Likewise.
91552         * lib/mkdir.c (free): Remove decl.
91553         * lib/rmdir.c (rmdir): Define with a prototype.
91554         * lib/savedir.c: Include savedir.h first, to test interface.
91555
91556         * lib/mktime.c (STDC_HEADERS): Remove.
91557         Include <stdlib.h>, <string.h> unconditionally.
91558
91559         * lib/modechange.c: Include <stdlib.h> unconditionally.
91560         (malloc): Remove decl.
91561
91562         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91563         (free): Remove decl.
91564
91565         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91566         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91567         (This type really should be intptr_t, but that's a C99ism.)
91568         (_obstack_memcpy): Remove: all uses changed to memcpy.
91569         Include <string.h> unconditionally.
91570         (struct obstack): Assume __STDC__ for types of members
91571         chunkfun, freefun, extra_arg.
91572         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91573         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91574         obstack_begin, obstack_specify_allocation,
91575         obstack_specify_allocation_with_arg, obstack_chunkfun,
91576         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91577         Remove unprototyped decls and the macros that use them.
91578         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91579         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91580         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91581         (defined __STDC__ && __STDC__)]:
91582         Remove nonprototyped code.
91583         Include <stdlib.h> unconditionally.
91584         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91585         _obstack_allocated_p, _obstack_free, obstack_free,
91586         _obstack_memory_used, print_and_abort):
91587         Define using prototypes.
91588         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91589         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91590         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91591         obstack_next_free, obstack_object_size, obstack_room) [0]:
91592         Remove unused, unprototyped code.
91593
91594         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91595
91596         * lib/physmem.c (physmem_total, physmem_available, main): Define
91597         with prototypes.
91598
91599         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91600         (main): Define with a prototype.
91601
91602         * lib/posixver.c (getenv): Remove decl.
91603
91604         * lib/putenv.c (malloc): Returns void *, not char *.
91605         Include <string.h> unconditionally.
91606         (strchr, memcpy, NULL): Do not define.
91607
91608         * lib/readtokens.c: Include readtokens.h first, to test interface.
91609         Include <stdlib.h>, <string.h> unconditionally.
91610         (init_tokenbuffer): Define with a prototype.
91611
91612         * lib/regex.c (PARAMS): Remove.  All uses removed.
91613         All uses of _RE_ARGS removed, too.
91614         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91615         unconditionally.
91616         (bzero): Assume memset exists.
91617         (memcmp, memcpy, NULL): Remove.
91618         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91619         char, or assignments to local vars of type signed char.
91620         (init_syntax_once, PREFIX(extract_number_and_incr),
91621         PREFIX(print_partial_compiled_pattern),
91622         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91623         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91624         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91625         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91626         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91627         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91628         wcs_compile_range, byte_compile_range, truncate_wchar,
91629         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91630         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91631         count_mbs_length, wcs_re_match_2_internal,
91632         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91633         PREFIX(alt_match_null_string_p),
91634         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91635         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91636         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91637         now-unnecessary declaration, if any.
91638         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91639         regcomp, regexec):
91640         Remove now-unnecessary casts among pointer types.
91641         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91642
91643         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91644         (free): Remove decl.
91645
91646         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91647
91648         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91649         (free): Remove decl.
91650
91651         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91652         * lib/xgetcwd.c: Likewise.
91653
91654         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91655         (free): Remove decl.
91656
91657         * lib/strchrnul.c (strchrnul): Define with a prototype.
91658         Fix bug: c_in was not converted to char before searching.
91659
91660         The following changes are not K&R related:
91661
91662         * lib/group-member.h: Include <sys/types.h>, so that this file is
91663         self-contained.
91664         * lib/makepath.h: Likewise.
91665
91666         * lib/getusershell.c (readname, default_index, line_size, readname):
91667         Use size_t, not int, for sizes.
91668         (readname): If the size overflows, report an error instead of
91669         looping forever.
91670
91671 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91672
91673         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91674         libc.
91675
91676 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91677
91678         * README: New section: portability guidelines.
91679
91680 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91681
91682         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91683         C89 spec.
91684
91685 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91686
91687         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91688
91689 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91690
91691         Assume C89 or better; remove K&R cruft.
91692         A few of these changes were first proposed by Derek Robert Price
91693         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91694
91695         * lib/addext.c: Include <string.h> unconditionally.
91696         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91697         Don't declare getenv or malloc.
91698
91699         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91700         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91701         (NULL): Remove.
91702         (find_stack_direction, alloca): Use prototypes.
91703
91704         * lib/atexit.c (atexit): Define using a prototype.
91705
91706         * lib/basename.c, dirname.c, stripslash.c:
91707         Include <string.h> unconditionally.
91708
91709         * lib/bcopy.c: Include <stddef.h>.
91710         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91711
91712         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91713
91714         * lib/error.h (error, error_at_line, error_print_progname)
91715         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91716         * lib/error.c: Include error.h first, to check interface.
91717         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91718         (VA_START): Remove; all uses changeed to va_start.
91719         (exit, strerror): Remove decls.
91720         (error_print_progname): Prototype uncondionally.
91721         Don't include <errno.h>; no longer needed.
91722         (private_strerror): Remove.
91723         (error_tail): Always define.
91724         (error, error_at_line): Assume C89 or better; always use prototypes.
91725         * lib/fatal.c: Include "fatal.h" first, to test interface.
91726         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91727         (VA_START): Remove; all uses changed to va_start.
91728         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91729         this case.
91730         (exit): Remove decl.
91731         (fatal): Prototype unconditionally.  Assume va_start works.
91732         Abort at end, to pacify gcc.
91733
91734         * lib/euidaccess.c (main): Define with a prototype.
91735
91736         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91737
91738         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91739
91740         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91741         prototypes.
91742         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91743         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91744         (getenv): Remove decl.
91745         (fnmatch): Define using a prototype.
91746         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91747         (FCT): Define using a prototype.
91748
91749         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91750
91751         * lib/gethostname.c: Include <stddef.h>.
91752         (gethostname): Define with prototype.  Length is size_t, not int.
91753
91754 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91755
91756         Assume C89 or better; remove K&R cruft.
91757         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91758         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91759         string.h, getenv, malloc.
91760         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91761         headers.
91762         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91763         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91764         do not check for strerror.
91765         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91766         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91767         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91768         do not check for doprnt or vprintf.
91769         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91770         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91771
91772 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91773
91774         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91775         getversion.c should have been removed then, but was accidentally
91776         preserved.
91777
91778         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91779         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91780
91781 2003-09-08  Karl Berry  <karl@gnu.org>
91782
91783         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91784                 config, forget about prep.
91785
91786         * config/depcomp, missing: update from automake.
91787
91788 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91789
91790         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91791         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91792
91793 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91794
91795         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91796         copy_tm_result.  Bug reported by Simon Josefsson in
91797         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91798
91799 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91800
91801         * m4/time_r.m4: New file.
91802         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91803         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91804         is. Check for timegm declaration.
91805         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91806         Do not check for gmtime_r.
91807         Replace mktime if __mktime_internal does not exist and if mktime
91808         hasn't been replaced already.
91809
91810 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91811
91812         * lib/time_r.c, lib/time_r.h: New files.
91813
91814         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91815         __localtime_r.
91816         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91817         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91818
91819         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91820         __gmtime_r.
91821         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91822         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91823         Include <time_r.h>.
91824
91825         * lib/timegm.c: Switch to glibc implementation, with the following
91826         changes:
91827         [defined HAVE_CONFIG_H]: Include <config.h>.
91828         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91829         (__mktime_internal) [!defined _LIBC]: New decl.
91830         (__gmtime_r) [!defined _LIBC]: New macro and function.
91831         (timegm): Use a prototype, since gnulib assumes C89.
91832         Do not bother declaring tmp to be const, as it's not really usefu.
91833         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91834         (timegm): Declare only if HAVE_DECL_TIMEGM.
91835
91836 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91837
91838         * MODULES.html.sh (func_all_modules): Add time_r.
91839         * modules/time_r: New file.
91840         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91841         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91842
91843 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91844
91845         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91846         Bug reported by Lute Kamstra in
91847         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91848
91849         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91850         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91851         course with correspondingly smaller numbers for tomorrow and
91852         yesterday.  From Tadayoshi Funaba.  Originally installed into
91853         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91854         coreutils merge?).
91855
91856 2003-08-31  Simon Josefsson  <jas@extundo.com>
91857
91858         * modules/timegm: New file.
91859         * MODULES.html.sh (func_all_modules): Add timegm.
91860
91861 2003-08-31  Simon Josefsson  <jas@extundo.com>
91862
91863         * m4/timegm.m4: New file.
91864
91865 2003-08-31  Simon Josefsson  <jas@extundo.com>
91866
91867         * lib/timegm.h: New file.
91868         * lib/timegm.c: New file.  Based on
91869         wget-1.8.2/src/http.c:mktime_from_utc.
91870
91871 2003-08-31  Karl Berry  <karl@gnu.org>
91872
91873         * lib/argp.h: update from libc.
91874
91875 2003-08-28  Bruno Haible  <bruno@clisp.org>
91876
91877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91878         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91879         followed by '#define fnmatch fnmatch_posix' gives an error.
91880
91881 2003-08-28  Bruno Haible  <bruno@clisp.org>
91882
91883         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91884         warning on QNX, which defines O_BINARY to 000000.
91885
91886 2003-08-27  Jim Meyering  <jim@meyering.net>
91887
91888         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91889         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91890         would fail after 32.  Reported by Danny Levinson.  Details here:
91891         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91892
91893 2003-08-24  Bruno Haible  <bruno@clisp.org>
91894
91895         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91896         MSVC7 <stdio.h> is included later.
91897
91898 2003-08-22  Simon Josefsson  <jas@extundo.com>
91899
91900         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91901
91902 2003-08-20  Karl Berry  <karl@gnu.org>
91903
91904         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91905
91906 2003-08-20  Bruno Haible  <bruno@clisp.org>
91907
91908         * modules/progname: New file.
91909         * MODULES.html.sh (func_all_modules): Add progname.
91910
91911 2003-08-20  Bruno Haible  <bruno@clisp.org>
91912
91913         * lib/progname.h: New file, from GNU gettext.
91914         * lib/progname.c: New file, from GNU gettext.
91915         * lib/progreloc.c: New file, from GNU gettext.
91916
91917 2003-08-19  Jim Meyering  <jim@meyering.net>
91918
91919         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91920         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91921
91922 2003-08-19  Bruno Haible  <bruno@clisp.org>
91923
91924         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91925         more.
91926
91927 2003-08-19  Bruno Haible  <bruno@clisp.org>
91928
91929         * lib/xstrdup.c: Assume <string.h> exists.
91930
91931 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91932
91933         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91934         in makefile rules.
91935
91936 2003-08-18  Jim Meyering  <jim@meyering.net>
91937
91938         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91939         * m4/lib-ld.m4: Likewise.
91940
91941 2003-08-18  Jim Meyering  <jim@meyering.net>
91942
91943         * lib/setenv.h: Indent nested cpp directive.
91944         * lib/vasnprintf.c: Remove trailing blanks.
91945
91946 2003-08-17  Simon Josefsson  <jas@extundo.com>
91947
91948         * modules/xstrndup: New file.
91949         * MODULES.html.sh (func_all_modules): Add xstrndup.
91950
91951 2003-08-17  Simon Josefsson  <jas@extundo.com>
91952
91953         * modules/argp: Fix autoconf macro name. Add more dependencies.
91954
91955 2003-08-17  Simon Josefsson  <jas@extundo.com>
91956
91957         * m4/xstrndup.m4: New file.
91958
91959 2003-08-17  Simon Josefsson  <jas@extundo.com>
91960
91961         * m4/argp.m4: New file.
91962
91963 2003-08-17  Simon Josefsson  <jas@extundo.com>
91964             Bruno Haible  <bruno@clisp.org>
91965
91966         * lib/xstrndup.h: New file.
91967         * lib/xstrndup.c: New file.
91968
91969 2003-08-17  Bruno Haible  <bruno@clisp.org>
91970
91971         * modules/strndup (Files, Include): Add lib/strndup.h.
91972
91973 2003-08-17  Bruno Haible  <bruno@clisp.org>
91974
91975         * modules/euidaccess (Files): Add lib/euidaccess.h.
91976
91977 2003-08-17  Bruno Haible  <bruno@clisp.org>
91978
91979         * lib/strndup.h: New file.
91980
91981 2003-08-17  Bruno Haible  <bruno@clisp.org>
91982
91983         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91984         like AC_GNU_SOURCE.
91985         * modules/extensions (configure.ac): Comment out the invocation of
91986         gl_USE_SYSTEM_EXTENSIONS.
91987
91988 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91989
91990         Merges from coreutils, etc.
91991         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91992         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91993         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91994         fixing a typo.
91995         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91996         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91997
91998 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91999
92000         Document merge from coreutils.
92001         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92002         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92003         * modules/utime: Add m4/utimes-null.m4.
92004
92005 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92006
92007         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92008         space, undoing this 2003-08-12 change:
92009         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92010
92011 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92012
92013         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92014         strtoul.c from libc, undoing this 2003-08-12 change:
92015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92016
92017 2003-08-16  Jim Meyering  <jim@meyering.net>
92018
92019         Merges from coreutils.
92020         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92021         prefix.  Adjust cache variables similarly.  Create 500 rather than
92022         just 300 files, to exercise bug on Darwin6.5, too.
92023         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92024         $missing_dir.
92025         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92026         AM_SYS_POSIX_TERMIOS.
92027         Reported by mkc@mathdogs.com.
92028         Also change use of $am_cv_sys_posix_termios
92029         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92030         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92031         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92032         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92033         in /proc/mounts until it finds one with matching device number.  This
92034         is unnecessary when the FILE argument *is* a mount point.  No stat call
92035         is necessary in that case.  So, disable the statvfs-testing code on
92036         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92037         as RedHat bug# 84846.
92038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92039         to 1MB, so as not to render systems with no stack size limit (e.g.,
92040         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92041         Include <unistd.h>.  On some systems,
92042         it is required for the definition of _SC_PAGESIZE.
92043
92044 2003-08-16  Jim Meyering  <jim@meyering.net>
92045
92046         Merge from coreutils.
92047         * lib/xstrtoimax.c: #else #if -> #elif.
92048         * lib/xstrtoumax.c: Likewise.
92049
92050 2003-08-16  Jim Meyering  <jim@meyering.net>
92051
92052         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92053         * m4/utimes.m4: Removed.
92054         * m4/utimes-null.m4: Renamed from utimes.m4.
92055
92056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92057         to 1MB, so as not to render systems with no stack size limit (e.g.,
92058         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92059         Include <unistd.h>.  On some systems,
92060         it is required for the definition of _SC_PAGESIZE.
92061
92062 2003-08-16  Jim Meyering  <jim@meyering.net>
92063         and Paul Eggert  <eggert@cs.ucla.edu>
92064
92065         Merges from coreutils, etc.
92066
92067         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92068         using the latest version from cvs.  This avoids problems with #line
92069         directives using a vendor (Sun) compiler.
92070         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92071         Don't set GETGROUPS_LIB here; now it's
92072         done via getgroups.m4's wrapper function.
92073         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92074         rather than just in sh-util/configure.in, so that the
92075         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92076         same.
92077         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92078         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92079         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92080         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92081         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92082         Remove code that is now done by the newly-required macros.
92083         Append $(EXEEXT) to DF_PROG.
92084         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92085         Do not invoke or require the following here,
92086         since prereq.m4 or some gnulib .m4 now does this for us:
92087         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92088         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92089         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92090         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92091         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92092         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92093         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92094         AC_FUNC_OBSTACK.
92095         Do not replace the following functions, as this is now the job
92096         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92097         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92098         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92099         atexit getpass, strdup, getpagesize.
92100         Replace 'raise'.
92101         Do not check for the following functions, as this is now the job
92102         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92103         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92104         setregid.
92105         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92106         Check for sys/sysctl.h.
92107         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92108         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92109         of checking for ssize_t ourselves.
92110
92111         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92112         Require every macro that gnulib/modules/* suggests for us.
92113         (jm_PREREQ_ADDEXT): New macro.
92114         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92115         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92116
92117         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92118         (gl_PHYSMEM): Use it.
92119         Also check for `table' function.
92120         Check for new headers and functions.
92121         Add check for sys/sysmp.h.
92122         With suggestions from Kaveh Ghazi.
92123         Ignore headers that are present but cannot be compiled.  This
92124         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92125         C 5.4.
92126
92127 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92128
92129         Document merge from coreutils.
92130         * modules/userspec: Depend on posixver.
92131         * modules/strftime: Depend on tzset.
92132
92133 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92134
92135         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92136         rather than tab, after '#' in shell-script copyright notices.
92137         Suggested by Bruno Haible.
92138
92139 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92140
92141         * config/srclist-update: Use three spaces, rather than tab, after '#'
92142         in shell-script copyright notices.  Suggested by Bruno Haible.
92143         Remove unnecessary parenthesization in regular expression.
92144
92145 2003-08-15  Jim Meyering  <jim@meyering.net>
92146
92147         Merge from coreutils.
92148         * lib/xgethostname.c: Include <stdlib.h>.
92149         (xghostname): Don't exit for anything other than memory-related
92150         failure; just return NULL.
92151         * lib/userspec.c: Include "posixver.h".
92152         (parse_user_spec): Accept `.' as a separator only
92153         in pre-POSIX-200112 mode.
92154         * lib/strtoimax.c: Use #elif rather than #else #if.
92155         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92156         Remove function, now that we can rely on a working tzset function.
92157         [!_LIBC]: Ensure that the required autoconf test has been run.
92158         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92159         Use underlying_strftime for %r.
92160         * lib/sha.c: Merge in some clean-up and optimization changes from
92161         glibc.
92162         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92163         Ensure that it is a multiple of 64.
92164         Rearrange loop exit tests so as to avoid performing an
92165         additional fread after encountering an error or EOF.
92166         * lib/realloc.c: Update copyright date.
92167
92168 2003-08-15  Jim Meyering  <jim@meyering.net>
92169         and Paul Eggert  <eggert@twinsun.com>
92170
92171         Merge from coreutils.
92172         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92173         member but strut utmpx does not.  Needed for AIX 4.3.3.
92174         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92175
92176 2003-08-15  Jim Meyering  <jim@meyering.net>
92177         and Paul Eggert  <eggert@cs.ucla.edu>
92178
92179         Merges from coreutils, etc.
92180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92181         Require gl_FUNC_TZSET_CLOBBER.
92182         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92183         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92184         members.
92185
92186 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92187
92188         Help the merge from coreutils.
92189         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92190         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92191         * m4/tzset.m4: Use it too.
92192
92193 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92194
92195         * modules/tzset: New file.
92196
92197 2003-08-14  Jim Meyering  <jim@meyering.net>
92198
92199         Merges from coreutils.
92200         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92201         variable names, rather than @FNMATCH_H@.
92202         * modules/alloca: Likewise for $(ALLOCA_H).
92203
92204         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92205         the three copies of the literal target, `fnmatch.h'.
92206         * modules/alloca (alloca.h): Likewise.
92207
92208 2003-08-14  Jim Meyering  <jim@meyering.net>
92209
92210         Merge from coreutils.
92211         * m4/tzset.m4: New file.
92212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92213         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92214         otherwise, AIX 5.1 systems would end up using the latter.
92215         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92216         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92217         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92218         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92219
92220 2003-08-14  Jim Meyering  <jim@meyering.net>
92221
92222         Merge from coreutils.
92223         * lib/obstack.h: Whitespace changes.
92224         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92225         and xcalloc return values.
92226         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92227         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92228         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92229         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92230         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92231         error from mntctl.
92232         Use mntctl's return value to drive the entry-processing loop, since
92233         we can't rely on the value of the vmt_length member in the last
92234         entry.  On some systems doing so could result in exhausting
92235         virtual memory.  Based in part on a patch from Mike Jetzer.
92236
92237 2003-08-14  Jim Meyering  <jim@meyering.net>
92238         and Paul Eggert  <eggert@twinsun.com>
92239
92240         Merges from coreutils, plus other fixes.
92241         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92242         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92243         for credits and details.  Thanks to Kaveh Ghazi for helping
92244         to keep these files in sync.
92245         (ARRAY_SIZE): Define it.
92246         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92247         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92248         (memcasecmp): Don't assume size_t fits in unsigned int.
92249         Remove casts and duplicate code.
92250         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92251         (memcpy): Remove definition.
92252         Merge in some clean-up and optimization changes from glibc.
92253         [BLOCKSIZE]: Move definition to top of file.
92254         Ensure that it is a multiple of 64.
92255         Rearrange loop exit tests so as to avoid performing an
92256         additional fread after encountering an error or EOF.
92257         * lib/md5.h (md5_uintptr): Define.
92258         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92259         return to the initial working directory.  Preserve errno
92260         for caller.
92261         * lib/idcache.c: Include "xalloc.h".
92262         (xmalloc, xrealloc): Remove decls.
92263         (getuser): Remove casts no longer required in C89.
92264         * lib/human.c: Include stdio.h, for sprintf.
92265         * lib/group-member.c: Include "xalloc.h".
92266         (xmalloc, xrealloc): Remove decls.
92267         (get_group_info): Remove casts no longer required in C89.
92268         * lib/getusershell.c (readname): Remove casts no longer required in
92269         C89.
92270         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92271         * lib/getline.c: Whitespace fix, from coreutils.
92272
92273 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92274
92275         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92276         Check for isascii.
92277
92278         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92279         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92280         Undo previous (whitespace-only) change.
92281
92282 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92283
92284         * lib/exclude.c: Include <ctype.h>
92285         (IN_CTYPE_DOMAIN): New macro.
92286         (is_space): New fn.
92287         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92288         and empty lines.
92289
92290         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92291         Undo previous (whitespace-only) change.
92292
92293 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92294
92295         * config/srclist-update: Change update back to the old behavior,
92296         leaving whitespace alone.  Use one 'sed' command rather than a
92297         pipeline.
92298         (fixlicense): Now a variable, not a function.
92299         (remove_trailing_blanks): Remove.
92300         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92301         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92302         Undo previous (whitespace-only) change.
92303
92304 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92305
92306         Merge from coreutils.
92307         * modules/euidaccess: Add lib_SOURCES, include for new
92308         file euidaccess.h
92309
92310 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92311
92312         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92313         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92314         Normalize leading white space and remove trailing white space.
92315
92316         Merge from coreutils
92317         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92318
92319         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92320         0.12.1.  These files are now being upgraded automatically by
92321         ../config/srclist-update.
92322
92323 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92324
92325         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92326         Normalize leading white space and remove trailing white space.
92327         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92328         notice, as per ../config/srclist-update.
92329
92330         Merge from coreutils.
92331         * lib/euidaccess.h: New file.
92332         * lib/euidaccess.c: Include it.
92333         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92334         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92335         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92336
92337 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92338
92339         * config/srclist-update: Add copyright notice.
92340         (remove_id_lines, remove_trailing_blanks): New constants.
92341         (fixfile): Use them to normalize spacing a bit in copied files.
92342         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92343         Normalize leading white space and remove trailing white space.
92344
92345         * config/texinfo.tex: Sync with texinfo.
92346
92347         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92348         strtoul.c from libc, to merge coreutils whitespace changes.
92349
92350         * config/srclist.txt: Get the following m4 files from gettext:
92351         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92352         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92353         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92354         wint_t.m4.
92355
92356 2003-08-12  Karl Berry  <karl@gnu.org>
92357
92358         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92359         been made.
92360
92361 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92362
92363         * modules/gnu-source, m4/gnu-source.m4:
92364         Remove; we're assuming Autoconf 2.54 or later now.
92365         Suggested by Bruno Haible.
92366         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92367
92368 2003-08-11  Bruno Haible  <bruno@clisp.org>
92369
92370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92371
92372 2003-08-11  Bruno Haible  <bruno@clisp.org>
92373
92374         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92375         (vasnprintf): Use it instead of wcslen.
92376
92377 2003-08-11  Bruno Haible  <bruno@clisp.org>
92378
92379         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92380         value to ensure that _Bool promotes to int. Use #define for _Bool when
92381         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92382
92383 2003-08-10  Karl Berry  <karl@gnu.org>
92384
92385         * lib/regex.h: update from libc (whitespace fix).
92386
92387 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92388
92389         Merge some files from coreutils.  These changes were
92390         originally made by Jim Meyering.
92391         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92392         many older Unixes require this.
92393         * lib/alloca.c (alloca): Remove cast to argument of free;
92394         no longer needed in C89.
92395         * lib/alloca_.h, regex.h: Fix white space to match
92396         what GNU indent does.
92397
92398 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92401         apparently Emacs's Unicode mode got confused before my 2003-08-05
92402         checkin.
92403
92404 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92405
92406         * m4/extensions.m4: New file.
92407         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92408         Require gl_USE_SYSTEM_EXTENSIONS.
92409         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92410         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92411
92412 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92413
92414         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92415         * modules/extensions, modules/gnu-source: New files.
92416         * modules/timespec, modules/unlocked-io: Depend on extensions.
92417
92418 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92419
92420         * modules/restrict: New file.
92421         * MODULES.html.sh (func_all_modules): Add restrict.
92422         * modules/regex: Depend on restrict.
92423
92424 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92425
92426         * m4/restrict.m4: New file.
92427         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92428
92429 2003-08-07  Bruno Haible  <bruno@clisp.org>
92430
92431         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92432         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92433
92434 2003-08-07  Bruno Haible  <bruno@clisp.org>
92435
92436         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92437         makes the module 'getndelim2' compatible with the module 'getline'.
92438
92439 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92440
92441         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92442         byte with "\201" to avoid glitches when editing that source file
92443         with multi-gnome-terminal.
92444
92445 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92446
92447         * lib/bumpalloc.h: Remove.
92448
92449 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92450
92451         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92452         * modules/bumpalloc: Remove.
92453
92454 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92455
92456         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92457         GNU coding style.
92458
92459         Merge from coreutils.
92460         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92461         1. From glibc.
92462         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92463         from Karl Berry, implemented by Jim Meyering.
92464         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92465         from Dmitry V. Levin.
92466         Remove anachronistic cast of xrealloc.
92467         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92468         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92469         type. Otherwise, it wouldn't compile with at least /bin/cc on
92470         ymp-cray-unicos9.0.2.X.
92471         Combine two mostly-identical uses of alloca into one.
92472         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92473
92474 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92475
92476         [From Emacs.]
92477
92478         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92479         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92480         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92481         obsolete NLIST_NAME_UNION.
92482         [__GNU__]: Undef BSD and FSCALE.
92483         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92484
92485 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92486
92487         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92488         an enum type, so that it's guaranteed to promote to int.  See:
92489         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92490
92491 2003-08-03  Karl Berry  <karl@gnu.org>
92492
92493         * config/depcomp: update from automake.
92494
92495 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92496
92497         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92498         (strerror): Don't assume that a printable int fits in 14 bytes.
92499
92500 2003-07-31  Bruno Haible  <bruno@clisp.org>
92501
92502         * modules/getpass-gnu: New file.
92503         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92504
92505 2003-07-31  Bruno Haible  <bruno@clisp.org>
92506
92507         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92508
92509 2003-07-24  Karl Berry  <karl@gnu.org>
92510
92511         * config/missing: update from automake.
92512
92513 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92514             Bruno Haible  <bruno@clisp.org>
92515
92516         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92517         * lib/getline.c (getline, getdelim): Likewise.
92518         Remove _GNU_SOURCE define; now it's defined in config.h through
92519         m4/getline.m4.
92520
92521 2003-07-23  Karl Berry  <karl@gnu.org>
92522
92523         * config/config.sub: update from prep.
92524
92525 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92526
92527         * modules/xalloc (Depends-on): Add exitfail.
92528         * modules/xmemcoll: Likewise.
92529
92530 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92531
92532         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92533         over-parenthesization in macros.
92534
92535         Sync with coreutils.
92536
92537         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92538         required by C99.
92539
92540         Use `exit_failure' for xalloc and xmemcoll instead of their own
92541         private exit-failure variables.
92542         * lib/xalloc.h (xalloc_exit_failure): Remove.
92543         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92544         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92545         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92546         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92547         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92548
92549 2003-07-20  Jim Meyering  <jim@meyering.net>
92550
92551         * modules/closeout (Depends-on): Add exitfail.
92552         Suggestion from Bruno Haible.
92553
92554 2003-07-19  Karl Berry  <karl@gnu.org>
92555
92556         * config/config.sub: update from prep.
92557
92558 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92561         Remove.
92562         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92563         to test that it can stand by itself.  Include "exitfail.h".
92564         Clients should set exit_failure instead.
92565         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92566
92567 2003-07-18  Bruno Haible  <bruno@clisp.org>
92568
92569         * modules/getndelim2: New file.
92570         * modules/getline: Share files with module getndelim2.
92571         * modules/getnline: Depend on getndelim2 instead of sharing files with
92572         it. Add getnline.c to lib_SOURCES.
92573         * MODULES.html.sh (func_all_modules): Add getndelim2.
92574
92575 2003-07-18  Bruno Haible  <bruno@clisp.org>
92576
92577         * m4/getndelim2.m4: New file.
92578         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92579         invoke gl_PREREQ_GETNDELIM2.
92580         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92581         gl_PREREQ_GETNDELIM2.
92582         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92583         gl_GETNDELIM2.
92584
92585 2003-07-18  Bruno Haible  <bruno@clisp.org>
92586
92587         * lib/getndelim2.h: New file.
92588         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92589         getndelim2.h.
92590         (getndelim2): Make non-static. Change return type to ssize_t.
92591         * lib/getline.h: Change argument names.
92592         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92593         * lib/getnline.c: Include getndelim2.h.
92594
92595 2003-07-18  Andreas Schwab  <schwab@suse.de>
92596
92597         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92598
92599 2003-07-17  Karl Berry  <karl@gnu.org>
92600
92601         * config/config.sub: update from prep.
92602
92603 2003-07-17  Bruno Haible  <bruno@clisp.org>
92604
92605         * modules/getnline: New file.
92606         * modules/getline: Add lib/getndelim2.c to source file list.
92607         * MODULES.html.sh (func_all_modules): Add getnline.
92608
92609 2003-07-17  Bruno Haible  <bruno@clisp.org>
92610
92611         * m4/getnline.m4: New file.
92612
92613 2003-07-17  Bruno Haible  <bruno@clisp.org>
92614
92615         * m4/Makefile.am.in: Remove file.
92616         * m4/Makefile.am: Remove file.
92617         * m4/Makefile.in: Remove file.
92618
92619 2003-07-17  Bruno Haible  <bruno@clisp.org>
92620
92621         * lib/getnline.h: New file.
92622         * lib/getnline.c: New file.
92623         * lib/getndelim2.c: New file, extracted from getline.c.
92624         (getndelim2): Renamed from getdelim2, with added nmax argument.
92625         * lib/getline.c: Include getndelim2.c.
92626         (getdelim2): Moved out to getndelim2.c.
92627         (getline, getdelim): Update.
92628
92629 2003-07-17  Bruno Haible  <bruno@clisp.org>
92630
92631         * lib/Makefile.am: Remove file.
92632         * lib/Makefile.in: Remove file.
92633
92634 2003-07-17  Bruno Haible  <bruno@clisp.org>
92635
92636         * configure.in: Remove file.
92637         * Makefile.in: Remove file.
92638
92639 2003-07-17  Bruno Haible  <bruno@clisp.org>
92640
92641         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92642
92643 2003-07-16  Karl Berry  <karl@gnu.org>
92644
92645         * config/srclist-update: was running fixlicense twice, which caused
92646                 texinfo.tex to be nullified for some reason.  Simplify,
92647                 $gplsrc is no longer needed as far as I can see?
92648
92649 2003-07-16  Jim Meyering  <jim@meyering.net>
92650
92651         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92652
92653 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92654
92655         * config/srclist.txt: Get the following files from gettext-runtime/intl
92656         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92657         ref-del.sin.  From Bruno Haible.
92658         * config/srclist-update (fixfile): Change grep pattern again, since the
92659         previous fix didn't work (there was another trailing $).  Use
92660         '[$]' to escape the $s.
92661
92662 2003-07-15  Karl Berry  <karl@gnu.org>
92663
92664         * lib/vasnprintf.c: update from gettext.
92665
92666 2003-07-15  Karl Berry  <karl@gnu.org>
92667
92668         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92669         gets expanded when surrounded by '$'.
92670
92671 2003-07-15  Jim Meyering  <jim@meyering.net>
92672
92673         * modules/save-cwd: Don't depend on error.  From Derek Price.
92674
92675 2003-07-15  Jim Meyering  <jim@meyering.net>
92676
92677         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92678
92679 2003-07-14  Simon Josefsson  <jas@extundo.com>
92680
92681         * modules/mempcpy: New file.
92682         * MODULES.html.sh (func_all_modules): Add mempcpy.
92683
92684 2003-07-14  Simon Josefsson  <jas@extundo.com>
92685
92686         * m4/mempcpy.m4: New file.
92687
92688 2003-07-14  Simon Josefsson  <jas@extundo.com>
92689
92690         * lib/mempcpy.h: New file.
92691         * lib/mempcpy.c: New file.
92692
92693 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92694
92695         * modules/getdate, modules/posixtm: Depend on mktime.
92696
92697 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92698
92699         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92700         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92701         unicodeio.c, unicodeio.h, unlocked-io.h:
92702         Switch from LGPL to GPL.
92703
92704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92705
92706         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92707         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92708         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92709         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92710         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92711         updated automatically by ../config/srclist-update.  This changes
92712         their license from LPGL to GPL.
92713
92714 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92715
92716         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92717         assumed to refer to the root of the most recent stable gettext version.
92718         * config/srclistvars.sh: Add defaults for eggert.
92719         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92720         Match "This program" as well as "The program".  This is needed
92721         for gettext.
92722
92723 2003-07-14  Jim Meyering  <jim@meyering.net>
92724
92725         Don't emit diagnostics.  Let callers do that.
92726         * lib/save-cwd.c: Don't include "error.h".
92727         (save_cwd): Don't call error.  Ensure that errno is valid
92728         when returning nonzero.
92729
92730         * lib/save-cwd.h (restore_cwd): Update prototype.
92731         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92732         Simplify.  Don't call error upon failure.  Let callers do that.
92733         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92734         when auditing is enabled.  But don't bother updating the #if.
92735
92736 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92737
92738         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92739         it breaks C++ compilation.
92740         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92741
92742 2003-07-10  Simon Josefsson  <jas@extundo.com>
92743
92744         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92745
92746 2003-07-10  Jim Meyering  <jim@meyering.net>
92747
92748         * m4/clock_time.m4: Remove trailing blank.
92749         * m4/intmax_t.m4: Likewise.
92750
92751 2003-07-10  Jim Meyering  <jim@meyering.net>
92752
92753         * lib/vasnprintf.c: Remove trailing blanks.
92754         Make cpp indentation consistent.
92755
92756 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92757
92758         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92759         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92760         Switch from LGPL to GPL.
92761
92762 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92763
92764         * config/srclist.txt: Sort sublists.  Add
92765         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92766         that differ from gnulib for one reason or another; we'd like this list
92767         to be smaller but for now let's document what we have.
92768
92769 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92770
92771         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92772         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92773         and sweeter "eval x=$x".
92774         * config/srclist.txt: Get lib/argp* from glibc.
92775
92776 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92777
92778         * lib/mktime.c: Fix some boundary cases and remove need for floating
92779         point.
92780
92781         Issue a compile-time diagnostic if time_t is floating point, or if
92782         two's complement arithmetic is not in effect, or if arithmetic
92783         right shift does not propagate the sign.  These assumptions were
92784         all in the original code but they weren't checked.
92785
92786         (TIME_T_MIDPOINT, verify): New macros.
92787         (__isleap): Remove; it has integer overflow problems.
92788         (leapyear): New function, without those problems.
92789         (ydhms_tm_diff): Remove; splitting into two parts.
92790         (ydhms_diff): New function, containing the arithmetic part of
92791         the old ydhms_tm_diff function.  Issue a compile-time
92792         diagnostic if we are not using C99 integer division.
92793         Avoid casts when possible.
92794         (guess_time_tm): New function, containing the checking part of
92795         the old ydhms_tm_diff function.  Return the new value, rather than
92796         the difference between it and the old.  Accept a new argument T
92797         so that *T specifies the old value.  Check for overflow in the result.
92798
92799         (__mktime_internal): Use a time_t offset, not a long int offset.
92800         This undoes the 2003-06-04 change, which is no longer needed now
92801         that we have better overflow checking.
92802         (localtime_offset): Likewise.
92803
92804         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92805         and long are 64-bit but int is only 32-bit.
92806         (ydhms_diff): Use long int to store year1 and yday1.
92807         Issue a compile-time diagnostic if long int is not wide enough.
92808
92809         (__mktime_internal): Use long int to store adjusted year and yday.
92810         Use plain C rather than preprocessor commands, if that doesn't
92811         affect efficiency.
92812         Check for overflow (and try to repair) after each probe
92813         rather than checking only at the very end.  This avoids some bugs
92814         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92815         does not equal GMT offset at maximum time).
92816         Use integer to check for overflow rather than floating point; this
92817         is more portable to non-IEEE hosts, and is a tad faster.
92818         When we detect that we are oscillating between two values,
92819         don't check whether tm_isdst has the requested value, since
92820         we already know the answer.  When tm_isdst has the wrong value,
92821         use a different heuristic to find the right one, based on the
92822         extreme values actually observed in practice in tz2003a,
92823         rather than the (overly optimistic) "previous 3 calendar quarters".
92824
92825         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92826         "T const" to accommodate glibc style.
92827         (check_result): Use less-confusing report format.  "long" -> "long int.
92828         (main): Likewise.
92829         Don't loop if the iteration overflows time_t.
92830         Allow a negative step in the iteration.
92831
92832 2003-07-06  Karl Berry  <karl@gnu.org>
92833
92834         * config/depcomp: update from automake.
92835         * config/config.sub: update from prep.
92836
92837 2003-07-03  Karl Berry  <karl@gnu.org>
92838
92839         * config/config.guess: update from prep.
92840
92841 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92842
92843         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92844         xreadlink.c now includes it unconditionally.
92845
92846 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92847
92848         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92849         having it depend on HAVE_SYS_TYPES_H.
92850
92851 2003-07-01  Bruno Haible  <bruno@clisp.org>
92852
92853         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92854         <sys/types.h> should be sufficient.
92855         Reported by Paul Eggert.
92856
92857 2003-06-26  Karl Berry  <karl@gnu.org>
92858
92859         * config/depcomp: update from automake.
92860
92861 2003-06-26  Bruno Haible  <bruno@clisp.org>
92862
92863         * modules/human: Depend on module stdbool.
92864
92865 2003-06-25  Bruno Haible  <bruno@clisp.org>
92866
92867         * modules/readlink: New file.
92868         * modules/xreadlink: Depend on it.
92869         * MODULES.html.sh (func_all_modules): Add readlink.
92870
92871 2003-06-25  Bruno Haible  <bruno@clisp.org>
92872
92873         * m4/readlink.m4: New file.
92874
92875 2003-06-25  Bruno Haible  <bruno@clisp.org>
92876
92877         * lib/readlink.c: New file.
92878
92879 2003-06-22  Karl Berry  <karl@gnu.org>
92880
92881         * config/srclist.txt: update mkinstalldirs from automake.
92882         * config/mkinstalldirs: update.
92883
92884 2003-06-22  Bruno Haible  <bruno@clisp.org>
92885
92886         Portability to mingw32.
92887         * m4/ssize_t.m4: New file, from GNU gettext.
92888         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92889         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92890
92891 2003-06-22  Bruno Haible  <bruno@clisp.org>
92892
92893         * modules/safe-read: Add m4/ssize_t.m4.
92894         * modules/xreadlink: Add m4/ssize_t.m4.
92895
92896 2003-06-20  Bruno Haible  <bruno@clisp.org>
92897
92898         Assume C89, so PARAMS isn't needed.
92899         * lib/unicodeio.h (PARAMS): Remove.
92900         * lib/unicodeio.c: Don't use PARAMS.
92901
92902 2003-06-18  Karl Berry  <karl@gnu.org>
92903
92904         * config/config.{guess,sub}: update from prep.
92905
92906 2003-06-18  Jim Meyering  <jim@meyering.net>
92907
92908         Merge changes from coreutils.
92909         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92910         Remove explicit declarations of xmalloc and realloc.
92911         Include xalloc.h.
92912         (read_utmp): Remove anachronistic cast of xmalloc.
92913
92914 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92915
92916         Assume C89, so PARAMS isn't needed.
92917         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92918         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92919         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92920         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92921         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92922         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92923         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92924         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92925         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92926         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92927         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92928         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92929         no longer needed. Anyway, config.h should always be included before any
92930         other file.
92931
92932 2003-06-11  Simon Josefsson  <jas@extundo.com>
92933
92934         * modules/sysexits: New file.
92935         * MODULES.html.sh (func_all_modules): Add sysexits.
92936
92937 2003-06-11  Simon Josefsson  <jas@extundo.com>
92938
92939         * lib/sysexit_.h: New file.
92940
92941 2003-06-11  Derek Price  <derek@ximbiot.com>
92942
92943         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92944         necessary.
92945
92946 2003-06-11  Bruno Haible  <bruno@clisp.org>
92947
92948         * m4/sysexits.m4: New file.
92949
92950 2003-06-10  Simon Josefsson  <jas@extundo.com>
92951
92952         * lib/argp.h: New file, from glibc.
92953         * lib/argp-ba.c: New file, from glibc.
92954         * lib/argp-eexst.c: New file, from glibc.
92955         * lib/argp-fmtstream.c: New file, from glibc.
92956         * lib/argp-fmtstream.h: New file, from glibc.
92957         * lib/argp-fs-xinl.c: New file, from glibc.
92958         * lib/argp-help.c: New file, from glibc.
92959         * lib/argp-namefrob.h: New file, from glibc.
92960         * lib/argp-parse.c: New file, from glibc.
92961         * lib/argp-pv.c: New file, from glibc.
92962         * lib/argp-pvh.c: New file, from glibc.
92963         * lib/argp-xinl.c: New file, from glibc.
92964
92965 2003-06-10  Simon Josefsson  <jas@extundo.com>
92966
92967         * modules/strchrnul: New file.
92968
92969 2003-06-10  Simon Josefsson  <jas@extundo.com>
92970
92971         * modules/argp: New file.
92972
92973 2003-06-10  Simon Josefsson  <jas@extundo.com>
92974
92975         * m4/strchrnul.m4: New file.
92976
92977 2003-06-10  Simon Josefsson  <jas@extundo.com>
92978
92979         * lib/strchrnul.h: New file.
92980         * lib/strchrnul.c: New file.
92981
92982 2003-06-10  Bruno Haible  <bruno@clisp.org>
92983
92984         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92985
92986 2003-06-07  Karl Berry  <karl@gnu.org>
92987
92988         * config/config.{guess,sub}: update from prep.
92989
92990 2003-06-07  Jim Meyering  <jim@meyering.net>
92991
92992         * modules/strtod: Use $(...) notation, not @...@ for
92993         AC_REPLACE'd variables.
92994         * modules/localcharset: Likewise.
92995
92996 2003-06-07  Jim Meyering  <jim@meyering.net>
92997
92998         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92999         in place of my name in the copyright comment.
93000         Remove definition and uses of __P.
93001
93002         From coreutils.
93003         * lib/stat.c: Don't declare xmalloc explicitly.
93004         Instead, include "xalloc.h".
93005         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93006         xrealloc, and xcalloc return values.
93007         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93008         Improve comment.
93009         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93010
93011 2003-06-07  Bruno Haible  <bruno@clisp.org>
93012
93013         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93014         avoid AC_CONFIG_LINKS.
93015         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93016         fnmatch.h, to avoid AC_CONFIG_LINKS.
93017         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93018
93019 2003-06-07  Bruno Haible  <bruno@clisp.org>
93020
93021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93022         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93023         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93024         directory.
93025         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93026         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93027         directory.
93028
93029 2003-06-06  Jim Meyering  <jim@meyering.net>
93030
93031         Merge from coreutils.
93032         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93033         Consolidate declarations and initializations of *_base* locals.
93034
93035         Merge from coreutils.
93036         This avoids a core dump on systems without GNU putenv,
93037         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93038         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93039         (unsetenv): New static function, from GNU libc.
93040         (rpl_putenv): Use it.
93041
93042         * lib/modechange.c: Remove trailing blanks.
93043
93044         Merge from coreutils.
93045         * lib/fsusage.c: Remove declaration of statfs.
93046         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93047
93048         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93049
93050 2003-06-06  Jim Meyering  <jim@meyering.net>
93051
93052         * lib/stdbool_.h: Renamed from stdbool.h.in.
93053
93054 2003-06-06  Jim Meyering  <jim@meyering.net>
93055             Bruno Haible  <bruno@clisp.org>
93056
93057         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93058         Adjust Makefile.am snippet not to redirect directly to target.
93059         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93060
93061 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93062
93063         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93064         mismatch, look in future quarters as well as past.  This fixes a
93065         bug when processing fall-backwards gaps immediately after a long
93066         period of daylight-saving time.
93067
93068         * lib/mktime.c: Assume freestanding C89 or better.
93069         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93070         (__P): Remove; not used.
93071         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93072         (mktime, not_equal_tm, print_tm, check_result,
93073         main): Use prototypes.  Use const * where appropriate.
93074         (main): Fix typo in testing code that uncovered by above changes.
93075         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93076
93077 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93078
93079         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93080         locale.h, localeconv.  This merges changes from coreutils.
93081
93082         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93083         It can be removed after the next Autoconf is released.
93084         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93085         needed.
93086
93087 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93088
93089         * lib/mktime.c: Fix Debian bug 177940
93090         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93091         (localtime_offset): Now long int, not time_t, because we want it
93092         to be guaranteed to be signed.  All uses changed.
93093         (__mktime_internal): If overflow would occur when adding offset,
93094         don't add it.
93095
93096         Merge 'human' changes from coreutils.  Rewrite to support
93097         locale-specific notations like thousands separators.
93098         * lib/human.c: Simplify authorship notice.
93099         Include human.h immediately after config.h.
93100         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93101         <limits.h>: Do not include, since human.h does.
93102         (SIZE_MAX, UINTMAX_MAX): New macros.
93103         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93104         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93105         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93106         (power_letter): Renamed from suffixes.
93107         (generate_suffix_backwards): Remove.
93108         (adjust_value): Now takes int style (because of human.h changes)
93109         and long double value (for greater precision on some platforms).
93110         (group_number): New function.
93111         (human_readable): Use it.  Use integer options, not enum.
93112         Put the options before the sizes in the arg list.
93113         Support all the new options.
93114         The old human_readable function has been removed;
93115         use inttostr.h instead.
93116         (human_readable, default_block_size, humblock):
93117         Use uintmax_t, not int, for block sizes.
93118         (human_readable_inexact, block_size_types): Remove.
93119         (block_size_opts): New constant.
93120         (human_options): Renamed from human_block_size, with new signature
93121         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93122         * lib/human.h: Add copyright and authorship notice.
93123         Include <limits.h> and <stdbool.h> unconditionally.
93124         (PARAMS): Remove.  All uses removed.
93125         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93126         (enum human_inexact_style): Remove tag; now a nameless enum.
93127         (human_floor, human_ceiling, human_round_to_even): Now have
93128         values 2, 0, 1 rather than -1, 1, 0.
93129         (human_group_digits, human_suppress_point_zero, human_autoscale,
93130         human_base_1024, human_SI, human_B): New constants.
93131         (human_readable_inexact, human_block_size): Remove.
93132         (human_readable): Size args are now uintmax_t, not int.
93133         (human_options): New decl.
93134
93135         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93136         unnecessary now that we assume C89 or better.  This change
93137         imported from coreutils.
93138
93139         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93140         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93141         in the 2003-05-30 sync from glibc.
93142
93143         .h files should stand alone, but we shouldn't include <sys/types.h>
93144         if we can get away with just <stddef.h>.
93145
93146         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93147         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93148         rather than <sys/types.h>, as we merely need size_t.
93149         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93150         to get size_t.
93151         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93152         Include <stdio.h>, to get FILE.
93153         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93154         memcasecmp.h has included <stddef.h> and all we need is size_t.
93155         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93156         our interface, instead of including <sys/types.h>
93157
93158 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93159
93160         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93161         now, as glibc mktime is buggy on non-glibc systems.
93162
93163 2003-06-03  Karl Berry  <karl@gnu.org>
93164
93165         * config/config.sub: update from prep.
93166
93167 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93168
93169         [from coreutils]
93170         Fix some minor time-related bugs with POSIX time arguments.
93171         Some valid time stamps were being rejected (notably -1, and
93172         time stamps before 1900 on 64-bit hosts).  And some invalid
93173         time stamps were being accepted, e.g. September 31.
93174
93175         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93176         that we can return (time_t) -1 successfully.
93177         * lib/posixtm.c: Likewise.
93178         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93179         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93180         (t): Remove static var.
93181         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93182         of static var.  All uses changed.
93183         (year): Do not reject years before 1900; they can occur with
93184         64-bit time_t.
93185         (posix_time_parse): Do not check for out-of-range components;
93186         that is now the caller's responsibility, since our checks were
93187         only approximations.
93188         (posixtime): Use mktime to check for out-of-range components,
93189         since it knows them exactly.
93190         If mktime returns (time_t) -1, check whether an error actually occurred
93191         by invoking localtime on -1.
93192         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93193         posixtime failures better.
93194         Improve the test data (in comments only).
93195
93196 2003-06-02  Karl Berry  <karl@gnu.org>
93197
93198         * config/mkinstalldirs (version): new variable.
93199         (--version): new option.
93200         (usage): improve message.
93201
93202 2003-05-30  Karl Berry  <karl@gnu.org>
93203
93204         * lib/mktime.c: update from libc.
93205
93206 2003-05-30  Bruno Haible  <bruno@clisp.org>
93207
93208         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93209         * config/config.rpath: Upgrade to gettext-0.12.1.
93210
93211 2003-05-30  Bruno Haible  <bruno@clisp.org>
93212
93213         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93214         * m4/nls.m4: New file, from gettext-0.12.1.
93215         * m4/po.m4: New file, from gettext-0.12.1.
93216         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93217
93218 2003-05-30  Bruno Haible  <bruno@clisp.org>
93219
93220         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93221         * lib/localcharset.h: Likewise.
93222         * lib/localcharset.c: Likewise.
93223
93224 2003-05-29  Karl Berry  <karl@gnu.org>
93225
93226         * config/config.rpath: update from gettext.
93227
93228 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93229
93230         Assume the headers required for C89 freestanding compilers.
93231         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93232         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93233         * m4/human.m4 (gl_HUMAN): Likewise.
93234         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93235         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93236         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93237         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93239         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93240
93241 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93242
93243         Assume the headers required for C89 freestanding compilers.
93244         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93245         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93246         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93247         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93248         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93249         define, since <limits.h> is guaranteed to do that.
93250         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93251         * lib/exclude.c: Include <stdbool.h> unconditionally.
93252         * lib/tempname.c: Include <stddef.h> unconditionally.
93253         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93254         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93255         <stddef.h> does that.
93256         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93257         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93258         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93259         needed.
93260         * lib/xstrtol.c: Likewise.
93261         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93262         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93263
93264         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93265         warnings on some platforms.
93266
93267         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93268         arbitrarily.
93269
93270 2003-05-26  Jim Meyering  <jim@meyering.net>
93271
93272         Merge in a change from coreutils:
93273         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93274         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93275         that condition, rather than `-1' which is slightly misleading.
93276         Change the name of the cache variable to have the gl_ prefix.
93277         Prompted by a patch from Richard Dawe for DJGPP.
93278
93279 2003-05-24  Karl Berry  <karl@gnu.org>
93280
93281         * config/config.guess: update from prep.
93282
93283 2003-05-22  Karl Berry  <karl@gnu.org>
93284
93285         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93286
93287 2003-05-20  Karl Berry  <karl@gnu.org>
93288
93289         * config/config.guess: update from prep.
93290
93291 2003-05-18  Karl Berry  <karl@gnu.org>
93292
93293         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93294         might actually be set by the user.
93295
93296         * config/depcomp, install-sh, mdate-sh: update from automake.
93297
93298 2003-05-17  Bruno Haible  <bruno@clisp.org>
93299
93300         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93301         invalid expansion for AC_EGREP_CPP.
93302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93303         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93304         Suggested by Akim Demaille <akim@epita.fr> in
93305         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93306
93307 2003-05-12  Jim Meyering  <jim@meyering.net>
93308
93309         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93310         the space-padded-by-default conversion specifiers, %e, %k, %l.
93311
93312 2003-05-12  Bruno Haible  <bruno@clisp.org>
93313
93314         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93315         the string is longer than 4 KB.
93316
93317 2003-05-11  Karl Berry  <karl@gnu.org>
93318
93319         * config/config.{guess,sub}: update from prep.
93320
93321 2003-05-09  Bruno Haible  <bruno@clisp.org>
93322
93323         * modules/error: Add m4/strerror_r.m4 to file list.
93324
93325 2003-05-03  Bruno Haible  <bruno@clisp.org>
93326
93327         Upgrade to Unicode-4.0.
93328         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93329         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93330         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93331         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93332         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93333         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93334         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93335         Change width of U+E0100..U+E01EF from 1 to 0.
93336
93337 2003-04-25  Jim Meyering  <jim@meyering.net>
93338
93339         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93340         of type size_t, not int.
93341
93342 2003-04-25  Bruno Haible  <bruno@clisp.org>
93343
93344         * lib/copy-file.c: Include <stddef.h>, for size_t.
93345
93346 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93347
93348         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93349         code which expansion is under static control.  Patch imported from
93350         Akim Demaille's patch to Bison; see
93351         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93352
93353 2003-04-14  Bruno Haible  <bruno@clisp.org>
93354
93355         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93356
93357 2003-04-11  Jim Meyering  <jim@meyering.net>
93358
93359         Merge changes from Coreutils.
93360
93361         2003-03-22  Jim Meyering  <jim@meyering.net>
93362
93363         * lib/strftime.c (widen): Cast alloca return value to proper type.
93364
93365         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93366
93367         From GNU libc.
93368         * lib/strftime.c (my_strftime): Handle very large width
93369         specifications for numeric values correctly.  Improve checks for
93370         overflow.
93371
93372         2003-01-19  Jim Meyering  <jim@meyering.net>
93373
93374         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93375         definitions.
93376         (nl_get_alt_digit) [! defined my_strftime]: Define.
93377         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93378         _nl_get_alt_digit and _nl_get_walt_digit.
93379
93380         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93381         libc. These changes have no effect outside of _LIBC.
93382
93383 2003-04-10  Bruno Haible  <bruno@clisp.org>
93384
93385         * modules/findprog: New file.
93386         * MODULES.html.sh (func_all_modules): Add it.
93387
93388 2003-04-10  Bruno Haible  <bruno@clisp.org>
93389
93390         * m4/findprog.m4: New file.
93391         * m4/eaccess.m4: New file.
93392
93393 2003-04-10  Bruno Haible  <bruno@clisp.org>
93394
93395         * lib/findprog.h: New file, from GNU gettext.
93396         * lib/findprog.c: New file, from GNU gettext.
93397
93398 2003-04-05  Jim Meyering  <jim@meyering.net>
93399
93400         Merge changes from Coreutils.
93401
93402         * lib/exclude.h (PARAMS): Remove definition and uses.
93403         * lib/exclude.c: Remove uses of `PARAMS'.
93404
93405         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93406         Add test-cases for DOS filenames. Declare program_name.
93407         (main): Set up program_name.  Patch by Rich Dawe.
93408
93409         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93410         error from mntctl.
93411         Use mntctl's return value to drive the entry-processing loop, since
93412         we can't rely on the value of the vmt_length member in the last
93413         entry.  On some systems doing so could result in exhausting
93414         virtual memory.  Based in part on a patch from Mike Jetzer.
93415
93416 2003-04-04  Bruno Haible  <bruno@clisp.org>
93417
93418         * modules/linebreak: New file.
93419         * MODULES.html.sh (func_all_modules): Add it.
93420
93421 2003-04-04  Bruno Haible  <bruno@clisp.org>
93422
93423         * m4/linebreak.m4: New file.
93424
93425 2003-04-04  Bruno Haible  <bruno@clisp.org>
93426
93427         * lib/linebreak.h: New file, from GNU gettext.
93428         * lib/linebreak.c: New file, from GNU gettext with slight
93429         modifications.
93430         * lib/lbrkprop.h: New file, from GNU gettext.
93431
93432 2003-04-03  Bruno Haible  <bruno@clisp.org>
93433
93434         * modules/utf8-ucs4: New file.
93435         * modules/utf16-ucs4: New file.
93436         * modules/ucs4-utf8: New file.
93437         * modules/ucs4-utf16: New file.
93438         * MODULES.html.sh (func_all_modules): Add them.
93439
93440 2003-04-03  Bruno Haible  <bruno@clisp.org>
93441
93442         * m4/utf-ucs4.m4: New file.
93443         * m4/ucs4-utf.m4: New file.
93444
93445 2003-04-03  Bruno Haible  <bruno@clisp.org>
93446
93447         * lib/utf8-ucs4.h: New file, from GNU gettext.
93448         * lib/utf16-ucs4.h: New file, from GNU gettext.
93449         * lib/ucs4-utf8.h: New file, from GNU gettext.
93450         * lib/ucs4-utf16.h: New file, from GNU gettext.
93451
93452 2003-04-02  Bruno Haible  <bruno@clisp.org>
93453
93454         * modules/binary-io: New file.
93455         * MODULES.html.sh (func_all_modules): Add it.
93456
93457 2003-04-02  Bruno Haible  <bruno@clisp.org>
93458
93459         * lib/binary-io.h: New file, from GNU gettext.
93460
93461 2003-04-01  Bruno Haible  <bruno@clisp.org>
93462
93463         * modules/pathname: New file.
93464         * MODULES.html.sh (func_all_modules): Add it.
93465
93466 2003-04-01  Bruno Haible  <bruno@clisp.org>
93467
93468         * lib/pathname.h: New file, from GNU gettext.
93469         * lib/concatpath.c: New file, from GNU gettext.
93470
93471 2003-03-30  Bruno Haible  <bruno@clisp.org>
93472
93473         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93474
93475 2003-03-30  Bruno Haible  <bruno@clisp.org>
93476
93477         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93478         function chown() doesn't exist.
93479
93480 2003-03-28  Bruno Haible  <bruno@clisp.org>
93481
93482         * modules/copy-file: New file.
93483         * MODULES.html.sh (func_all_modules): Add it.
93484
93485 2003-03-28  Bruno Haible  <bruno@clisp.org>
93486
93487         * m4/copy-file.m4: New file.
93488
93489 2003-03-28  Bruno Haible  <bruno@clisp.org>
93490
93491         * lib/copy-file.h: New file, from GNU gettext.
93492         * lib/copy-file.c: New file, from GNU gettext.
93493
93494 2003-03-18  Jim Meyering  <jim@meyering.net>
93495
93496         * lib/quote.c (quote_n): Fix typo in comment.
93497
93498 2003-03-18  Bruno Haible  <bruno@clisp.org>
93499
93500         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93501         checking.
93502         * m4/onceonly_2_57.m4: Likewise.
93503
93504 2003-03-17  Bruno Haible  <bruno@clisp.org>
93505
93506         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93507         (m4_quote): Remove macro.
93508         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93509
93510 2003-03-14  Jim Meyering  <jim@meyering.net>
93511
93512         Merge changes from Coreutils.
93513         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93514         to be const, in order to avoid warnings.
93515         (obstack_room): Likewise.
93516         (obstack_empty_p): Likewise.
93517
93518 2003-03-14  Bruno Haible  <bruno@clisp.org>
93519
93520         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93521         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93522
93523 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93524
93525         Merge changes from Bison.
93526         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93527         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93528         when compiling Bison 1.875's `bitset bset = obstack_alloc
93529         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93530         * lib/hash.c: Include <stdbool.h> unconditionally.
93531
93532 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93533
93534         * m4/onceonly.m4 (m4_quote): New macro.
93535         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93536         Quote AC_FOREACH variable-expansions properly.
93537
93538 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93539
93540         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93541
93542 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93543
93544         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93545         Reported by Bruce Becker; see:
93546         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93547
93548 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93549             Bruno Haible  <bruno@clisp.org>
93550
93551         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93552         Reported by John Hughes, see
93553         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93554
93555 2003-02-20  Bruno Haible  <bruno@clisp.org>
93556
93557         * MODULES.html.sh (func_all_modules): Add poll.
93558
93559 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93560
93561         * modules/poll: New file.
93562
93563 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93564
93565         * lib/poll_.h: New file.
93566         * lib/poll.c: New file.
93567
93568 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93569
93570         * m4/poll.m4: New file.
93571
93572 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93573
93574         * modules/mathl: New file.
93575
93576 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93577
93578         * lib/mathl.h: New file.
93579         * lib/acosl.c: New file.
93580         * lib/asinl.c: New file.
93581         * lib/atanl.c: New file.
93582         * lib/ceill.c: New file.
93583         * lib/cosl.c: New file.
93584         * lib/expl.c: New file.
93585         * lib/floorl.c: New file.
93586         * lib/frexpl.c: New file.
93587         * lib/ldexpl.c: New file.
93588         * lib/logl.c: New file.
93589         * lib/sincosl.c: New file.
93590         * lib/sinl.c: New file.
93591         * lib/sqrtl.c: New file.
93592         * lib/tanl.c: New file.
93593         * lib/trigl.c: New file.
93594         * lib/trigl.h: New file.
93595
93596 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93597
93598         * m4/mathl.m4: New file.
93599
93600 2003-02-18  Bruno Haible  <bruno@clisp.org>
93601
93602         * MODULES.html.sh (func_all_modules): Add mathl.
93603
93604 2003-02-17  Bruno Haible  <bruno@clisp.org>
93605
93606         * modules/mkdtemp: New module.
93607         * MODULES.html.sh (func_all_modules): Add it.
93608
93609 2003-02-17  Bruno Haible  <bruno@clisp.org>
93610
93611         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93612
93613 2003-02-17  Bruno Haible  <bruno@clisp.org>
93614
93615         * lib/mkdtemp.h: New file, from GNU gettext.
93616         * lib/mkdtemp.c: New file, from GNU gettext.
93617
93618 2003-02-02  Jim Meyering  <jim@meyering.net>
93619
93620         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93621         e.g. glibc-2.2.93.
93622
93623 2003-01-31  Bruno Haible  <bruno@clisp.org>
93624
93625         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93626         'rpl_rename'.
93627         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93628         'rpl_strnlen'.
93629         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93630         'rpl_strtod'.
93631         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93632         'rpl_utime'.
93633
93634 2003-01-31  Bruno Haible  <bruno@clisp.org>
93635
93636         * lib/rename.c: #undef rename before defining rpl_rename.
93637         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93638
93639 2003-01-30  Bruno Haible  <bruno@clisp.org>
93640
93641         * modules/vasnprintf, modules/vasprintf: New modules.
93642         * MODULES.html.sh (func_all_modules): Add them.
93643
93644 2003-01-30  Bruno Haible  <bruno@clisp.org>
93645
93646         * m4/signed.m4: New file, from GNU gettext.
93647         * m4/longdouble.m4: New file, from GNU gettext.
93648         * m4/wchar_t.m4: New file, from GNU gettext.
93649         * m4/wint_t.m4: New file, from GNU gettext.
93650         * m4/vasnprintf.m4: New file.
93651         * m4/vasprintf.m4: New file.
93652
93653 2003-01-30  Bruno Haible  <bruno@clisp.org>
93654
93655         * lib/printf-args.h: New file, from GNU gettext.
93656         * lib/printf-args.c: New file, from GNU gettext.
93657         * lib/printf-parse.h: New file, from GNU gettext.
93658         * lib/printf-parse.c: New file, from GNU gettext.
93659         * lib/vasnprintf.h: New file, from GNU gettext.
93660         * lib/vasnprintf.c: New file, from GNU gettext.
93661         * lib/asnprintf.c: New file, from GNU gettext.
93662         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93663         * lib/vasprintf.c: New file, from GNU gettext.
93664         * lib/asprintf.c: New file, from GNU gettext.
93665
93666 2003-01-29  Bruno Haible  <bruno@clisp.org>
93667
93668         * modules/stpncpy: New module.
93669         * MODULES.html.sh (func_all_modules): Add it.
93670
93671 2003-01-29  Bruno Haible  <bruno@clisp.org>
93672
93673         * m4/stpncpy.m4: New file.
93674
93675 2003-01-29  Bruno Haible  <bruno@clisp.org>
93676
93677         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93678         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93679
93680 2003-01-28  Bruno Haible  <bruno@clisp.org>
93681
93682         * modules/c-ctype: New module.
93683         * MODULES.html.sh (func_all_modules): Add it.
93684
93685 2003-01-28  Bruno Haible  <bruno@clisp.org>
93686
93687         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93688         Paul Eggert.
93689         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93690         Paul Eggert.
93691
93692 2003-01-27  Bruno Haible  <bruno@clisp.org>
93693
93694         * modules/xsetenv: New module.
93695         * MODULES.html.sh (func_all_modules): Add it.
93696
93697 2003-01-27  Bruno Haible  <bruno@clisp.org>
93698
93699         * lib/xsetenv.h: New file, from GNU gettext.
93700         * lib/xsetenv.c: New file, from GNU gettext.
93701
93702 2003-01-23  Jim Meyering  <jim@meyering.net>
93703
93704         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93705         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93706
93707 2003-01-23  Bruno Haible  <bruno@clisp.org>
93708
93709         * modules/minmax: New module.
93710         * MODULES.html.sh (func_all_modules): Add it.
93711
93712 2003-01-23  Bruno Haible  <bruno@clisp.org>
93713
93714         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93715         Eggert.
93716
93717 2003-01-22  Bruno Haible  <bruno@clisp.org>
93718
93719         * modules/exit: New module.
93720         * MODULES.html.sh (func_all_modules): Add it.
93721
93722 2003-01-22  Bruno Haible  <bruno@clisp.org>
93723
93724         * lib/exit.h: New file, from GNU gettext.
93725
93726 2003-01-19  Bruno Haible  <bruno@clisp.org>
93727
93728         * gnulib-tool: Recognize option --extract-maintainer.
93729         (func_get_maintainer): New function.
93730         * modules/*: Add Maintainer entry.
93731
93732 2003-01-16  Jim Meyering  <jim@meyering.net>
93733
93734         * m4/regex.m4: The `regex' struct is both input and output.
93735         Initialize it before each use.  Patch by Tim Waugh.
93736
93737 2003-01-16  Bruno Haible  <bruno@clisp.org>
93738
93739         * MODULES.html.sh: Add a table of contents. Add the module name as
93740         leftmost column. Add hyperlinks.
93741
93742 2003-01-15  Bruno Haible  <bruno@clisp.org>
93743
93744         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93745
93746 2003-01-15  Bruno Haible  <bruno@clisp.org>
93747
93748         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93749         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93750         suffix.
93751
93752 2003-01-15  Bruno Haible  <bruno@clisp.org>
93753
93754         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93755
93756 2003-01-15  Bruno Haible  <bruno@clisp.org>
93757
93758         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93759         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93760
93761 2003-01-14  Jim Meyering  <jim@meyering.net>
93762
93763         * lib/same.c (same_name): Tweak a comment.
93764
93765 2003-01-14  Bruno Haible  <bruno@clisp.org>
93766
93767         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93768         when a string comparison is sufficient.
93769
93770 2003-01-14  Bruno Haible  <bruno@clisp.org>
93771
93772         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93773         'unsigned int'.
93774
93775 2003-01-14  Bruno Haible  <bruno@clisp.org>
93776
93777         * lib/hash-pjw.c: Add comment about low quality of this function.
93778
93779 2003-01-13  Bruno Haible  <bruno@clisp.org>
93780
93781         * modules/stpcpy: Distribute lib/stpcpy.h.
93782         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93783
93784 2003-01-13  Bruno Haible  <bruno@clisp.org>
93785
93786         * modules/*: Add a description.
93787         * modules/strpbrk: Fix Makefile.am snippet.
93788         * modules/strtoimax: Fix dependencies.
93789         * modules/strtoumax: Likewise.
93790
93791 2003-01-13  Bruno Haible  <bruno@clisp.org>
93792
93793         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93794         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93795         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93796
93797 2003-01-13  Bruno Haible  <bruno@clisp.org>
93798
93799         * gnulib-tool (func_create_testdir): Store config/* files in the main
93800         directory.
93801         * config.rpath: Move to ...
93802         * config/config.rpath: ... here.
93803         * modules/gettext: Contains config/config.rpath, not config.rpath.
93804         * modules/iconv: Likewise.
93805
93806 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93807
93808         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93809         to avoid collisions with libcurses and libreadline.
93810
93811         * m4/getstr.m4: Remove.
93812         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93813
93814 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93815
93816         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93817         to avoid collisions with libcurses and libreadline.
93818
93819         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93820         * lib/getstr.h, getstr.c: Remove.
93821         * lib/getline.c: Include "getline.h", to check interface.
93822         Move body of old getstr.c here: this defines MIN_CHUNK and
93823         declares getdelim2, which is renamed from getstr.
93824         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93825
93826         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93827         All uses changed.
93828         * lib/linebuffer.h: Likewise.
93829         (readline): Remove backward-compatibility macro.
93830
93831 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93832
93833         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93834         to avoid collisions with libcurses and libreadline.
93835         * getstr: Remove.
93836         * MODULES.html.sh: Remove getstr.
93837         * modules/getline: Depend on unlocked-io, not getstr.
93838
93839 2003-01-12  Jim Meyering  <jim@meyering.net>
93840
93841         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93842
93843 2003-01-10  Bruno Haible  <bruno@clisp.org>
93844
93845         * modules/alloca: Change Makefile.am requirements. Simplify Include
93846         requirements. Add lib/alloca_.h to file list.
93847
93848 2003-01-10  Bruno Haible  <bruno@clisp.org>
93849
93850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93851
93852 2003-01-10  Bruno Haible  <bruno@clisp.org>
93853
93854         * lib/alloca_.h: New file.
93855         * lib/getdate.y: Unconditionally include alloca.h.
93856         * lib/makepath.c: Likewise.
93857         * lib/setenv.c: Likewise.
93858         * lib/userspec.c: Likewise.
93859
93860 2003-01-09  Karl Berry  <karl@gnu.org>
93861
93862         * MODULES.html.sh: include `dirname $0` in PATH, to find
93863         gnulib-tool.
93864
93865 2003-01-09  Bruno Haible  <bruno@clisp.org>
93866
93867         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93868         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93869
93870 2003-01-09  Bruno Haible  <bruno@clisp.org>
93871
93872         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93873
93874 2003-01-09  Bruno Haible  <bruno@clisp.org>
93875
93876         * lib/stdbool.h.in: New file.
93877
93878 2003-01-09  Bruno Haible  <bruno@clisp.org>
93879
93880         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93881         * MODULES.html.sh: Likewise.
93882
93883 2003-01-08  Jim Meyering  <jim@meyering.net>
93884
93885         * lib/full-write.c: Undefine and define-away `const' after inclusion
93886         of errno.h, not before.  Suggestion from Bruno Haible.
93887
93888 2003-01-08  Bruno Haible  <bruno@clisp.org>
93889
93890         * modules/full-read: Depend on full-write.
93891
93892 2003-01-08  Bruno Haible  <bruno@clisp.org>
93893
93894         * lib/safe-read.c: Include specification header first, to ensure its
93895         selfcontainedness.
93896         * lib/full-write.c: Likewise.
93897
93898 2003-01-07  Jim Meyering  <jim@meyering.net>
93899
93900         * lib/full-write.c: Rework so that it may serve to define full_read,
93901         too.
93902         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93903
93904 2003-01-07  Bruno Haible  <bruno@clisp.org>
93905
93906         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93907         <inttypes.h>.
93908         * lib/xstrtol.h: Likewise.
93909         * lib/xstrtoimax.c: Likewise.
93910         * lib/xstrtoumax.c: Likewise.
93911         * lib/human.h: Likewise.
93912
93913         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93914         on systems that have <inttypes.h> but not <stdint.h>.
93915
93916 2003-01-07  Bruno Haible  <bruno@clisp.org>
93917
93918         * MODULES.html.sh: Add copyright notice.
93919         (missed_files): Omit CVS directory entries.
93920         (func_module): Make it work with sed-3.02.
93921         * MODULES.txt: Remove file.
93922
93923 2003-01-06  Jim Meyering  <jim@meyering.net>
93924
93925         * lib/version-etc.c: Update year in translatable copyright string.
93926
93927 2003-01-03  Karl Berry  <karl@gnu.org>
93928
93929         * config/config.{guess,sub}: update from prep.
93930
93931 2003-01-02  Karl Berry  <karl@gnu.org>
93932
93933         * doc/COPYING.DOC: belatedly updated to 1.2.
93934
93935 2003-01-01  Karl Berry  <karl@gnu.org>
93936
93937         * gnulib-tool (func_verify_module): report module name $module in
93938         error message, not $1.
93939         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93940         be created, only if it doesn't exist.
93941         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93942
93943 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93944
93945         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93946
93947 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93948
93949         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93950         memcmp if strcoll doesn't work.
93951
93952 2002-12-31  Bruno Haible  <bruno@clisp.org>
93953
93954         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93955         nonempty.
93956
93957 2002-12-31  Bruno Haible  <bruno@clisp.org>
93958
93959         * lib/memcoll.c (STRCOLL): New macro.
93960         (memcoll): Use it.
93961
93962 2002-12-31  Bruno Haible  <bruno@clisp.org>
93963
93964         * lib/localcharset.h: New file.
93965         * lib/localcharset.c: Include it.
93966         * lib/unicodeio.c: Likewise.
93967
93968 2002-12-31  Bruno Haible  <bruno@clisp.org>
93969
93970         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93971         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93972
93973 2002-12-31  Bruno Haible  <bruno@clisp.org>
93974
93975         * lib/getline.h: Include <stddef.h>, for size_t.
93976
93977         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93978         * lib/unicodeio.c: Don't include <stddef.h>.
93979
93980 2002-12-31  Bruno Haible  <bruno@clisp.org>
93981
93982         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93983         HAVE_TM_ZONE.
93984
93985 2002-12-24  Karl Berry  <karl@gnu.org>
93986
93987         * config/config.guess: update from prep.
93988
93989 2002-12-24  Bruno Haible  <bruno@clisp.org>
93990
93991         General infrasructure.
93992         * m4/README: Rewritten.
93993         * m4/onceonly.m4: New file.
93994         * m4/onceonly_2_57.m4: New file.
93995
93996         Module atexit.
93997         * m4/atexit.m4: New file.
93998
93999         Module strtod.
94000         * m4/strtod.m4: New file.
94001
94002         Module strtol.
94003         * m4/strtol.m4: New file.
94004
94005         Module strtoul.
94006         * m4/strtoul.m4: New file.
94007
94008         Module memchr.
94009         * m4/memchr.m4: New file.
94010
94011         Module memcmp.
94012         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94013         (jm_FUNC_MEMCMP): Invoke it.
94014
94015         Module memcpy.
94016         * m4/memcpy.m4: New file.
94017
94018         Module memmove.
94019         * m4/memmove.m4: New file.
94020
94021         Module memset.
94022         * m4/memset.m4: New file.
94023
94024         Module strcspn.
94025         * m4/strcspn.m4: New file.
94026
94027         Module strpbrk.
94028         * m4/strpbrk.m4: New file.
94029
94030         Module strstr.
94031         * m4/strstr.m4: New file.
94032
94033         Module strerror.
94034         * m4/strerror.m4: New file.
94035
94036         Module mktime.
94037         * m4/mktime.m4: Renamed from jm-mktime.m4.
94038         (gl_PREREQ_MKTIME): New macro.
94039         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94040
94041         Module malloc.
94042         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94043         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94044         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94045
94046         Module realloc.
94047         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94048         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94049         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94050
94051         Module strftime.
94052         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94053         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94054         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94055         gl_TM_GMTOFF.
94056         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94057
94058         Module xalloc.
94059         * m4/xalloc.m4: New file.
94060
94061         Module alloca.
94062         * m4/alloca.m4: New file.
94063
94064         Module putenv.
94065         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94066         (jm_FUNC_PUTENV): Invoke it.
94067
94068         Module setenv.
94069         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94070         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94071         when invoked twice.
94072         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94073         gt_FUNC_SETENV.
94074
94075         Module memrchr.
94076         * m4/memrchr.m4: New file.
94077
94078         Module stpcpy.
94079         * m4/stpcpy.m4: New file.
94080
94081         Module strcase.
94082         * m4/strcase.m4: New file.
94083
94084         Module strdup.
94085         * m4/strdup.m4: New file.
94086
94087         Module strnlen.
94088         * m4/strnlen.m4: New file.
94089
94090         Module strndup.
94091         * m4/strndup.m4: New file.
94092
94093         Module xstrtod.
94094         * m4/xstrtod.m4: New file.
94095
94096         Module xstrtol.
94097         * m4/xstrtol.m4: New file.
94098
94099         Module getdate.
94100         * m4/getdate.m4: New file.
94101
94102         Module unlocked-io.
94103         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94104         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94105         * m4/jm-glibc-io.m4n: Remove file.
94106
94107         Module long-options.
94108         * m4/long-options.m4: New file.
94109
94110         Module md5.
94111         * m4/md5.m4: New file.
94112
94113         Module sha.
94114         * m4/sha.m4: New file.
94115
94116         Module getstr.
94117         * m4/getstr.m4: New file.
94118
94119         Module getline.
94120         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94121         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94122         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94123         simply getline. Infoke gl_PREREQ_GETLINE.
94124
94125         Module obstack.
94126         * m4/obstack.m4: New file.
94127
94128         Module hash.
94129         * m4/hash.m4: New file.
94130
94131         Module readtokens.
94132         * m4/readtokens.m4: New file.
94133
94134         Module strverscmp.
94135         * m4/strverscmp.m4: New file.
94136
94137         Module stdbool.
94138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94139         OSF/1.
94140
94141         Module strtoll.
94142         * m4/strtoll.m4: New file.
94143
94144         Module strtoull.
94145         * m4/strtoull.m4: New file.
94146
94147         Module strtoimax.
94148         * m4/strtoimax.m4: New file.
94149
94150         Module strtoumax.
94151         * m4/strtoumax.m4: New file.
94152
94153         Module xstrtoimax.
94154         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94155         jm_AC_PREREQ_XSTRTOIMAX.
94156         Moved the strtol prerequisites to strtol.m4.
94157         Moved the strtoll prerequisites to strtoll.m4.
94158         Moved the strtoimax prerequisites to strtoimax.m4.
94159
94160         Module xstrtoumax.
94161         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94162         jm_AC_PREREQ_XSTRTOUMAX.
94163         Moved the strtoul prerequisites to strtoul.m4.
94164         Moved the strtoull prerequisites to strtoull.m4.
94165         Moved the strtoumax prerequisites to strtoumax.m4.
94166
94167         Module chown.
94168         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94169         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94170
94171         Module dup2.
94172         * m4/dup2.m4: New file.
94173
94174         Module ftruncate.
94175         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94176         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94177
94178         Module getgroups.
94179         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94180         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94181
94182         Module gettimeofday.
94183         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94184         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94185         gl_PREREQ_GETTIMEOFDAY.
94186
94187         Module mkdir.
94188         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94189         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94190
94191         Module mkstemp.
94192         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94193         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94194         jm_AC_TYPE_UINTMAX_T.
94195         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94196
94197         Module stat.
94198         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94199         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94200
94201         Module lstat.
94202         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94203         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94204
94205         Module timespec.
94206         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94207         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94208         * m4/st_mtim.m4: Indentation.
94209
94210         Module nanosleep.
94211         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94212         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94213         gl_PREREQ_NANOSLEEP.
94214
94215         Module regex.
94216         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94217         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94218         (gl_REGEX): New macro.
94219
94220         Module rename.
94221         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94222         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94223
94224         Module rmdir.
94225         * m4/rmdir.m4: New file.
94226
94227         Module utime.
94228         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94229         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94230         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94231
94232         Module dirname.
94233         * m4/dirname.m4: New file.
94234
94235         Module getopt.
94236         * m4/getopt.m4: New file.
94237
94238         Module unistd-safer.
94239         * m4/unistd-safer.m4: New file.
94240
94241         Module fnmatch.
94242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94243         declaration.
94244         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94245         (gl_FUNC_FNMATCH_POSIX): New macro.
94246         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94247         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94248         simply fnmatch.
94249
94250         Module exclude.
94251         * m4/exclude.m4: New file.
94252
94253         Module human.
94254         * m4/human.m4: New file.
94255
94256         Module acl.
94257         * m4/acl.m4: Nop.
94258
94259         Module backupfile.
94260         * m4/backupfile.m4: New file.
94261         * m4/d-ino.m4: Indentation.
94262
94263         Module fsusage.
94264         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94265         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94266         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94267
94268         Module dirfd.
94269         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94270         requirements.
94271
94272         Module euidaccess.
94273         * m4/euidaccess.m4: New file.
94274
94275         Module file-type.
94276         * m4/file-type.m4: New file.
94277
94278         Module fileblocks.
94279         * m4/fileblocks.m4: New file.
94280
94281         Module filemode.
94282         * m4/filemode.m4: New file.
94283
94284         Module isdir.
94285         * m4/isdir.m4: New file.
94286
94287         Module lchown.
94288         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94289         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94290
94291         Module makepath.
94292         * m4/makepath.m4: New file.
94293
94294         Module modechange.
94295         * m4/modechange.m4: New file.
94296
94297         Module mountlist.
94298         * m4/mountlist.m4: New file.
94299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94300         Indentation.
94301
94302         Module path-concat.
94303         * m4/path-concat.m4: New file.
94304
94305         Module pathmax.
94306         * m4/pathmax.m4: New file.
94307
94308         Module same.
94309         * m4/same.m4: New file.
94310
94311         Module save-cwd.
94312         * m4/save-cwd.m4: New file.
94313
94314         Module savedir.
94315         * m4/savedir.m4: New file.
94316
94317         Module xgetcwd.
94318         * m4/xgetcwd.m4: New file.
94319         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94320
94321         Module xreadlink.
94322         * m4/xreadlink.m4: New file.
94323
94324         Module safe-read.
94325         * m4/safe-read.m4: New file.
94326
94327         Module safe-write.
94328         * m4/safe-write.m4: New file.
94329
94330         Module closeout.
94331         * m4/closeout.m4: New file.
94332
94333         Module stdio-safer.
94334         * m4/stdio-safer.m4: New file.
94335
94336         Module getpass.
94337         * m4/getpass.m4: New file.
94338
94339         Module getugroups.
94340         * m4/getugroups.m4: New file.
94341
94342         Module group-member.
94343         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94344         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94345
94346         Module idcache.
94347         * m4/idcache.m4: New file.
94348
94349         Module userspec.
94350         * m4/userspec.m4: New file.
94351
94352         Module gettime.
94353         * m4/clock_time.m4: New file.
94354         * m4/gettime.m4: New file.
94355
94356         Module settime.
94357         * m4/settime.m4: New file.
94358
94359         Module posixtm.
94360         * m4/posixtm.m4: New file.
94361
94362         Module gethostname.
94363         * m4/gethostname.m4: New file.
94364
94365         Module canon-host.
94366         * m4/canon-host.m4: New file.
94367
94368         Module gettext.
94369         * m4/codeset.m4: New file, from gettext-0.11.5.
94370         * m4/gettext.m4: New file, from gettext-0.11.5.
94371         * m4/glibc21.m4: New file, from gettext-0.11.5.
94372         * m4/iconv.m4: New file, from gettext-0.11.5.
94373         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94374         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94375         * m4/inttypes.m4: New file, from gettext-0.11.5.
94376         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94377         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94378         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94379         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94380         * m4/lib-link.m4: New file, from gettext-0.11.5.
94381         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94382         * m4/progtest.m4: New file, from gettext-0.11.5.
94383         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94384         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94385         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94386
94387         Module localcharset.
94388         * m4/localcharset.m4: New file.
94389
94390         Module hard-locale.
94391         * m4/hard-locale.m4: New file.
94392
94393         Module mbswidth.
94394         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94395         onceonly macros.
94396         * m4/mbrtowc.m4: Add comment.
94397
94398         Module memcasecmp.
94399         * m4/memcasecmp.m4: New file.
94400
94401         Module memcoll.
94402         * m4/memcoll.m4: New file.
94403
94404         Module unicodeio.
94405         * m4/unicodeio.m4: New file.
94406
94407         Module rpmatch.
94408         * m4/rpmatch.m4: New file.
94409
94410         Module yesno.
94411         * m4/yesno.m4: New file.
94412
94413         Module exitfail.
94414         * m4/exitfail.m4: New file.
94415
94416         Module c-stack.
94417         * m4/c-stack.m4 (gl_C_STACK): New macro.
94418         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94419
94420         Module error.
94421         * m4/error.m4 (gl_ERROR): New macro.
94422         (jm_PREREQ_ERROR): Use onceonly macros.
94423
94424         Module fatal.
94425         * m4/fatal.m4: New file.
94426
94427         Module getloadavg.
94428         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94429         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94430
94431         Module getpagesize.
94432         * m4/getpagesize.m4: New file.
94433
94434         Module getusershell.
94435         * m4/getusershell.m4: New file.
94436
94437         Module physmem.
94438         * m4/physmem.m4: New file.
94439
94440         Module posixver.
94441         * m4/posixver.m4: New file.
94442
94443         Module quotearg.
94444         * m4/quotearg.m4: New file.
94445
94446         Module quote.
94447         * m4/quote.m4: New file.
94448
94449         Module readutmp.
94450         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94451
94452         Module sig2str.
94453         * m4/sig2str.m4: New file.
94454
94455         Other.
94456         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94457         ulonglong.m4.
94458         * m4/intmax_t.m4: New file.
94459         * m4/d-type.m4: Indentation.
94460         * m4/jm-macros.m4: Update.
94461         * m4/prereq.m4 (jm_PREREQ): Update.
94462         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94463         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94464         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94465         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94466         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94467         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94468         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94469         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94470         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94471         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94472         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94473         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94474         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94475         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94476         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94477         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94478         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94479         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94480         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94481
94482 2002-12-24  Bruno Haible  <bruno@clisp.org>
94483
94484         * MODULES.txt: Update according to m4/ changes.
94485
94486         Module gettext.
94487         * config.rpath: New file, from gettext-0.11.5.
94488
94489         * modules/*: New module descriptions.
94490         * gnulib-tool: New file.
94491         * MODULES.html.sh: New file.
94492
94493 2002-12-21  Karl Berry  <karl@gnu.org>
94494
94495         * doc/fdl.texi: update to version 1.2.
94496
94497 2002-12-19  Karl Berry  <karl@gnu.org>
94498
94499         * config/config.guess: update from prep.
94500
94501 2002-12-18  Bruno Haible  <bruno@clisp.org>
94502
94503         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94504         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94505
94506 2002-12-17  Bruno Haible  <bruno@clisp.org>
94507
94508         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94509         stdlib.h, string.h.
94510
94511 2002-12-17  Bruno Haible  <bruno@clisp.org>
94512
94513         * lib/canon-host.c (strdup): Remove unused declaration.
94514
94515         * lib/fsusage.c: Include full_read.h.
94516         (get_fs_usage): Use full_read instead of safe_read.
94517
94518         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94519
94520 2002-12-12  Karl Berry  <karl@gnu.org>
94521
94522         * config/config.guess: update from prep.
94523
94524 2002-12-11  Bruno Haible  <bruno@clisp.org>
94525
94526         * m4/setenv.m4: New file, from gettext-0.11.5.
94527
94528 2002-12-11  Bruno Haible  <bruno@clisp.org>
94529
94530         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94531         not unsetenv().
94532         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94533         modifications:
94534
94535         2002-12-11  Bruno Haible  <bruno@clisp.org>
94536
94537                 * setenv.c (alloca): Fall back to malloc.
94538                 (freea): New macro.
94539                 (setenv): Use freea() to free memory allocated with alloca().
94540
94541         2002-11-13  Bruno Haible  <bruno@clisp.org>
94542
94543                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94544                 function declarations.
94545                 * unsetenv.c (unsetenv): Likewise.
94546
94547         2002-03-04  Bruno Haible  <bruno@clisp.org>
94548
94549                 Portability to AIX 4.3.3.
94550                 * unsetenv.c: New file, extracted from setenv.c.
94551                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94552
94553         2001-12-20  Bruno Haible  <bruno@clisp.org>
94554
94555                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94556                 use malloc instead. For SunOS 4.
94557
94558         2001-12-11  Bruno Haible  <bruno@clisp.org>
94559
94560                 * setenv.c: Declare alloca.
94561                 (compar_fn_t): New typedef.
94562                 (KNOWN_VALUE, STORE_VALUE): Use it.
94563
94564         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94565         setenv.h.
94566
94567 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94568
94569         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94570         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94571         Choose values that are less likely to collide with system fnmatch
94572         options.
94573         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94574         defined (e.g., a pure POSIX system).
94575         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94576         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94577
94578 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94579
94580         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94581         a pain in practice to deal with generated m4 files.  This change
94582         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94583
94584         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94585         and jm-glibc-io.m4, as they are no longer a special case.
94586         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94587         kludge and the auto-generation stuff.  Check only whether the
94588         functions are declared, not whether they exist, since older hosts
94589         that don't declare the functions can't use the optimization anyway.
94590
94591 2002-12-06  Jim Meyering  <jim@meyering.net>
94592
94593         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94594
94595         Merge in changes from libc's misc/error.c, in preparation
94596         for the merge of gnulib's changes back into libc.
94597
94598         * lib/error.c (_): Define only if not already defined.
94599         Move definition to follow all #include directives.
94600         Include unlocked-io.h only if !_LIBC.
94601         [_LIBC]: Include <libio/libioP.h>.
94602         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94603         (fflush): Tweak definition to use INTUSE.
94604         (putc): Define.
94605
94606 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94607
94608         * lib/alloca.c [defined emacs]: Include "lisp.h".
94609         (xalloc_die) [defined emacs]: New macro.
94610         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94611         [! defined emacs]: Include <xalloc.h>.
94612         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94613         (pointer): Typedef to POINTER_TYPE *.
94614         (malloc): Remove decl; we now always use xmalloc.
94615         (alloca): Use old-style definition, since Emacs needs this.
94616         Check for arithmetic overflow when computing combined size.
94617
94618 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94619
94620         Do not generate unlocked-io.h automatically, since it's easier to
94621         maintain it by hand.
94622
94623         * lib/unlocked-io.h: New file, from GNU diffutils,
94624         but with proper copyright notice and attribution.
94625         * lib/gen-uio: Remove.
94626         * lib/Makefile.am: Add copyright notice.
94627         (libfetish_a_SOURCES): Add unlocked-io.h.
94628         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94629         (DISTCLEANFILES, io_functions): Remove macros.
94630         (EXTRA_DIST): Remove gen_uio.
94631         (unlocked-io.h): Remove rule.
94632
94633 2002-12-04  Jim Meyering  <jim@meyering.net>
94634
94635         Reflect the fact that stat.c and lstat.c are no longer generated.
94636         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94637         (DISTCLEANFILES): Likewise.
94638         (EXTRA_DIST): Likewise.
94639         (all_local): Don't depend on stat.c or lstat.c.
94640         (stat.c, lstat.c): Remove rules.
94641         (EXTRA_DIST): Remove xstat.in.
94642
94643         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94644         * lib/stat.c: New file.  Contents mostly from xstat.in.
94645         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94646         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94647
94648         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94649         too.
94650         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94651
94652 2002-12-03  Jim Meyering  <jim@meyering.net>
94653
94654         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94655         but not semantics, to minimize the differences between these two files.
94656         (safe_read): Change comment to mention SAFE_READ_ERROR.
94657
94658         * lib/safe-read.c (IS_EINTR): Define.
94659         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94660
94661 2002-12-02  Jim Meyering  <jim@meyering.net>
94662
94663         * lib/safe-read.c (EINTR): Define.
94664         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94665         (INT_MAX): Provide fallback.
94666         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94667
94668         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94669
94670 2002-12-02  Bruno Haible  <bruno@clisp.org>
94671
94672         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94673         Define, taken from safe-read.c.
94674         (INT_MAX): Provide fallback.
94675         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94676         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94677
94678         * lib/safe-read.c (EINTR): Remove definition.
94679         (safe_read): Don't use EINTR if it is absent.
94680
94681 2002-12-01  Jim Meyering  <jim@meyering.net>
94682
94683         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94684         zero.
94685         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94686
94687 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94688
94689         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94690         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94691         with `if (! (value < limit)) abort ();', for readability.
94692
94693 2002-11-26  Karl Berry  <karl@gnu.org>
94694
94695         * lib/strdup.c: copy from libc again, with jim's ok.
94696         * lib/.cppi-disable: re-add strdup.c
94697
94698 2002-11-25  Karl Berry  <karl@gnu.org>
94699
94700         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94701         instead of "strtol.c".
94702
94703 2002-11-25  Karl Berry  <karl@gnu.org>
94704
94705         * config/install-sh: update from automake for variable quoting, $0 in
94706         error msgs, etc.
94707
94708         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94709         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94710         entry.
94711
94712 2002-11-25  Jim Meyering  <jim@meyering.net>
94713
94714         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94715
94716 2002-11-24  Karl Berry  <karl@gnu.org>
94717
94718         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94719         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94720
94721 2002-11-24  Jim Meyering  <jim@meyering.net>
94722
94723         Update from coreutils:
94724
94725         * lib/mktime.c: Merge in changes from libc.
94726
94727         Avoid a link-time failure on some Linux systems.
94728         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94729         (otherwise).
94730         (__mon_yday): Declare with the STATIC attribute.
94731         (__mktime_internal): Likewise.
94732         Based on a report from Greg Schafer.
94733
94734 2002-11-23  Jim Meyering  <jim@meyering.net>
94735
94736         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94737         Use `unsigned', not `int', as type of index.
94738
94739         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94740
94741         * lib/fsusage.c: Remove unneeded parentheses around operands of
94742         `defined'.
94743
94744 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94745
94746         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94747         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94748         so that we can be included first.
94749         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94750         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94751         No need to include stddef.h or sys/types.h any more.
94752         Surround local include files with "", not "<>".
94753         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94754         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94755         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94756         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94757         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94758         (ISPRINT): Remove; no longer needed now that we assume C89.
94759
94760         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94761         Preserve errno.
94762
94763         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94764         quotearg_char): Use SIZE_MAX rather than
94765         (size_t) -1 when we are talking about "infinity".
94766
94767         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94768
94769 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94770
94771         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94772         hint that one should use `if (! x) abort ();' rather than `assert
94773         (x);', and anyway it's one less thing to worry about configuring.
94774         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94775         hash_rehash, hash_insert): Use abort rather than assert.
94776
94777 2002-11-22  Bruno Haible  <bruno@clisp.org>
94778
94779         * lib/safe-read.h: Assume C89. Add comments.
94780         (safe_read): Change return type to size_t.
94781         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94782         byte counts > SSIZE_MAX correctly.
94783         * lib/safe-write.h: New file.
94784         * lib/safe-write.c: New file.
94785         * lib/full-read.h: New file.
94786         * lib/full-read.c: New file.
94787         * lib/full-write.h: Assume C89. Add comments.
94788         * lib/full-write.c: Include safe-write.h.
94789         (full_write): Rewritten to use safe_write.
94790         Suggested by Jim Meyering and Paul Eggert.
94791
94792 2002-11-21  Jim Meyering  <jim@meyering.net>
94793
94794         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94795
94796         Merge in changes from the coreutils.
94797
94798         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94799         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94800         <stdint.h>.
94801         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94802         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94803         int.  Work more efficiently if X is the same width as uintmax_t.
94804         Do not compare X to -1, to avoid bogus compiler warning.
94805         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94806         Don't assume that f_frsize and f_bsize are the same type.
94807
94808         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94809         warning on FreeBSD.
94810
94811         * lib/makepath.c (make_path): Restore umask *before* creating the final
94812         component.
94813         (make_path): Minor reformatting.
94814
94815         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94816         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94817         HAVE_MALLOC/HAVE_REALLOC.
94818
94819         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94820         dummy ones.  At least on GNU/Linux systems, `auto' means something
94821         else.
94822         From Michael Stone.
94823
94824 2002-11-21  Bruno Haible  <bruno@clisp.org>
94825
94826         Remove case insensitive option matching.
94827         * lib/argmatch.h (argcasematch): Remove declaration.
94828         (ARGCASEMATCH): Remove macro.
94829         (__xargmatch_internal): Remove case_sensitive argument.
94830         (XARGMATCH): Update.
94831         (XARGCASEMATCH): Remove macro.
94832         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94833         case_sensitive argument.
94834         (argcasematch): Remove function.
94835         (__xargmatch_internal): Remove case_sensitive argument.
94836         (main): Use XARGMATCH instead of XARGCASEMATCH.
94837
94838         * lib/xmalloc.c: Change compile-time error message. Add comment about
94839         required autoconf version.
94840
94841 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94842
94843         Merge argmatch cleanups from Bison.  Assume C89.
94844
94845         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94846         Include stdlib.h, for EXIT_FAILURE.
94847         Always include <string.h>, since we assume C89.
94848         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94849         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94850         Include <stddef.h> instead, since it's all we need for size_t.
94851         (PARAMS): Remove.  All uses removed.
94852         (ARRAY_CARDINALITY): Do not bother to #undef.
94853         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94854         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94855         Remove unnecessary parentheses.
94856         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94857         Insert necessary parentheses.
94858         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94859         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94860
94861 2002-11-19  Bruno Haible  <bruno@clisp.org>
94862
94863         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94864         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94865
94866         * lib/mbswidth.h (PARAMS): Remove macro.
94867         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94868         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94869
94870         * lib/gcd.h (PARAMS): Remove macro.
94871         (gcd): Use ANSI C function declarations.
94872         * lib/gcd.c (gcd): Likewise.
94873
94874 2002-11-15  Bruno Haible  <bruno@clisp.org>
94875
94876         * lib/strcspn.c: Include <stddef.h>.
94877         (strcspn): Use ANSI C function declaration. Change return type to
94878         size_t. Use NULL.
94879         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94880         (strpbrk): Use NULL.
94881         * lib/strpbrk.h (PARAMS): Remove macro.
94882         (strpbrk): Use ANSI C function declaration.
94883         * lib/strstr.c: Don't include <sys/types.h>.
94884         * lib/strstr.h (PARAMS): Remove macro.
94885         (strstr): Use ANSI C function declarations.
94886
94887 2002-11-14  Karl Berry  <karl@gnu.org>
94888
94889         * config/mkinstalldirs: `do' on separate line, instead of
94890         `for var; do'.
94891
94892 2002-11-06  Bruno Haible  <bruno@clisp.org>
94893
94894         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94895         * lib/gcd.c (gcd): Likewise.
94896
94897 2002-11-05  Bruno Haible  <bruno@clisp.org>
94898
94899         * lib/gcd.h: New file, from gettext-0.11.5.
94900         * lib/gcd.c: New file, from gettext-0.11.5.
94901
94902 2002-11-05  Bruno Haible  <bruno@clisp.org>
94903
94904         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94905         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94906         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94907         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94908
94909         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94910         <libintl.h>.
94911         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94912         <libintl.h>.
94913
94914         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94915         * lib/human.c: Include gettext.h instead of <libintl.h>.
94916         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94917         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94918         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94919         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94920         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94921         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94922         (textdomain): Remove definition.
94923         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94924
94925         * lib/long-options.c: Remove include of <libintl.h> and definition of
94926         _.
94927         * lib/same.c: Remove include of <libintl.h> and definition of _.
94928
94929 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94930
94931         * lib/config.charset: A few additions for Solaris.
94932
94933 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94934
94935         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94936         * lib/localcharset.c (locale_charset): Declare as extern "C".
94937
94938 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94939
94940         * lib/config.charset: msdos in uk_UA uses CP1125.
94941
94942 2002-11-04  Bruno Haible  <bruno@clisp.org>
94943
94944         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94945         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94946         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94947         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94948         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94949
94950 2002-11-04  Bruno Haible  <bruno@clisp.org>
94951
94952         * lib/localcharset.c (locale_charset): Don't return an empty string.
94953
94954 2002-11-04  Bruno Haible  <bruno@clisp.org>
94955
94956         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94957         aliases.
94958
94959 2002-11-04  Bruno Haible  <bruno@clisp.org>
94960
94961         * lib/config.charset: Update for newest glibc. Add canonical names
94962         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94963
94964 2002-11-04  Bruno Haible  <bruno@clisp.org>
94965
94966         * lib/config.charset: Add support for NetBSD.
94967
94968 2002-11-04  Bruno Haible  <bruno@clisp.org>
94969
94970         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94971
94972 2002-11-01  Bruno Haible  <bruno@clisp.org>
94973
94974         * configure.in: Add AC_CONFIG_AUX_DIR call.
94975         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94976         test/Makefile.
94977         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94978
94979 2002-09-28  Karl Berry  <karl@gnu.org>
94980
94981         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94982         installed automake until the next release, since changes have been
94983         made.
94984
94985 2002-09-25  Karl Berry  <karl@gnu.org>
94986
94987         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94988         * lib/getopt*: copy from libc/posix.
94989         * lib/gettext.h: copy from gettext.
94990         * lib/.cppi-disable: add strdup.c, gettext.h.
94991
94992 2002-09-25  Karl Berry  <karl@gnu.org>
94993
94994         * config/srclist.txt: enable gettext.h check.
94995         * config/config.{guess,sub}: update from prep.
94996         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94997                 from automake 1.6.3.
94998         See srclist*.
94999
95000 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95001
95002         * regex.c (PATFETCH): Remove the translating fetch.
95003         (PATFETCH_RAW): Rename to PATFETCH.
95004         (set_image_of_range): New fun.
95005         (SET_RANGE_TABLE_WORK_AREA): Use it.
95006         (regex_compile): Don't translate the pattern chars so eagerly.
95007         Only do it when inserting an `exactn' bytecode or when handling
95008         a char-range.
95009         (mutually_exclusive_p): Avoid empty statement.
95010
95011 2002-07-06  Jim Meyering  <meyering@lucent.com>
95012
95013         * m4/README: Don't mention Makefile.am.in.
95014         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95015
95016 2002-07-01  Jim Meyering  <meyering@lucent.com>
95017
95018         * lib/c-stack.c: Include sys/time.h.
95019         From Volker Borchert.
95020
95021 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95022
95023         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95024
95025 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95026
95027         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95028         New macro.  Use it uniformly instead of
95029         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95030         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95031         reported by Vin Shelton.
95032
95033 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95034
95035         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95036         Do not assume SA_SIGINFO behavior.
95037         Bug reported by Jim Meyering on NetBSD 1.5.2.
95038
95039 2002-06-22  Jim Meyering  <meyering@lucent.com>
95040
95041         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95043
95044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95045         now that configure.ac uses AC_GNU_SOURCE.
95046         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95047         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95048
95049         Update to latest tools.  Suggestions from Paul Eggert.
95050         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95051         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95052         * m4/fnmatch.m4: Likewise.
95053         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95054         to AC_HEADER_STDBOOL
95055
95056 2002-06-22  Jim Meyering  <meyering@lucent.com>
95057
95058         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95059         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95060
95061 2002-06-22  Jim Meyering  <meyering@lucent.com>
95062
95063         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95064
95065         * lib/exitfail.c, exitfail.h: Likewise.
95066         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95067
95068         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95069         of fnmatch.h.
95070         (EXTRA_DIST): Add fnmatch_loop.c.
95071         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95072
95073         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95074         * lib/fnmatch.c: Update from diffutils-2.8.2.
95075         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95076         * lib/fnmatch.h: Remove file.
95077
95078 2002-06-21  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95081         * m4/mbrtowc.m4: Likewise.
95082
95083         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95084         * m4/mbswidth.m4: Reflect name change:
95085         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95086         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95087
95088         * m4/lib-link.m4: Update from gettext-0.11.2.
95089         * m4/gettext.m4: Likewise.
95090
95091         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95092         From Alfred M. Szmidt.
95093
95094 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95095
95096         * lib/file-type.h: Report an error if neither S_ISREG nor
95097         S_IFREG is defined, instead of using a test specific to glibc
95098         2.2.  This should be safe, since POSIX requires S_ISREG and
95099         Unix Version 7 had S_IFREG.  We don't need to check for
95100         <sys/types.h> since we don't use any symbols that it defines.
95101
95102 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95103
95104         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95105         $@-t, so that each temporary file name is unique and valid in the first
95106         8 characters, for operation under DOS.
95107
95108 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95109
95110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95111
95112 2002-06-15  Jim Meyering  <meyering@lucent.com>
95113
95114         Work even with DJGPP 2.03, which lacks support for symlinks.
95115         From Richard Dawe.
95116         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95117         is defined.
95118         * lib/lchown.c (S_ISLNK): Likewise.
95119
95120 2002-06-15  Jim Meyering  <meyering@lucent.com>
95121
95122         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95123         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95124         have been included before this file.
95125
95126 2002-06-14  Jim Meyering  <meyering@lucent.com>
95127
95128         * lib/file-type.h: Use the version from diffutils-2.8.2.
95129         * lib/file-type.c: Likewise.
95130
95131 2002-06-07  Jim Meyering  <meyering@lucent.com>
95132
95133         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95134         They're needed at least for NetBSD 1.5.2.
95135         ($statxfs_includes): Include those same headers.
95136         ($statxfs_includes): Include sys/vfs.h if available.
95137         ($statxfs_includes): Likewise for sys/statvfs.h.
95138         Check for the following members in both structs statfs and statvfs:
95139         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95140
95141 2002-06-01  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95144         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95145
95146 2002-05-28  Jim Meyering  <meyering@lucent.com>
95147
95148         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95149         Reported by Volker Borchert.
95150
95151 2002-05-27  Jim Meyering  <meyering@lucent.com>
95152
95153         Fix a problem seen only on nonconforming systems whereby ls.c's
95154         use of localtime, and then of gettimeofday would cause trouble:
95155         the localtime call used to initialize rpl_gettimeofday's save
95156         mechanism would clobber ls's current local time information so
95157         that in any long listing the first file would always be listed
95158         with date 1970-01-01.  Analysis by Volker Borchert.
95159
95160         * lib/gettimeofday.c (localtime): Undefine.
95161         (rpl_localtime): New function.
95162
95163 2002-05-27  Jim Meyering  <meyering@lucent.com>
95164
95165         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95166         localtime.
95167
95168         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95169         use the replacement function; it wouldn't resolve at link time.
95170         Reported by Volker Borchert.
95171
95172 2002-05-22  Jim Meyering  <meyering@lucent.com>
95173
95174         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95175         file-type.h.
95176         * lib/file-type.h: New file.
95177         * lib/file-type.c (file_type): New file/function.  Extracted from
95178         diffutils.
95179
95180 2002-04-30  Jim Meyering  <meyering@lucent.com>
95181
95182         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95183
95184 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95185
95186         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95187
95188 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95189
95190         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95191         Do not check for alloca.h (no longer used) or stdbool.h (was never
95192         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95193
95194 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95195
95196         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95197
95198 2002-04-29  Jim Meyering  <meyering@lucent.com>
95199
95200         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95201         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95202         Use AC_FUNC_STRNLEN here instead.
95203
95204         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95205         With autoconf-2.53a, it's part of AC_PROG_CC.
95206
95207 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95208
95209         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95211
95212 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95213
95214         * lib/sig2str.h, lib/sig2str.c: New files.
95215         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95216
95217 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95218
95219         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95220         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95221         of 127, since 64 is the largest conceivable number for ancient
95222         nonstandard hosts.
95223         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95224
95225 2002-04-28  Jim Meyering  <meyering@lucent.com>
95226
95227         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95228
95229 2002-04-24  Jim Meyering  <meyering@lucent.com>
95230
95231         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95232         (jm_PREREQ): Use it.
95233
95234         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95235         mach/mach.h fcntl.h.
95236         Check for this function: setlocale.
95237
95238 2002-04-24  Jim Meyering  <meyering@lucent.com>
95239
95240         * lib/gettext.h: New file, from Gettext.
95241         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95242         (libfetish_a_SOURCES): Add gettext.h.
95243
95244 2002-04-16  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95247         ut_pid, ut_id, ut_exit.
95248
95249 2002-04-16  Jim Meyering  <meyering@lucent.com>
95250
95251         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95252         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95253         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95254
95255 2002-04-12  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95258         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95259         existence of the getmntinfo function.  Needed for Darwin 5.3.
95260
95261         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95262         This is necessary at least on Darwin 5.3.
95263
95264         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95265         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95266         strnlen.o in the library, and that makes some versions of ranlib
95267         object.
95268
95269 2002-04-12  Jim Meyering  <meyering@lucent.com>
95270
95271         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95272
95273 2002-04-09  Jim Meyering  <meyering@lucent.com>
95274
95275         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95276         to be more precise.  Rather than saying we're checking whether the
95277         function `works', say what we're testing.
95278         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95279         Reported by Bruno Haible.
95280
95281 2002-03-10  Jim Meyering  <meyering@lucent.com>
95282
95283         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95284         Suggestion from Santiago Vila.
95285
95286 2002-03-08  Jim Meyering  <meyering@lucent.com>
95287
95288         * lib/rename.c: Mention that this wrapper is needed also on
95289         mips-dec-ultrix4.4 systems.
95290
95291 2002-03-02  Jim Meyering  <meyering@lucent.com>
95292
95293         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95294         not HAVE_CLOCK_SETTIME.
95295
95296 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95297
95298         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95299         Check for clock_settime.
95300
95301 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95302
95303         * lib/nanosleep.h: Rename to....
95304         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95305
95306         * lib/gettime.c: New file.
95307         * lib/settime.c: New file.
95308         * lib/stime.c: Remove.
95309
95310         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95311         timespec.h.  Remove nanosleep.h.
95312
95313 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95314
95315         * m4/acl.m4: New file.
95316         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95317         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95318
95319 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95320
95321         * lib/acl.c, lib/acl.h: New files.
95322         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95323
95324 2002-02-24  Jim Meyering  <meyering@lucent.com>
95325
95326         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95327         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95328         cause trouble.  Reported by Nelson Beebe.
95329
95330 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95331
95332         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95333         compilers that don't know that xalloc_die never returns.
95334
95335 2002-02-20  Jim Meyering  <meyering@lucent.com>
95336
95337         * lib/getdate.c: Regenerate using bison-1.33.
95338
95339 2002-02-17  Jim Meyering  <meyering@lucent.com>
95340
95341         * config/config.guess (main): Don't use `head -1'; it's no longer
95342         portable. Use `sed 1q' instead.
95343
95344 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95345
95346         * m4/codeset.m4: Upgrade to gettext-0.11.
95347         * m4/gettext.m4: Upgrade to gettext-0.11.
95348         * m4/glibc21.m4: Upgrade to gettext-0.11.
95349         * m4/iconv.m4: Upgrade to gettext-0.11.
95350         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95351         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95352         * m4/lib-ld.m4: New file, from gettext-0.11.
95353         * m4/lib-link.m4: New file, from gettext-0.11.
95354         * m4/lib-prefix.m4: New file, from gettext-0.11.
95355         * m4/progtest.m4: Upgrade to gettext-0.11.
95356
95357 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95358
95359         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95360         (jm_PREREQ): Use it.
95361
95362 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95363
95364         * lib/posixver.c, lib/posixver.h: New files.
95365         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95366
95367 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95368             Bruno Haible  <bruno@clisp.org>
95369
95370         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95371         (fwrite_success_callback): New declaration.
95372         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95373         print_unicode_char. Call failure callback instead of error.
95374         (fwrite_success_callback): New function.
95375         (exit_failure_callback): New function.
95376         (fallback_failure_callback): New function.
95377         (print_unicode_char): Call unicode_to_mb.
95378
95379 2002-01-26  Jim Meyering  <meyering@lucent.com>
95380
95381         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95382         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95383
95384 2002-01-26  Jim Meyering  <meyering@lucent.com>
95385
95386         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95387
95388 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95389
95390         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95391
95392 2002-01-22  Jim Meyering  <meyering@lucent.com>
95393
95394         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95395         Otherwise, some versions of automake would omit the rule that makes
95396         Makefile from Makefile.in.
95397
95398 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95399
95400         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95401         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95402         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95403         (memcoll): Set errno to zero if there is no error.
95404
95405         * lib/quotearg.c (quotearg_buffer_restyled):
95406         Fix bug with quoting buffers containing NUL when backslashing escapes.
95407         This bug was exposed by the other changes in this patch.
95408         (quotearg_n_options): New arg ARGSIZE.
95409         All callers changed.
95410         (quoting_options_from_style): New function.
95411         (quotearg_n_style): Use it.
95412         (quotearg_n_style_mem): New function.
95413
95414         * lib/quotearg.h (quotearg_n_style_mem): New function.
95415
95416 2002-01-19  Jim Meyering  <meyering@lucent.com>
95417
95418         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95419         Remove useless quotes: DF_PROG="df".
95420         * m4/strnlen.m4: New file.
95421
95422 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95423
95424         * lib/backupfile.c (ISDIGIT): Comment fix.
95425         * lib/getdate.y (ISDIGIT): Likewise.
95426         * lib/posixtm.c (ISDIGIT, year): Likewise.
95427         * lib/strverscmp.c (ISDIGIT): Likewise.
95428         * lib/userspec.c (ISDIGIT): Likewise.
95429
95430 2002-01-16  Jim Meyering  <meyering@lucent.com>
95431
95432         * lib/getdate.y: Add three semicolons, each just before a closing
95433         brace. Bison (as of version 1.31) no longer papers over that mistake.
95434
95435 2002-01-05  Jim Meyering  <meyering@lucent.com>
95436
95437         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95438
95439 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95440
95441         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95442         not silently exit merely because the output buffer happens to
95443         have nothing pending.
95444
95445 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95446
95447         See the big note in ../ChangeLog.
95448         * lib/human.c (suffixes): Prefer K to k for 1024.
95449         (generate_suffix_backwards): New function.
95450         (human_readable_inexact): Use it.
95451         * lib/xstrtol.c (__xstrtol): If there is no number but there
95452         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95453         Accept 'K' as well as 'k'.
95454
95455 2001-12-15  Jim Meyering  <meyering@lucent.com>
95456
95457         * lib/regex.h (__restrict_arr): Update from libc.
95458
95459         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95460         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95461         (STREQ): Define.
95462
95463 2001-12-14  Jim Meyering  <meyering@lucent.com>
95464
95465         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95466         Suggestion from Bruno Haible.
95467
95468 2001-12-10  Jim Meyering  <meyering@lucent.com>
95469
95470         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95471         xrealloc, Instead, include "xalloc.h".
95472         (initbuffer): Don't cast xmalloc return value to char*.
95473         (readline): Reword comment.
95474         Don't cast xrealloc return value to char*
95475         Return NULL, not 0.
95476
95477 2001-12-09  Jim Meyering  <meyering@lucent.com>
95478
95479         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95480         about `signed and unsigned type in conditional expression'.
95481         * lib/posixtm.c (posix_time_parse): Likewise.
95482
95483         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95484
95485         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95486         to avoid a pedantic warning.
95487
95488         * lib/getstr.c: Don't include assert.h.
95489         (getstr): Remove warning-evoking assertions.
95490         Return -1 if offset parameter is out of bounds.
95491         Change the type of a local from int to size_t.
95492
95493         * lib/strftime.c (my_strftime_localtime_r): Include this function
95494         definition in the `#if ! HAVE_TM_GMTOFF' block.
95495
95496         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95497         Include xalloc.h instead.
95498
95499 2001-12-02  Jim Meyering  <meyering@lucent.com>
95500
95501         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95502         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95503         included.
95504
95505         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95506         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95507
95508 2001-11-30  Akim Demaille  <akim@epita.fr>
95509
95510         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95511         before being defined.
95512
95513 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95514
95515         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95516         First arg is int, not unsigned.
95517         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95518         (SIZE_MAX, UINT_MAX): New macros.
95519         (quotearg_n_options): Abort if N is negative.
95520         Avoid overflow check on hosts where size_t is 64 bits and int
95521         is 32 bits, as overflow is impossible there.
95522         Fix off-by-one typo that caused unnecessary reallocation.
95523
95524 2001-11-27  Jim Meyering  <meyering@lucent.com>
95525
95526         * lib/tempname.c: Merge with version from libc.
95527         * lib/regex.c: Likewise.
95528
95529         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95530         systems for which STDC_HEADERS is 0, it was not included, resulting in
95531         a warning about an integer-to-pointer conversion problem with getenv.
95532         Reported by Volker Borchert.
95533
95534 2001-11-26  Jim Meyering  <meyering@lucent.com>
95535
95536         * lib/gtod.h: Remove file.
95537         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95538         * lib/gettimeofday.c: Don't include gtod.h.
95539         (GTOD_init): Remove function.
95540         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95541         Suggestion from Volker Borchert.
95542
95543 2001-11-23  Jim Meyering  <meyering@lucent.com>
95544
95545         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95546         it.
95547         * lib/hash.c (struct hash_table): Define it here instead.
95548
95549 2001-11-22  Jim Meyering  <meyering@lucent.com>
95550
95551         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95552
95553 2001-11-20  Jim Meyering  <meyering@lucent.com>
95554
95555         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95556         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95557
95558 2001-11-19  Jim Meyering  <meyering@lucent.com>
95559
95560         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95561         directory.  Use "conftestXXXXXX" as the template.
95562         Suggestion from Paul Eggert.
95563
95564         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95565         immediately, so the test doesn't mistakenly hit the max-open-files
95566         limit.
95567
95568 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95569
95570         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95571         (TEMPORARIES): New macro.
95572         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95573         removes an artificial limitation (e.g. HP-UX 10.20, where
95574         TMP_MAX is 17576).
95575
95576 2001-11-18  Jim Meyering  <meyering@lucent.com>
95577
95578         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95579
95580 2001-11-18  Jim Meyering  <meyering@lucent.com>
95581
95582         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95583         on SunOS 4.
95584
95585         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95586         files will be created before anything else.
95587
95588 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95589
95590         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95591         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95592
95593 2001-11-17  Jim Meyering  <meyering@lucent.com>
95594
95595         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95596         Prompted by a report from Bob Proulx.
95597
95598         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95599         Instead, require UTILS_FUNC_MKSTEMP.
95600
95601 2001-11-17  Jim Meyering  <meyering@lucent.com>
95602
95603         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95604         Now, that's done as part of AC_FUNC_STRTOD.
95605
95606 2001-11-17  Jim Meyering  <meyering@lucent.com>
95607
95608         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95609         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95610         rather than group writable.  Patch by Juan F. Codagnone.
95611
95612         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95613         xrealloc, Instead, include "xalloc.h".
95614
95615         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95616         Remove explicit declarations of xmalloc, xrealloc,
95617         and xstrdup.  Instead, include "xalloc.h".
95618
95619         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95620         unlocked-io.h.
95621         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95622         Likewise.
95623         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95624
95625         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95626         Reported by Padraig Brady.
95627
95628         * lib/mkstemp.c: #undef mkstemp.
95629         Include config.h.
95630         (rpl_mkstemp): Rename from mkstemp.
95631         Protoize.
95632
95633 2001-11-16  Jim Meyering  <meyering@lucent.com>
95634
95635         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95636         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95637         determine the amount of total physical memory, use pstat_getstatic.
95638         HPUX-11 doesn't define _SC_PHYS_PAGES.
95639         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95640         If sysconf couldn't be used to determine the amount of available
95641         physical memory, use both pstat_getstatic and pstat_getdynamic.
95642         Based on a patch from Bob Proulx.
95643
95644 2001-11-10  Jim Meyering  <meyering@lucent.com>
95645
95646         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95647         (jm_PREREQ): Use it.
95648
95649 2001-11-09  Jim Meyering  <meyering@lucent.com>
95650
95651         * m4/jm-macros.m4: Require autoconf-2.52f.
95652         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95653         Use these AC_-prefixed names, not the AM_-prefixed ones.
95654
95655         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95656
95657 2001-11-05  Jim Meyering  <meyering@lucent.com>
95658
95659         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95660
95661 2001-11-04  Jim Meyering  <meyering@lucent.com>
95662
95663         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95664         $DEFS.
95665
95666 2001-11-03  Jim Meyering  <meyering@lucent.com>
95667
95668         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95669         of AC_DEFUN.
95670
95671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95672         know the name of the variable in the macro definition.
95673
95674 2001-11-03  Jim Meyering  <meyering@lucent.com>
95675
95676         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95677         in argmatch_to_argument call.
95678
95679         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95680         argument.
95681
95682         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95683         e.g., a fault due to an attempt to free a NULL pointer.
95684
95685 2001-11-01  Jim Meyering  <meyering@lucent.com>
95686
95687         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95688         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95689
95690 2001-11-01  Jim Meyering  <meyering@lucent.com>
95691
95692         * lib/dirfd.c, lib/dirfd.h: New files.
95693         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95694
95695         * lib/hash.c (hash_print) [TESTING]: Clean up.
95696
95697 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95698
95699         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95700         to avoid a warning if -Wall.
95701
95702 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95703
95704         * README: New file
95705         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95706         (per RMS's instructions, this is now the canonical source)
95707         * lgpl/, gpl/: New directories.
95708
95709 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95710
95711         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95712
95713 2001-10-21  Jim Meyering  <meyering@lucent.com>
95714
95715         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95716         this code would end up calling gettext even in packages built
95717         with --disable-nls.
95718         * lib/getopt.c (_): Likewise.
95719         * lib/regex.c (_): Likewise.
95720
95721 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95722
95723         * m4/error.m4 (jm_PREREQ_ERROR):
95724         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95725         AC_FUNC_STRERROR_R does that.
95726         Check for strerror declaration.
95727
95728         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95729         are supposed to have them these days.
95730         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95731         Merge changes from latest Autoconf CVS.
95732         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95733         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95734         POSIX decided to standardize on the int flavor of strerror_r.
95735
95736 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95737
95738         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95739         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95740         Use strerror_r that is only a macro, even if it is not a function.
95741         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95742         (private_strerror): Use prototypes, not old-style function definition.
95743         (print_errno_message): New function.
95744         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95745         char*-flavored one.
95746         (error_tail, error, error_at_line): Use it.
95747
95748 2001-10-11  Jim Meyering  <meyering@lucent.com>
95749
95750         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95751         and quote_n (1, ... to avoid clobbering a buffer.
95752
95753 2001-10-05  Jim Meyering  <meyering@lucent.com>
95754
95755         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95756         hash-pjw.h.
95757         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95758         * lib/hash-pjw.h: New file.
95759
95760 2001-09-30  Jim Meyering  <meyering@lucent.com>
95761
95762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95763         `struct fsstat' has the `f_fstypename' member.
95764         Use that to define FS_TYPE, which is now used to make
95765         the getfsstat link test tighter.
95766
95767 2001-09-30  Jim Meyering  <meyering@lucent.com>
95768
95769         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95770         Include <sys/ucred.h>, for Apple Darwin.
95771         Include sys/mount.h and sys/fs_types.h only if available.
95772         (FS_TYPE): Define.
95773         (read_filesystem_list): Use FS_TYPE.
95774
95775 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95776
95777         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95778         a boolean context.
95779
95780 2001-09-29  Jim Meyering  <meyering@lucent.com>
95781
95782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95783         [one-argument getmntent function]): Include stdio.h before mntent.h.
95784         SunOS 4.1.x needs it for the declaration of `FILE'.
95785         Patch by Volker Borchert.
95786
95787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95788         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95789         sys/fs_types.h, and make the link-test for getfsstat guard #include
95790         directives with appropriate #if HAVE_*_H tests so that we can
95791         detect getfsstat on Apple Darwin1.3.7 systems.
95792         Reported by Nelson Beebe.
95793         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95794
95795 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95796
95797         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95798         #defines strtoimax.  Also treat the other strto* functions
95799         like strtoimax.
95800
95801         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95802         Check for strtoul and strtoumax,
95803         as those declarations are made even in the signed case.
95804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95805         Likewise, for strtol and strtoimax.
95806
95807 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95808
95809         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95810         #defines strtoimax.  Also treat the other strto* functions
95811         like strtoimax.
95812
95813         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95814         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95815         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95816
95817 2001-09-26  Jim Meyering  <meyering@lucent.com>
95818
95819         Most macros in unlocked-io.h had the wrong number of arguments.
95820         * lib/gen-uio: New script.
95821         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95822         * lib/unlocked-io.hin: Remove file.
95823         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95824         rather than trying to embed it here.
95825         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95826         Reported by Padraig Brady.
95827
95828 2001-09-25  Volker Borchert  <bt@teknon.de>
95829
95830         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95831         `result'.
95832
95833 2001-09-24  Jim Meyering  <meyering@lucent.com>
95834
95835         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95836
95837 2001-09-23  Jim Meyering  <meyering@lucent.com>
95838
95839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95840         instead of the mere test for existence of mntent.h.  The latter
95841         would get a false-positive on AIX 3.4 systems.
95842         In the outer getmntent if-block, don't die if neither of the getmntent
95843         tests succeeds.  Instead, just fall through and continue with the
95844         remaining tests.
95845
95846 2001-09-23  Jim Meyering  <meyering@lucent.com>
95847
95848         * lib/mountlist.c: Remove useless parentheses in #if directives.
95849         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95850         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95851
95852 2001-09-22  Jim Meyering  <meyering@lucent.com>
95853
95854         * m4/gettext.m4: New file.  From gettext.
95855         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95856         * m4/progtest.m4: Likewise
95857         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95858         * m4/glibc21.m4: Likewise.
95859
95860         * m4/libintl.m4: Remove.  No longer used.
95861
95862 2001-09-22  Jim Meyering  <meyering@lucent.com>
95863
95864         * lib/localcharset.c: Update from latest gettext.
95865         * lib/config.charset: Likewise.
95866
95867 2001-09-20  Jim Meyering  <meyering@lucent.com>
95868
95869         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95870         strtoimax.
95871         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95872         strtoumax.
95873
95874 2001-09-20  Jim Meyering  <meyering@lucent.com>
95875
95876         * lib/xstrtol.c (strtoimax): Guard declaration with
95877         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95878         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95879         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95880         (strtoumax): Likewise, for completeness (it wasn't necessary).
95881
95882 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95883
95884         * lib/strtoimax.c (HAVE_LONG_LONG):
95885         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95886         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95887         to work around bug in IBM C compiler.
95888
95889 2001-09-17  Jim Meyering  <meyering@lucent.com>
95890
95891         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95892         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95893         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95894         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95895         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95896         whenever the right hand side need not be expanded by the shell.
95897
95898 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95899
95900         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95901         library.  It's not correct, as some older glibcs are buggy.
95902         fnmatch wasn't fixed until glibc 2.2.
95903
95904         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95905         special shell magic here.
95906
95907 2001-09-16  Jim Meyering  <meyering@lucent.com>
95908
95909         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95910         * m4/jm-macros.m4: Require it.
95911
95912 2001-09-16  Jim Meyering  <meyering@lucent.com>
95913
95914         * lib/mkdir.c: New file.
95915
95916 2001-09-15  Jim Meyering  <meyering@lucent.com>
95917
95918         * m4/jm-macros.m4: Check for help2man.
95919
95920 2001-09-11  Jim Meyering  <meyering@lucent.com>
95921
95922         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95923         The body, by Paul Eggert, was moved here from configure.in.
95924         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95925
95926 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95927
95928         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95929         (jm_PREREQ): Use it.
95930
95931 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95932
95933         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95934         Use ssize_t, not int, to store result of readlink.
95935         Check for ssize_t overflow as well as size_t overflow,
95936         as POSIX says the result of readlink is implementation-defined
95937         when ssize_t overflows.
95938         Remove unnecessary cast to char*.
95939         Use free+malloc instead of realloc, as the storage doesn't need
95940         to be preserved and it's clearer and can be more efficient that way.
95941         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95942         * lib/xreadlink.h (xreadlink): Update prototype.
95943
95944 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95945
95946         * lib/xgetcwd.c: Revert some of the previous change; intead,
95947         fix the HAVE_GETCWD_NULL code to behave more like the
95948         !HAVE_GETCWD_NULL code used to.
95949
95950         Include "xalloc.h".
95951         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95952         invoke xalloc_die.
95953
95954 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95955
95956         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95957         sys/param.h, as pathmax.h includes them.
95958
95959 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95960
95961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95962         (jm_PREREQ_XGETCWD): New macro.
95963
95964         * m4/getcwd.m4: New file.
95965
95966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95967
95968         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95969         like the HAVE_GETCWD_NULL code.
95970         Include pathmax.h if not HAVE_GETCWD.
95971         Do not include xalloc.h.
95972         (INITIAL_BUFFER_SIZE): New symbol.
95973         Do not use xmalloc / xrealloc, since the caller is responsible for
95974         handling errors.  Preserve errno around `free' during failure.
95975         Do not overrun buffer when using getwd.
95976
95977 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95978
95979         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95980         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95981         getcwd (NULL, 0).
95982
95983 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95984
95985         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95986         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95987         spotted by Jim Meyering.
95988
95989 2001-09-03  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95992         failure.
95993
95994 2001-09-02  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/error.c: Update from GNU libc.
95997
95998 2001-09-01  Jim Meyering  <meyering@lucent.com>
95999
96000         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96001         Used by df.
96002
96003 2001-09-01  Jim Meyering  <meyering@lucent.com>
96004
96005         * lib/xreadlink.c: New file.
96006         * lib/xreadlink.h: New file.
96007         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96008         xreadlink.h.
96009
96010         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96011         doesn't conflict with sparc Solaris 7's definition in
96012         /usr/include/sys/int_types.h.
96013
96014         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96015         files.
96016         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96017         and strncasecmp as r-values.  Unixware didn't have declarations.
96018
96019 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96020
96021         * lib/xstrtol.h: Add copyright notice.
96022         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96023         LONGINT_INVALID_SUFFIX_CHAR.
96024
96025 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96026
96027         * lib/xstrtol.c (strtoimax): New decl.
96028
96029 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96030
96031         * lib/xgetcwd.c: Don't include pathmax.h.
96032         Include stdlib.h and unistd.h if available.
96033         Include xalloc.h.
96034         (xmalloc, xstrdup, free): Remove decls.
96035         (xgetcwd): Don't assume sizes fit in unsigned.
96036         Check for overflow when computing sizes.
96037         Simplify reallocation code.
96038
96039 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96040
96041         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96042         a directory's st_size can have an arbitrary value, so the old
96043         usage could waste an arbitrary amount of memory.  All uses
96044         changed.
96045         * lib/savedir.h: Update prototype.
96046
96047 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96048
96049         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96050
96051         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96052         old strtoimax.c.
96053
96054         Also, make the following further changes to make this file's
96055         configuration more similar to that of strtol.c:
96056         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96057         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96058         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96059         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96060         changed to signed values.
96061
96062         And make the following changes as well:
96063         Fix copyright notice, as 1999 was missing.
96064         (verify): New macro.
96065         (strtoimax): Check sizes at compile-time, not run-time.
96066         Prefer strtol to strtoll if both work.
96067         (main): Remove; it was not that useful and was a pain to maintain.
96068
96069         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96070
96071 2001-08-31  Jim Meyering  <meyering@lucent.com>
96072
96073         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96074         Use an initial, malloc'd, buffer of length 128 rather than
96075         a statically allocated one of length 1024.
96076
96077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96078
96079         Simplify code, partly by assuming autoconf 2.52 semantics.
96080
96081         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96082
96083         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96084         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96085         All uses removed.
96086         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96087         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96088         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96089         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96090         jm_AC_HEADER_INTTYPES_H.
96091         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96092
96093         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96094
96095         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96096         Quote first arg of AC_DEFUN.
96097         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96098         since they are needed to parse the include file even if we need
96099         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96100         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96101         but with opposite signedness.
96102
96103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96104
96105         Merge 'exclude' changes from tar 1.13.22.
96106         This fixes one or two unlikely storage allocation overflow bugs,
96107         but doesn't change user-visible behavior otherwise.
96108
96109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96110
96111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96112         (jm_PREREQ_EXCLUDE): New macro.
96113
96114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96115
96116         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96117         tm to be declared.
96118
96119 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96120
96121         * lib/hash.c: Remove '2001' from copyright notice.
96122
96123 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96124
96125         * lib/full-write.h: New file.
96126         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96127         * lib/full-write.c: Correct credits, as cccp.c no longer
96128         exists and anyway it was so heavily changed from the old cccp
96129         code as to be unrecognizable.  Include full-write.h.
96130         (full_write): Return size_t, with short writes meaning failure.
96131         All callers changed.  This fixes a bug with large buffers
96132         on 64-bit hosts.
96133         * lib/utime.c: Include full-write.h.
96134
96135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96136
96137         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96138         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96139         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96140         Include if available.
96141         (<xalloc.h>): Include
96142         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96143         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96144         collide with FNM macros.
96145         (struct patopts): New struct.
96146         (struct exclude): Use it, as exclude patterns now come with options.
96147         (new_exclude): Support above changes.
96148         (new_exclude, add_exclude_file):
96149         Initial size must now be a power of two to simplify overflow checking.
96150         (free_exclude, fnmatch_no_wildcards): New function.
96151         (excluded_filename): No longer requires options arg, as the options
96152         are determined by add_exclude.  Now returns bool, not int.
96153         (excluded_filename, add_exclude):
96154         Add support for the fancy new exclusion options.
96155         (add_exclude, add_exclude_file): Now takes int options arg.
96156         Check for arithmetic overflow when computing sizes.
96157         (add_exclude_file): xrealloc might modify errno, so don't
96158         realloc until after errno might be used.
96159
96160         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96161         New macros.
96162         (free_exclude): New decl.
96163         (add_exclude, add_exclude_file): Now takes int options arg.
96164         (excluded_filename): No longer requires options arg, as the options
96165         are determined by add_exclude.  Now returns bool, not int.
96166
96167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96168
96169         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96170
96171 2001-08-27  Jim Meyering  <meyering@lucent.com>
96172
96173         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96174
96175         * lib/version-etc.c (N_): Remove definition.
96176         Revert most of last change.
96177         Instead, simply don't mark the `Copyright...' string for translation.
96178         Based on advice from Paul Eggert.
96179
96180         * lib/strtoxmax.c: Tweak comment.
96181
96182 2001-08-26  Jim Meyering  <meyering@lucent.com>
96183
96184         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96185
96186         * m4/xstrtoimax.m4: New file.
96187         * m4/xstrtoumax.m4: Add comments explaining why we
96188         AC_REPLACE_FUNCS(strtol).
96189
96190 2001-08-26  Jim Meyering  <meyering@lucent.com>
96191
96192         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96193         of copyright with `%s' so translators don't get an untranslated
96194         message in 2002.
96195         (COPYRIGHT_YEAR): Define.
96196         (version_etc): Use fprintf rather than fputs.
96197         Suggestion from Ulrich Drepper.
96198
96199         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96200
96201         * lib/strtoll.c: New file, from GNU libc.
96202         * lib/xstrtoimax.c: New file.
96203
96204         * lib/xstrtol.h: Add xstrtoimax.
96205         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96206         * lib/strtoimax.c: New file.  Likewise, but first define
96207         STRTOUXMAX_SIGNED.
96208
96209         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96210         ...
96211         * lib/strtoxmax.c: ... then renamed to this.
96212
96213 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96214
96215         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96216         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96217         (jm_AC_TYPE_INTMAX_T): New macro.
96218         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96219
96220         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96221
96222         * m4/longlong.m4: Renamed from ulonglong.m4.
96223         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96224         * m4/uintmax_t.m4: Removed.
96225
96226 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96227
96228         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96229         Port to Solaris 8, where 'sed' requires a space after the 'r'
96230         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96231         Redirect output to $tmp just once.
96232
96233 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96234
96235         * lib/addext.c (<errno.h>): Include.
96236         (errno): Declare if not defined.
96237         (addext): Work correctly when pathconf returns -1 and leaves
96238         errno alone because there is no limit.  Also, work even if
96239         pathconf returns a value greater than SIZE_MAX.
96240
96241 2001-08-12  Jim Meyering  <meyering@lucent.com>
96242
96243         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96244         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96245         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96246         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96247         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96248         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96249         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96250         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96251         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96252         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96253         utime.m4, utimes.m4, xstrtoumax.m4:
96254         Quote the first argument in each use of AC_DEFUN.
96255
96256 2001-08-12  Jim Meyering  <meyering@lucent.com>
96257
96258         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96259         Simply `return getcwd (NULL, 0);'.
96260         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96261         Use 1300 as initial value for length, not PATH_MAX.
96262
96263         * lib/pathmax.h: Clean up cpp syntax.
96264
96265 2001-08-12  Jim Meyering  <meyering@lucent.com>
96266
96267         * lib/gettimeofday.c: New file.
96268         * lib/gtod.h: New file.
96269         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96270
96271 2001-08-05  Jim Meyering  <meyering@lucent.com>
96272
96273         * m4/jm-macros.m4: Require autoconf-2.52.
96274
96275 2001-08-04  Jim Meyering  <meyering@lucent.com>
96276
96277         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96278         stmt, to get in sync with glibc.
96279
96280 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96281
96282         The following changes are from gettext 0.10.39 as maintained by
96283         Bruno Haible.
96284
96285         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96286         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96287         with inverted sense.  All uses changed.
96288
96289         * lib/mbswidth.c: Don't include <limits.h>.
96290         Include <stdlib.h> and <string.h> unconditionally.
96291         (iswcntrl, mbsinit, ISCNTRL): New macros.
96292         (mbsnwidth): Use K&R style function declarations.
96293         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96294         can optimize it when MB_CUR_MAX == 1.
96295         The width of control characters is zero, not 1.
96296
96297 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96298
96299         The following changes are from gettext 0.10.39 as maintained by
96300         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96301
96302         * m4/codeset.m4: Upgrade to serial AM1.
96303         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96304         all uses changed.  Quote first arg of AC_DEFUN.
96305         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96306
96307         * m4/iconv.m4: Upgrade to serial AM2.
96308         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96309         Add --with-libconv-prefix.
96310         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96311         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96312         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96313         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96314         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96315
96316         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96317         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96318         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96319         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96320         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96321         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96322         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96323         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96324         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96325
96326         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96327         string.h any more.
96328
96329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96330         not the default value.
96331
96332         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96333         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96334         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96335         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96336         Also check for iswcntrl, used for wcwidth fallback.
96337         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96338         to Autoconf 2.13.
96339
96340 2001-08-03  Jim Meyering  <meyering@lucent.com>
96341
96342         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96343         as it was in the original.  Reported by Paul Eggert.
96344
96345 2001-07-16  Jim Meyering  <meyering@lucent.com>
96346
96347         * m4/gettimeofday.m4: New file.
96348         Prompted by a report from Bernhard Baehr.
96349
96350 2001-07-15  Jim Meyering  <meyering@lucent.com>
96351
96352         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96353         stuff. Now it's in ../Makefile.cfg.
96354
96355 2001-07-15  Jim Meyering  <meyering@lucent.com>
96356
96357         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96358         (BUILT_SOURCES): Add unlocked-io.h.
96359         (io_functions): Define.
96360         (unlocked-io.h): New rule.
96361         (DISTCLEANFILES): Add unlocked-io.h.
96362         (all-local): Depend on unlocked-io.h, to ensure it is created.
96363
96364         * lib/unlocked-io.hin: New file
96365
96366         * lib/regex.c: Update from glibc.
96367
96368 2001-07-05  Jim Meyering  <meyering@lucent.com>
96369
96370         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96371         recommendation.
96372         (libfetish_a_SOURCES): Put all .h files here instead.
96373         Remove a thus-exposed (better checks in automake) duplicate and
96374         two unnecessary .h files.
96375
96376 2001-07-04  Jim Meyering  <meyering@lucent.com>
96377
96378         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96379         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96380         distcheck failure.
96381
96382 2001-07-02  Jim Meyering  <meyering@lucent.com>
96383
96384         The following changes were prompted by suggestions from Bruno Haible.
96385
96386         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96387         is now generated.
96388         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96389         definition of EXTRA_DIST.
96390         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96391         ensure that the generated file is created/updated whenever the list
96392         of $(unlocked_functions) is changed.
96393         (jm-glibc-io.m4): New rule.
96394         (unlocked-io.h): New rule -- currently unused.
96395
96396 2001-06-24  Jim Meyering  <meyering@lucent.com>
96397
96398         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96399         unmatched right bracket, rather than kludging it with an extra,
96400         falsely-matching quote in a comment.  Patch by Akim Demaille.
96401
96402 2001-06-11  Jim Meyering  <meyering@lucent.com>
96403
96404         * lib/regex.c: Update from GNU libc.
96405
96406 2001-05-27  Jim Meyering  <meyering@lucent.com>
96407
96408         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96409         Check for ut_type in struct utmp.
96410
96411 2001-05-27  Jim Meyering  <meyering@lucent.com>
96412
96413         * lib/readutmp.h (UT_TYPE): Define.
96414
96415 2001-05-24  Jim Meyering  <meyering@lucent.com>
96416
96417         * lib/argmatch.c: Include "quote.h".
96418         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96419         quote function.  Reported by Göran Uddeborg.
96420
96421 2001-05-22  Jim Meyering  <meyering@lucent.com>
96422
96423         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96424         now that we use the package-supplied version unconditionally.
96425         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96426
96427 2001-05-21  Jim Meyering  <meyering@lucent.com>
96428
96429         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96430         shell syntax errors.
96431
96432 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96433
96434         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96435
96436 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96437
96438         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96439         Don't bother to check library strftime, since
96440         we'll be using our own my_strftime function anyway.
96441         Define my_strftime instead of strftime.
96442
96443 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96444
96445         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96446         which is not yet declared.
96447
96448 2001-05-15  Jim Meyering  <meyering@lucent.com>
96449
96450         * m4/regex.m4: Use proper quoting so brackets appear in the test
96451         program.
96452         Reported by, and with help from, Bruno Haible.
96453
96454 2001-05-13  Jim Meyering  <meyering@lucent.com>
96455
96456         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96457         undefined.
96458
96459 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96460
96461         dirname code cleanup.  base_name now behaves more compatibly
96462         with POSIX basename when given file names that have trailing
96463         slashes, and similarly for dir_name.  Add new primitives
96464         base_len and dir_len.  Put the directory-name-related decls
96465         into dirname.h.
96466
96467         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96468         * lib/backupfile.c (base_name): Likewise.
96469         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96470         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96471         * lib/makepath.c (strip_trailing_slashes): Likewise.
96472         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96473         ISSLASH): Likewise.
96474         * lib/rename.c (strip_trailing_slashes): Likewise.
96475         * lib/same.c (base_name): Likewise.
96476         * lib/stripslash.c (ISSLASH): Likewise.
96477
96478         * lib/addext.c: Include <dirname.h> after size_t is defined.
96479         * lib/backupfile.c: Likewise.
96480
96481         * lib/addext.c (addext): Use base_len to trim redundant
96482         trailing slashes instead of doing it ourselves.
96483         But do not trim the last slash if it is not redundant.
96484
96485         * lib/backupfile.c (find_backup_file_name,
96486         max_backup_version): Use base_len instead of rolling it ourselves.
96487         Handle the case of "" and (on DOS) "C:" correctly.
96488
96489         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96490         needed. Include <string.h>, <dirname.h>.
96491         (base_name): Allow file names ending in slashes, other than names
96492         that are all slashes.  In this case, return the basename followed
96493         by the slashes.  This is more general, and can be used in places
96494         where the original base_name purposely had an assertion failure.
96495         (base_len): New function.
96496
96497         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96498         Do not include <assert.h>; no longer needed.
96499         Include xalloc.h.
96500         (memrchr): Remove decl.
96501         (dir_name_r): Remove.
96502         (dir_len): Renamed from dirlen.  All callers changed.
96503         Rewrite in terms of base_name, for simplicity and consistency.
96504         (dir_name): Never return NULL.  All callers changed.
96505         Do not include <stdlib.h> in test program; no longer needed.
96506         return 0; is fine for test program.
96507
96508         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96509         New macros.
96510         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96511
96512         * lib/path-concat.c (path_concat): Use base_len to compute
96513         base length, not strlen; this means we cannot rely on memcpy
96514         to null-terminate.
96515
96516         * lib/same.c (STREQ): Remove.
96517         (same_name): Handle the case where the basename ends in trailing '/'.
96518
96519         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96520         a slash was stripped.  Do not strip the last slash after a
96521         file system prefix.
96522
96523 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96524
96525         * lib/Makefile.am (libfetish_a_SOURCES):
96526         Add strftime.c, since we now compile it on all hosts.
96527
96528         * lib/strftime.c (my_strftime):
96529         Define to nstrftime if emacs, but only if my_strftime is not defined.
96530         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96531         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96532         Add one more extra argument: a nanoseconds value.
96533         All uses changed.
96534         (ns): New macro.
96535         (my_strftime function): Add %N format.
96536         (emacs_strftimeu): Renamed from emacs_strftime,
96537         with extra ut argument.
96538
96539 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96540
96541         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96542
96543 2001-04-21  Jim Meyering  <meyering@lucent.com>
96544
96545         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96546         doesn't interfere.
96547
96548 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96549
96550         * m4/ftruncate.m4: Check for chsize.
96551         Link with ftruncate.o unconditionally if ftruncate is missing.
96552         This was required when cross-compiling to i586-mingw32msvc.
96553
96554 2001-04-08  Jim Meyering  <meyering@lucent.com>
96555
96556         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96557         recomputed; that's necessary when the offset spans a DST transition.
96558         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96559
96560 2001-04-02  Jim Meyering  <meyering@lucent.com>
96561
96562         * lib/regex.h, regex.c: Update from GNU libc.
96563
96564 2001-03-24  Jim Meyering  <meyering@lucent.com>
96565
96566         * m4/jm-macros.m4: Require autoconf-2.49d.
96567
96568 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96569
96570         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96571
96572 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96573
96574         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96575
96576 2001-03-17  Jim Meyering  <meyering@lucent.com>
96577
96578         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96579         now that the version in autoconf is equivalent.
96580         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96581
96582         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96583         Suggestion from Akim Demaille.
96584
96585         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96586         (jm_PREREQ_TEMPNAME): New function.
96587
96588 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96589
96590         * lib/tempname.c (uint64_t): Define to uintmax_t if
96591         not defined, and if UINT64_MAX is not defined.
96592         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96593         Reported by John David Anglin.
96594
96595 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96596
96597         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96598         resolve alias if codeset is empty.
96599         * lib/config.charset (BeOS): Use wildcard syntax.
96600
96601 2001-03-13  Jim Meyering  <meyering@lucent.com>
96602
96603         * lib/path-concat.c (path_concat)
96604         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96605         concatenating e.g., `C:' and `foo'.
96606         From Bruno Haible.
96607
96608 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96609
96610         * lib/localcharset.c (locale_charset): Don't use
96611         setlocale(LC_CTYPE,NULL). Don't return NULL.
96612         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96613
96614 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96615
96616         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96617         support for DOS/DJGPP.
96618
96619 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96620
96621         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96622         lacks mkstemp.  Compile our own tempname.c if we compile our own
96623         mkstemp.c, as mkstemp relies on tempname.
96624
96625 2001-03-01  Jim Meyering  <meyering@lucent.com>
96626
96627         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96628         AH_VERBATIM really does output its argument verbatim.
96629
96630 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96631
96632         * lib/Makefile.am (libfetish_a_SOURCES):
96633         Add dup-safer.c, fopen-safer.c.
96634         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96635
96636         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96637         * lib/unistd-safer.h: New files.
96638
96639 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96640
96641         The mkstemp replacement is taken from glibc 2.2.2, with some
96642         portability fixes for use outside glibc, as follows:
96643
96644         * lib/tempname.c (struct_stat64): New macro.
96645         (direxists, __gen_tempname): Use it.
96646         This avoids a portability problem with Solaris 8.
96647
96648         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96649         (<stddef.h>, <stdint.h>, <string.h>):
96650         Include only if STDC_HEADERS || _LIBC.
96651         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96652         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96653         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96654         (__set_errno): Define this macro if <errno.h> doesn't.
96655         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96656         Define these macros if <stdio.h> doesn't.
96657         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96658         Define these macros if <sys/stat.h>
96659         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96660         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96661         __xstat64): Define if not _LIBC.
96662         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96663         (__gen_tempname): Invoke gettimeofday only if
96664         HAVE_GETTIMEOFDAY || _LIBC;
96665         otherwise, fall back on plain "time".
96666         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96667
96668         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96669
96670         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96671
96672 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96673
96674         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96675
96676 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96677
96678         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96679         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96680         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96681         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96682
96683 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96684
96685         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96686         Remove workaround macros for hosts that have mbrtowc but not
96687         mbstate_t, as we now insist on proper declarations for both
96688         before using mbrtowc.
96689
96690 2001-02-17  Jim Meyering  <meyering@lucent.com>
96691
96692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96693         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96694         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96695         UnixWare 7.1.1.
96696
96697         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96698         rather than AC_CACHE_VAL.
96699
96700 2001-02-17  Jim Meyering  <meyering@lucent.com>
96701
96702         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96703         around included file name.
96704
96705         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96706
96707         * lib/strftime.c: Update from GNU libc (the only changes were to
96708         comments).
96709
96710 2001-02-17  Jim Meyering  <meyering@lucent.com>
96711
96712         * lib/regex.c: Update from libc.
96713
96714 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96715
96716         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96717         clash.
96718
96719 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96720
96721         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96722         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96723         Reported by Mark Hounschell via Paul Eggert.
96724
96725 2001-02-07  Jim Meyering  <meyering@lucent.com>
96726
96727         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96728
96729 2001-02-05  Jim Meyering  <meyering@lucent.com>
96730
96731         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96732         it includes the patch required for `large file' support with at least
96733         HP-UX's 10.20 /bin/cc.
96734
96735 2001-02-03  Jim Meyering  <meyering@lucent.com>
96736
96737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96738         AS_IF, now that it works once again (mysteriously).
96739         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96740
96741 2001-01-30  Jim Meyering  <meyering@lucent.com>
96742
96743         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96744         * m4/chown.m4: Rename conftestchown to conftest.chown.
96745         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96746         s/conftestdir2/conftest.d2/.
96747         * m4/utimes.m4: s/conftestdata/conftest.data/
96748         Inspired by Pavel Roskin's change in autoconf.
96749
96750 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96751
96752         * lib/config.charset: Update for FreeBSD 4.2.
96753
96754 2001-01-27  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96757         a use of AS_IF.
96758         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96759
96760 2001-01-26  Jim Meyering  <meyering@lucent.com>
96761
96762         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96763         quotearg.c includes it.
96764
96765 2001-01-26  Jim Meyering  <meyering@lucent.com>
96766
96767         * lib/quotearg.c: Include stddef.h.
96768         * lib/quote.c: Include stddef.h.
96769         Reported by Axel Kittenberger.
96770
96771         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96772         line in double quotes so that it evokes a better diagnostic.
96773         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96774         Reported by Axel Kittenberger.
96775
96776 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96777
96778         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96779         as if it was a `charset'.
96780
96781 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96782
96783         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96784         has const.
96785
96786 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96787
96788         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96789         to avoid a warning.  Add back 'const' to inptr.
96790
96791 2001-01-20  Jim Meyering  <meyering@lucent.com>
96792
96793         Be sure that headers are checked before used in code compiled
96794         for the type checks.
96795         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96796         In place of that, invoke jm_CHECK_ALL_TYPES.
96797         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96798         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96799         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96800         The check for ssize_t was mistakenly run before the test for unistd.h.
96801
96802         The configure-time check for stdbool.h was missing.
96803         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96804         (jm_PREREQ_HASH): New function.
96805
96806 2001-01-17  Jim Meyering  <meyering@lucent.com>
96807
96808         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96809         for autoconf-2.49c.
96810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96811
96812 2001-01-16  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96815         From Bruno Haible.
96816
96817 2001-01-14  Jim Meyering  <meyering@lucent.com>
96818
96819         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96820         foo and bar.  Create conftestdir/ in the script, not in the C code.
96821         Remove directories in the script, not in the C code.
96822         Remove conftestdir{,2} before trying to create the directory.
96823         Make the entire configure script fail if the mkdir fails.
96824
96825 2001-01-14  Jim Meyering  <meyering@lucent.com>
96826
96827         * lib/rename.c: New file.  From Volker Borchert.
96828         Include stdlib.h, string.h or strings.h, and xalloc.h.
96829         Use strip_trailing_slashes rather than open-coding it.
96830
96831 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96832
96833         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96834
96835 2001-01-03  Jim Meyering  <meyering@lucent.com>
96836
96837         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96838         of local `inptr' to avoid warning with some system declarations of
96839         iconv.
96840
96841 2001-01-02  Volker Borchert  <bt@teknon.de>
96842
96843         * m4/rename.m4: New file.
96844         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96845
96846 2001-01-01  Jim Meyering  <meyering@lucent.com>
96847
96848         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96849         even on systems with utmpx.h.  It's necessary for the declaration of
96850         utmp's ut_user member.  Reported by Andreas Jaeger.
96851
96852         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96853         available. They are required for the declarations of getgrgid and
96854         getpwuid resp.
96855         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96856         Reported by Andreas Jaeger.
96857
96858 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96859
96860         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96861         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96862         so `make install' also works in VPATH builds.
96863
96864 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96865
96866         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96867         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96868         can be used in subdirectories.
96869
96870 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96871
96872         * lib/modechange.c: Do not assume that mode_t uses the
96873         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96874         the other-execute bit of FOO even if S_IXOTH != 1.
96875
96876         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96877         WOTH, XOTH, ALLM): New macros.
96878         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96879          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96880         Use them.
96881         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96882         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96883         (mode_compile):
96884         No need to use uintmax_t; unsigned long is long enough.
96885         Don't bother to get suffix since we don't use it.
96886
96887 2000-12-26  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96890         better with autoheader.
96891
96892 2000-12-24  Jim Meyering  <meyering@lucent.com>
96893
96894         * lib/hash.c (is_prime): Return explicit boolean values.
96895         (hash_get_first): Return NULL to appease Irix5.6's 89.
96896         Reported by Nelson Beebe.
96897
96898 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96899
96900         * lib/localcharset.c (locale_charset): Add support for Win32.
96901
96902 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96903
96904         * lib/physmem.h, lib/physmem.c: New files.
96905
96906         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96907         (noinst_HEADERS): Add physmem.h.
96908
96909         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96910         't' for compatibility with Solaris 8 sort.
96911
96912 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96913
96914         * lib/config.charset: Add support for BeOS.
96915
96916 2000-12-17  Jim Meyering  <meyering@lucent.com>
96917
96918         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96919         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96920
96921 2000-12-16  Jim Meyering  <meyering@lucent.com>
96922
96923         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96924         N and M) would have treated it like `chown N:N FILE'.
96925
96926         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96927
96928 2000-12-16  Jim Meyering  <meyering@lucent.com>
96929
96930         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96931         SHELLS_FILE to a file name that's useful on djgpp systems.
96932         Include stdlib.h.
96933         (ADDITIONAL_DEFAULT_SHELLS): Define.
96934         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96935         Based mostly on a patch from Prashant TR.
96936
96937 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96938
96939         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96940         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96941         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96942
96943 2000-12-08  Andreas Schwab  <schwab@suse.de>
96944
96945         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96946         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96947
96948 2000-12-07  Jim Meyering  <meyering@lucent.com>
96949
96950         * lib/stripslash.c (ISSLASH): Define.
96951         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96952         `/'.
96953         From Prashant TR.
96954
96955         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96956         (dir_name_r): Declare this function as static.
96957         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96958         manifest itself on a name containing a mix of slashes and
96959         backslashes.
96960         Make this function work with names starting with a DOS-style
96961         drive letter and colon prefix.
96962         (dir_name): Append `.' if necessary.
96963         Based mostly on patches from Prashant TR and Eli Zaretskii.
96964
96965         * lib/dirname.h (dir_name_r): Remove prototype.
96966
96967 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96968
96969         * m4/off_t-format.m4: Remove this file.
96970         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96971
96972 2000-12-06  Jim Meyering  <meyering@lucent.com>
96973
96974         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96975         replacement strtoull, we may well need the replacement strtoul, too.
96976         Check for declarations of strtoul and strtoull.
96977         Check for strtol.  Mainly as a cue to cause automake to include
96978         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96979         Check for limits.h -- strtol.c needs it.
96980
96981 2000-12-05  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96984
96985 2000-12-04  Jim Meyering  <meyering@lucent.com>
96986
96987         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96988         Also include memory.h, stdlib.h, unistd.h if appropriate.
96989         Reported by Andreas Jaeger (conflicting declaration of malloc).
96990
96991 2000-12-02  Jim Meyering  <meyering@lucent.com>
96992
96993         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96994         * m4/jm-macros.m4 (jm_MACROS): require it.
96995
96996 2000-12-02  Jim Meyering  <meyering@lucent.com>
96997
96998         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96999
97000 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97001
97002         * lib/memrchr.c: Include <config.h> before any system include file.
97003
97004 2000-11-30  Jim Meyering  <meyering@lucent.com>
97005
97006         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97007
97008 2000-11-30  Jim Meyering  <meyering@lucent.com>
97009
97010         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97011
97012 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97013
97014         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97015
97016 2000-11-26  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97019
97020 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97021
97022         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97023         size of (size_t) -1; it's not portable.
97024
97025 2000-11-17  Jim Meyering  <meyering@lucent.com>
97026
97027         * lib/strstr.c: Update from GNU libc.
97028
97029 2000-11-17  Akim Demaille  <akim@epita.fr>
97030
97031         * lib/obstack.h: Formatting changes.
97032         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97033         prevent type checking.
97034         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97035         cast the value to (void *): assigning a `foo *' to a `void *'
97036         variable is valid.
97037         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97038
97039 2000-11-16  Jim Meyering  <meyering@lucent.com>
97040
97041         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97042
97043 2000-11-11  Jim Meyering  <meyering@lucent.com>
97044
97045         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97046
97047 2000-11-10  Jim Meyering  <meyering@lucent.com>
97048
97049         * lib/obstack.h: Update from GNU libc.
97050         * lib/obstack.c: Likewise.
97051
97052 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97053
97054         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97055
97056 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97057
97058         * lib/getusershell.c (setusershell): Use rewind rather than
97059         fseek/fseeko, to avoid configuration hassles with fseeko.
97060         Don't bother opening SHELLS_FILE if shellstream is NULL;
97061         it's not necessary.
97062
97063 2000-11-05  Jim Meyering  <meyering@lucent.com>
97064
97065         * lib/makepath.h (make_dir): Declare.
97066         * lib/makepath.c (make_dir): Remove `static' attribute.
97067         Tweak a comment.
97068
97069 2000-11-04  Jim Meyering  <meyering@lucent.com>
97070
97071         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97072
97073 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97074
97075         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97076         last one in a bucket, advance to the next bucket.
97077
97078 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97079
97080         * lib/fnmatch.c: Do not comment out all the code if we are using
97081         the GNU C library, because in some cases we are replacing buggy
97082         code in the GNU C library itself.
97083
97084 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97085
97086         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97087         (regex_compile): Catch bogus \(\1\).
97088
97089 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97090
97091         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97092         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97093         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97094
97095 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97096
97097         * lib/error.h, getline.h, modechange.h:
97098         Remove "2000" from Copyright line, as the file hasn't been
97099         changed this year other than in the copyright notice.
97100
97101         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97102         was changed this year.
97103
97104 2000-10-29  Jim Meyering  <meyering@lucent.com>
97105
97106         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97107         renaming.
97108         * m4/ls-mntd-fs.m4: Likewise
97109
97110 2000-10-29  Jim Meyering  <meyering@lucent.com>
97111
97112         * lib/xstat.in: Fix grammar in comment.
97113
97114 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97115
97116         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97117         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97118         doesn't define __restrict_arr.
97119
97120 2000-10-28  Jim Meyering  <meyering@lucent.com>
97121
97122         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97123         (jm_PREREQ_MEMCHR): New function.
97124
97125 2000-10-28  Jim Meyering  <meyering@lucent.com>
97126
97127         * lib/memchr.c: Update from libc.
97128         Adjust for portability:
97129         [HAVE_STDLIB_H]: Include stdlib.h.
97130         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97131         Undef __memchr, too.
97132         [!weak_alias]: Define __memchr to memchr.
97133
97134         * lib/regex.c: Update from libc.
97135         * lib/regex.h: Likewise.
97136         * lib/getopt1.c: Likewise.
97137         * lib/memcmp.c: Likewise.
97138
97139         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97140         Avoid using fseek, when possible -- it's broken by design.
97141         Patch by Ulrich Drepper.
97142
97143 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97144
97145         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97146         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97147         Giving in to popular pressure to shut up the compiler with casts.
97148
97149 2000-10-26  Jim Meyering  <meyering@lucent.com>
97150
97151         * lib/strftime.c: Update from libc.
97152
97153 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97154
97155         * regex.c: More `unsigned char' -> `re_char' changes.
97156         Also change several `int' into `re_wchar_t'.
97157         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97158         (PUSH_FAILURE_POINTER): Don't cast any more.
97159         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97160         We want GCC to complain, since this piece of code makes
97161         re_match non-reentrant, which *should* be fixed.
97162         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97163         (EXTEND_BUFFER): Use RETALLOC.
97164         (SET_LIST_BIT): Don't cast.
97165         (re_wchar_t): New type.
97166         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97167         that those two functions will always properly return.
97168         (IMMEDIATE_QUIT_CHECK): Cast to void.
97169         (analyse_first): Use recursion rather than an explicit stack.
97170         (re_compile_fastmap): Can't fail anymore.
97171         (re_search_2): Don't check re_compile_fastmap for failure.
97172         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97173         Now also sets the new value (passed in a new argument).
97174         (re_match_2_internal): Use it.
97175         Also, use a new var `reg' of type size_t when looping through regs
97176         rather than reuse the inappropriate `mcnt'.
97177
97178 2000-10-25  Jim Meyering  <meyering@lucent.com>
97179
97180         * lib/obstack.c: Update from libc.
97181
97182 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97183
97184         * regex.c (regex_compile): Change the way of handling a range from
97185         a char less than 256 to a char not less than 256.
97186
97187 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97188
97189         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97190         NT-Emacs only.
97191         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97192         so that re_search functions only quit when callers expect them to.
97193
97194 2000-10-23  Jim Meyering  <meyering@lucent.com>
97195
97196         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97197         wrong.  That set_locale call must not have any side effects.
97198         From Paul Eggert.
97199
97200 2000-10-22  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97203         [CYCLIC]: Remove now-unused definition.
97204
97205         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97206         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97207         Suggestion from Ulrich Drepper.
97208
97209 2000-10-21  Jim Meyering  <meyering@lucent.com>
97210
97211         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97212         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97213         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97214
97215 2000-10-21  Jim Meyering  <meyering@lucent.com>
97216
97217         * lib/dirname.c (memrchr): Declare if necessary.
97218         (dir_name): Remove the restriction that there be no
97219         trailing slashes.  Now, this code skips past them, effectively
97220         ignoring them.
97221         [TEST_DIRNAME] (main): New unit tests.
97222
97223         * lib/memrchr.c: New file from GNU libc.
97224         Undef __memrchr, too.
97225         [!weak_alias]: Define __memrchr to memrchr.
97226         Guard weak_alias use with `#ifdef weak_alias'.
97227
97228 2000-10-21  Jim Meyering  <meyering@lucent.com>
97229
97230         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97231         (dir_name): Use dir_name_r.
97232         * lib/dirname.h (dir_name_r): Declare it.
97233
97234 2000-10-17  Jim Meyering  <meyering@lucent.com>
97235
97236         * lib/quote.h (PARAMS): Define and use.
97237         Reported by Akim Demaille.
97238
97239         * lib/getopt.c: Update from libc.
97240
97241 2000-10-16  Jim Meyering  <meyering@lucent.com>
97242
97243         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97244         setlocale.
97245         From Jan Fedak.
97246
97247 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97248
97249         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97250
97251 2000-09-25  Jim Meyering  <meyering@lucent.com>
97252
97253         * lib/md5.h (rol): Define (from GnuPG).
97254
97255         * lib/sha.c: Give credit (GnuPG) where due.
97256         (M): Use rol rather than open-coding it.
97257         Add a FIXME comment.
97258
97259 2000-09-21  Jim Meyering  <meyering@lucent.com>
97260
97261         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97262         Reported by Michael Stone.
97263
97264 2000-09-20  Jim Meyering  <meyering@lucent.com>
97265
97266         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97267         (noinst_HEADERS): Add sha.h.
97268         Based on code from Scott G. Miller and from GnuPG.
97269
97270 2000-09-18  Jim Meyering  <meyering@lucent.com>
97271
97272         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97273         LIBS. Otherwise, everyone ends up linking with -lelf for some
97274         configurations.
97275         Reported by Mike Stone.
97276
97277 2000-09-15  Jim Meyering  <meyering@lucent.com>
97278
97279         * lib/regex.c: Update from libc.
97280
97281 2000-09-10  Jim Meyering  <meyering@lucent.com>
97282
97283         * lib/getopt.c (_getopt_internal): Update from glibc.
97284
97285 2000-09-09  Jim Meyering  <meyering@lucent.com>
97286
97287         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97288         think it should be used as a general replacement for isascii.
97289         * lib/fnmatch.c: Likewise.
97290         * lib/mbswidth.c: Likewise
97291         * lib/regex.c: Likewise.
97292
97293         Don't use atoi.
97294         * lib/userspec.c: Include sys/param.h and limits.h.
97295         Include xstrtol.h.
97296         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97297         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97298         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97299         UID, GID.  Check range.
97300
97301 2000-09-06  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/getopt.c (_getopt_internal): Update from glibc.
97304
97305 2000-08-30  Jim Meyering  <meyering@lucent.com>
97306
97307         * lib/strftime.c: Merge in changes from GNU libc.
97308
97309 2000-08-26  Jim Meyering  <meyering@lucent.com>
97310
97311         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97312         * m4/fpending.m4: New file.
97313
97314 2000-08-26  Jim Meyering  <meyering@lucent.com>
97315
97316         * lib/closeout.c: Include "__fpending.h".
97317         (close_stdout_status): Return right away if there's nothing to flush.
97318
97319         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97320         * lib/__fpending.c: New file.
97321         * lib/__fpending.h: New file.
97322
97323 2000-08-20  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97326         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97327         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97328
97329 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97330
97331         Improve fileutils installation on systems where running
97332         programs (like install) can't be unlinked.
97333         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97334         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97335
97336 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97337
97338         Standardize on "memory exhausted" instead of "Memory exhausted"
97339         or "virtual memory exhausted".
97340         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97341         "virtual memory exhausted".
97342         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97343         our own message.
97344         * lib/userspec.c (parse_user_spec): Likewise.
97345         * lib/bumpalloc.h: comment fix
97346         * lib/same.c, userspec.c: Include xalloc.h.
97347
97348         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97349         not char *const and pointing to a constant array.
97350         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97351         (xrealloc): Comment fix.
97352
97353         * lib/userspec.c (parse_user_spec):
97354         Don't translate a message until just before returning,
97355         to avoid unnecessary translation.
97356
97357 2000-08-07  Jim Meyering  <meyering@lucent.com>
97358
97359         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97360         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97361         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97362         getgroups.c, gethostname.c, getopt.h, group-member.c,
97363         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97364         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97365         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97366         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97367         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97368         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97369         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97370         yesno.c: Back out Copyright date changes for each file with no change
97371         this year.  This eases coordination with other programs using the same
97372         source code modules.  From Paul Eggert.
97373
97374 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97375
97376         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97377         not char, for compatibility with glibc 2.1.3 strftime.c.
97378
97379 2000-08-03  Greg McGary  <greg@mcgary.org>
97380
97381         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97382         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97383         (EXTEND_BUFFER): Use them.
97384
97385 2000-08-01  Jim Meyering  <meyering@lucent.com>
97386
97387         * lib/dirname.c (ISSLASH): Define.
97388         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97389         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97390         both `\' and `/' may be use as path separators.
97391         Based on a patch from Prashant TR.
97392
97393 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97394
97395         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97396         slot vector a constant, since it might get modified.
97397
97398 2000-07-31  Jim Meyering  <meyering@lucent.com>
97399
97400         * lib/xmalloc.c: Use `virtual memory exhausted', not
97401         `Memory exhausted'.
97402         * lib/obstack.c (print_and_abort): Likewise.
97403
97404 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97405
97406         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97407         buffer, so that the caller can always quote one small
97408         component of a "memory exhausted" message in slot 0.
97409         From a suggestion by Jim Meyering.
97410
97411 2000-07-30  Jim Meyering  <meyering@lucent.com>
97412
97413         * lib/makepath.c (make_path): Quote the other instance, too.
97414
97415         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97416         (STATIC_BUF_SIZE): Define.
97417         (quotearg_n_options): Use only statically allocated storage when
97418         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97419         than STATIC_BUF_SIZE.
97420
97421 2000-07-29  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97424         * lib/dirname.c (dir_name): Likewise.
97425
97426         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97427         `/'.
97428
97429         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97430         (dir_name): Assert that there are no trailing slashes.
97431
97432 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97433
97434         * lib/mbswidth.h (mbswidth): Add a flags argument.
97435         (mbswidth): New declaration.
97436         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97437         * lib/mbswidth.c (mbswidth): Add a flags argument.
97438         (mbsnwidth): New function.
97439
97440 2000-07-24  Jim Meyering  <meyering@lucent.com>
97441
97442         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97443
97444 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97445
97446         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97447
97448 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97449
97450         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97451         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97452         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97453         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97454         invoke multibyte primitives.
97455
97456 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97457
97458         * lib/quotearg.c:
97459         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97460         so that mbstate_t is always defined.
97461
97462         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97463         be 1 in at least one GCC installation, and this configuration
97464         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97465         performance on hosts that have mbrtowc but have only unibyte
97466         locales, but I assume these hosts are rare.
97467
97468 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97469
97470         * lib/mbswidth.c (_XOPEN_SOURCE):
97471         Don't define; this causes problems on Solaris 7.
97472         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97473
97474 2000-07-23  Jim Meyering  <meyering@lucent.com>
97475
97476         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97477         too: getgrgid, getpwuid, getuid.
97478
97479 2000-07-23  Jim Meyering  <meyering@lucent.com>
97480
97481         * lib/basename.c (base_name): Add an assertion.
97482
97483 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97484
97485         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97486         shadow its mbsinit function.
97487
97488 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97489
97490         * lib/mbswidth.h: New file.
97491         * lib/mbswidth.c: New file.
97492         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97493         (noinst_HEADERS): Add mbswidth.h.
97494
97495 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97496
97497         * lib/config.charset: Add support for FreeBSD. Improve support for
97498         HP-UX and IRIX 6.
97499
97500 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97501
97502         * m4/mbswidth.m4: New file.
97503         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97504
97505 2000-07-15  Jim Meyering  <meyering@lucent.com>
97506
97507         * lib/makepath.c: Include quote.h.
97508         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97509         corresponding argument in a `quote (...)' call.
97510         Give better diagnostics.
97511
97512         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97513         (noinst_HEADERS): Add quote.h.
97514
97515         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97516         from tar's src/misc.c.
97517         * lib/quote.h: New file.  Prototypes for same.
97518
97519 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97520
97521         From a suggestion by Bruno Haible.
97522         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97523         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97524         to decide whether to define the BeOS workaround macro;
97525         this adjusts to the change to AC_MBSTATE_T.
97526
97527 2000-07-14  Jim Meyering  <meyering@lucent.com>
97528
97529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97530         jm_AC_TYPE_UINTMAX_T.
97531
97532 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97533
97534         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97535
97536         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97537         quotearg_buffer_restyled): Add support for
97538         clocale_quoting_style.  Undo previous change to
97539         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97540         and "{RIGHT QUOTATION MARK}" msgids.
97541
97542 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97543
97544         From a suggestion by Bruno Haible.
97545         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97546         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97547         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97548         and mbstate_t, to a single-part test that simply defines mbstate_t.
97549         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97550         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97551
97552 2000-07-10  Jim Meyering  <meyering@lucent.com>
97553
97554         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97555
97556         * m4/gnu-source.m4: Output to confdefs.h directly.
97557         Suggestion from Akim Demaille.
97558
97559 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97560
97561         The old behavior of quoting `like this' doesn't look good with
97562         newer, ISO-style fonts.  See:
97563         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97564
97565         Instead, quote "like this" by default.  Let the translator
97566         tailor the locale-specific quoting behavior by providing
97567         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97568
97569         * lib/quotearg.c (N_): New macro.
97570         (gettext_default): New function.
97571         (quotearg_buffer_restyled): Use
97572         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97573         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97574
97575 2000-07-09  Jim Meyering  <meyering@lucent.com>
97576
97577         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97578         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97579
97580         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97582
97583 2000-07-09  Jim Meyering  <meyering@lucent.com>
97584
97585         * lib/Most files: Update copyright dates to include 2000.
97586
97587 2000-07-08  Jim Meyering  <meyering@lucent.com>
97588
97589         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97590         if not defined.
97591         (xgethostname): Remove now-unnecessary #ifdef.
97592         Move declaration of `err' into loop where it's used.
97593
97594 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97595         and Bruno Haible  <haible@clisp.cons.org>
97596
97597         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97598         only if the test for an object-type mbstate_t fails.  This
97599         prevents us from mistakenly reporting that mbstate_t is a
97600         system object type after we "#define mbstate_t int" to work
97601         around its lack.
97602
97603 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97604         and Bruno Haible  <haible@clisp.cons.org>
97605
97606         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97607
97608 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97609
97610         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97611         to strerror_r.
97612         Include <ctype.h> for use of isalpha.
97613
97614 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97615
97616         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97617         by allocating a larger buffer. Test the gethostname return value for
97618         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97619         returns an error and ENAMETOOLONG isn't defined.
97620
97621 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97622
97623         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97624         dimension.
97625
97626 2000-07-04  Jim Meyering  <meyering@lucent.com>
97627
97628         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97629         of the deprecated AC_CHECKING.
97630
97631 2000-07-04  Jim Meyering  <meyering@lucent.com>
97632
97633         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97634         Reported by Bruno Haible.
97635
97636 2000-07-04  Jim Meyering  <meyering@lucent.com>
97637
97638         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97639         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97640         lacks mbrtowc.
97641
97642 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97643
97644         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97645         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97646
97647 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97648         and Bruno Haible  <haible@clisp.cons.org>
97649
97650         * lib/quotearg.c (mbrtowc):
97651         Assign to *pwc, and return 1 only if result is nonzero.
97652         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97653
97654 2000-07-03  Jim Meyering  <meyering@lucent.com>
97655
97656         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97657
97658 2000-07-03  Jim Meyering  <meyering@lucent.com>
97659
97660         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97661         This is necessary to get a definition of e.g., UTMP_FILE on
97662         HP-UX 10.20.
97663         From Bob Proulx.
97664
97665 2000-07-02  Jim Meyering  <meyering@lucent.com>
97666
97667         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97668
97669         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97670         AC_LIBOBJ(function_name).
97671         * m4/chown.m4: Likewise.
97672         * m4/fnmatch.m4: Likewise.
97673         * m4/ftruncate.m4: Likewise.
97674         * m4/getgroups.m4: Likewise.
97675         * m4/getline.m4: Likewise.
97676         * m4/group-member.m4: Likewise.
97677         * m4/jm-macros.m4: Likewise.
97678         * m4/lstat.m4: Likewise.
97679         * m4/malloc.m4: Likewise.
97680         * m4/memcmp.m4: Likewise.
97681         * m4/nanosleep.m4: Likewise.
97682         * m4/putenv.m4: Likewise.
97683         * m4/realloc.m4: Likewise.
97684         * m4/regex.m4: Likewise.
97685         * m4/stat.m4: Likewise.
97686         * m4/strftime.m4: Likewise.
97687
97688 2000-07-02  Jim Meyering  <meyering@lucent.com>
97689
97690         * lib/quotearg.c (mbstate_t): Don't define here.
97691
97692 2000-07-02  Jim Meyering  <meyering@lucent.com>
97693
97694         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97695
97696 2000-07-01  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97699
97700 2000-07-01  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97703         problem.
97704
97705 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97706
97707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97708         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97709
97710 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97711
97712         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97713         per change in ../m4/ls-mntd-fs.m4.
97714         (read_filesystem_list): Ignore symbolic links.
97715
97716 2000-06-29  Jim Meyering  <meyering@lucent.com>
97717
97718         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97719         for declaration of strcmp.
97720
97721         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97722
97723         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97724         Avoid warning by casting result to `char *' to remove `const'.
97725
97726 2000-06-28  Jim Meyering  <meyering@lucent.com>
97727
97728         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97729         included by quotearg.c, for which we perform this test.  From
97730         Bruno Haible.
97731
97732 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97733
97734         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97735         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97736         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97737
97738 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97739
97740         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97741
97742 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97743
97744         savedir now sets errno on failure and invokes xmalloc to get memory.
97745         Fix a couple of other minor bugs while we're at it.
97746
97747         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97748         (NAMLEN): Remove macro.
97749         (malloc, realloc): Remove decls.
97750         (stpcpy): Likewise.
97751         ("xalloc.h"): Include.
97752         (NAME_SIZE_DEFAULT): New macro.
97753         (savedir): Use xmalloc / xrealloc to allocate memory.
97754         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97755         Skip "" directory entries.
97756         Use strlen to calculate directory entry length, since the old method
97757         is rarely used these days and isn't worth supporting.
97758         Don't use a pointer after freeing it.
97759         Check for integer overflow when calculating allocation size.
97760         Use memcpy to copy entries, instead of stpcpy.
97761         Set errno properly when returning NULL.
97762         Check for readdir error.
97763
97764 2000-06-26  Jim Meyering  <meyering@lucent.com>
97765
97766         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97767
97768 2000-06-25  Jim Meyering  <meyering@lucent.com>
97769
97770         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97771         Linux header bug when _XOPEN_SOURCE is defined to 500.
97772
97773 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97774
97775         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97776         deficiency.
97777
97778 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97779
97780         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97781         Include xalloc.h.
97782         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97783
97784 2000-06-24  Jim Meyering  <meyering@lucent.com>
97785
97786         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97787         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97788         for which strerror does return char*, but which lacks a conveniently
97789         accessible declaration of the function.  If the compile-test says
97790         strerror_r doesn't work, then resort to a `run'-test that works on
97791         BeOS and segfaults on DEC Unix.
97792
97793 2000-06-24  Jim Meyering  <meyering@lucent.com>
97794
97795         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97796
97797 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97798
97799         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97801
97802 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97803
97804         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97805         (mbrtowc, mbstate_t): Define substitutes if
97806         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97807         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97808         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97809
97810 2000-06-23  Jim Meyering  <meyering@lucent.com>
97811
97812         * m4/afs.m4: Add missing AC_MSG_RESULT.
97813         Reported by Bruno Haible.
97814
97815         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97816         Suggestion from Bruno Haible.
97817
97818 2000-06-23  Jim Meyering  <meyering@lucent.com>
97819
97820         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97821
97822 2000-06-21  Jim Meyering  <meyering@lucent.com>
97823
97824         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97825
97826 2000-06-21  Jim Meyering  <meyering@lucent.com>
97827
97828         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97829         (noinst_HEADERS): Add getstr.h.
97830
97831         * lib/getline.c (getstr): Move into a separate file.
97832         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97833         the following changes: new parameter, delim2; both delim[12]
97834         parameters have type `int', not `char'.  The latter would lose
97835         with 8-bit delimiters.
97836         * lib/getstr.h: New file.
97837
97838 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97839
97840         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97841         than 1024, return a memory chunk of least possible size, instead
97842         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97843         Use free/xmalloc instead of xrealloc to avoid copying for very long
97844         paths.
97845
97846 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97847
97848         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97849         the empty string.
97850
97851 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97852
97853         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97854         address, not strdup.  Include <stdlib.h> and don't declare free().
97855
97856 2000-06-19  Jim Meyering  <meyering@lucent.com>
97857
97858         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97859
97860 2000-06-18  Jim Meyering  <meyering@lucent.com>
97861
97862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97863
97864         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97865         `checking whether...' message to be consistent with that of the
97866         lstat test.
97867
97868 2000-06-18  Jim Meyering  <meyering@lucent.com>
97869
97870         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97871         Besides, these days every porting target provides a mkdir function.
97872
97873         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97874         needed. (this snippet comes from src/system.h).
97875
97876 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97877
97878         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97879
97880 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97881
97882         * lib/human.c (adjust_value): New function.
97883         (human_readable_inexact): Apply rounding style even when
97884         printing approximate values.
97885
97886 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97887
97888         * lib/human.c (human_readable_inexact): Allow an input block
97889         size that is not a multiple of the output block size, and vice versa.
97890         Reported by Piergiorgio Sartor.
97891
97892 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97893
97894         * lib/getdate.y (get_date): Apply relative times after time
97895         zone indicator, not before.  Reported by Todd A. Jacobs.
97896
97897 2000-06-13  Jim Meyering  <meyering@lucent.com>
97898
97899         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97900
97901         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97902
97903 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97904
97905         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97906
97907 2000-06-12  Jim Meyering  <meyering@lucent.com>
97908
97909         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97910         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97911         optional argument.
97912         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97913         the optional argument, `lib'.
97914
97915 2000-06-08  Jim Meyering  <meyering@lucent.com>
97916
97917         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97918
97919 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97920
97921         Rewrite largefile configuration so that we don't need to run
97922         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97923         AC_CANONICAL_HOST in configure.in -- jmm]
97924
97925         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97926         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97927         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97928         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97929         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97930         All uses changed.
97931         Instead of inspecting the output of getconf, try to compile the
97932         test program without and with the macro definition.
97933         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97934         for getconf.  Instead, check for the needed flags by compiling
97935         test programs.
97936
97937 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97938
97939         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97940
97941 2000-06-04  Jim Meyering  <meyering@lucent.com>
97942
97943         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97944         SunOS 4.1.4 for which gid_t is an unsigned type.
97945
97946 2000-06-03  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97949         now that autoconf requires that.
97950
97951         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97952         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97953         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97954
97955 2000-06-03  Jim Meyering  <meyering@lucent.com>
97956
97957         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97958
97959 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97960
97961         * m4/glibc21.m4: New file.
97962         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97963
97964 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97965
97966         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97967         newer, don't install charset.alias.
97968         * lib/config.charset: Change the Linux/glibc rules so they become empty
97969         on glibc-2.1 or newer.
97970
97971 2000-06-02  Jim Meyering  <meyering@lucent.com>
97972
97973         * lib/mountlist.c: Back out last change.  Instead, do this...
97974         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97975         me_dummy member using the same `ignore'-testing code.
97976         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97977         fs_type strings.
97978         From Mark D. Roth.
97979
97980 2000-05-29  Jim Meyering  <meyering@lucent.com>
97981
97982         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97983         mounts with the `ignore' attribute.  Based on a patch from
97984         Mark D. Roth.
97985
97986 2000-05-28  Jim Meyering  <meyering@lucent.com>
97987
97988         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97989         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97990         * m4/stat.m4: Likewise.
97991         * m4/lstat.m4: Likewise.
97992         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97993
97994         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97995         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97996
97997 2000-05-26  Jim Meyering  <meyering@lucent.com>
97998
97999         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98000
98001 2000-05-24  Jim Meyering  <meyering@lucent.com>
98002
98003         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98004         autoconf requires that.
98005         * m4/lib-check.m4: Likewise.
98006         * m4/jm-macros.m4: Likewise.
98007         * m4/strftime.m4: Likewise.
98008
98009         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98010         AC_CHECK_DECLS, now that autoconf requires that.
98011
98012 2000-05-22  Jim Meyering  <meyering@lucent.com>
98013
98014         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98015         * m4/lstat.m4: Likewise.
98016
98017 2000-05-22  Jim Meyering  <meyering@lucent.com>
98018
98019         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98020
98021 2000-05-20  Jim Meyering  <meyering@lucent.com>
98022
98023         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98024         (jm_PREREQ): Use it.
98025
98026 2000-05-18  Jim Meyering  <meyering@lucent.com>
98027
98028         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98029         back, too, since it may have been modified by allocate_entry.
98030         (hash_delete): Rewrite to use neither the assignment operator
98031         nor the comma operator in an if-expression.
98032
98033 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98034
98035         * lib/closeout.c:
98036         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98037         Remove; no longer needed.
98038         "quotearg.h": Add include.
98039         (file_name): Do not bother to explicitly initialize to NULL; it's less
98040         efficient on some hosts.
98041         (close_stdout_status): Remove test as to whether stdout was already
98042         closed; it breaks for the case "echo x | sort >&-".
98043         Quote file name colons.
98044         Do not assume that _("write error") lacks format strings.
98045
98046 2000-05-15  Jim Meyering  <meyering@lucent.com>
98047
98048         * lib/version-etc.c (version_etc_copyright): Update the copyright
98049         string used in all --version output.
98050
98051 2000-05-14  Jim Meyering  <meyering@lucent.com>
98052
98053         * lib/closeout.c (close_stdout_set_file_name): New function.
98054         (close_stdout_status): Use new file-scoped global.
98055         Return right away if fstat says the stdout file descriptor is invalid.
98056         * lib/closeout.h (close_stdout_set_file_name): Declare.
98057
98058 2000-05-10  Jim Meyering  <meyering@lucent.com>
98059
98060         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98061         (close_stdout_set_status): New function.
98062         * lib/closeout.h (close_stdout_set_status): Declare.
98063
98064 2000-05-09  Jim Meyering  <meyering@lucent.com>
98065
98066         * m4/gettext.m4: Rename this...
98067         * m4/libintl.m4: ...to this.
98068
98069 2000-05-08  Jim Meyering  <meyering@lucent.com>
98070
98071         * lib/long-options.c: Don't include closeout.h.
98072         (parse_long_options): Don't call close_stdout for --version.
98073
98074 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98075
98076         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98077         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98078         2.1.3 bug.  This avoids a clash when files like regex.c define
98079         _GNU_SOURCE.
98080
98081 2000-05-06  Jim Meyering  <meyering@lucent.com>
98082
98083         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98084         (AC_REPLACE_FUNCS): Add strnlen.
98085
98086         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98087         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98088
98089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98090         AC_SEARCH_LIBS call for nanosleep.
98091         (LIB_NANOSLEEP): Set and AC_SUBST.
98092
98093 2000-05-06  Jim Meyering  <meyering@lucent.com>
98094
98095         * lib/strnlen.c: Undefine __strnlen and strnlen.
98096         [!weak_alias]: Define __strnlen to strnlen.
98097
98098         * lib/atexit.c: New file, from libiberty.
98099
98100 2000-05-06  Jim Meyering  <meyering@lucent.com>
98101
98102         * lib/closeout.c (close_stdout_status): Also check for errors on the
98103         stderr stream.
98104
98105 2000-05-05  Jim Meyering  <meyering@lucent.com>
98106
98107         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98108         AC_SEARCH_LIBS call for clock_gettime.
98109         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98110
98111         * m4/search-libs.m4: Update from autoconf.
98112
98113         su doesn't work on Solaris 2.6.
98114         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98115         <shadow.h>.  Reported by Dragos Harabor.
98116
98117 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98118
98119         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98120         memcpy instead of xmalloc, xrealloc, path_concat.
98121         (locale_charset): Treat empty environment variables as absent.
98122         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98123
98124 2000-05-04  Jim Meyering  <meyering@lucent.com>
98125
98126         * lib/getopt.c: Update from glibc.
98127         * lib/obstack.c: Likewise.
98128         * lib/obstack.h: Likewise.
98129         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98130         file
98131
98132         * lib/regex.h: Likewise.
98133         * lib/strndup.c: Likewise.
98134         * lib/strnlen.c: New file, from glibc.
98135
98136 2000-05-03  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98139
98140 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98141
98142         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98143         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98144         compile-time test, rather than inspecting host and OS, to
98145         decide whether to define _LARGEFILE_SOURCE.
98146
98147 2000-05-01  Jim Meyering  <meyering@lucent.com>
98148
98149         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98150
98151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98152         Based on a patch from Bruno Haible.
98153
98154 2000-05-01  Jim Meyering  <meyering@lucent.com>
98155
98156         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98157
98158 2000-04-29  Jim Meyering  <meyering@lucent.com>
98159
98160         * lib/path-concat.c: Declare strdup only if it's not defined.
98161         * lib/canon-host.c: Likewise.
98162
98163 2000-04-28  Jim Meyering  <meyering@lucent.com>
98164
98165         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98166         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98167         is included first, then limits.h is included by locale.h by libintl.h.
98168         From John David Anglin.
98169
98170 2000-04-25  Jim Meyering  <meyering@lucent.com>
98171
98172         * lib/makepath.c (S_IRWXUGO): Define.
98173         (make_path): Always perform explicit chmod if MODE specifies any
98174         of the `special' permission bits.  Prompted by a bug report against
98175         install from Mate Wierdl and Joost van Baal.
98176
98177 2000-04-18  Jim Meyering  <meyering@lucent.com>
98178
98179         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98180         (jm_PREREQ): Use it.
98181
98182 2000-04-18  Jim Meyering  <meyering@lucent.com>
98183
98184         * lib/README: New file.
98185
98186         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98187         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98188
98189 2000-04-17  Jim Meyering  <meyering@lucent.com>
98190
98191         Get it right :-)
98192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98193         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98194         Suggestion from Akim Demaille.
98195
98196 2000-04-17  Jim Meyering  <meyering@lucent.com>
98197
98198         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98199         the definition of it to rpl_strftime also defined-away the system's
98200         declaration.
98201
98202 2000-04-15  Jim Meyering  <meyering@lucent.com>
98203
98204         Use `C' to denote so-called `contiguous' files, the same way
98205         that tar does.
98206         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98207         (ftypelet): Use S_ISCTG.
98208         From Michael Deutschmann.
98209
98210 2000-04-14  Jim Meyering  <meyering@lucent.com>
98211
98212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98213         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98214         clobbered.
98215
98216 2000-04-14  Jim Meyering  <meyering@lucent.com>
98217
98218         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98219
98220 2000-04-13  Jim Meyering  <meyering@lucent.com>
98221
98222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98223         AH_VERBATIM to insert required #ifndef into config.h.in.
98224         Suggestion from Akim Demaille.
98225
98226 2000-04-12  Jim Meyering  <meyering@lucent.com>
98227
98228         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98229         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98230         Christian Krackowizer.
98231
98232         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98233         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98234         (AC_SYS_LARGEFILE): Require.
98235         (AM_C_PROTOTYPES): Require.
98236
98237 2000-04-08  Jim Meyering  <meyering@lucent.com>
98238
98239         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98240         names don't conflict.  Reported by Eli Zaretskii.
98241
98242 2000-04-07  Jim Meyering  <meyering@lucent.com>
98243
98244         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98245         sys/types.h, to work around system header problems on AIX 3.2.5.
98246         From Bruno Haible.
98247
98248 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98249
98250         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98251         bug.  Deal with the different error behavior of Irix iconv.
98252
98253 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98254
98255         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98256         IRIX if the installer said otherwise.
98257
98258 2000-04-05  Jim Meyering  <meyering@lucent.com>
98259
98260         Portability tweaks required for ultrix4.3.
98261         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98262         (jm_CHECK_DECLS): Add getutent to the list of functions.
98263         (_jm_DECL_HEADERS): Add utmpx.h.
98264         From John David Anglin.
98265
98266         * m4/strftime.m4: Back out the 2000-04-02 change.
98267         Instead of that change, simply undefine putenv in the test program.
98268
98269 2000-04-05  Jim Meyering  <meyering@lucent.com>
98270
98271         Portability tweaks required for ultrix4.3.
98272         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98273         getutent.
98274         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98275         * lib/canon-host.c: Declare strdup.
98276         * lib/path-concat.c: Likewise.
98277         From John David Anglin.
98278
98279 2000-04-04  Jim Meyering  <meyering@lucent.com>
98280
98281         Be more DOS 8.3-friendly.
98282         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98283         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98284         * lib/Makefile.am: Reflect renaming.
98285         Reported by Eli Zaretskii.
98286
98287         Use a temporary file name that won't clash with `charset.alias'
98288         in the DOS 8.3 name space.
98289         * lib/Makefile.am (charset_tmp): Define.
98290         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98291         (uninstall-local): Likewise.
98292         Reported by Eli Zaretskii.
98293
98294 2000-04-03  Jim Meyering  <meyering@lucent.com>
98295
98296         * m4/gettext.m4: Fix typo in comment.
98297
98298         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98299         textutils/configure.in).  Suggestion from Paul Eggert.
98300         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98301
98302 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98303
98304         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98305         variable in the shell rather than using putenv, which isn't
98306         portable.  This avoids the configure-time inter-test dependency
98307         on the potentially-renamed putenv function.
98308
98309 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98310
98311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98312         before checking struct stat.st_blksize, so that
98313         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98314
98315 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98316
98317         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98318         since strftime.c uses HAVE_STRFTIME to decide whether to use
98319         the underlying strftime.
98320
98321 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98322
98323         * lib/time/strftime.c (my_strftime): Make sure we call the system
98324         strftime, not ourselves, when invoking the underlying strftime.
98325
98326 2000-03-24  Jim Meyering  <meyering@lucent.com>
98327
98328         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98329         (charset_alias): Define.
98330         (install-exec-local): Factor out common code.
98331         (uninstall-local): Split lines longer than 80.
98332         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98333         (SUFFIXES): Define.
98334         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98335         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98336
98337 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98338
98339         * lib/config.charset: Output a line containing "Packages using this
98340         file".
98341         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98342         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98343         ref-del.sed): New rules.
98344
98345 2000-03-17  Jim Meyering  <meyering@lucent.com>
98346
98347         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98348         Otherwise, include <strings.h>
98349
98350 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98351
98352         * lib/unicodeio.c (utf8_wctomb): New function.
98353         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98354         format instead of in UCS-4 with platform dependent endianness.
98355
98356 2000-03-10  Jim Meyering  <meyering@lucent.com>
98357
98358         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98359         From Marco Franzen.
98360
98361 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98362
98363         * lib/savedir.c (savedir): Work even if directory size is
98364         negative; this can happen with some screwy NFS configurations.
98365
98366 2000-03-06  Jim Meyering  <meyering@lucent.com>
98367
98368         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98369         if it's NULL (because we ran out of memory).  From Bruno Haible.
98370
98371 2000-03-05  Jim Meyering  <meyering@lucent.com>
98372
98373         * lib/localcharset.c ("path-concat.h"): Include.
98374         (get_charset_aliases): Use path_concat instead of ANSI string
98375         concatenation.
98376
98377         * lib/unicodeio.h (PARAMS): Define.
98378         Use it to guard prototype.
98379
98380 2000-03-04  Jim Meyering  <meyering@lucent.com>
98381
98382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98383         for lib/localcharset.c.
98384
98385 2000-03-04  Jim Meyering  <meyering@lucent.com>
98386
98387         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98388         installing into it.
98389         (uninstall-local): Uncomment this rule so `make distcheck' works
98390         once again.
98391
98392         * lib/unicodeio.c (<errno.h>): Include it.
98393         (errno): Declare if not defined.
98394
98395         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98396
98397         * lib/config.charset: New version, incorporating remarks from a linux
98398         i18n mailing list.  From Bruno Haible.
98399
98400 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98401
98402         * m4/codeset.m4: New file.
98403         * m4/iconv.m4: New file.
98404         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98405
98406 2000-03-03  Jim Meyering  <meyering@lucent.com>
98407
98408         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98409
98410 2000-03-02  Jim Meyering  <meyering@lucent.com>
98411
98412         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98413         the messages come out on separate lines.
98414
98415         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98416         rather than jm_CHECK_DECLARATIONS.
98417         * m4/decl.m4: Remove now-unused file.
98418
98419         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98420         geteuid.
98421
98422 2000-03-02  Jim Meyering  <meyering@lucent.com>
98423
98424         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98425
98426 2000-03-01  Jim Meyering  <meyering@lucent.com>
98427
98428         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98429         * lib/unicodeio.c: Likewise.
98430
98431 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98432
98433         * lib/config.charset: New file.
98434         * lib/localcharset.c: New file.
98435         * lib/unicodeio.h, lib/unicodeio.c: New files.
98436         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98437         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98438         (noinst_HEADERS): Add unicodeio.h.
98439         (all-local, install-exec-local, charset.alias): New targets.
98440
98441 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98442
98443         * lib/quotearg.c (ALERT_CHAR): New macro.
98444         (quotearg_buffer_restyled): Use it.
98445
98446 2000-02-27  Jim Meyering  <meyering@lucent.com>
98447
98448         * m4/check-decl.m4: Add getenv to the list.
98449
98450 2000-02-27  Jim Meyering  <meyering@lucent.com>
98451
98452         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98453         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98454
98455         * lib/backupfile.c: Guard inclusion of stdlib.h with
98456         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98457         Declare malloc if needed.
98458
98459         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98460         `#ifndef HAVE_DECL..'
98461         now that autoconf always defines the HAVE_DECL_ symbols.
98462         * lib/human.c: Likewise.
98463         * lib/same.c: Likewise.
98464         * lib/strtoumax.c: Likewise.
98465
98466         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98467         declaration check was not run.
98468         * lib/hash.c: Likewise.
98469         * lib/human.c: Likewise.
98470         * lib/same.c: Likewise.
98471         * lib/strtoumax.c: Likewise.
98472
98473         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98474         `.', then first look up the entire `.'-containing string as a login
98475         name.
98476
98477 2000-02-23  Jim Meyering  <meyering@lucent.com>
98478
98479         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98480         in place of my hack.
98481
98482 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98483
98484         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98485         (textint): New typedef.
98486         (parser_control): Member year changed from int to textint.
98487         All uses changed.
98488         (YYSTYPE): Removed; replaced by %union with int and textint members.
98489         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98490         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98491         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98492         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98493         (date, number, to_year): Use width of number in digits, not its value,
98494         to determine whether it's a 2-digit year, or a 2-digit time.
98495         (yylex): Store number of digits of numeric tokens.
98496         Reported by John Kendall.
98497
98498         (parser_control): Changed from struct parser_control to typedef (for
98499         consistency).  All uses changed.
98500
98501         (tID): Removed; not used.
98502         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98503
98504 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98505
98506         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98507         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98508
98509 2000-02-12  Jim Meyering  <meyering@lucent.com>
98510
98511         * lib/userspec.c (ISDIGIT): Define it.
98512         (isdigit): Remove definition.
98513         (is_number): Use ISDIGIT, not isdigit.
98514         <libintl.h>: Include.
98515         (_ and N_): Define.
98516         (parse_user_spec): Mark translatable strings.
98517
98518 2000-02-10  Jim Meyering  <meyering@lucent.com>
98519
98520         With these changes, nanosleep.[ch] are finally enough like the other
98521         lib/* replacement files to compile on a few more losing systems.
98522
98523         * lib/nanosleep.h: Don't include config.h.
98524         Remove prototype from declaration of nanosleep.
98525         (PARAMS): Remove now-unneeded definition.
98526         * lib/nanosleep.c: #undef nanosleep.
98527         (rpl_nanosleep): Rename from nanosleep.
98528
98529 2000-02-10  Jim Meyering  <meyering@lucent.com>
98530
98531         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98532         gnu_nanosleep to rpl_nanosleep.
98533
98534 2000-02-09  Jim Meyering  <meyering@lucent.com>
98535
98536         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98537         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98538
98539 2000-02-08  Akim Demaille  <akim@epita.fr>
98540
98541         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98542         `[' and `]' and remove uses of `changequote'.
98543         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98544         (AC_SYS_LARGEFILE): Likewise.
98545         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98546         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98547         of changequote.
98548         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98549         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98550         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98551         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98552
98553 2000-02-05  Jim Meyering  <meyering@lucent.com>
98554
98555         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98556         Remove explicit use of AC_HEADER_TIME.  It is required by
98557         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98558         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98559         in autoconf whereby the expansion of the latter ended up preceding
98560         the expansion of its prerequisite, AC_HEADER_TIME.
98561         Reported by Volker Borchert.
98562
98563 2000-02-03  Jim Meyering  <meyering@lucent.com>
98564
98565         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98566
98567 2000-02-03  Jim Meyering  <meyering@lucent.com>
98568
98569         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98570         rather than with `#if HAVE_UTMPNAME'.
98571
98572 2000-02-02  Jim Meyering  <meyering@lucent.com>
98573
98574         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98575         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98576         Reported by Eli Zaretskii.
98577
98578 2000-02-01  Jim Meyering  <meyering@lucent.com>
98579
98580         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98581
98582 2000-01-31  Jim Meyering  <meyering@lucent.com>
98583
98584         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98585         functions.  Add the time.h and sys/time.h headers along with the
98586         AC_REQUIRE'ment of AC_HEADER_TIME.
98587
98588 2000-01-31  Jim Meyering  <meyering@lucent.com>
98589
98590         * lib/nanosleep.h (nanosleep): Guard declaration with
98591         `#if ! HAVE_DECL_NANOSLEEP'.
98592         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98593         the declaration in that vendor's sys/timers.h.
98594         Reported by Christian Krackowizer.
98595
98596         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98597         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98598         (ISPRINT): Likewise.
98599         Reported by Tom Tromey.
98600
98601 2000-01-30  Jim Meyering  <meyering@lucent.com>
98602
98603         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98604
98605         * m4/prereq.m4 (utmp_includes): Define.
98606         Check for ut_user and ut_name members in both struct utmpx
98607         and struct utmp.
98608
98609 2000-01-30  Jim Meyering  <meyering@lucent.com>
98610
98611         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98612         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98613         header files where only utmpx.ut_user is declared.
98614
98615         * lib/readutmp.h (UT_USER): Define.
98616
98617 2000-01-29  Jim Meyering  <meyering@lucent.com>
98618
98619         * m4/lib-check.m4: New file containing library-related checks from
98620         fileutils and sh-utils (textutils had none).
98621
98622 2000-01-28  Jim Meyering  <meyering@lucent.com>
98623
98624         * m4/perl.m4: Change format of warning message to look more like that
98625         from the missing script.  Suggestion from François Pinard.
98626
98627 2000-01-25  Jim Meyering  <meyering@lucent.com>
98628
98629         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98630         well as time.h in the compile check.
98631         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98632         Fix typo in cross-compiling case: s/yes/no/.
98633
98634 2000-01-23  Jim Meyering  <meyering@lucent.com>
98635
98636         * m4/jm-macros.m4: Move df-related tests here from
98637         fileutils/configure.in
98638
98639         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98640         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98641
98642         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98643         s/space/ac_fsusage_space/.
98644         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98645
98646         * m4/ftruncate.m4: New file (derived from part of
98647         fileutils/configure.in).
98648         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98649         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98650
98651         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98652         AC_SUBST these here, rather than just in sh-util/configure.in, so
98653         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98654         all the same.
98655         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98656         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98657         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98658         (AC_SUBST(POW_LIBM)): Likewise.
98659         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98660
98661 2000-01-23  Jim Meyering  <meyering@lucent.com>
98662
98663         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98664         obstack.c.
98665
98666 2000-01-22  Jim Meyering  <meyering@lucent.com>
98667
98668         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98669
98670         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98671
98672         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98673         configure.in
98674         (AC_CHECK_HEADERS): Likewise for sh-utils.
98675         (AC_CHECK_HEADERS): Likewise for textutils.
98676         Merge the three lists of headers.
98677
98678         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98679         from fileutils' configure.in.
98680
98681         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98682         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98683         check-decl.m4.
98684
98685         * m4/check-decl.m4: Use #if rather than #ifdef.
98686         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98687         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98688         (_jm_DECL_HEADERS): Define new function.
98689         (jm_CHECK_DECLARATIONS): Require it.
98690
98691 2000-01-22  Jim Meyering  <meyering@lucent.com>
98692
98693         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98694         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98695         Required for some AIX systems.  Reported by Christian Krackowizer.
98696         [TESTING] (main): New function.
98697
98698         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98699         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98700         letters.
98701
98702         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98703         iswprint.
98704
98705         * lib/strverscmp.c (ISDIGIT): Define.
98706         (strverscmp): Use ISDIGIT, not isdigit.
98707
98708 2000-01-19  Jim Meyering  <meyering@lucent.com>
98709
98710         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98711         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98712         defines `struct timespec' in <sys/time.h>
98713
98714         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98715         Thanks to Akim for explaining.
98716
98717 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98718
98719         * lib/nanosleep.c (nanosleep):
98720         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98721         POSIX.1 doesn't require SA_INTERRUPT and some systems
98722         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98723         it's been part of POSIX.1 since day 1 (in 1988).
98724
98725 2000-01-17  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/interlock: Remove unused file.  Reported by François Pinard.
98728
98729 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98730
98731         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98732         alert, backslash, formfeed, and vertical tab unnecessarily in
98733         shell quoting style.
98734
98735 2000-01-16  Jim Meyering  <meyering@lucent.com>
98736
98737         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98738         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98739         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98740         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98741
98742 2000-01-16  Jim Meyering  <meyering@lucent.com>
98743
98744         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98745         because the latter didn't work.
98746
98747 2000-01-15  Jim Meyering  <meyering@lucent.com>
98748
98749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98750         (AC_REPLACE_FUNCS): Add memcpy and memset.
98751         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98752         Add strpbrk.
98753         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98754
98755 2000-01-12  Jim Meyering  <meyering@lucent.com>
98756
98757         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98758         (jm_PREREQ): Use it.
98759         (jm_PREREQ_READUTMP): New macro.
98760         (jm_PREREQ): Use it.
98761
98762 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98763
98764         Quote multibyte characters correctly.
98765         * m4/c-bs-a.m4: New file.
98766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98767         (jm_PREREQ): Use it.
98768
98769 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98770
98771         * m4/uintmax_t.m4: Port to autoconf 2.13.
98772
98773 2000-01-08  Jim Meyering  <meyering@ascend.com>
98774
98775         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98776         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98777
98778 2000-01-04  Jim Meyering  <meyering@ascend.com>
98779
98780         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98781         jm_STRUCT_DIRENT_D_TYPE.
98782         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98783         jm_STRUCT_DIRENT_D_INO.
98784         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98785         jm_STRUCT_UTIMBUF.
98786         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98787         renamings.
98788         * m4/utime.m4: Likewise.
98789
98790         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98791         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98792
98793 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98794
98795         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98796         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98797
98798 2000-01-02  Jim Meyering  <meyering@ascend.com>
98799
98800         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98801         remember if this is necessary.
98802
98803 1999-12-26  Jim Meyering  <meyering@ascend.com>
98804
98805         * m4/jm-macros.m4: Use it here.
98806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98807
98808 1999-12-23  Jim Meyering  <meyering@ascend.com>
98809
98810         * m4/jm-macros.m4: Check for clock_gettime (moved from
98811         fileutils/configure.in)
98812         Check for gettimeofday.
98813
98814 1999-12-20  Jim Meyering  <meyering@ascend.com>
98815
98816         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98817         autoconf-2.14a-1999-12-20.
98818
98819 1999-12-19  Jim Meyering  <meyering@ascend.com>
98820
98821         * m4/lstat-slash.m4: New file.
98822         * m4/jm-macros.m4: Use the new macro:
98823         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98824
98825 1999-12-07  Jim Meyering  <meyering@ascend.com>
98826
98827         * m4/perl.m4: Require that File::Compare be available, too.
98828         Too many systems seem to lack it.
98829
98830         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98831         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98832
98833 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98834
98835         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98836         problem with the QNX 4.25 shell, which doesn't propagate exit
98837         status of failed commands inside shell assignments.
98838
98839 1999-11-17  Jim Meyering  <meyering@ascend.com>
98840
98841         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98842
98843 1999-11-07  Jim Meyering  <meyering@ascend.com>
98844
98845         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98846
98847 1999-11-06  Jim Meyering  <meyering@ascend.com>
98848
98849         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98850         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98851
98852 1999-11-05  Jim Meyering  <meyering@ascend.com>
98853
98854         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98855         configure.in of textutils, fileutils, and sh-utils into this one
98856         (shared between those packages) file.
98857         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98858         AC_STRUCT_ST_BLKSIZE.
98859
98860 1999-11-03  Jim Meyering  <meyering@ascend.com>
98861
98862         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98863         of AC_CHECK_TYPE checks includes unistd.h.
98864         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98865         Suggestion from Akim Demaille.
98866
98867 1999-10-30  Jim Meyering  <meyering@ascend.com>
98868
98869         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98870         m4-quoted string.
98871         * m4/ls-mntd-fs.m4: Likewise.
98872         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98873         * m4/jm-winsz1.m4: Likewise.
98874
98875         * m4/const.m4: Remove file, since the fix made it into the experimental
98876         version of autoconf.
98877         * m4/mktime.m4: Likewise.
98878
98879         * m4/check-type.m4: Remove file, now that the latest version of
98880         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98881
98882         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98883         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98884         AC_CHECK_TYPE.
98885
98886 1999-10-04  Jim Meyering  <meyering@ascend.com>
98887
98888         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98889
98890 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98891
98892         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98893         2.95.1 bug with HP-UX 10.20.
98894
98895 1999-09-17  Jim Meyering  <meyering@ascend.com>
98896
98897         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98898         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98899         due to missing strdup (against sh-utils-2.0).
98900
98901 1999-08-29  Jim Meyering  <meyering@ascend.com>
98902
98903         * m4/jm-macros.m4: Require jm_BISON.
98904         * m4/bison.m4: New file.
98905
98906 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98907
98908         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98909         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98910
98911 1999-08-05  Jim Meyering  <meyering@ascend.com>
98912
98913         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98914         to avoid conflicts with `conftest' on 8+3 filesystems.
98915         Suggestion from Eli Zaretskii.
98916
98917 1999-08-04  Jim Meyering  <meyering@ascend.com>
98918
98919         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98920         fileutils and sh-utils (textutils's getline test was inadequate).
98921         (AM_FUNC_GETLINE): Run this test.
98922         (AC_CHECK_FUNCS): Check for getdelim.
98923         Reported by Bob Proulx.
98924
98925 1999-08-02  Jim Meyering  <meyering@ascend.com>
98926
98927         * m4/jm-macros.m4: Add a comment.
98928
98929 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98930
98931         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98932         <inttypes.h> defines strtoumax as a macro (and not as a
98933         function).
98934
98935 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98936
98937         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98938         that we can shift, multiply and divide unsigned long long
98939         values; Ultrix cc can't do it.
98940
98941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98942
98943         * m4/mktime.m4: New file, which is a preview of what should appear
98944         in the next public autoconf release.
98945
98946 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98947
98948         * m4/lfs.m4: Remove this file.
98949         * m4/largefile.m4: New file.  It contains the old contents of
98950         lfs.m4, except that all names with prefix AC_LFS have been
98951         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98952         compatible with future autoconf versions.  Also, some minor m4
98953         quoting problems have been fixed.
98954
98955 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98956
98957         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98958         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98959         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98960         and simplify the shell code.
98961
98962 1999-08-01  Jim Meyering  <meyering@ascend.com>
98963
98964         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98965         m4.
98966
98967 1999-07-20  Jim Meyering  <meyering@ascend.com>
98968
98969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98970
98971 1999-07-15  Jim Meyering  <meyering@ascend.com>
98972
98973         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98974
98975 1999-05-22  Jim Meyering  <meyering@ascend.com>
98976
98977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98978
98979 1999-05-20  Jim Meyering  <meyering@ascend.com>
98980
98981         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98982         Add a colon after each `then' in case $4 is empty.
98983
98984 1999-05-16  Jim Meyering  <meyering@ascend.com>
98985
98986         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98987
98988 1999-05-10  Jim Meyering  <meyering@ascend.com>
98989
98990         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98991
98992         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98993         AC_FUNC_MKTIME.
98994
98995 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98996
98997         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98998
98999 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99000
99001         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99002         not CPPFLAGS, so that linking works correctly in IRIX.
99003
99004 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99005
99006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99007
99008 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99009
99010         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99011         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99013         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99014         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99015
99016         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99017
99018 1999-04-20  Jim Meyering  <meyering@ascend.com>
99019
99020         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99021         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99022         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99023
99024 1999-04-18  Jim Meyering  <meyering@ascend.com>
99025
99026         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99027         * m4/jm-macros.m4: Use it.
99028
99029 1999-04-06  Jim Meyering  <meyering@ascend.com>
99030
99031         * m4/strftime.m4: Remove test for %f.
99032
99033 1999-03-29  Jim Meyering  <meyering@ascend.com>
99034
99035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99036         superset of the AC_TYPE_* checks in the textutils, fileutils,
99037         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99038         AC_TYPE_PID_T.
99039
99040 1999-03-28  Jim Meyering  <meyering@ascend.com>
99041
99042         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99043         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99044         replaced e.g., in the *.sh files of the sh-utils.
99045
99046 1999-03-20  Jim Meyering  <meyering@ascend.com>
99047
99048         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99049         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99050         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99051
99052 1999-03-19  Jim Meyering  <meyering@ascend.com>
99053
99054         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99055
99056 1999-03-12  Jim Meyering  <meyering@ascend.com>
99057
99058         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99059
99060 1999-03-07  Jim Meyering  <meyering@ascend.com>
99061
99062         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99063         declared.
99064
99065 1999-02-17  Jim Meyering  <meyering@ascend.com>
99066
99067         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99068         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99069
99070 1999-02-07  Jim Meyering  <meyering@ascend.com>
99071
99072         * m4/group-member.m4: New file -- extracted from sh-utils'
99073         configure.in.
99074
99075         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99076         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99077
99078 1999-02-06  Jim Meyering  <meyering@ascend.com>
99079
99080         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99081         * m4/fnmatch.m4: Likewise.
99082         * m4/getgroups.m4: Likewise.
99083         * m4/lstat.m4: Likewise.
99084         * m4/malloc.m4: Likewise.
99085         * m4/putenv.m4: Likewise.
99086         * m4/realloc.m4: Likewise.
99087         * m4/regex.m4: Likewise.
99088         * m4/stat.m4: Likewise.
99089         * m4/strftime.m4: Likewise.
99090         Suggestion from Alain Magloire.
99091
99092         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99093         * m4/fnmatch.m4: Likewise.
99094         * m4/getgroups.m4: Likewise.
99095         * m4/getline.m4: Likewise.
99096         * m4/lstat.m4: Likewise.
99097         * m4/malloc.m4: Likewise.
99098         * m4/memcmp.m4: Likewise.
99099         * m4/putenv.m4: Likewise.
99100         * m4/realloc.m4: Likewise.
99101         * m4/regex.m4: Likewise.
99102         * m4/stat.m4: Likewise.
99103         * m4/strftime.m4: Likewise.
99104         Suggestion from Alain Magloire.
99105
99106         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99107         an argument.
99108
99109         * m4/regex.m4: Add a run-time Test for proper operation of
99110         re_compile_pattern.
99111
99112 1999-01-31  Jim Meyering  <meyering@ascend.com>
99113
99114         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99115
99116 1999-01-30  Jim Meyering  <meyering@ascend.com>
99117
99118         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99119
99120         * m4/jm-mktime.m4: Make this a wrapper around the official
99121         AM_FUNC_MKTIME rather than my private copy, now that the official one
99122         is up to date.
99123         * m4/mktime.m4: Remove file.
99124
99125         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99126         * m4/uptime.m4: Likewise.
99127         * m4/uintmax_t.m4: Likewise.
99128
99129 1999-01-28  Jim Meyering  <meyering@ascend.com>
99130
99131         * m4/jm-macros.m4: Use jm_AFS.
99132         * m4/afs.m4: New file (from fileutils' configure.in).
99133
99134         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99135         * m4/chown.m4: Likewise.
99136         * m4/d-ino.m4: Likewise.
99137         * m4/d-type.m4: Likewise.
99138         * m4/fnmatch.m4: Likewise.
99139         * m4/getgroups.m4: Likewise.
99140         * m4/gettext.m4: Likewise.
99141         * m4/jm-mktime.m4: Likewise.
99142         * m4/jm-winsz2.m4: Likewise.
99143         * m4/lcmessage.m4: Likewise.
99144         * m4/ls-mntd-fs.m4: Likewise.
99145         * m4/malloc.m4: Likewise.
99146         * m4/memcmp.m4: Likewise.
99147         * m4/putenv.m4: Likewise.
99148         * m4/realloc.m4: Likewise.
99149         * m4/st_mtim.m4: Likewise.
99150         * m4/strftime.m4: Likewise.
99151
99152 1999-01-16  Jim Meyering  <meyering@ascend.com>
99153
99154         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99155         (ARGMATCH_DIE_DECL): Define.
99156
99157 1999-01-12  Jim Meyering  <meyering@ascend.com>
99158
99159         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99160         Reported by Lars Hecking.
99161
99162 1999-01-10  Jim Meyering  <meyering@ascend.com>
99163
99164         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99165         gross kludge.
99166         * m4/inttypes_h.m4: Likewise.
99167         * m4/lstat.m4: Likewise.
99168         * m4/malloc.m4: Likewise.
99169         * m4/readdir.m4: Likewise.
99170         * m4/realloc.m4: Likewise.
99171         * m4/st_dm_mode.m4: Likewise.
99172         * m4/stat.m4: Likewise.
99173         * m4/utimbuf.m4: Likewise.
99174         * m4/utimes.m4: Likewise.
99175
99176         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99177         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99178         comments in config.h.in are meaningful.
99179
99180         * m4/jm-macros.m4: Require autoconf-2.13 here.
99181
99182         * m4/regex.m4: By default, don't use the included regex.c on systems
99183         with glibc 2.  Suggestion from Uli Drepper.
99184
99185 1999-01-02  Jim Meyering  <meyering@ascend.com>
99186
99187         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99188
99189 1998-12-18  Jim Meyering  <meyering@ascend.com>
99190
99191         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99192         Based on a suggestion from Lars Hecking.
99193
99194 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99195
99196         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99197
99198 1998-11-16  Jim Meyering  <meyering@ascend.com>
99199
99200         * m4/lfs.m4: Double-quote the `uname...` expression.
99201
99202 1998-11-14  Jim Meyering  <meyering@ascend.com>
99203
99204         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99205         * m4/stat.m4: Likewise.
99206
99207 1998-11-03  Jim Meyering  <meyering@ascend.com>
99208
99209         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99210         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99211
99212 1998-10-18  Jim Meyering  <meyering@ascend.com>
99213
99214         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99215
99216 1998-10-17  Jim Meyering  <meyering@ascend.com>
99217
99218         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99219         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99220         calls for those previously hard-coded headers.  Instead, take a new
99221         parameter.
99222         (jm_CHECK_DECLARATIONS): Reflect interface change.
99223         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99224         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99225
99226         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99227
99228 1998-10-14  Jim Meyering  <meyering@ascend.com>
99229
99230         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99231         instead of "TZ=America/Vancouver".  From Paul Eggert.
99232
99233 1998-10-11  Jim Meyering  <meyering@ascend.com>
99234
99235         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99236         This adds a test for a recently added compatibility fix for mktime.c.
99237         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99238
99239 1998-09-27  Jim Meyering  <meyering@ascend.com>
99240
99241         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99242
99243         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99244         ../configure.in, including a change from Gordon Matzigkeit to allow
99245         cross-compiling for the Hurd.
99246
99247         * m4/glibc.m4: New file/macro to test for the GNU C Library
99248         versions 1 and 2.  From Gordon Matzigkeit.
99249         Indent.
99250
99251 1998-09-21  Jim Meyering  <meyering@ascend.com>
99252
99253         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99254
99255 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99256
99257         Port nanosecond-resolution times to UnixWare 2.1.2 and
99258         pedantic Solaris 2.6.
99259
99260         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99261         AC_STRUCT_ST_MTIM.
99262         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99263         Generate name of ns member, instead of just 1 or undef.
99264         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99265
99266 1998-08-15  Jim Meyering  <meyering@ascend.com>
99267
99268         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99269         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99270         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99271         instead of jm_TYPE_SSIZE_T.
99272
99273 1998-08-12  Jim Meyering  <meyering@ascend.com>
99274
99275         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99276
99277 1998-08-02  Jim Meyering  <meyering@ascend.com>
99278
99279         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99280         in acconfig.h manually.
99281
99282 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99283
99284         * m4/st_mtim.m4: New file.
99285
99286 1998-07-28  Jim Meyering  <meyering@ascend.com>
99287
99288         * m4/utimes.m4: Undef stat.
99289
99290 1998-07-25  Jim Meyering  <meyering@ascend.com>
99291
99292         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99293         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99294
99295 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99296
99297         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99298         uid and gid actually remain unchanged.
99299
99300 1998-07-07  Jim Meyering  <meyering@ascend.com>
99301
99302         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99303
99304 1998-07-04  Jim Meyering  <meyering@ascend.com>
99305
99306         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99307         to prove that this macro can be used in packages without regex.c.
99308
99309 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99310
99311         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99312         is to be used.
99313
99314 1998-07-03  Jim Meyering  <meyering@ascend.com>
99315
99316         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99317
99318         * m4/gettext.m4: New file -- from gettext-0.10.35.
99319         * m4/lcmessage.m4: Likewise.
99320         * m4/progtest.m4: Likewise.
99321
99322         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99323         * m4/jm-macros.m4: Require the new macro.
99324
99325 1998-06-29  Jim Meyering  <meyering@ascend.com>
99326
99327         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99328         for the definition of NGROUPS (used in a system header included
99329         by sys/mount.h).
99330
99331 1998-06-28  Jim Meyering  <meyering@ascend.com>
99332
99333         * m4/ls-mntd-fs.m4: New file.
99334         * m4/fstypename.m4: New file.
99335
99336         * m4/jm-macros.m4: Require the new macro.
99337         * m4/jm-glibc-io.m4: New file.
99338
99339 1998-05-19  Jim Meyering  <meyering@ascend.com>
99340
99341         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99342         * m4/lchown.m4: New file.
99343
99344         * m4/Makefile.am.in: New file.
99345         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99346
99347 1998-05-14  Jim Meyering  <meyering@ascend.com>
99348
99349         * m4/Makefile.am (EXTRA_DIST): Add them.
99350         * m4/jm-macros.m4: New file.
99351         * m4/utimbuf.m4: New file.
99352
99353 1998-05-12  Jim Meyering  <meyering@ascend.com>
99354
99355         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99356
99357 1998-05-11  Jim Meyering  <meyering@ascend.com>
99358
99359         * m4/isc-posix.m4: New file.
99360
99361 1998-05-10  Jim Meyering  <meyering@ascend.com>
99362
99363         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99364
99365 1998-05-09  Jim Meyering  <meyering@ascend.com>
99366
99367         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99368         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99369         with automake.
99370
99371         * m4/ssize_t.m4: New file.
99372         * m4/mktime.m4: Remove file -- the new automake has this now.
99373
99374 1998-04-26  Jim Meyering  <meyering@ascend.com>
99375
99376         * m4/assert.m4: New file.
99377         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99378
99379 1998-04-05  Jim Meyering  <meyering@ascend.com>
99380
99381         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99382         (jm_PREREQ): Use it here.
99383
99384 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99385
99386         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99387         in acconfig.h.
99388
99389 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99390
99391         * m4/prereq.m4: New file.
99392         * m4/error.m4: New file.
99393         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99394
99395 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99396
99397         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99398         cache-check for the same variable -- that defeated the purpose of
99399         the test; the test program was never run.  This was a problem only
99400         on systems with losing getline functions -- HP-UX 10.20 is one.
99401         Reported by Bjorn Helgaas.
99402
99403 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99404
99405         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99406
99407 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99408
99409         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99410
99411         * m4/const.m4: New file.  Use an initializer in this declaration
99412         typedef int charset[2]; const charset x;
99413         Reported by Bob Glickstein.
99414
99415 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99416
99417         * m4/chown.m4: Fix reversed types on -1 args to chown.
99418         From Kaveh Ghazi.
99419
99420 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99421
99422         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99423         Add lseek and memchr.
99424
99425         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99426         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99427         have a 20-character limit on names.
99428
99429 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99430
99431         * m4/inttypes_h.m4: New file.
99432         * m4/uintmax_t.m4: New file.
99433         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99434
99435
99436         -----
99437
99438         Local Variables:
99439         coding: utf-8
99440         End:
99441
99442         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99443
99444         Copying and distribution of this file, with or without
99445         modification, are permitted provided the copyright notice
99446         and this notice are preserved.